blob: 0ac9e7b1f7eb9cf1f3c5cf700b0aa5875ae42884 [file] [log] [blame]
Nicolas Jager998fbd72016-08-08 11:41:28 -04001<!-- **********************************************************************
2* Copyright (C) 2016 by Savoir-faire Linux *
3* Author: Jäger Nicolas<nicolas.jager@savoirfairelinux.com> *
atraczyke87716f2016-09-20 13:46:22 -04004* Author: Traczyk Andreas<andreas.traczyk@savoirfairelinux.com> *
Nicolas Jager998fbd72016-08-08 11:41:28 -04005* *
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 Jager7c409f32016-09-08 09:35:16 -040023 xmlns:controls="using:RingClientUWP.Controls"
Nicolas Jagerc551c362016-10-01 19:24:50 -040024 xmlns:views="using:RingClientUWP.Views"
Nicolas Jager998fbd72016-08-08 11:41:28 -040025 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
26 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
27 mc:Ignorable="d">
28
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040029 <Page.Resources>
Nicolas Jagerc551c362016-10-01 19:24:50 -040030 <!-- converters -->
31 <views:NewMessageBubleNotification x:Key="_NewMessageBubleNotification_" />
32 <views:IncomingVisibility x:Key="_IncomingVisibility_" />
33 <views:OutGoingVisibility x:Key="_OutGoingVisibility_" />
34 <views:HasAnActiveCall x:Key="_HasAnActiveCall_" />
35
atraczyke87716f2016-09-20 13:46:22 -040036 <Style x:Key="addContactTextBoxStyle"
37 TargetType="TextBox">
38 <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/>
39 <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/>
40 <Setter Property="Foreground" Value="Black"/>
41 <Setter Property="Background" Value="white"/>
42 <Setter Property="BorderBrush" Value="Red"/>
43 <Setter Property="BorderThickness" Value="0"/>
44 <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
45 <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
46 <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/>
47 <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/>
48 <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
49 <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
50 <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/>
51 <Setter Property="Padding" Value="4,4"/>
52 <Setter Property="Template">
53 <Setter.Value>
54 <ControlTemplate TargetType="TextBox">
55 <Grid>
56 <Grid.Resources>
57 <Style x:Name="DeleteButtonStyle" TargetType="Button">
58 <Setter Property="Template">
59 <Setter.Value>
60 <ControlTemplate TargetType="Button">
61 <Grid x:Name="ButtonLayoutGrid"
62 BorderThickness="5"
63 Background="Yellow">
64 </Grid>
65 </ControlTemplate>
66 </Setter.Value>
67 </Setter>
68 </Style>
69 </Grid.Resources>
70 <Grid.ColumnDefinitions>
71 <ColumnDefinition Width="*"/>
72 <ColumnDefinition Width="Auto"/>
73 </Grid.ColumnDefinitions>
74 <Grid.RowDefinitions>
75 <RowDefinition Height="Auto"/>
76 <RowDefinition Height="*"/>
77 </Grid.RowDefinitions>
78 <Border x:Name="BackgroundElement"
79 Grid.Row="1"
80 Background="{TemplateBinding Background}"
81 Margin="5"
82 Opacity="1"
83 Grid.ColumnSpan="2"
84 Grid.RowSpan="1"/>
85 <ScrollViewer x:Name="ContentElement"
86 Grid.Row="1"
87 HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}"
88 HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
89 VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}"
90 VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
91 IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}"
92 IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}"
93 IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}"
94 Margin="5"
95 Padding="{TemplateBinding Padding}"
96 IsTabStop="False"
97 AutomationProperties.AccessibilityView="Raw"
98 ZoomMode="Disabled"/>
99
100 <Button x:Name="DeleteButton"
101 Background="Transparent"
102 Grid.Row="1"
103 FontFamily="Segoe MDL2 Assets"
104 Foreground="LightBlue"
105 Content="&#xE1E2;"
106 Click="_ringTxtBx__Click"
107 BorderThickness="{TemplateBinding BorderThickness}"
108 Margin="{ThemeResource HelperButtonThemePadding}"
109 IsTabStop="False"
110 Grid.Column="1"
111 Visibility="Visible"
112 FontSize="20"
113 MinWidth="34"
114 VerticalAlignment="Stretch"/>
115 </Grid>
116 </ControlTemplate>
117 </Setter.Value>
118 </Setter>
119 </Style>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400120 <!-- template for contacts. -->
121 <DataTemplate x:Key="ContactTemplate"
122 x:DataType="local:Contact">
123 <Grid>
atraczyke87716f2016-09-20 13:46:22 -0400124 <Grid.ColumnDefinitions>
125 <ColumnDefinition Width="310"/>
126 </Grid.ColumnDefinitions>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400127 <Grid.RowDefinitions>
128 <RowDefinition Height="60"/>
129 <!-- use the height of _contactBar_ to make it visible or collapsed. -->
130 <RowDefinition x:Name="_contactBar_"
Nicolas Jagerf6a10322016-09-06 08:17:49 -0400131 Height="{x:Bind _contactBarHeight, Mode=OneWay}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400132 </Grid.RowDefinitions>
133 <Grid Grid.Row="0">
134 <Grid.ColumnDefinitions>
135 <ColumnDefinition Width="60"/>
136 <ColumnDefinition Width="*"
137 MinWidth="200"/>
138 </Grid.ColumnDefinitions>
139 <Image x:Name="_contactAvatar_"
140 VerticalAlignment="Center"
141 HorizontalAlignment="Center"
142 Grid.Column="0"
143 Width="55"
144 Height="55"
145 Source="Assets\TESTS\contactAvatar.png"/>
146 <!-- visual notifications. -->
147 <Border x:Name="_visualNotificationVideoChat_"
148 Visibility="Collapsed"
149 Style="{StaticResource BorderStyle1}">
150 <TextBlock Text="&#xE8AA;"
151 Style="{StaticResource TextSegoeStyle1}"/>
152 <Border.RenderTransform>
153 <TranslateTransform X="17" Y="-14"/>
154 </Border.RenderTransform>
155 </Border>
Nicolas Jagerd76940f2016-08-31 14:44:04 -0400156 <Grid Grid.Column="1">
157 <Grid.RowDefinitions>
158 <RowDefinition Height="30"/>
159 <RowDefinition Height="30"/>
160 </Grid.RowDefinitions>
161 <!-- name of the contact. -->
atraczyke87716f2016-09-20 13:46:22 -0400162 <TextBlock x:Name="_contactName_"
163 Grid.Row="0"
164 Text="{x:Bind name_}"
165 TextTrimming="CharacterEllipsis">
Nicolas Jagerd76940f2016-08-31 14:44:04 -0400166 </TextBlock>
Nicolas Jagerd76940f2016-08-31 14:44:04 -0400167 </Grid>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400168 </Grid>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400169 </Grid>
170 </DataTemplate>
171 <!-- template for accounts. -->
172 <DataTemplate x:Key="AccountTemplate"
173 x:DataType="local:Account">
174 <Grid>
175 <Grid.ColumnDefinitions>
atraczyk2425ddd2016-09-01 13:16:22 -0400176 <ColumnDefinition Width="260"/>
atraczyk8ce1dee2016-08-25 18:15:07 -0400177 <ColumnDefinition Width="60"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400178 </Grid.ColumnDefinitions>
atraczyk8ce1dee2016-08-25 18:15:07 -0400179 <Grid.RowDefinitions>
180 <RowDefinition Height="30"/>
181 <RowDefinition Height="30"/>
182 </Grid.RowDefinitions>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400183 <TextBlock x:Name="_accountName_"
atraczyk2425ddd2016-09-01 13:16:22 -0400184 Grid.Column="0"
atraczyk8ce1dee2016-08-25 18:15:07 -0400185 Grid.Row="0"
atraczyk2425ddd2016-09-01 13:16:22 -0400186 Margin="10,5,10,0"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400187 Text="{x:Bind name_}"/>
atraczyk8ce1dee2016-08-25 18:15:07 -0400188 <TextBlock x:Name="_accountType_"
atraczyk2425ddd2016-09-01 13:16:22 -0400189 Grid.Column="1"
atraczyk8ce1dee2016-08-25 18:15:07 -0400190 Grid.Row="0"
191 TextAlignment="Right"
atraczyk196936e2016-09-02 15:31:53 -0400192 Margin="0,5,18,0"
atraczyk8ce1dee2016-08-25 18:15:07 -0400193 Foreground="ForestGreen"
194 Text="{x:Bind accountType_}"/>
195 <TextBlock x:Name="_ringID_"
atraczyk2425ddd2016-09-01 13:16:22 -0400196 Grid.Column="0"
atraczyk8ce1dee2016-08-25 18:15:07 -0400197 Grid.ColumnSpan="2"
198 Grid.Row="1"
199 Foreground="Crimson"
atraczyk2425ddd2016-09-01 13:16:22 -0400200 Margin="10,5,10,0"
201 FontSize="14"
atraczyk8ce1dee2016-08-25 18:15:07 -0400202 TextTrimming="CharacterEllipsis"
203 Text="{x:Bind ringID_}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400204 </Grid>
205 </DataTemplate>
Nicolas Jager7c409f32016-09-08 09:35:16 -0400206 <!-- template for smartpanelitems. -->
207 <DataTemplate x:Key="SmartPanelItemsTemplate"
208 x:DataType="controls:SmartPanelItem">
Nicolas Jager5750df02016-09-13 11:20:33 -0400209 <Grid PointerEntered="Grid_PointerEntered" PointerExited="Grid_PointerExited">
Nicolas Jager7c409f32016-09-08 09:35:16 -0400210 <Grid.RowDefinitions>
Nicolas Jagerc551c362016-10-01 19:24:50 -0400211 <!-- row definition for the contact. -->
Nicolas Jager7c409f32016-09-08 09:35:16 -0400212 <RowDefinition Height="auto"/>
Nicolas Jagerc551c362016-10-01 19:24:50 -0400213 <!-- row definition for the incoming call bar. -->
214 <RowDefinition Height="auto"/>
215 <!-- row definition for the outgoing call bar. -->
Nicolas Jager7c409f32016-09-08 09:35:16 -0400216 <RowDefinition Height="auto"/>
217 </Grid.RowDefinitions>
Nicolas Jagerc551c362016-10-01 19:24:50 -0400218 <!--helper to detect mouse overing-->
219 <Rectangle Fill="Transparent" Grid.Row="0"/>
220 <!-- contact. -->
221 <Grid Grid.Row="0">
222 <Grid.ColumnDefinitions>
223 <ColumnDefinition Width="310"/>
224 </Grid.ColumnDefinitions>
225 <Grid.RowDefinitions>
226 <RowDefinition Height="60"/>
227 <!-- use the height of _contactBar_ to make it visible or collapsed. -->
228 <RowDefinition x:Name="_contactBar_"
229 Height="{x:Bind _contact._contactBarHeight, Mode=OneWay}"/>
230 </Grid.RowDefinitions>
231 <Grid Grid.Row="0">
232 <Grid.ColumnDefinitions>
233 <ColumnDefinition Width="60"/>
234 <ColumnDefinition Width="*"
235 MinWidth="200"/>
236 </Grid.ColumnDefinitions>
237 <Image x:Name="_contactAvatar_"
238 VerticalAlignment="Center"
239 HorizontalAlignment="Center"
240 Grid.Column="0"
241 Width="55"
242 Height="55"
243 Source="Assets\TESTS\contactAvatar.png"/>
244 <!-- visual notifications. -->
245 <Border x:Name="_visualNotificationVideoChat_"
246 Visibility="Collapsed"
247 Style="{StaticResource BorderStyle1}">
248 <TextBlock Text="&#xE8AA;"
249 Style="{StaticResource TextSegoeStyle1}"/>
250 <Border.RenderTransform>
251 <TranslateTransform X="17" Y="-14"/>
252 </Border.RenderTransform>
253 </Border>
254 <Border x:Name="_visualNotificationNewMessage_"
255 Visibility="{x:Bind _contact._unreadMessages, Converter={StaticResource _NewMessageBubleNotification_}, Mode=OneWay}"
256 Style="{StaticResource BorderStyle2}">
257 <TextBlock Text="{x:Bind _contact._unreadMessages, Mode=OneWay}"
258 Style="{StaticResource TextStyle3}"/>
259 <Border.RenderTransform>
260 <TranslateTransform X="-17" Y="-14"/>
261 </Border.RenderTransform>
262 </Border>
263
264 <Grid Grid.Column="1">
265 <Grid.RowDefinitions>
266 <RowDefinition Height="30"/>
267 <RowDefinition Height="30"/>
268 </Grid.RowDefinitions>
269 <!-- name of the contact. -->
270 <TextBlock x:Name="_contactName_"
271 Grid.Row="0"
272 Text="{x:Bind _contact.name_}"
273 TextTrimming="CharacterEllipsis">
274 </TextBlock>
275 <!-- call button. -->
276 <Button Grid.Row="0"
277 Visibility="{x:Bind _hovered, Mode=OneWay}"
278 Click="_callContact__Click"
279 VerticalAlignment="Bottom"
280 HorizontalAlignment="Left"
281 Margin="10,0"
282 Style="{StaticResource roundButtonTemplate}"
283 FontFamily="Segoe MDL2 Assets"
284 Content="&#xE116;">
285 <Button.RenderTransform>
286 <TranslateTransform X="90" Y="25"/>
287 </Button.RenderTransform>
288 </Button>
289 </Grid>
290 </Grid>
291 </Grid>
Nicolas Jager083b3ae2016-10-04 08:46:19 -0400292 <!-- call bar. -->
Nicolas Jagerc551c362016-10-01 19:24:50 -0400293 <Grid Width="320"
294 Grid.Row="1"
295 HorizontalAlignment="Left"
296 Background="DarkGray">
297 <Grid.RowDefinitions>
298 <RowDefinition Height="auto"/>
299 <RowDefinition Height="auto"/>
300 </Grid.RowDefinitions>
Nicolas Jager083b3ae2016-10-04 08:46:19 -0400301 <TextBlock x:Name="_CallStatus_"
Nicolas Jagerc551c362016-10-01 19:24:50 -0400302 Grid.Row="0"
303 Foreground="White"
Nicolas Jager083b3ae2016-10-04 08:46:19 -0400304 Text="{x:Bind _callStatus, Mode=OneWay}"
305 Visibility="{x:Bind _callStatus, Converter={StaticResource _HasAnActiveCall_}, Mode=OneWay}"
Nicolas Jagerc551c362016-10-01 19:24:50 -0400306 HorizontalAlignment="Center">
307 </TextBlock>
308 <StackPanel Orientation="Horizontal"
309 Visibility="Visible"
310 Grid.Row="1"
311 HorizontalAlignment="Center">
312 <Button x:Name="_acceptIncomingCallBtn_"
313 Click="_acceptIncomingCallBtn__Click"
Nicolas Jager083b3ae2016-10-04 08:46:19 -0400314 Visibility="{x:Bind _callStatus, Converter={StaticResource _IncomingVisibility_}, Mode=OneWay}"
Nicolas Jagerc551c362016-10-01 19:24:50 -0400315 VerticalAlignment="Center"
316 HorizontalAlignment="Center"
317 Content="Accept"/>
318 <Button x:Name="_rejectIncomingCallBtn_"
319 Click="_rejectIncomingCallBtn__Click"
Nicolas Jager083b3ae2016-10-04 08:46:19 -0400320 Visibility="{x:Bind _callStatus, Converter={StaticResource _IncomingVisibility_}, Mode=OneWay}"
Nicolas Jagerc551c362016-10-01 19:24:50 -0400321 VerticalAlignment="Center"
322 HorizontalAlignment="Center"
323 Content="Reject"/>
324 <Button x:Name="_cancelCallBtn_"
325 Click="_cancelCallBtn__Click"
Nicolas Jager083b3ae2016-10-04 08:46:19 -0400326 Visibility="{x:Bind _callStatus, Converter={StaticResource _OutGoingVisibility_}, Mode=OneWay}"
Nicolas Jagerc551c362016-10-01 19:24:50 -0400327 VerticalAlignment="Center"
328 HorizontalAlignment="Center"
329 Content="Cancel"/>
330 </StackPanel>
331 </Grid>
Nicolas Jager7c409f32016-09-08 09:35:16 -0400332 </Grid>
333 </DataTemplate>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400334 </Page.Resources>
335
Nicolas Jager998fbd72016-08-08 11:41:28 -0400336 <Grid>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400337 <Grid.RowDefinitions>
338 <!-- where accounts and share menu drop down are. -->
339 <RowDefinition Height="auto"/>
340 <!-- where contacts and settings are. -->
341 <RowDefinition Height="*"/>
342 </Grid.RowDefinitions>
343 <!-- drop down menus. -->
344 <Grid Background="LightBlue">
345 <Grid.RowDefinitions>
346 <!-- where the selected account is shown. -->
347 <RowDefinition x:Name="_selectedAccountRow_"
348 Height="90"/>
349 <!-- where the drop down menus are shown. -->
350 <RowDefinition Height="auto"/>
351 </Grid.RowDefinitions>
352 <!-- selected account. -->
353 <Grid Grid.Row="0">
354 <Grid.ColumnDefinitions>
355 <ColumnDefinition x:Name="_selectedAccountAvatarColumn_"
356 Width="90"/>
357 <ColumnDefinition Width="*"/>
358 <ColumnDefinition Width="50"/>
359 </Grid.ColumnDefinitions>
atraczyk2425ddd2016-09-01 13:16:22 -0400360 <Ellipse
361 x:Name="_selectedAccountAvatarContainer_"
362 Height="80"
363 Width="80"
364 Grid.Column="0"
365 Margin="5">
366 <Ellipse.Fill>
367 <ImageBrush
368 x:Name="_selectedAccountAvatar_"
369 ImageSource="Assets\TESTS\contactAvatar.png"/>
370 </Ellipse.Fill>
371 </Ellipse>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400372 <StackPanel Grid.Column="1"
373 VerticalAlignment="Bottom">
atraczyk4a8cffc2016-08-25 20:01:25 -0400374 <TextBlock x:Name="_selectedAccountName_"
atraczyk5c395ea2016-09-20 17:28:09 -0400375 Text="[TEXT MISSING]"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400376 Margin="10"
377 Style="{StaticResource TextStyle2}"/>
378 <StackPanel Orientation="Horizontal">
379 <!--Content="&#xE0A1;-->
380 <ToggleButton x:Name="_accountsMenuButton_"
381 VerticalAlignment="Bottom"
382 Content="&#xE168;"
383 Checked="_accountsMenuButton__Checked"
384 Unchecked="_accountsMenuButton__Unchecked"
385 Style="{StaticResource ToggleButtonStyle1}"/>
Nicolas Jager95c526b2016-10-20 09:47:03 -0400386 <!-- _shareMenuButton_ -->
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400387 <ToggleButton x:Name="_shareMenuButton_"
388 VerticalAlignment="Bottom"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400389 Checked="_shareMenuButton__Checked"
390 Unchecked="_shareMenuButton__Unchecked"
Nicolas Jager95c526b2016-10-20 09:47:03 -0400391 Style="{StaticResource ToggleButtonStyle1}">
392 <Image Source="Assets/qrCodeIcon.png"
393 Stretch="Uniform"/>
394 </ToggleButton>
395 <!-- _devicesMenuButton_ -->
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400396 <ToggleButton x:Name="_devicesMenuButton_"
397 VerticalAlignment="Bottom"
Nicolas Jagerd0830772016-10-07 08:45:33 -0400398 Content="&#xE836;"
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400399 Checked="_devicesMenuButton__Checked"
Nicolas Jagerd0830772016-10-07 08:45:33 -0400400 Unchecked="_devicesMenuButton__Unchecked"
401 Style="{StaticResource ToggleButtonStyle1}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400402 </StackPanel>
403 </StackPanel>
404 <ToggleButton x:Name="_settingsTBtn_"
405 Grid.Column="2"
406 VerticalAlignment="Bottom"
407 Content="&#xE115;"
408 Checked="_settings__Checked"
409 Unchecked="_settings__Unchecked"
410 Style="{StaticResource ToggleButtonStyle1}"/>
411 </Grid>
412
413 <!--sub menus like the accounts list or the share menu are just below, technicaly they are nested inside the
Nicolas Jagerc551c362016-10-01 19:24:50 -0400414 same row. To summon them we use the visibility of their own grid, by linking it to a toggle button-->
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400415
416 <!-- accounts menu. -->
417 <Grid x:Name="_accountsMenuGrid_"
418 MaxHeight="350"
419 Grid.Row="1"
420 Visibility="Collapsed"
421 Background="LightBlue">
422 <Grid.RowDefinitions>
423 <RowDefinition Height="*"/>
424 <RowDefinition Height="30"/>
425 </Grid.RowDefinitions>
atraczyk196936e2016-09-02 15:31:53 -0400426 <ScrollViewer x:Name="_accountsListScrollView_"
427 ScrollViewer.VerticalScrollBarVisibility="Auto"
428 ScrollViewer.VerticalScrollMode="Enabled">
429 <ListBox x:Name="_accountsList_"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400430 Grid.Row="0"
atraczyk4a8cffc2016-08-25 20:01:25 -0400431 SelectionChanged="_accountList__SelectionChanged"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400432 Width="320"
433 ItemContainerStyle="{StaticResource contactsListBoxStyle}"
434 Background="#FFE4F1F9"
435 ItemTemplate="{StaticResource AccountTemplate}"/>
atraczyk196936e2016-09-02 15:31:53 -0400436 </ScrollViewer>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400437 <Button x:Name="_addAccountBtn_"
438 Grid.Row="1"
439 VerticalAlignment="Center"
440 HorizontalAlignment="Center"
441 Content="&#xE948;"
442 Click="_addAccountBtn__Click"
atraczyke87716f2016-09-20 13:46:22 -0400443 Style="{StaticResource ButtonStyle6}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400444 </Grid>
445 <!-- account creation menu. -->
446 <Grid x:Name="_accountCreationMenuGrid_"
447 Grid.Row="2"
448 Visibility="Collapsed"
449 Background="LightBlue">
450 <Grid.RowDefinitions>
451 <RowDefinition Height="*"/>
452 <RowDefinition Height="30"/>
453 </Grid.RowDefinitions>
454 <StackPanel Orientation="Vertical"
455 Grid.Row="0"
456 Background="#FFE4F1F9">
457 <StackPanel Orientation="Horizontal">
458 <TextBlock VerticalAlignment="Center"
459 Text="Account type : "
460 Margin="10,10,0,10"/>
atraczyk196936e2016-09-02 15:31:53 -0400461 <ComboBox x:Name="_accountTypeComboBox_"
462 SelectedIndex="0"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400463 Margin="10"
464 VerticalAlignment="Center"
465 Width="195">
466 <ComboBoxItem Content="Ring"/>
467 <ComboBoxItem Content="Sip"/>
468 </ComboBox>
469 </StackPanel>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400470 <!-- RING account. -->
471 <StackPanel x:Name="_ringAccountCreationStack_"
472 Visibility="Visible">
atraczyk196936e2016-09-02 15:31:53 -0400473 <TextBox x:Name="_aliasTextBox_"
474 Margin="10"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400475 PlaceholderText="Enter your username"/>
476 <PasswordBox Margin="10"
477 PlaceholderText="Enter your password"/>
478 <PasswordBox Margin="10"
479 PlaceholderText="Repeat your Password"/>
480 </StackPanel>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400481 </StackPanel>
482 <!-- buttons yes/no to create the new account. -->
483 <Grid Grid.Row="1">
484 <StackPanel Orientation="Horizontal"
485 HorizontalAlignment="Center">
486 <Button x:Name="_createAccountYes_"
487 Grid.Row="1"
488 VerticalAlignment="Center"
489 HorizontalAlignment="Center"
490 Content="&#xE081;"
491 Click="_createAccountYes__Click"
atraczyk196936e2016-09-02 15:31:53 -0400492 Style="{StaticResource ButtonStyle5}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400493 <Button x:Name="_createAccountNo_"
494 Grid.Row="1"
495 VerticalAlignment="Center"
496 HorizontalAlignment="Center"
497 Content="&#xE106;"
498 Click="_createAccountNo__Click"
atraczyk196936e2016-09-02 15:31:53 -0400499 Style="{StaticResource ButtonStyle5}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400500 </StackPanel>
501 </Grid>
502 </Grid>
503 <!-- share menu. -->
504 <Grid x:Name="_shareMenuGrid_"
505 Grid.Row="2"
506 Visibility="Collapsed"
507 Background="LightBlue">
508 <Grid.RowDefinitions>
509 <RowDefinition Height="*"/>
510 <RowDefinition Height="30"/>
511 </Grid.RowDefinitions>
512 <Grid Background="#FFE4F1F9">
513 <Grid.RowDefinitions>
514 <RowDefinition Height="*"/>
515 <RowDefinition Height="auto"/>
516 <RowDefinition Height="auto"/>
517 </Grid.RowDefinitions>
Nicolas Jager95c526b2016-10-20 09:47:03 -0400518 <Grid Background="white"
519 Margin="10"
520 MaxHeight="150"
521 MaxWidth="140"
522 Padding="5">
523 <Image x:Name="_selectedAccountQrCode_"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400524 Width="200"
525 Margin="5"
526 Grid.Row="0"
Nicolas Jager95c526b2016-10-20 09:47:03 -0400527 Stretch="None"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400528 Height="200"/>
Nicolas Jager95c526b2016-10-20 09:47:03 -0400529 </Grid>
530 <TextBlock x:Name="_ringId_"
531 Padding="5"
532 Style="{StaticResource TextStyle4}"
533 Text=""
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400534 Grid.Row="1"
Nicolas Jager95c526b2016-10-20 09:47:03 -0400535 IsTextSelectionEnabled="True"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400536 HorizontalAlignment="Center"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400537 </Grid>
Nicolas Jager95c526b2016-10-20 09:47:03 -0400538 <Button x:Name="_shareMenuDone_"
539 Grid.Row="1"
540 VerticalAlignment="Center"
541 HorizontalAlignment="Center"
542 Content="&#xE081;"
543 Click="_shareMenuDone__Click"
544 Style="{StaticResource ButtonStyle6}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400545 </Grid>
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400546 <!-- devices menu. -->
547 <Grid x:Name="_devicesMenuGrid_"
548 Grid.Row="2"
549 Visibility="Collapsed"
550 Background="LightBlue">
551 <Grid.RowDefinitions>
552 <RowDefinition Height="*"/>
553 <RowDefinition Height="30"/>
554 </Grid.RowDefinitions>
555 <Grid Background="#FFE4F1F9">
556 <Grid.RowDefinitions>
557 <RowDefinition Height="auto"/>
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400558 <RowDefinition Height="auto"/>
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400559 <RowDefinition Height="*"/>
560 <RowDefinition Height="auto"/>
561 <RowDefinition Height="auto"/>
562 </Grid.RowDefinitions>
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400563 <TextBlock Text="Device ID:"
Nicolas Jager38dd4422016-10-07 10:49:32 -0400564 Margin="10"
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400565 Grid.Row="0"
566 HorizontalAlignment="Center"/>
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400567 <TextBlock x:Name="_deviceId_"
Nicolas Jager38dd4422016-10-07 10:49:32 -0400568 Margin="10"
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400569 Text="[TEXT_MISSING]"
Nicolas Jager38dd4422016-10-07 10:49:32 -0400570 TextTrimming="CharacterEllipsis"
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400571 Grid.Row="1"
572 IsTextSelectionEnabled="True"
573 HorizontalAlignment="Center"/>
Nicolas Jager38dd4422016-10-07 10:49:32 -0400574 <TextBlock x:Name="_waitingDevicesList_"
575 Text="waiting for devices list..."
576 Grid.Row="2"
577 IsTextSelectionEnabled="True"
578 HorizontalAlignment="Center"/>
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400579 <ListBox x:Name="_devicesIdList_"
Nicolas Jager38dd4422016-10-07 10:49:32 -0400580 Visibility="Collapsed"
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400581 Grid.Row="2"/>
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400582 </Grid>
583 <Button x:Name="_addDevice_"
584 Grid.Row="1"
585 VerticalAlignment="Center"
586 HorizontalAlignment="Center"
587 Content="&#xE948;"
588 Click="_addDevice__Click"
589 Style="{StaticResource ButtonStyle6}"/>
590 </Grid>
Nicolas Jagerd0830772016-10-07 08:45:33 -0400591 <!-- add device (pin generator) menu. -->
592 <Grid x:Name="_addingDeviceGrid_"
593 Grid.Row="2"
594 Visibility="Collapsed"
595 Background="LightBlue">
596 <Grid.RowDefinitions>
597 <RowDefinition Height="*"/>
598 <RowDefinition Height="30"/>
599 </Grid.RowDefinitions>
600 <Grid Background="#FFE4F1F9">
601 <Grid.RowDefinitions>
602 <RowDefinition Height="auto"/>
603 <RowDefinition Height="auto"/>
604 <RowDefinition Height="*"/>
605 </Grid.RowDefinitions>
606 <TextBlock VerticalAlignment="Center"
607 Text="PIN generator"
608 HorizontalAlignment="Center"
609 Grid.Row="0"
610 Margin="10,10,0,10"/>
611 <PasswordBox x:Name="_passwordForPinGenerator_"
612 Margin="10"
613 Grid.Row="1"
614 PlaceholderText="Enter your password"/>
615 </Grid>
616 <!-- buttons yes/no to generate a PIN. -->
617 <Grid Grid.Row="1">
618 <StackPanel Orientation="Horizontal"
619 HorizontalAlignment="Center">
620 <Button x:Name="_pinGeneratorYes_"
621 Grid.Row="1"
622 VerticalAlignment="Center"
623 HorizontalAlignment="Center"
624 Content="&#xE081;"
625 Click="_pinGeneratorYes__Click"
626 Style="{StaticResource ButtonStyle5}"/>
627 <Button x:Name="_pinGeneratorNo_"
628 Grid.Row="1"
629 VerticalAlignment="Center"
630 HorizontalAlignment="Center"
631 Content="&#xE106;"
632 Click="_pinGeneratorNo__Click"
633 Style="{StaticResource ButtonStyle5}"/>
634 </StackPanel>
635 </Grid>
636 </Grid>
637 <!-- waiting for a PIN. -->
638 <Grid x:Name="_waitingForPin_"
639 Grid.Row="2"
640 Visibility="Collapsed"
641 Background="LightBlue">
642 <Grid.RowDefinitions>
643 <RowDefinition Height="*"/>
644 <RowDefinition Height="30"/>
645 </Grid.RowDefinitions>
646 <Grid Background="#FFE4F1F9">
647 <Grid.RowDefinitions>
648 <RowDefinition Height="*"/>
649 <RowDefinition Height="auto"/>
650 <RowDefinition Height="*"/>
651 </Grid.RowDefinitions>
652 <TextBlock x:Name="_waitingAndResult_"
653 VerticalAlignment="Center"
654 Text="Exporting account on the Ring..."
655 HorizontalAlignment="Center"
656 Grid.Row="0"
657 Margin="10,10,0,10"/>
658 </Grid>
Nicolas Jager38dd4422016-10-07 10:49:32 -0400659 <Grid Grid.Row="1">
660 <StackPanel Orientation="Horizontal"
661 HorizontalAlignment="Center">
662 <Button x:Name="_closePin_"
663 Grid.Row="1"
664 VerticalAlignment="Center"
665 HorizontalAlignment="Center"
666 Content="&#xE081;"
667 Click="_closePin__Click"
668 Style="{StaticResource ButtonStyle5}"/>
669 </StackPanel>
670 </Grid>
Nicolas Jagerd0830772016-10-07 08:45:33 -0400671 </Grid>
Nicolas Jager38dd4422016-10-07 10:49:32 -0400672
673
674
675
676
677
678
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400679 </Grid>
Nicolas Jager7c409f32016-09-08 09:35:16 -0400680 <!-- smartList and settings. -->
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400681 <Grid Grid.Row="1">
Nicolas Jager7c409f32016-09-08 09:35:16 -0400682 <!-- contacts + calls => smartpanelitems. -->
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400683 <Grid x:Name="_smartGrid_"
684 Grid.Row="0">
685 <Grid.RowDefinitions>
686 <RowDefinition x:Name="_rowRingTxtBx_"
687 Height="40"/>
688 <RowDefinition Height="*"/>
689 </Grid.RowDefinitions>
690 <TextBox x:Name="_ringTxtBx_"
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400691 HorizontalAlignment="Center"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400692 VerticalAlignment="Center"
693 Width="320"
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400694 TextWrapping="Wrap"
atraczyke87716f2016-09-20 13:46:22 -0400695 Style="{StaticResource addContactTextBoxStyle}"
atraczyk82f8dda2016-08-25 16:34:52 -0400696 KeyDown="_ringTxtBx__KeyDown"
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400697 Text=""/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400698 <ListBox x:Name="_smartList_"
699 Grid.Row="1"
700 Margin="0"
701 Padding="0"
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400702 SelectionChanged="_smartList__SelectionChanged"
703 ScrollViewer.HorizontalScrollBarVisibility="Auto"
704 ScrollViewer.HorizontalScrollMode="Enabled"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400705 ItemContainerStyle="{StaticResource contactsListBoxStyle}"
Nicolas Jager7c409f32016-09-08 09:35:16 -0400706 ItemTemplate="{StaticResource SmartPanelItemsTemplate}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400707 </Grid>
708 <!-- settings. -->
709 <Grid x:Name="_settings_"
710 Grid.Row="0"
711 Visibility="Collapsed">
712 <TextBlock>some settings</TextBlock>
713 </Grid>
714 </Grid>
Nicolas Jager998fbd72016-08-08 11:41:28 -0400715 </Grid>
716
717</Page>