Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 1 | <!-- **********************************************************************
|
| 2 | * Copyright (C) 2016 by Savoir-faire Linux *
|
| 3 | * Author: Jäger Nicolas<nicolas.jager@savoirfairelinux.com> *
|
| 4 | * *
|
| 5 | * This program is free software; you can redistribute it and/or modify *
|
| 6 | * it under the terms of the GNU General Public License as published by *
|
| 7 | * the Free Software Foundation; either version 3 of the License, or *
|
| 8 | * (at your option) any later version. *
|
| 9 | * *
|
| 10 | * This program is distributed in the hope that it will be useful, *
|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
| 13 | * GNU General Public License for more details. *
|
| 14 | * *
|
| 15 | * You should have received a copy of the GNU General Public License *
|
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/> . *
|
| 17 | *********************************************************************** -->
|
| 18 | <Page x:Class="RingClientUWP.Views.SmartPanel"
|
| 19 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
| 20 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
| 21 | xmlns:local="using:RingClientUWP"
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 22 | xmlns:controls="using:RingClientUWP.Controls"
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 23 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
| 24 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
| 25 | mc:Ignorable="d">
|
| 26 |
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 27 | <Page.Resources>
|
| 28 | <!-- template for contacts. -->
|
| 29 | <DataTemplate x:Key="ContactTemplate"
|
| 30 | x:DataType="local:Contact">
|
| 31 | <Grid>
|
| 32 | <Grid.RowDefinitions>
|
| 33 | <RowDefinition Height="60"/>
|
| 34 | <!-- use the height of _contactBar_ to make it visible or collapsed. -->
|
| 35 | <RowDefinition x:Name="_contactBar_"
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 36 | Height="{x:Bind _contactBarHeight, Mode=OneWay}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 37 | </Grid.RowDefinitions>
|
| 38 | <Grid Grid.Row="0">
|
| 39 | <Grid.ColumnDefinitions>
|
| 40 | <ColumnDefinition Width="60"/>
|
| 41 | <ColumnDefinition Width="*"
|
| 42 | MinWidth="200"/>
|
| 43 | </Grid.ColumnDefinitions>
|
| 44 | <Image x:Name="_contactAvatar_"
|
| 45 | VerticalAlignment="Center"
|
| 46 | HorizontalAlignment="Center"
|
| 47 | Grid.Column="0"
|
| 48 | Width="55"
|
| 49 | Height="55"
|
| 50 | Source="Assets\TESTS\contactAvatar.png"/>
|
| 51 | <!-- visual notifications. -->
|
| 52 | <Border x:Name="_visualNotificationVideoChat_"
|
| 53 | Visibility="Collapsed"
|
| 54 | Style="{StaticResource BorderStyle1}">
|
| 55 | <TextBlock Text=""
|
| 56 | Style="{StaticResource TextSegoeStyle1}"/>
|
| 57 | <Border.RenderTransform>
|
| 58 | <TranslateTransform X="17" Y="-14"/>
|
| 59 | </Border.RenderTransform>
|
| 60 | </Border>
|
| 61 | <Border x:Name="_visualNotificationNewMessage_"
|
Nicolas Jager | 0788e96 | 2016-08-26 15:41:06 -0400 | [diff] [blame] | 62 | Visibility="{x:Bind notificationNewMessage, Mode=OneWay}"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 63 | Style="{StaticResource BorderStyle2}">
|
Nicolas Jager | 0788e96 | 2016-08-26 15:41:06 -0400 | [diff] [blame] | 64 | <TextBlock Text="{x:Bind unreadMessages, Mode=OneWay}"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 65 | Style="{StaticResource TextStyle3}"/>
|
| 66 | <Border.RenderTransform>
|
| 67 | <TranslateTransform X="-17" Y="-14"/>
|
| 68 | </Border.RenderTransform>
|
| 69 | </Border>
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 70 | <Grid Grid.Column="1">
|
| 71 | <Grid.RowDefinitions>
|
| 72 | <RowDefinition Height="30"/>
|
| 73 | <RowDefinition Height="30"/>
|
| 74 | </Grid.RowDefinitions>
|
| 75 | <!-- name of the contact. -->
|
| 76 | <TextBlock x:Name="_contactName_"
|
| 77 | Grid.Row="0"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 78 | Text="{x:Bind name_}">
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 79 | </TextBlock>
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 80 | <!-- call status. REFACTO : REMOVE CODE BELOW -->
|
| 81 | <!--<StackPanel MaxWidth="240"
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 82 | MinWidth="240"
|
| 83 | Grid.Row="1"
|
| 84 | HorizontalAlignment="Left">
|
| 85 | <TextBlock x:Name="_contactCallStatus_"
|
| 86 | Foreground="DarkGray"
|
| 87 | Text="{x:Bind _call.state, Mode=OneWay}"
|
| 88 | Visibility="Visible"
|
| 89 | HorizontalAlignment="Center">
|
| 90 | </TextBlock>
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 91 | </StackPanel>-->
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 92 | </Grid>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 93 | </Grid>
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 94 | <!-- REFACTO : REMOVE CODE BELOW -->
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 95 | <!-- button bar for accept/reject or cancel call. -->
|
| 96 | <!-- nb : dont use Visibility with the grid, use the height of the hosting row (_contactBar_). -->
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 97 | <!--<Grid Width="320"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 98 | HorizontalAlignment="Left"
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 99 | Grid.Row="2"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 100 | Background="DarkGray">
|
| 101 | <StackPanel Orientation="Horizontal"
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 102 | Grid.Row="0"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 103 | HorizontalAlignment="Center">
|
| 104 | <Button x:Name="_acceptIncomingCallBtn_"
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 105 | Click="_acceptIncomingCallBtn__Click"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 106 | VerticalAlignment="Center"
|
| 107 | HorizontalAlignment="Center"
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 108 | Content="Accept"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 109 | <Button x:Name="_rejectIncomingCallBtn_"
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 110 | Click="_rejectIncomingCallBtn__Click"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 111 | VerticalAlignment="Center"
|
| 112 | HorizontalAlignment="Center"
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 113 | Content="Reject"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 114 | </StackPanel>
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 115 | </Grid>-->
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 116 | </Grid>
|
| 117 | </DataTemplate>
|
| 118 | <!-- template for accounts. -->
|
| 119 | <DataTemplate x:Key="AccountTemplate"
|
| 120 | x:DataType="local:Account">
|
| 121 | <Grid>
|
| 122 | <Grid.ColumnDefinitions>
|
atraczyk | 2425ddd | 2016-09-01 13:16:22 -0400 | [diff] [blame] | 123 | <ColumnDefinition Width="260"/>
|
atraczyk | 8ce1dee | 2016-08-25 18:15:07 -0400 | [diff] [blame] | 124 | <ColumnDefinition Width="60"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 125 | </Grid.ColumnDefinitions>
|
atraczyk | 8ce1dee | 2016-08-25 18:15:07 -0400 | [diff] [blame] | 126 | <Grid.RowDefinitions>
|
| 127 | <RowDefinition Height="30"/>
|
| 128 | <RowDefinition Height="30"/>
|
| 129 | </Grid.RowDefinitions>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 130 | <TextBlock x:Name="_accountName_"
|
atraczyk | 2425ddd | 2016-09-01 13:16:22 -0400 | [diff] [blame] | 131 | Grid.Column="0"
|
atraczyk | 8ce1dee | 2016-08-25 18:15:07 -0400 | [diff] [blame] | 132 | Grid.Row="0"
|
atraczyk | 2425ddd | 2016-09-01 13:16:22 -0400 | [diff] [blame] | 133 | Margin="10,5,10,0"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 134 | Text="{x:Bind name_}"/>
|
atraczyk | 8ce1dee | 2016-08-25 18:15:07 -0400 | [diff] [blame] | 135 | <TextBlock x:Name="_accountType_"
|
atraczyk | 2425ddd | 2016-09-01 13:16:22 -0400 | [diff] [blame] | 136 | Grid.Column="1"
|
atraczyk | 8ce1dee | 2016-08-25 18:15:07 -0400 | [diff] [blame] | 137 | Grid.Row="0"
|
| 138 | TextAlignment="Right"
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 139 | Margin="0,5,18,0"
|
atraczyk | 8ce1dee | 2016-08-25 18:15:07 -0400 | [diff] [blame] | 140 | Foreground="ForestGreen"
|
| 141 | Text="{x:Bind accountType_}"/>
|
| 142 | <TextBlock x:Name="_ringID_"
|
atraczyk | 2425ddd | 2016-09-01 13:16:22 -0400 | [diff] [blame] | 143 | Grid.Column="0"
|
atraczyk | 8ce1dee | 2016-08-25 18:15:07 -0400 | [diff] [blame] | 144 | Grid.ColumnSpan="2"
|
| 145 | Grid.Row="1"
|
| 146 | Foreground="Crimson"
|
atraczyk | 2425ddd | 2016-09-01 13:16:22 -0400 | [diff] [blame] | 147 | Margin="10,5,10,0"
|
| 148 | FontSize="14"
|
atraczyk | 8ce1dee | 2016-08-25 18:15:07 -0400 | [diff] [blame] | 149 | TextTrimming="CharacterEllipsis"
|
| 150 | Text="{x:Bind ringID_}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 151 | </Grid>
|
| 152 | </DataTemplate>
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 153 | <!-- template for incoming calls. -->
|
| 154 | <DataTemplate x:Key="IncomingCallTemplate" x:DataType="local:Call">
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 155 | <Grid Width="320"
|
| 156 | HorizontalAlignment="Left"
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 157 | Background="DarkGray">
|
| 158 | <Grid.RowDefinitions>
|
| 159 | <RowDefinition Height="30"/>
|
| 160 | <RowDefinition Height="30"/>
|
| 161 | </Grid.RowDefinitions>
|
| 162 | <TextBlock x:Name="_contactCallStatus_"
|
| 163 | Grid.Row="0"
|
| 164 | Foreground="White"
|
| 165 | Text="{x:Bind state, Mode=OneWay}"
|
| 166 | Visibility="Visible"
|
| 167 | HorizontalAlignment="Center">
|
| 168 | </TextBlock>
|
| 169 | <StackPanel Orientation="Horizontal"
|
| 170 | Grid.Row="1"
|
| 171 | HorizontalAlignment="Center">
|
| 172 | <Button x:Name="_acceptIncomingCallBtn_"
|
| 173 | Click="_acceptIncomingCallBtn__Click"
|
| 174 | VerticalAlignment="Center"
|
| 175 | HorizontalAlignment="Center"
|
| 176 | Content="Accept"/>
|
| 177 | <Button x:Name="_rejectIncomingCallBtn_"
|
| 178 | Click="_rejectIncomingCallBtn__Click"
|
| 179 | VerticalAlignment="Center"
|
| 180 | HorizontalAlignment="Center"
|
| 181 | Content="Reject"/>
|
| 182 | </StackPanel>
|
| 183 | </Grid>
|
| 184 | </DataTemplate>
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 185 | <!-- template for outgoing calls. -->
|
| 186 | <DataTemplate x:Key="OutGoingCallTemplate" x:DataType="local:Call">
|
| 187 | <Grid Width="320"
|
| 188 | HorizontalAlignment="Left"
|
| 189 | Background="DarkGray">
|
| 190 | <Grid.RowDefinitions>
|
| 191 | <RowDefinition Height="30"/>
|
| 192 | <RowDefinition Height="30"/>
|
| 193 | </Grid.RowDefinitions>
|
| 194 | <TextBlock x:Name="_contactCallStatus_"
|
| 195 | Grid.Row="0"
|
| 196 | Foreground="White"
|
| 197 | Text="{x:Bind state, Mode=OneWay}"
|
| 198 | Visibility="Visible"
|
| 199 | HorizontalAlignment="Center">
|
| 200 | </TextBlock>
|
| 201 | <StackPanel Orientation="Horizontal"
|
| 202 | Grid.Row="1"
|
| 203 | HorizontalAlignment="Center">
|
| 204 | <Button x:Name="_cancelCallBtn_"
|
| 205 | Click="_cancelCallBtn__Click"
|
| 206 | VerticalAlignment="Center"
|
| 207 | HorizontalAlignment="Center"
|
| 208 | Content="Cancel"/>
|
| 209 | </StackPanel>
|
| 210 | </Grid>
|
| 211 | </DataTemplate>
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 212 | <!-- template for smartpanelitems. -->
|
| 213 | <DataTemplate x:Key="SmartPanelItemsTemplate"
|
| 214 | x:DataType="controls:SmartPanelItem">
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 215 | <Grid PointerEntered="Grid_PointerEntered" PointerExited="Grid_PointerExited">
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 216 | <Grid.RowDefinitions>
|
| 217 | <RowDefinition Height="auto"/>
|
| 218 | <RowDefinition Height="auto"/>
|
| 219 | </Grid.RowDefinitions>
|
| 220 | <ListBoxItem x:Name="_contactItem_"
|
| 221 | Padding="0"
|
| 222 | Margin="0"
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 223 | Grid.Row="0"
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 224 | PointerReleased="_contactItem__PointerReleased"
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 225 | ContentTemplate="{StaticResource ContactTemplate}"
|
| 226 | Content="{x:Bind _contact, Mode=OneWay}"/>
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 227 | <ListBoxItem Grid.Row="1"
|
| 228 | Visibility="{x:Bind _IncomingCallBar, Mode=OneWay}"
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 229 | Padding="0"
|
| 230 | Margin="0"
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 231 | ContentTemplate="{StaticResource IncomingCallTemplate}"
|
| 232 | Content="{x:Bind _call, Mode=OneWay}"/>
|
| 233 | <Button Grid.Row="0"
|
| 234 | HorizontalAlignment="Left"
|
| 235 | Visibility="{x:Bind _callBar, Mode=OneWay}"
|
| 236 | Content="call"
|
| 237 | Padding="0"
|
| 238 | Click="_callContact__Click"
|
| 239 | VerticalAlignment="Bottom"
|
| 240 | Margin="10">
|
| 241 | <Button.RenderTransform>
|
| 242 | <TranslateTransform X="160"/>
|
| 243 | </Button.RenderTransform>
|
| 244 | </Button>
|
| 245 | <ListBoxItem Grid.Row="1"
|
| 246 | Visibility="{x:Bind _OutGoingCallBar, Mode=OneWay}"
|
| 247 | Padding="0"
|
| 248 | Margin="0"
|
| 249 | ContentTemplate="{StaticResource OutGoingCallTemplate}"
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 250 | Content="{x:Bind _call, Mode=OneWay}"/>
|
| 251 | </Grid>
|
| 252 | </DataTemplate>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 253 | </Page.Resources>
|
| 254 |
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 255 | <Grid>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 256 | <Grid.RowDefinitions>
|
| 257 | <!-- where accounts and share menu drop down are. -->
|
| 258 | <RowDefinition Height="auto"/>
|
| 259 | <!-- where contacts and settings are. -->
|
| 260 | <RowDefinition Height="*"/>
|
| 261 | </Grid.RowDefinitions>
|
| 262 | <!-- drop down menus. -->
|
| 263 | <Grid Background="LightBlue">
|
| 264 | <Grid.RowDefinitions>
|
| 265 | <!-- where the selected account is shown. -->
|
| 266 | <RowDefinition x:Name="_selectedAccountRow_"
|
| 267 | Height="90"/>
|
| 268 | <!-- where the drop down menus are shown. -->
|
| 269 | <RowDefinition Height="auto"/>
|
| 270 | </Grid.RowDefinitions>
|
| 271 | <!-- selected account. -->
|
| 272 | <Grid Grid.Row="0">
|
| 273 | <Grid.ColumnDefinitions>
|
| 274 | <ColumnDefinition x:Name="_selectedAccountAvatarColumn_"
|
| 275 | Width="90"/>
|
| 276 | <ColumnDefinition Width="*"/>
|
| 277 | <ColumnDefinition Width="50"/>
|
| 278 | </Grid.ColumnDefinitions>
|
atraczyk | 2425ddd | 2016-09-01 13:16:22 -0400 | [diff] [blame] | 279 | <Ellipse
|
| 280 | x:Name="_selectedAccountAvatarContainer_"
|
| 281 | Height="80"
|
| 282 | Width="80"
|
| 283 | Grid.Column="0"
|
| 284 | Margin="5">
|
| 285 | <Ellipse.Fill>
|
| 286 | <ImageBrush
|
| 287 | x:Name="_selectedAccountAvatar_"
|
| 288 | ImageSource="Assets\TESTS\contactAvatar.png"/>
|
| 289 | </Ellipse.Fill>
|
| 290 | </Ellipse>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 291 | <StackPanel Grid.Column="1"
|
| 292 | VerticalAlignment="Bottom">
|
atraczyk | 4a8cffc | 2016-08-25 20:01:25 -0400 | [diff] [blame] | 293 | <TextBlock x:Name="_selectedAccountName_"
|
| 294 | Text="default name"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 295 | Margin="10"
|
| 296 | Style="{StaticResource TextStyle2}"/>
|
| 297 | <StackPanel Orientation="Horizontal">
|
| 298 | <!--Content="-->
|
| 299 | <ToggleButton x:Name="_accountsMenuButton_"
|
| 300 | VerticalAlignment="Bottom"
|
| 301 | Content=""
|
| 302 | Checked="_accountsMenuButton__Checked"
|
| 303 | Unchecked="_accountsMenuButton__Unchecked"
|
| 304 | Style="{StaticResource ToggleButtonStyle1}"/>
|
| 305 | <ToggleButton x:Name="_shareMenuButton_"
|
| 306 | VerticalAlignment="Bottom"
|
| 307 | Content=""
|
| 308 | Checked="_shareMenuButton__Checked"
|
| 309 | Unchecked="_shareMenuButton__Unchecked"
|
| 310 | Style="{StaticResource ToggleButtonStyle1}"/>
|
| 311 | </StackPanel>
|
| 312 | </StackPanel>
|
| 313 | <ToggleButton x:Name="_settingsTBtn_"
|
| 314 | Grid.Column="2"
|
| 315 | VerticalAlignment="Bottom"
|
| 316 | Content=""
|
| 317 | Checked="_settings__Checked"
|
| 318 | Unchecked="_settings__Unchecked"
|
| 319 | Style="{StaticResource ToggleButtonStyle1}"/>
|
| 320 | </Grid>
|
| 321 |
|
| 322 | <!--sub menus like the accounts list or the share menu are just below, technicaly they are nested inside the
|
| 323 | same row. To sumon them we use the visibility of their own grid, by linking it to a toggle button-->
|
| 324 |
|
| 325 | <!-- accounts menu. -->
|
| 326 | <Grid x:Name="_accountsMenuGrid_"
|
| 327 | MaxHeight="350"
|
| 328 | Grid.Row="1"
|
| 329 | Visibility="Collapsed"
|
| 330 | Background="LightBlue">
|
| 331 | <Grid.RowDefinitions>
|
| 332 | <RowDefinition Height="*"/>
|
| 333 | <RowDefinition Height="30"/>
|
| 334 | </Grid.RowDefinitions>
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 335 | <ScrollViewer x:Name="_accountsListScrollView_"
|
| 336 | ScrollViewer.VerticalScrollBarVisibility="Auto"
|
| 337 | ScrollViewer.VerticalScrollMode="Enabled">
|
| 338 | <ListBox x:Name="_accountsList_"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 339 | Grid.Row="0"
|
atraczyk | 4a8cffc | 2016-08-25 20:01:25 -0400 | [diff] [blame] | 340 | SelectionChanged="_accountList__SelectionChanged"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 341 | Width="320"
|
| 342 | ItemContainerStyle="{StaticResource contactsListBoxStyle}"
|
| 343 | Background="#FFE4F1F9"
|
| 344 | ItemTemplate="{StaticResource AccountTemplate}"/>
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 345 | </ScrollViewer>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 346 | <Button x:Name="_addAccountBtn_"
|
| 347 | Grid.Row="1"
|
| 348 | VerticalAlignment="Center"
|
| 349 | HorizontalAlignment="Center"
|
| 350 | Content=""
|
| 351 | Click="_addAccountBtn__Click"
|
| 352 | Style="{StaticResource ButtonStyle2}"/>
|
| 353 | </Grid>
|
| 354 | <!-- account creation menu. -->
|
| 355 | <Grid x:Name="_accountCreationMenuGrid_"
|
| 356 | Grid.Row="2"
|
| 357 | Visibility="Collapsed"
|
| 358 | Background="LightBlue">
|
| 359 | <Grid.RowDefinitions>
|
| 360 | <RowDefinition Height="*"/>
|
| 361 | <RowDefinition Height="30"/>
|
| 362 | </Grid.RowDefinitions>
|
| 363 | <StackPanel Orientation="Vertical"
|
| 364 | Grid.Row="0"
|
| 365 | Background="#FFE4F1F9">
|
| 366 | <StackPanel Orientation="Horizontal">
|
| 367 | <TextBlock VerticalAlignment="Center"
|
| 368 | Text="Account type : "
|
| 369 | Margin="10,10,0,10"/>
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 370 | <ComboBox x:Name="_accountTypeComboBox_"
|
| 371 | SelectedIndex="0"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 372 | Margin="10"
|
| 373 | VerticalAlignment="Center"
|
| 374 | Width="195">
|
| 375 | <ComboBoxItem Content="Ring"/>
|
| 376 | <ComboBoxItem Content="Sip"/>
|
| 377 | </ComboBox>
|
| 378 | </StackPanel>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 379 | <!-- RING account. -->
|
| 380 | <StackPanel x:Name="_ringAccountCreationStack_"
|
| 381 | Visibility="Visible">
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 382 | <TextBox x:Name="_aliasTextBox_"
|
| 383 | Margin="10"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 384 | PlaceholderText="Enter your username"/>
|
| 385 | <PasswordBox Margin="10"
|
| 386 | PlaceholderText="Enter your password"/>
|
| 387 | <PasswordBox Margin="10"
|
| 388 | PlaceholderText="Repeat your Password"/>
|
| 389 | </StackPanel>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 390 | </StackPanel>
|
| 391 | <!-- buttons yes/no to create the new account. -->
|
| 392 | <Grid Grid.Row="1">
|
| 393 | <StackPanel Orientation="Horizontal"
|
| 394 | HorizontalAlignment="Center">
|
| 395 | <Button x:Name="_createAccountYes_"
|
| 396 | Grid.Row="1"
|
| 397 | VerticalAlignment="Center"
|
| 398 | HorizontalAlignment="Center"
|
| 399 | Content=""
|
| 400 | Click="_createAccountYes__Click"
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 401 | Style="{StaticResource ButtonStyle5}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 402 | <Button x:Name="_createAccountNo_"
|
| 403 | Grid.Row="1"
|
| 404 | VerticalAlignment="Center"
|
| 405 | HorizontalAlignment="Center"
|
| 406 | Content=""
|
| 407 | Click="_createAccountNo__Click"
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 408 | Style="{StaticResource ButtonStyle5}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 409 | </StackPanel>
|
| 410 | </Grid>
|
| 411 | </Grid>
|
| 412 | <!-- share menu. -->
|
| 413 | <Grid x:Name="_shareMenuGrid_"
|
| 414 | Grid.Row="2"
|
| 415 | Visibility="Collapsed"
|
| 416 | Background="LightBlue">
|
| 417 | <Grid.RowDefinitions>
|
| 418 | <RowDefinition Height="*"/>
|
| 419 | <RowDefinition Height="30"/>
|
| 420 | </Grid.RowDefinitions>
|
| 421 | <Grid Background="#FFE4F1F9">
|
| 422 | <Grid.RowDefinitions>
|
| 423 | <RowDefinition Height="*"/>
|
| 424 | <RowDefinition Height="auto"/>
|
| 425 | <RowDefinition Height="auto"/>
|
| 426 | </Grid.RowDefinitions>
|
| 427 | <Image x:Name="_selectedAccountQrCode_"
|
| 428 | Source="Assets\TESTS\qrcode.png"
|
| 429 | Width="200"
|
| 430 | Margin="5"
|
| 431 | Grid.Row="0"
|
| 432 | Height="200"/>
|
| 433 | <TextBlock Text="RingId:"
|
| 434 | Grid.Row="1"
|
| 435 | HorizontalAlignment="Center"/>
|
| 436 | <TextBox Style="{StaticResource TextBoxStyle2}"
|
| 437 | HorizontalAlignment="Center"
|
| 438 | Text="c4fc649aed8b2497a5e98fd2d856222f07020044"
|
| 439 | Grid.Row="2"/>
|
| 440 | </Grid>
|
| 441 | </Grid>
|
| 442 | </Grid>
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 443 | <!-- smartList and settings. -->
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 444 | <Grid Grid.Row="1">
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 445 | <!-- contacts + calls => smartpanelitems. -->
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 446 | <Grid x:Name="_smartGrid_"
|
| 447 | Grid.Row="0">
|
| 448 | <Grid.RowDefinitions>
|
| 449 | <RowDefinition x:Name="_rowRingTxtBx_"
|
| 450 | Height="40"/>
|
| 451 | <RowDefinition Height="*"/>
|
| 452 | </Grid.RowDefinitions>
|
| 453 | <TextBox x:Name="_ringTxtBx_"
|
Nicolas Jager | 8a85e1f | 2016-08-15 15:11:06 -0400 | [diff] [blame] | 454 | HorizontalAlignment="Center"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 455 | VerticalAlignment="Center"
|
| 456 | Width="320"
|
Nicolas Jager | 8a85e1f | 2016-08-15 15:11:06 -0400 | [diff] [blame] | 457 | TextWrapping="Wrap"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 458 | Style="{StaticResource TextBoxStyle1}"
|
atraczyk | 82f8dda | 2016-08-25 16:34:52 -0400 | [diff] [blame] | 459 | KeyDown="_ringTxtBx__KeyDown"
|
Nicolas Jager | 8a85e1f | 2016-08-15 15:11:06 -0400 | [diff] [blame] | 460 | Text=""/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 461 | <ListBox x:Name="_smartList_"
|
| 462 | Grid.Row="1"
|
| 463 | Margin="0"
|
| 464 | Padding="0"
|
Nicolas Jager | 8a85e1f | 2016-08-15 15:11:06 -0400 | [diff] [blame] | 465 | SelectionChanged="_smartList__SelectionChanged"
|
| 466 | ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
| 467 | ScrollViewer.HorizontalScrollMode="Enabled"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 468 | ItemContainerStyle="{StaticResource contactsListBoxStyle}"
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 469 | ItemTemplate="{StaticResource SmartPanelItemsTemplate}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 470 | </Grid>
|
| 471 | <!-- settings. -->
|
| 472 | <Grid x:Name="_settings_"
|
| 473 | Grid.Row="0"
|
| 474 | Visibility="Collapsed">
|
| 475 | <TextBlock>some settings</TextBlock>
|
| 476 | </Grid>
|
| 477 | </Grid>
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 478 | </Grid>
|
| 479 |
|
| 480 | </Page>
|