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> *
|
atraczyk | e87716f | 2016-09-20 13:46:22 -0400 | [diff] [blame] | 4 | * Author: Traczyk Andreas<andreas.traczyk@savoirfairelinux.com> *
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 5 | * *
|
| 6 | * This program is free software; you can redistribute it and/or modify *
|
| 7 | * it under the terms of the GNU General Public License as published by *
|
| 8 | * the Free Software Foundation; either version 3 of the License, or *
|
| 9 | * (at your option) any later version. *
|
| 10 | * *
|
| 11 | * This program is distributed in the hope that it will be useful, *
|
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
| 14 | * GNU General Public License for more details. *
|
| 15 | * *
|
| 16 | * You should have received a copy of the GNU General Public License *
|
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/> . *
|
| 18 | *********************************************************************** -->
|
| 19 | <Page x:Class="RingClientUWP.Views.SmartPanel"
|
| 20 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
| 21 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
| 22 | xmlns:local="using:RingClientUWP"
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 23 | xmlns:controls="using:RingClientUWP.Controls"
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 24 | xmlns:views="using:RingClientUWP.Views"
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 25 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
| 26 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
Nicolas Jager | a570103 | 2016-10-21 12:53:13 -0400 | [diff] [blame] | 27 | NavigationCacheMode="Enabled"
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 28 | mc:Ignorable="d">
|
| 29 |
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 30 | <Page.Resources>
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 31 | <!-- converters -->
|
| 32 | <views:NewMessageBubleNotification x:Key="_NewMessageBubleNotification_" />
|
| 33 | <views:IncomingVisibility x:Key="_IncomingVisibility_" />
|
| 34 | <views:OutGoingVisibility x:Key="_OutGoingVisibility_" />
|
| 35 | <views:HasAnActiveCall x:Key="_HasAnActiveCall_" />
|
Nicolas Jager | 586e362 | 2016-10-21 08:21:11 -0400 | [diff] [blame] | 36 | <views:AccountTypeToSourceImage x:Key="_AccountTypeToSourceImage_" />
|
| 37 | <views:AccountSelectedToVisibility x:Key="_AccountSelectedToVisibility_" />
|
Nicolas Jager | 0a7b77d | 2016-10-26 12:26:43 -0400 | [diff] [blame] | 38 | <views:CollapseEmptyString x:Key="_CollapseEmptyString_" />
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 39 |
|
atraczyk | e87716f | 2016-09-20 13:46:22 -0400 | [diff] [blame] | 40 | <Style x:Key="addContactTextBoxStyle"
|
| 41 | TargetType="TextBox">
|
| 42 | <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/>
|
| 43 | <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/>
|
| 44 | <Setter Property="Foreground" Value="Black"/>
|
| 45 | <Setter Property="Background" Value="white"/>
|
| 46 | <Setter Property="BorderBrush" Value="Red"/>
|
| 47 | <Setter Property="BorderThickness" Value="0"/>
|
| 48 | <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
|
| 49 | <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
|
| 50 | <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/>
|
| 51 | <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/>
|
| 52 | <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
|
| 53 | <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
|
| 54 | <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/>
|
| 55 | <Setter Property="Padding" Value="4,4"/>
|
| 56 | <Setter Property="Template">
|
| 57 | <Setter.Value>
|
| 58 | <ControlTemplate TargetType="TextBox">
|
| 59 | <Grid>
|
| 60 | <Grid.Resources>
|
| 61 | <Style x:Name="DeleteButtonStyle" TargetType="Button">
|
| 62 | <Setter Property="Template">
|
| 63 | <Setter.Value>
|
| 64 | <ControlTemplate TargetType="Button">
|
| 65 | <Grid x:Name="ButtonLayoutGrid"
|
| 66 | BorderThickness="5"
|
| 67 | Background="Yellow">
|
| 68 | </Grid>
|
| 69 | </ControlTemplate>
|
| 70 | </Setter.Value>
|
| 71 | </Setter>
|
| 72 | </Style>
|
| 73 | </Grid.Resources>
|
| 74 | <Grid.ColumnDefinitions>
|
| 75 | <ColumnDefinition Width="*"/>
|
| 76 | <ColumnDefinition Width="Auto"/>
|
| 77 | </Grid.ColumnDefinitions>
|
| 78 | <Grid.RowDefinitions>
|
| 79 | <RowDefinition Height="Auto"/>
|
| 80 | <RowDefinition Height="*"/>
|
| 81 | </Grid.RowDefinitions>
|
| 82 | <Border x:Name="BackgroundElement"
|
| 83 | Grid.Row="1"
|
| 84 | Background="{TemplateBinding Background}"
|
| 85 | Margin="5"
|
| 86 | Opacity="1"
|
| 87 | Grid.ColumnSpan="2"
|
| 88 | Grid.RowSpan="1"/>
|
| 89 | <ScrollViewer x:Name="ContentElement"
|
| 90 | Grid.Row="1"
|
| 91 | HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}"
|
| 92 | HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
| 93 | VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}"
|
| 94 | VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
|
| 95 | IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}"
|
| 96 | IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}"
|
| 97 | IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}"
|
| 98 | Margin="5"
|
| 99 | Padding="{TemplateBinding Padding}"
|
| 100 | IsTabStop="False"
|
| 101 | AutomationProperties.AccessibilityView="Raw"
|
| 102 | ZoomMode="Disabled"/>
|
| 103 |
|
| 104 | <Button x:Name="DeleteButton"
|
| 105 | Background="Transparent"
|
| 106 | Grid.Row="1"
|
| 107 | FontFamily="Segoe MDL2 Assets"
|
| 108 | Foreground="LightBlue"
|
| 109 | Content=""
|
| 110 | Click="_ringTxtBx__Click"
|
| 111 | BorderThickness="{TemplateBinding BorderThickness}"
|
| 112 | Margin="{ThemeResource HelperButtonThemePadding}"
|
| 113 | IsTabStop="False"
|
| 114 | Grid.Column="1"
|
| 115 | Visibility="Visible"
|
| 116 | FontSize="20"
|
| 117 | MinWidth="34"
|
| 118 | VerticalAlignment="Stretch"/>
|
| 119 | </Grid>
|
| 120 | </ControlTemplate>
|
| 121 | </Setter.Value>
|
| 122 | </Setter>
|
| 123 | </Style>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 124 | <!-- template for contacts. -->
|
| 125 | <DataTemplate x:Key="ContactTemplate"
|
| 126 | x:DataType="local:Contact">
|
| 127 | <Grid>
|
atraczyk | e87716f | 2016-09-20 13:46:22 -0400 | [diff] [blame] | 128 | <Grid.ColumnDefinitions>
|
| 129 | <ColumnDefinition Width="310"/>
|
| 130 | </Grid.ColumnDefinitions>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 131 | <Grid.RowDefinitions>
|
| 132 | <RowDefinition Height="60"/>
|
| 133 | <!-- use the height of _contactBar_ to make it visible or collapsed. -->
|
| 134 | <RowDefinition x:Name="_contactBar_"
|
Nicolas Jager | f6a1032 | 2016-09-06 08:17:49 -0400 | [diff] [blame] | 135 | Height="{x:Bind _contactBarHeight, Mode=OneWay}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 136 | </Grid.RowDefinitions>
|
| 137 | <Grid Grid.Row="0">
|
| 138 | <Grid.ColumnDefinitions>
|
| 139 | <ColumnDefinition Width="60"/>
|
| 140 | <ColumnDefinition Width="*"
|
| 141 | MinWidth="200"/>
|
| 142 | </Grid.ColumnDefinitions>
|
| 143 | <Image x:Name="_contactAvatar_"
|
| 144 | VerticalAlignment="Center"
|
| 145 | HorizontalAlignment="Center"
|
| 146 | Grid.Column="0"
|
| 147 | Width="55"
|
| 148 | Height="55"
|
| 149 | Source="Assets\TESTS\contactAvatar.png"/>
|
| 150 | <!-- visual notifications. -->
|
| 151 | <Border x:Name="_visualNotificationVideoChat_"
|
| 152 | Visibility="Collapsed"
|
| 153 | Style="{StaticResource BorderStyle1}">
|
| 154 | <TextBlock Text=""
|
| 155 | Style="{StaticResource TextSegoeStyle1}"/>
|
| 156 | <Border.RenderTransform>
|
| 157 | <TranslateTransform X="17" Y="-14"/>
|
| 158 | </Border.RenderTransform>
|
| 159 | </Border>
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 160 | <Grid Grid.Column="1">
|
| 161 | <Grid.RowDefinitions>
|
| 162 | <RowDefinition Height="30"/>
|
| 163 | <RowDefinition Height="30"/>
|
| 164 | </Grid.RowDefinitions>
|
| 165 | <!-- name of the contact. -->
|
atraczyk | e87716f | 2016-09-20 13:46:22 -0400 | [diff] [blame] | 166 | <TextBlock x:Name="_contactName_"
|
| 167 | Grid.Row="0"
|
| 168 | Text="{x:Bind name_}"
|
| 169 | TextTrimming="CharacterEllipsis">
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 170 | </TextBlock>
|
Nicolas Jager | d76940f | 2016-08-31 14:44:04 -0400 | [diff] [blame] | 171 | </Grid>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 172 | </Grid>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 173 | </Grid>
|
| 174 | </DataTemplate>
|
Nicolas Jager | bf406b2 | 2016-10-21 11:32:33 -0400 | [diff] [blame] | 175 | <!-- template for AccountListItems. -->
|
| 176 | <DataTemplate x:Key="AccountListItemsTemplate"
|
| 177 | x:DataType="controls:AccountListItem">
|
Nicolas Jager | 586e362 | 2016-10-21 08:21:11 -0400 | [diff] [blame] | 178 | <Grid Margin="0,10">
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 179 | <Grid.ColumnDefinitions>
|
Nicolas Jager | 586e362 | 2016-10-21 08:21:11 -0400 | [diff] [blame] | 180 | <ColumnDefinition Width="40"/>
|
| 181 | <ColumnDefinition Width="290"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 182 | </Grid.ColumnDefinitions>
|
Nicolas Jager | 586e362 | 2016-10-21 08:21:11 -0400 | [diff] [blame] | 183 | <Border Grid.Column="0"
|
| 184 | Margin="5,0"
|
| 185 | Style="{StaticResource BorderStyle3}">
|
| 186 | <Image x:Name="_AccountTypeIcon_"
|
| 187 | VerticalAlignment="Center"
|
| 188 | HorizontalAlignment="Center"
|
Nicolas Jager | bf406b2 | 2016-10-21 11:32:33 -0400 | [diff] [blame] | 189 | Source="{x:Bind _account.accountType_, Converter={StaticResource _AccountTypeToSourceImage_}, Mode=OneWay}"/>
|
Nicolas Jager | 586e362 | 2016-10-21 08:21:11 -0400 | [diff] [blame] | 190 | </Border>
|
| 191 | <Button x:Name="_editAccountMenuButton_"
|
| 192 | HorizontalAlignment="Right"
|
| 193 | VerticalAlignment="Top"
|
| 194 | Content=""
|
| 195 | FontFamily="Segoe MDL2 Assets"
|
Nicolas Jager | 6abfc0d | 2016-10-21 14:57:47 -0400 | [diff] [blame] | 196 | Click="_editAccountMenuButton__Click"
|
Nicolas Jager | 586e362 | 2016-10-21 08:21:11 -0400 | [diff] [blame] | 197 | FontSize="20"
|
| 198 | Foreground="White"
|
| 199 | Background="Transparent"
|
| 200 | Visibility="{x:Bind _isSelected, Converter={StaticResource _AccountSelectedToVisibility_}, Mode=OneWay}"
|
| 201 | Grid.Column="1">
|
| 202 | <Button.RenderTransform>
|
| 203 | <TranslateTransform X="-5" Y="-5"/>
|
| 204 | </Button.RenderTransform>
|
| 205 | </Button>
|
| 206 | <StackPanel Grid.Column="1">
|
| 207 | <TextBlock x:Name="_accountName_"
|
| 208 | Style="{StaticResource TextStyle5}"
|
Nicolas Jager | 6abfc0d | 2016-10-21 14:57:47 -0400 | [diff] [blame] | 209 | Text="{x:Bind _account.name_, Mode=OneWay}"/>
|
Nicolas Jager | 586e362 | 2016-10-21 08:21:11 -0400 | [diff] [blame] | 210 | <TextBlock x:Name="_ringID_"
|
Nicolas Jager | 0a7b77d | 2016-10-26 12:26:43 -0400 | [diff] [blame] | 211 | Grid.ColumnSpan="2"
|
| 212 | Style="{StaticResource TextStyle6}"
|
| 213 | Visibility="{x:Bind _account.ringID_, Converter={StaticResource _CollapseEmptyString_}, Mode=OneWay}"
|
| 214 | Text="{x:Bind _account.ringID_, Mode=OneWay}"/>
|
| 215 | <TextBlock x:Name="_sipUsername_"
|
| 216 | Grid.ColumnSpan="2"
|
| 217 | Visibility="{x:Bind _account._sipUsername, Converter={StaticResource _CollapseEmptyString_}, Mode=OneWay}"
|
| 218 | Style="{StaticResource TextStyle6}"
|
| 219 | Text="{x:Bind _account._sipUsername, Mode=OneWay}"/>
|
Nicolas Jager | 586e362 | 2016-10-21 08:21:11 -0400 | [diff] [blame] | 220 | </StackPanel>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 221 | </Grid>
|
| 222 | </DataTemplate>
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 223 | <!-- template for smartpanelitems. -->
|
| 224 | <DataTemplate x:Key="SmartPanelItemsTemplate"
|
| 225 | x:DataType="controls:SmartPanelItem">
|
Nicolas Jager | 5750df0 | 2016-09-13 11:20:33 -0400 | [diff] [blame] | 226 | <Grid PointerEntered="Grid_PointerEntered" PointerExited="Grid_PointerExited">
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 227 | <Grid.RowDefinitions>
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 228 | <!-- row definition for the contact. -->
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 229 | <RowDefinition Height="auto"/>
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 230 | <!-- row definition for the incoming call bar. -->
|
| 231 | <RowDefinition Height="auto"/>
|
| 232 | <!-- row definition for the outgoing call bar. -->
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 233 | <RowDefinition Height="auto"/>
|
| 234 | </Grid.RowDefinitions>
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 235 | <!--helper to detect mouse overing-->
|
| 236 | <Rectangle Fill="Transparent" Grid.Row="0"/>
|
| 237 | <!-- contact. -->
|
| 238 | <Grid Grid.Row="0">
|
| 239 | <Grid.ColumnDefinitions>
|
| 240 | <ColumnDefinition Width="310"/>
|
| 241 | </Grid.ColumnDefinitions>
|
| 242 | <Grid.RowDefinitions>
|
| 243 | <RowDefinition Height="60"/>
|
| 244 | <!-- use the height of _contactBar_ to make it visible or collapsed. -->
|
| 245 | <RowDefinition x:Name="_contactBar_"
|
| 246 | Height="{x:Bind _contact._contactBarHeight, Mode=OneWay}"/>
|
| 247 | </Grid.RowDefinitions>
|
| 248 | <Grid Grid.Row="0">
|
| 249 | <Grid.ColumnDefinitions>
|
| 250 | <ColumnDefinition Width="60"/>
|
| 251 | <ColumnDefinition Width="*"
|
| 252 | MinWidth="200"/>
|
| 253 | </Grid.ColumnDefinitions>
|
| 254 | <Image x:Name="_contactAvatar_"
|
| 255 | VerticalAlignment="Center"
|
| 256 | HorizontalAlignment="Center"
|
| 257 | Grid.Column="0"
|
| 258 | Width="55"
|
| 259 | Height="55"
|
| 260 | Source="Assets\TESTS\contactAvatar.png"/>
|
| 261 | <!-- visual notifications. -->
|
| 262 | <Border x:Name="_visualNotificationVideoChat_"
|
| 263 | Visibility="Collapsed"
|
| 264 | Style="{StaticResource BorderStyle1}">
|
| 265 | <TextBlock Text=""
|
| 266 | Style="{StaticResource TextSegoeStyle1}"/>
|
| 267 | <Border.RenderTransform>
|
| 268 | <TranslateTransform X="17" Y="-14"/>
|
| 269 | </Border.RenderTransform>
|
| 270 | </Border>
|
| 271 | <Border x:Name="_visualNotificationNewMessage_"
|
| 272 | Visibility="{x:Bind _contact._unreadMessages, Converter={StaticResource _NewMessageBubleNotification_}, Mode=OneWay}"
|
| 273 | Style="{StaticResource BorderStyle2}">
|
| 274 | <TextBlock Text="{x:Bind _contact._unreadMessages, Mode=OneWay}"
|
| 275 | Style="{StaticResource TextStyle3}"/>
|
| 276 | <Border.RenderTransform>
|
| 277 | <TranslateTransform X="-17" Y="-14"/>
|
| 278 | </Border.RenderTransform>
|
| 279 | </Border>
|
| 280 |
|
| 281 | <Grid Grid.Column="1">
|
| 282 | <Grid.RowDefinitions>
|
| 283 | <RowDefinition Height="30"/>
|
| 284 | <RowDefinition Height="30"/>
|
| 285 | </Grid.RowDefinitions>
|
| 286 | <!-- name of the contact. -->
|
| 287 | <TextBlock x:Name="_contactName_"
|
| 288 | Grid.Row="0"
|
| 289 | Text="{x:Bind _contact.name_}"
|
| 290 | TextTrimming="CharacterEllipsis">
|
| 291 | </TextBlock>
|
| 292 | <!-- call button. -->
|
| 293 | <Button Grid.Row="0"
|
| 294 | Visibility="{x:Bind _hovered, Mode=OneWay}"
|
| 295 | Click="_callContact__Click"
|
| 296 | VerticalAlignment="Bottom"
|
| 297 | HorizontalAlignment="Left"
|
| 298 | Margin="10,0"
|
| 299 | Style="{StaticResource roundButtonTemplate}"
|
| 300 | FontFamily="Segoe MDL2 Assets"
|
| 301 | Content="">
|
| 302 | <Button.RenderTransform>
|
| 303 | <TranslateTransform X="90" Y="25"/>
|
| 304 | </Button.RenderTransform>
|
| 305 | </Button>
|
| 306 | </Grid>
|
| 307 | </Grid>
|
| 308 | </Grid>
|
Nicolas Jager | 083b3ae | 2016-10-04 08:46:19 -0400 | [diff] [blame] | 309 | <!-- call bar. -->
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 310 | <Grid Width="320"
|
| 311 | Grid.Row="1"
|
| 312 | HorizontalAlignment="Left"
|
| 313 | Background="DarkGray">
|
| 314 | <Grid.RowDefinitions>
|
| 315 | <RowDefinition Height="auto"/>
|
| 316 | <RowDefinition Height="auto"/>
|
| 317 | </Grid.RowDefinitions>
|
Nicolas Jager | 083b3ae | 2016-10-04 08:46:19 -0400 | [diff] [blame] | 318 | <TextBlock x:Name="_CallStatus_"
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 319 | Grid.Row="0"
|
| 320 | Foreground="White"
|
Nicolas Jager | 083b3ae | 2016-10-04 08:46:19 -0400 | [diff] [blame] | 321 | Text="{x:Bind _callStatus, Mode=OneWay}"
|
| 322 | Visibility="{x:Bind _callStatus, Converter={StaticResource _HasAnActiveCall_}, Mode=OneWay}"
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 323 | HorizontalAlignment="Center">
|
| 324 | </TextBlock>
|
| 325 | <StackPanel Orientation="Horizontal"
|
| 326 | Visibility="Visible"
|
| 327 | Grid.Row="1"
|
| 328 | HorizontalAlignment="Center">
|
| 329 | <Button x:Name="_acceptIncomingCallBtn_"
|
| 330 | Click="_acceptIncomingCallBtn__Click"
|
Nicolas Jager | 083b3ae | 2016-10-04 08:46:19 -0400 | [diff] [blame] | 331 | Visibility="{x:Bind _callStatus, Converter={StaticResource _IncomingVisibility_}, Mode=OneWay}"
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 332 | VerticalAlignment="Center"
|
| 333 | HorizontalAlignment="Center"
|
| 334 | Content="Accept"/>
|
| 335 | <Button x:Name="_rejectIncomingCallBtn_"
|
| 336 | Click="_rejectIncomingCallBtn__Click"
|
Nicolas Jager | 083b3ae | 2016-10-04 08:46:19 -0400 | [diff] [blame] | 337 | Visibility="{x:Bind _callStatus, Converter={StaticResource _IncomingVisibility_}, Mode=OneWay}"
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 338 | VerticalAlignment="Center"
|
| 339 | HorizontalAlignment="Center"
|
| 340 | Content="Reject"/>
|
| 341 | <Button x:Name="_cancelCallBtn_"
|
| 342 | Click="_cancelCallBtn__Click"
|
Nicolas Jager | 083b3ae | 2016-10-04 08:46:19 -0400 | [diff] [blame] | 343 | Visibility="{x:Bind _callStatus, Converter={StaticResource _OutGoingVisibility_}, Mode=OneWay}"
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 344 | VerticalAlignment="Center"
|
| 345 | HorizontalAlignment="Center"
|
| 346 | Content="Cancel"/>
|
| 347 | </StackPanel>
|
| 348 | </Grid>
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 349 | </Grid>
|
| 350 | </DataTemplate>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 351 | </Page.Resources>
|
| 352 |
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 353 | <Grid>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 354 | <Grid.RowDefinitions>
|
| 355 | <!-- where accounts and share menu drop down are. -->
|
| 356 | <RowDefinition Height="auto"/>
|
| 357 | <!-- where contacts and settings are. -->
|
| 358 | <RowDefinition Height="*"/>
|
| 359 | </Grid.RowDefinitions>
|
| 360 | <!-- drop down menus. -->
|
| 361 | <Grid Background="LightBlue">
|
| 362 | <Grid.RowDefinitions>
|
| 363 | <!-- where the selected account is shown. -->
|
| 364 | <RowDefinition x:Name="_selectedAccountRow_"
|
| 365 | Height="90"/>
|
| 366 | <!-- where the drop down menus are shown. -->
|
| 367 | <RowDefinition Height="auto"/>
|
| 368 | </Grid.RowDefinitions>
|
| 369 | <!-- selected account. -->
|
| 370 | <Grid Grid.Row="0">
|
| 371 | <Grid.ColumnDefinitions>
|
| 372 | <ColumnDefinition x:Name="_selectedAccountAvatarColumn_"
|
| 373 | Width="90"/>
|
| 374 | <ColumnDefinition Width="*"/>
|
| 375 | <ColumnDefinition Width="50"/>
|
| 376 | </Grid.ColumnDefinitions>
|
atraczyk | 2425ddd | 2016-09-01 13:16:22 -0400 | [diff] [blame] | 377 | <Ellipse
|
| 378 | x:Name="_selectedAccountAvatarContainer_"
|
| 379 | Height="80"
|
| 380 | Width="80"
|
| 381 | Grid.Column="0"
|
Nicolas Jager | f3ad2c0 | 2016-10-26 13:39:03 -0400 | [diff] [blame^] | 382 | Stroke="White"
|
| 383 | StrokeThickness="3"
|
| 384 | PointerEntered="_selectedAccountAvatarContainer__PointerEntered"
|
| 385 | PointerExited="_selectedAccountAvatarContainer__PointerExited"
|
| 386 | PointerReleased="_selectedAccountAvatarContainer__PointerReleased"
|
atraczyk | 2425ddd | 2016-09-01 13:16:22 -0400 | [diff] [blame] | 387 | Margin="5">
|
| 388 | <Ellipse.Fill>
|
| 389 | <ImageBrush
|
| 390 | x:Name="_selectedAccountAvatar_"
|
| 391 | ImageSource="Assets\TESTS\contactAvatar.png"/>
|
| 392 | </Ellipse.Fill>
|
| 393 | </Ellipse>
|
Nicolas Jager | f3ad2c0 | 2016-10-26 13:39:03 -0400 | [diff] [blame^] | 394 | <Ellipse
|
| 395 | x:Name="_shaderPhotoboothIcon_"
|
| 396 | Visibility="Collapsed"
|
| 397 | Height="80"
|
| 398 | Width="80"
|
| 399 | Grid.Column="0"
|
| 400 | IsHitTestVisible="False"
|
| 401 | Fill="Black"
|
| 402 | Opacity="0.3"
|
| 403 | Margin="5">
|
| 404 | </Ellipse>
|
| 405 | <TextBlock x:Name="_photoboothIcon_"
|
| 406 | Grid.Column="0"
|
| 407 | Visibility="Collapsed"
|
| 408 | IsHitTestVisible="False"
|
| 409 | Style="{StaticResource TextSegoeStyle-Centered-40pt-white}"
|
| 410 | Text="">
|
| 411 | </TextBlock>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 412 | <StackPanel Grid.Column="1"
|
| 413 | VerticalAlignment="Bottom">
|
atraczyk | 4a8cffc | 2016-08-25 20:01:25 -0400 | [diff] [blame] | 414 | <TextBlock x:Name="_selectedAccountName_"
|
atraczyk | 5c395ea | 2016-09-20 17:28:09 -0400 | [diff] [blame] | 415 | Text="[TEXT MISSING]"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 416 | Margin="10"
|
| 417 | Style="{StaticResource TextStyle2}"/>
|
| 418 | <StackPanel Orientation="Horizontal">
|
| 419 | <!--Content="-->
|
| 420 | <ToggleButton x:Name="_accountsMenuButton_"
|
| 421 | VerticalAlignment="Bottom"
|
| 422 | Content=""
|
| 423 | Checked="_accountsMenuButton__Checked"
|
| 424 | Unchecked="_accountsMenuButton__Unchecked"
|
| 425 | Style="{StaticResource ToggleButtonStyle1}"/>
|
Nicolas Jager | 95c526b | 2016-10-20 09:47:03 -0400 | [diff] [blame] | 426 | <!-- _shareMenuButton_ -->
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 427 | <ToggleButton x:Name="_shareMenuButton_"
|
| 428 | VerticalAlignment="Bottom"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 429 | Checked="_shareMenuButton__Checked"
|
| 430 | Unchecked="_shareMenuButton__Unchecked"
|
Nicolas Jager | 95c526b | 2016-10-20 09:47:03 -0400 | [diff] [blame] | 431 | Style="{StaticResource ToggleButtonStyle1}">
|
| 432 | <Image Source="Assets/qrCodeIcon.png"
|
| 433 | Stretch="Uniform"/>
|
| 434 | </ToggleButton>
|
| 435 | <!-- _devicesMenuButton_ -->
|
Nicolas Jager | e4eb513 | 2016-10-04 14:25:15 -0400 | [diff] [blame] | 436 | <ToggleButton x:Name="_devicesMenuButton_"
|
| 437 | VerticalAlignment="Bottom"
|
Nicolas Jager | d083077 | 2016-10-07 08:45:33 -0400 | [diff] [blame] | 438 | Content=""
|
Nicolas Jager | e4eb513 | 2016-10-04 14:25:15 -0400 | [diff] [blame] | 439 | Checked="_devicesMenuButton__Checked"
|
Nicolas Jager | d083077 | 2016-10-07 08:45:33 -0400 | [diff] [blame] | 440 | Unchecked="_devicesMenuButton__Unchecked"
|
| 441 | Style="{StaticResource ToggleButtonStyle1}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 442 | </StackPanel>
|
| 443 | </StackPanel>
|
| 444 | <ToggleButton x:Name="_settingsTBtn_"
|
| 445 | Grid.Column="2"
|
| 446 | VerticalAlignment="Bottom"
|
| 447 | Content=""
|
| 448 | Checked="_settings__Checked"
|
| 449 | Unchecked="_settings__Unchecked"
|
| 450 | Style="{StaticResource ToggleButtonStyle1}"/>
|
| 451 | </Grid>
|
| 452 |
|
| 453 | <!--sub menus like the accounts list or the share menu are just below, technicaly they are nested inside the
|
Nicolas Jager | c551c36 | 2016-10-01 19:24:50 -0400 | [diff] [blame] | 454 | same row. To summon them we use the visibility of their own grid, by linking it to a toggle button-->
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 455 |
|
| 456 | <!-- accounts menu. -->
|
| 457 | <Grid x:Name="_accountsMenuGrid_"
|
| 458 | MaxHeight="350"
|
| 459 | Grid.Row="1"
|
| 460 | Visibility="Collapsed"
|
| 461 | Background="LightBlue">
|
| 462 | <Grid.RowDefinitions>
|
| 463 | <RowDefinition Height="*"/>
|
| 464 | <RowDefinition Height="30"/>
|
| 465 | </Grid.RowDefinitions>
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 466 | <ScrollViewer x:Name="_accountsListScrollView_"
|
| 467 | ScrollViewer.VerticalScrollBarVisibility="Auto"
|
| 468 | ScrollViewer.VerticalScrollMode="Enabled">
|
| 469 | <ListBox x:Name="_accountsList_"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 470 | Grid.Row="0"
|
atraczyk | 4a8cffc | 2016-08-25 20:01:25 -0400 | [diff] [blame] | 471 | SelectionChanged="_accountList__SelectionChanged"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 472 | Width="320"
|
| 473 | ItemContainerStyle="{StaticResource contactsListBoxStyle}"
|
| 474 | Background="#FFE4F1F9"
|
Nicolas Jager | bf406b2 | 2016-10-21 11:32:33 -0400 | [diff] [blame] | 475 | ItemTemplate="{StaticResource AccountListItemsTemplate}"/>
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 476 | </ScrollViewer>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 477 | <Button x:Name="_addAccountBtn_"
|
| 478 | Grid.Row="1"
|
| 479 | VerticalAlignment="Center"
|
| 480 | HorizontalAlignment="Center"
|
| 481 | Content=""
|
| 482 | Click="_addAccountBtn__Click"
|
atraczyk | e87716f | 2016-09-20 13:46:22 -0400 | [diff] [blame] | 483 | Style="{StaticResource ButtonStyle6}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 484 | </Grid>
|
| 485 | <!-- account creation menu. -->
|
| 486 | <Grid x:Name="_accountCreationMenuGrid_"
|
| 487 | Grid.Row="2"
|
| 488 | Visibility="Collapsed"
|
| 489 | Background="LightBlue">
|
| 490 | <Grid.RowDefinitions>
|
| 491 | <RowDefinition Height="*"/>
|
| 492 | <RowDefinition Height="30"/>
|
| 493 | </Grid.RowDefinitions>
|
| 494 | <StackPanel Orientation="Vertical"
|
| 495 | Grid.Row="0"
|
| 496 | Background="#FFE4F1F9">
|
Nicolas Jager | 0a7b77d | 2016-10-26 12:26:43 -0400 | [diff] [blame] | 497 | <!-- alias sub menu. -->
|
| 498 | <StackPanel Orientation="Horizontal" Margin="10">
|
| 499 | <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
|
| 500 | Text=""/>
|
| 501 | <TextBlock Text="Alias" Margin="10"/>
|
| 502 | </StackPanel>
|
| 503 | <TextBox x:Name="_ringAliasTextBox_"
|
| 504 | TextChanged="_ringAliasTextBox__TextChanged"
|
| 505 | Margin="10"
|
| 506 | PlaceholderText="Enter alias"/>
|
| 507 | <!-- account type chooser -->
|
| 508 | <StackPanel Orientation="Horizontal" Margin="10">
|
| 509 | <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
|
| 510 | Text=""/>
|
| 511 | <TextBlock Text="Account type" Margin="10"/>
|
| 512 | </StackPanel>
|
| 513 | <ComboBox x:Name="_accountTypeComboBox_"
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 514 | SelectedIndex="0"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 515 | Margin="10"
|
Nicolas Jager | 0a7b77d | 2016-10-26 12:26:43 -0400 | [diff] [blame] | 516 | SelectionChanged="_accountTypeComboBox__SelectionChanged"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 517 | VerticalAlignment="Center"
|
| 518 | Width="195">
|
Nicolas Jager | 0a7b77d | 2016-10-26 12:26:43 -0400 | [diff] [blame] | 519 | <ComboBoxItem Content="Ring"/>
|
| 520 | <ComboBoxItem Content="Sip"/>
|
| 521 | </ComboBox>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 522 | <!-- RING account. -->
|
| 523 | <StackPanel x:Name="_ringAccountCreationStack_"
|
| 524 | Visibility="Visible">
|
Nicolas Jager | 0a7b77d | 2016-10-26 12:26:43 -0400 | [diff] [blame] | 525 | <!-- password sub menu. -->
|
| 526 | <StackPanel Orientation="Horizontal" Margin="10">
|
| 527 | <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
|
| 528 | Text=""/>
|
| 529 | <TextBlock Text="Archive password" Margin="10"/>
|
| 530 | </StackPanel>
|
| 531 | <PasswordBox x:Name="_ringPasswordBoxAccountCreation_"
|
Nicolas Jager | 7168df9 | 2016-10-25 13:23:03 -0400 | [diff] [blame] | 532 | Margin="10"
|
| 533 | PasswordChanged="_passwordBoxAccountCreationCheck__PasswordChanged"
|
Nicolas Jager | 0a7b77d | 2016-10-26 12:26:43 -0400 | [diff] [blame] | 534 | PlaceholderText="Enter archive password"/>
|
| 535 | <PasswordBox x:Name="_ringPasswordBoxAccountCreationCheck_"
|
Nicolas Jager | 7168df9 | 2016-10-25 13:23:03 -0400 | [diff] [blame] | 536 | Margin="10"
|
| 537 | PasswordChanged="_passwordBoxAccountCreationCheck__PasswordChanged"
|
Nicolas Jager | 0a7b77d | 2016-10-26 12:26:43 -0400 | [diff] [blame] | 538 | PlaceholderText="Repeat archive Password"/>
|
| 539 | <!-- upnp sub menu. -->
|
| 540 | <StackPanel Orientation="Horizontal" Margin="10">
|
| 541 | <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
|
| 542 | Text=""/>
|
| 543 | <TextBlock Text="UPnP" Margin="10"/>
|
| 544 | </StackPanel>
|
| 545 | <ToggleSwitch x:Name="_upnpStateAccountCreation_"
|
| 546 | IsOn="True"
|
| 547 | Margin="20,10"/>
|
| 548 | </StackPanel>
|
| 549 | <!-- SIP account. -->
|
| 550 | <StackPanel x:Name="_sipAccountCreationStack_"
|
| 551 | Visibility="Collapsed">
|
| 552 | <StackPanel Orientation="Horizontal"
|
| 553 | Margin="10">
|
| 554 | <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
|
| 555 | Text=""/>
|
| 556 | <TextBlock Text="SIP account parameters"
|
| 557 | Margin="10"/>
|
| 558 | </StackPanel>
|
| 559 | <TextBox x:Name="_sipHostnameTextBox_"
|
| 560 | Margin="10"
|
| 561 | PlaceholderText="Enter hostname"/>
|
| 562 | <TextBox x:Name="_sipUsernameTextBox_"
|
| 563 | Margin="10"
|
| 564 | PlaceholderText="Enter username"/>
|
| 565 | <PasswordBox x:Name="_sipPasswordBoxAccountCreation_"
|
| 566 | Margin="10"
|
| 567 | PlaceholderText="Enter password"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 568 | </StackPanel>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 569 | </StackPanel>
|
| 570 | <!-- buttons yes/no to create the new account. -->
|
| 571 | <Grid Grid.Row="1">
|
| 572 | <StackPanel Orientation="Horizontal"
|
| 573 | HorizontalAlignment="Center">
|
| 574 | <Button x:Name="_createAccountYes_"
|
| 575 | Grid.Row="1"
|
| 576 | VerticalAlignment="Center"
|
| 577 | HorizontalAlignment="Center"
|
| 578 | Content=""
|
| 579 | Click="_createAccountYes__Click"
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 580 | Style="{StaticResource ButtonStyle5}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 581 | <Button x:Name="_createAccountNo_"
|
| 582 | Grid.Row="1"
|
| 583 | VerticalAlignment="Center"
|
| 584 | HorizontalAlignment="Center"
|
| 585 | Content=""
|
| 586 | Click="_createAccountNo__Click"
|
atraczyk | 196936e | 2016-09-02 15:31:53 -0400 | [diff] [blame] | 587 | Style="{StaticResource ButtonStyle5}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 588 | </StackPanel>
|
| 589 | </Grid>
|
| 590 | </Grid>
|
Nicolas Jager | 6abfc0d | 2016-10-21 14:57:47 -0400 | [diff] [blame] | 591 | <!-- account edition menu. -->
|
| 592 | <Grid x:Name="_accountEditionMenuGrid_"
|
| 593 | Grid.Row="2"
|
| 594 | Visibility="Collapsed"
|
| 595 | Background="LightBlue">
|
| 596 | <Grid.RowDefinitions>
|
| 597 | <RowDefinition Height="*"/>
|
| 598 | <RowDefinition Height="30"/>
|
| 599 | </Grid.RowDefinitions>
|
| 600 | <StackPanel Orientation="Vertical"
|
| 601 | Grid.Row="0"
|
| 602 | Background="#FFE4F1F9">
|
| 603 | <!-- alias sub menu. -->
|
| 604 | <StackPanel Orientation="Horizontal" Margin="10">
|
| 605 | <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
|
| 606 | Text=""/>
|
| 607 | <TextBlock Text="Alias" Margin="10"/>
|
| 608 | </StackPanel>
|
| 609 | <TextBox x:Name="_aliasTextBoxEditionMenu_"
|
| 610 | FontSize="20"
|
| 611 | Margin="20,10"
|
Nicolas Jager | 0a7b77d | 2016-10-26 12:26:43 -0400 | [diff] [blame] | 612 | PlaceholderText="Enter alias"/>
|
Nicolas Jager | 6abfc0d | 2016-10-21 14:57:47 -0400 | [diff] [blame] | 613 | <!-- upnp sub menu. -->
|
Nicolas Jager | 0a7b77d | 2016-10-26 12:26:43 -0400 | [diff] [blame] | 614 | <StackPanel x:Name="_upnpStackEditionMenu_">
|
| 615 | <StackPanel Orientation="Horizontal" Margin="10">
|
| 616 | <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
|
| 617 | Text=""/>
|
| 618 | <TextBlock Text="UPnP" Margin="10"/>
|
| 619 | </StackPanel>
|
| 620 | <ToggleSwitch x:Name="_upnpState_"
|
| 621 | Margin="20,10"/>
|
Nicolas Jager | 6abfc0d | 2016-10-21 14:57:47 -0400 | [diff] [blame] | 622 | </StackPanel>
|
Nicolas Jager | 0a7b77d | 2016-10-26 12:26:43 -0400 | [diff] [blame] | 623 | <!-- SIP parameters. -->
|
| 624 | <StackPanel x:Name="_sipAccountStackEditionMenu_"
|
| 625 | Visibility="Collapsed">
|
| 626 | <StackPanel Orientation="Horizontal"
|
| 627 | Margin="10">
|
| 628 | <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
|
| 629 | Text=""/>
|
| 630 | <TextBlock Text="SIP account parameters"
|
| 631 | Margin="10"/>
|
| 632 | </StackPanel>
|
| 633 | <TextBox x:Name="_sipHostnameEditionMenu_"
|
| 634 | Margin="10"
|
| 635 | PlaceholderText="Enter hostname"/>
|
| 636 | <TextBox x:Name="_sipUsernameEditionTextBox_"
|
| 637 | Margin="10"
|
| 638 | PlaceholderText="Enter username"/>
|
| 639 | <PasswordBox x:Name="_sipPasswordEditionMenu_"
|
| 640 | Margin="10"
|
| 641 | PlaceholderText="Enter password"/>
|
| 642 | </StackPanel>
|
Nicolas Jager | 6abfc0d | 2016-10-21 14:57:47 -0400 | [diff] [blame] | 643 | <!-- delete account sub menu. -->
|
Nicolas Jager | 72b4292 | 2016-10-25 07:52:42 -0400 | [diff] [blame] | 644 | <StackPanel Orientation="Horizontal" Margin="10">
|
Nicolas Jager | 6abfc0d | 2016-10-21 14:57:47 -0400 | [diff] [blame] | 645 | <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
|
| 646 | Text=""/>
|
| 647 | <TextBlock Text="Delete account" Margin="10"/>
|
| 648 | </StackPanel>
|
| 649 | <ToggleButton x:Name="_deleteAccountBtnEditionMenu_"
|
| 650 | Margin="20,10"
|
Nicolas Jager | 72b4292 | 2016-10-25 07:52:42 -0400 | [diff] [blame] | 651 | Content="Delete"/>
|
Nicolas Jager | 6abfc0d | 2016-10-21 14:57:47 -0400 | [diff] [blame] | 652 | </StackPanel>
|
| 653 | <!-- buttons yes/no to accept the modification. -->
|
| 654 | <Grid Grid.Row="1">
|
| 655 | <StackPanel Orientation="Horizontal"
|
| 656 | HorizontalAlignment="Center">
|
| 657 | <Button x:Name="_acceptAccountModification_"
|
| 658 | Grid.Row="1"
|
| 659 | VerticalAlignment="Center"
|
| 660 | HorizontalAlignment="Center"
|
| 661 | Content=""
|
| 662 | Click="_acceptAccountModification__Click"
|
| 663 | Style="{StaticResource ButtonStyle5}"/>
|
| 664 | <Button x:Name="_cancelAccountModification_"
|
| 665 | Grid.Row="1"
|
| 666 | VerticalAlignment="Center"
|
| 667 | HorizontalAlignment="Center"
|
| 668 | Content=""
|
| 669 | Click="_cancelAccountModification__Click"
|
| 670 | Style="{StaticResource ButtonStyle5}"/>
|
| 671 | </StackPanel>
|
| 672 | </Grid>
|
| 673 | </Grid>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 674 | <!-- share menu. -->
|
| 675 | <Grid x:Name="_shareMenuGrid_"
|
| 676 | Grid.Row="2"
|
| 677 | Visibility="Collapsed"
|
| 678 | Background="LightBlue">
|
| 679 | <Grid.RowDefinitions>
|
| 680 | <RowDefinition Height="*"/>
|
| 681 | <RowDefinition Height="30"/>
|
| 682 | </Grid.RowDefinitions>
|
| 683 | <Grid Background="#FFE4F1F9">
|
| 684 | <Grid.RowDefinitions>
|
| 685 | <RowDefinition Height="*"/>
|
| 686 | <RowDefinition Height="auto"/>
|
| 687 | <RowDefinition Height="auto"/>
|
| 688 | </Grid.RowDefinitions>
|
Nicolas Jager | 95c526b | 2016-10-20 09:47:03 -0400 | [diff] [blame] | 689 | <Grid Background="white"
|
| 690 | Margin="10"
|
| 691 | MaxHeight="150"
|
| 692 | MaxWidth="140"
|
| 693 | Padding="5">
|
| 694 | <Image x:Name="_selectedAccountQrCode_"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 695 | Width="200"
|
| 696 | Margin="5"
|
| 697 | Grid.Row="0"
|
Nicolas Jager | 95c526b | 2016-10-20 09:47:03 -0400 | [diff] [blame] | 698 | Stretch="None"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 699 | Height="200"/>
|
Nicolas Jager | 95c526b | 2016-10-20 09:47:03 -0400 | [diff] [blame] | 700 | </Grid>
|
| 701 | <TextBlock x:Name="_ringId_"
|
| 702 | Padding="5"
|
| 703 | Style="{StaticResource TextStyle4}"
|
| 704 | Text=""
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 705 | Grid.Row="1"
|
Nicolas Jager | 95c526b | 2016-10-20 09:47:03 -0400 | [diff] [blame] | 706 | IsTextSelectionEnabled="True"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 707 | HorizontalAlignment="Center"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 708 | </Grid>
|
Nicolas Jager | 95c526b | 2016-10-20 09:47:03 -0400 | [diff] [blame] | 709 | <Button x:Name="_shareMenuDone_"
|
| 710 | Grid.Row="1"
|
| 711 | VerticalAlignment="Center"
|
| 712 | HorizontalAlignment="Center"
|
| 713 | Content=""
|
| 714 | Click="_shareMenuDone__Click"
|
| 715 | Style="{StaticResource ButtonStyle6}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 716 | </Grid>
|
Nicolas Jager | e4eb513 | 2016-10-04 14:25:15 -0400 | [diff] [blame] | 717 | <!-- devices menu. -->
|
| 718 | <Grid x:Name="_devicesMenuGrid_"
|
| 719 | Grid.Row="2"
|
| 720 | Visibility="Collapsed"
|
| 721 | Background="LightBlue">
|
| 722 | <Grid.RowDefinitions>
|
| 723 | <RowDefinition Height="*"/>
|
| 724 | <RowDefinition Height="30"/>
|
| 725 | </Grid.RowDefinitions>
|
| 726 | <Grid Background="#FFE4F1F9">
|
| 727 | <Grid.RowDefinitions>
|
| 728 | <RowDefinition Height="auto"/>
|
Nicolas Jager | 813cf4d | 2016-10-06 10:54:46 -0400 | [diff] [blame] | 729 | <RowDefinition Height="auto"/>
|
Nicolas Jager | e4eb513 | 2016-10-04 14:25:15 -0400 | [diff] [blame] | 730 | <RowDefinition Height="*"/>
|
| 731 | <RowDefinition Height="auto"/>
|
| 732 | <RowDefinition Height="auto"/>
|
| 733 | </Grid.RowDefinitions>
|
Nicolas Jager | 813cf4d | 2016-10-06 10:54:46 -0400 | [diff] [blame] | 734 | <TextBlock Text="Device ID:"
|
Nicolas Jager | 38dd442 | 2016-10-07 10:49:32 -0400 | [diff] [blame] | 735 | Margin="10"
|
Nicolas Jager | e4eb513 | 2016-10-04 14:25:15 -0400 | [diff] [blame] | 736 | Grid.Row="0"
|
| 737 | HorizontalAlignment="Center"/>
|
Nicolas Jager | 813cf4d | 2016-10-06 10:54:46 -0400 | [diff] [blame] | 738 | <TextBlock x:Name="_deviceId_"
|
Nicolas Jager | 38dd442 | 2016-10-07 10:49:32 -0400 | [diff] [blame] | 739 | Margin="10"
|
Nicolas Jager | 813cf4d | 2016-10-06 10:54:46 -0400 | [diff] [blame] | 740 | Text="[TEXT_MISSING]"
|
Nicolas Jager | 38dd442 | 2016-10-07 10:49:32 -0400 | [diff] [blame] | 741 | TextTrimming="CharacterEllipsis"
|
Nicolas Jager | 813cf4d | 2016-10-06 10:54:46 -0400 | [diff] [blame] | 742 | Grid.Row="1"
|
| 743 | IsTextSelectionEnabled="True"
|
| 744 | HorizontalAlignment="Center"/>
|
Nicolas Jager | 38dd442 | 2016-10-07 10:49:32 -0400 | [diff] [blame] | 745 | <TextBlock x:Name="_waitingDevicesList_"
|
| 746 | Text="waiting for devices list..."
|
| 747 | Grid.Row="2"
|
| 748 | IsTextSelectionEnabled="True"
|
| 749 | HorizontalAlignment="Center"/>
|
Nicolas Jager | 813cf4d | 2016-10-06 10:54:46 -0400 | [diff] [blame] | 750 | <ListBox x:Name="_devicesIdList_"
|
Nicolas Jager | 38dd442 | 2016-10-07 10:49:32 -0400 | [diff] [blame] | 751 | Visibility="Collapsed"
|
Nicolas Jager | 813cf4d | 2016-10-06 10:54:46 -0400 | [diff] [blame] | 752 | Grid.Row="2"/>
|
Nicolas Jager | e4eb513 | 2016-10-04 14:25:15 -0400 | [diff] [blame] | 753 | </Grid>
|
| 754 | <Button x:Name="_addDevice_"
|
| 755 | Grid.Row="1"
|
| 756 | VerticalAlignment="Center"
|
| 757 | HorizontalAlignment="Center"
|
| 758 | Content=""
|
| 759 | Click="_addDevice__Click"
|
| 760 | Style="{StaticResource ButtonStyle6}"/>
|
| 761 | </Grid>
|
Nicolas Jager | d083077 | 2016-10-07 08:45:33 -0400 | [diff] [blame] | 762 | <!-- add device (pin generator) menu. -->
|
| 763 | <Grid x:Name="_addingDeviceGrid_"
|
| 764 | Grid.Row="2"
|
| 765 | Visibility="Collapsed"
|
| 766 | Background="LightBlue">
|
| 767 | <Grid.RowDefinitions>
|
| 768 | <RowDefinition Height="*"/>
|
| 769 | <RowDefinition Height="30"/>
|
| 770 | </Grid.RowDefinitions>
|
| 771 | <Grid Background="#FFE4F1F9">
|
| 772 | <Grid.RowDefinitions>
|
| 773 | <RowDefinition Height="auto"/>
|
| 774 | <RowDefinition Height="auto"/>
|
| 775 | <RowDefinition Height="*"/>
|
| 776 | </Grid.RowDefinitions>
|
| 777 | <TextBlock VerticalAlignment="Center"
|
| 778 | Text="PIN generator"
|
| 779 | HorizontalAlignment="Center"
|
| 780 | Grid.Row="0"
|
| 781 | Margin="10,10,0,10"/>
|
| 782 | <PasswordBox x:Name="_passwordForPinGenerator_"
|
| 783 | Margin="10"
|
| 784 | Grid.Row="1"
|
| 785 | PlaceholderText="Enter your password"/>
|
| 786 | </Grid>
|
| 787 | <!-- buttons yes/no to generate a PIN. -->
|
| 788 | <Grid Grid.Row="1">
|
| 789 | <StackPanel Orientation="Horizontal"
|
| 790 | HorizontalAlignment="Center">
|
| 791 | <Button x:Name="_pinGeneratorYes_"
|
| 792 | Grid.Row="1"
|
| 793 | VerticalAlignment="Center"
|
| 794 | HorizontalAlignment="Center"
|
| 795 | Content=""
|
| 796 | Click="_pinGeneratorYes__Click"
|
| 797 | Style="{StaticResource ButtonStyle5}"/>
|
| 798 | <Button x:Name="_pinGeneratorNo_"
|
| 799 | Grid.Row="1"
|
| 800 | VerticalAlignment="Center"
|
| 801 | HorizontalAlignment="Center"
|
| 802 | Content=""
|
| 803 | Click="_pinGeneratorNo__Click"
|
| 804 | Style="{StaticResource ButtonStyle5}"/>
|
| 805 | </StackPanel>
|
| 806 | </Grid>
|
| 807 | </Grid>
|
| 808 | <!-- waiting for a PIN. -->
|
| 809 | <Grid x:Name="_waitingForPin_"
|
| 810 | Grid.Row="2"
|
| 811 | Visibility="Collapsed"
|
| 812 | Background="LightBlue">
|
| 813 | <Grid.RowDefinitions>
|
| 814 | <RowDefinition Height="*"/>
|
| 815 | <RowDefinition Height="30"/>
|
| 816 | </Grid.RowDefinitions>
|
| 817 | <Grid Background="#FFE4F1F9">
|
| 818 | <Grid.RowDefinitions>
|
| 819 | <RowDefinition Height="*"/>
|
| 820 | <RowDefinition Height="auto"/>
|
| 821 | <RowDefinition Height="*"/>
|
| 822 | </Grid.RowDefinitions>
|
| 823 | <TextBlock x:Name="_waitingAndResult_"
|
| 824 | VerticalAlignment="Center"
|
| 825 | Text="Exporting account on the Ring..."
|
| 826 | HorizontalAlignment="Center"
|
| 827 | Grid.Row="0"
|
| 828 | Margin="10,10,0,10"/>
|
| 829 | </Grid>
|
Nicolas Jager | 38dd442 | 2016-10-07 10:49:32 -0400 | [diff] [blame] | 830 | <Grid Grid.Row="1">
|
| 831 | <StackPanel Orientation="Horizontal"
|
| 832 | HorizontalAlignment="Center">
|
| 833 | <Button x:Name="_closePin_"
|
| 834 | Grid.Row="1"
|
| 835 | VerticalAlignment="Center"
|
| 836 | HorizontalAlignment="Center"
|
| 837 | Content=""
|
| 838 | Click="_closePin__Click"
|
| 839 | Style="{StaticResource ButtonStyle5}"/>
|
| 840 | </StackPanel>
|
| 841 | </Grid>
|
Nicolas Jager | d083077 | 2016-10-07 08:45:33 -0400 | [diff] [blame] | 842 | </Grid>
|
Nicolas Jager | 38dd442 | 2016-10-07 10:49:32 -0400 | [diff] [blame] | 843 |
|
| 844 |
|
| 845 |
|
| 846 |
|
| 847 |
|
| 848 |
|
| 849 |
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 850 | </Grid>
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 851 | <!-- smartList and settings. -->
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 852 | <Grid Grid.Row="1">
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 853 | <!-- contacts + calls => smartpanelitems. -->
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 854 | <Grid x:Name="_smartGrid_"
|
| 855 | Grid.Row="0">
|
| 856 | <Grid.RowDefinitions>
|
| 857 | <RowDefinition x:Name="_rowRingTxtBx_"
|
| 858 | Height="40"/>
|
| 859 | <RowDefinition Height="*"/>
|
| 860 | </Grid.RowDefinitions>
|
| 861 | <TextBox x:Name="_ringTxtBx_"
|
Nicolas Jager | 8a85e1f | 2016-08-15 15:11:06 -0400 | [diff] [blame] | 862 | HorizontalAlignment="Center"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 863 | VerticalAlignment="Center"
|
| 864 | Width="320"
|
Nicolas Jager | 8a85e1f | 2016-08-15 15:11:06 -0400 | [diff] [blame] | 865 | TextWrapping="Wrap"
|
atraczyk | e87716f | 2016-09-20 13:46:22 -0400 | [diff] [blame] | 866 | Style="{StaticResource addContactTextBoxStyle}"
|
atraczyk | 82f8dda | 2016-08-25 16:34:52 -0400 | [diff] [blame] | 867 | KeyDown="_ringTxtBx__KeyDown"
|
Nicolas Jager | 8a85e1f | 2016-08-15 15:11:06 -0400 | [diff] [blame] | 868 | Text=""/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 869 | <ListBox x:Name="_smartList_"
|
| 870 | Grid.Row="1"
|
| 871 | Margin="0"
|
| 872 | Padding="0"
|
Nicolas Jager | 8a85e1f | 2016-08-15 15:11:06 -0400 | [diff] [blame] | 873 | SelectionChanged="_smartList__SelectionChanged"
|
| 874 | ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
| 875 | ScrollViewer.HorizontalScrollMode="Enabled"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 876 | ItemContainerStyle="{StaticResource contactsListBoxStyle}"
|
Nicolas Jager | 7c409f3 | 2016-09-08 09:35:16 -0400 | [diff] [blame] | 877 | ItemTemplate="{StaticResource SmartPanelItemsTemplate}"/>
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 878 | </Grid>
|
| 879 | <!-- settings. -->
|
| 880 | <Grid x:Name="_settings_"
|
| 881 | Grid.Row="0"
|
| 882 | Visibility="Collapsed">
|
| 883 | <TextBlock>some settings</TextBlock>
|
| 884 | </Grid>
|
| 885 | </Grid>
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 886 | </Grid>
|
| 887 |
|
| 888 | </Page>
|