blob: df280808e449e02b10d5949b314125a2abc0df04 [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"
Nicolas Jagera5701032016-10-21 12:53:13 -040027 NavigationCacheMode="Enabled"
Nicolas Jager998fbd72016-08-08 11:41:28 -040028 mc:Ignorable="d">
29
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040030 <Page.Resources>
Nicolas Jagerc551c362016-10-01 19:24:50 -040031 <!-- 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 Jager586e3622016-10-21 08:21:11 -040036 <views:AccountTypeToSourceImage x:Key="_AccountTypeToSourceImage_" />
37 <views:AccountSelectedToVisibility x:Key="_AccountSelectedToVisibility_" />
Nicolas Jager0a7b77d2016-10-26 12:26:43 -040038 <views:CollapseEmptyString x:Key="_CollapseEmptyString_" />
Nicolas Jagerc551c362016-10-01 19:24:50 -040039
atraczyke87716f2016-09-20 13:46:22 -040040 <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="&#xE1E2;"
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 Jagerbff5fbb2016-08-18 08:58:56 -0400124 <!-- template for contacts. -->
125 <DataTemplate x:Key="ContactTemplate"
126 x:DataType="local:Contact">
127 <Grid>
atraczyke87716f2016-09-20 13:46:22 -0400128 <Grid.ColumnDefinitions>
129 <ColumnDefinition Width="310"/>
130 </Grid.ColumnDefinitions>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400131 <Grid.RowDefinitions>
132 <RowDefinition Height="60"/>
133 <!-- use the height of _contactBar_ to make it visible or collapsed. -->
134 <RowDefinition x:Name="_contactBar_"
Nicolas Jagerf6a10322016-09-06 08:17:49 -0400135 Height="{x:Bind _contactBarHeight, Mode=OneWay}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400136 </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="&#xE8AA;"
155 Style="{StaticResource TextSegoeStyle1}"/>
156 <Border.RenderTransform>
157 <TranslateTransform X="17" Y="-14"/>
158 </Border.RenderTransform>
159 </Border>
Nicolas Jagerd76940f2016-08-31 14:44:04 -0400160 <Grid Grid.Column="1">
161 <Grid.RowDefinitions>
162 <RowDefinition Height="30"/>
163 <RowDefinition Height="30"/>
164 </Grid.RowDefinitions>
165 <!-- name of the contact. -->
atraczyke87716f2016-09-20 13:46:22 -0400166 <TextBlock x:Name="_contactName_"
167 Grid.Row="0"
168 Text="{x:Bind name_}"
169 TextTrimming="CharacterEllipsis">
Nicolas Jagerd76940f2016-08-31 14:44:04 -0400170 </TextBlock>
Nicolas Jagerd76940f2016-08-31 14:44:04 -0400171 </Grid>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400172 </Grid>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400173 </Grid>
174 </DataTemplate>
Nicolas Jagerbf406b22016-10-21 11:32:33 -0400175 <!-- template for AccountListItems. -->
176 <DataTemplate x:Key="AccountListItemsTemplate"
177 x:DataType="controls:AccountListItem">
Nicolas Jager586e3622016-10-21 08:21:11 -0400178 <Grid Margin="0,10">
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400179 <Grid.ColumnDefinitions>
Nicolas Jager586e3622016-10-21 08:21:11 -0400180 <ColumnDefinition Width="40"/>
181 <ColumnDefinition Width="290"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400182 </Grid.ColumnDefinitions>
Nicolas Jager586e3622016-10-21 08:21:11 -0400183 <Border Grid.Column="0"
184 Margin="5,0"
185 Style="{StaticResource BorderStyle3}">
186 <Image x:Name="_AccountTypeIcon_"
187 VerticalAlignment="Center"
188 HorizontalAlignment="Center"
Nicolas Jagerbf406b22016-10-21 11:32:33 -0400189 Source="{x:Bind _account.accountType_, Converter={StaticResource _AccountTypeToSourceImage_}, Mode=OneWay}"/>
Nicolas Jager586e3622016-10-21 08:21:11 -0400190 </Border>
191 <Button x:Name="_editAccountMenuButton_"
192 HorizontalAlignment="Right"
193 VerticalAlignment="Top"
194 Content="&#xE104;"
195 FontFamily="Segoe MDL2 Assets"
Nicolas Jager6abfc0d2016-10-21 14:57:47 -0400196 Click="_editAccountMenuButton__Click"
Nicolas Jager586e3622016-10-21 08:21:11 -0400197 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 Jager6abfc0d2016-10-21 14:57:47 -0400209 Text="{x:Bind _account.name_, Mode=OneWay}"/>
Nicolas Jager586e3622016-10-21 08:21:11 -0400210 <TextBlock x:Name="_ringID_"
Nicolas Jager0a7b77d2016-10-26 12:26:43 -0400211 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 Jager586e3622016-10-21 08:21:11 -0400220 </StackPanel>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400221 </Grid>
222 </DataTemplate>
Nicolas Jager7c409f32016-09-08 09:35:16 -0400223 <!-- template for smartpanelitems. -->
224 <DataTemplate x:Key="SmartPanelItemsTemplate"
225 x:DataType="controls:SmartPanelItem">
Nicolas Jager5750df02016-09-13 11:20:33 -0400226 <Grid PointerEntered="Grid_PointerEntered" PointerExited="Grid_PointerExited">
Nicolas Jager7c409f32016-09-08 09:35:16 -0400227 <Grid.RowDefinitions>
Nicolas Jagerc551c362016-10-01 19:24:50 -0400228 <!-- row definition for the contact. -->
Nicolas Jager7c409f32016-09-08 09:35:16 -0400229 <RowDefinition Height="auto"/>
Nicolas Jagerc551c362016-10-01 19:24:50 -0400230 <!-- row definition for the incoming call bar. -->
231 <RowDefinition Height="auto"/>
232 <!-- row definition for the outgoing call bar. -->
Nicolas Jager7c409f32016-09-08 09:35:16 -0400233 <RowDefinition Height="auto"/>
234 </Grid.RowDefinitions>
Nicolas Jagerc551c362016-10-01 19:24:50 -0400235 <!--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="&#xE8AA;"
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="&#xE116;">
302 <Button.RenderTransform>
303 <TranslateTransform X="90" Y="25"/>
304 </Button.RenderTransform>
305 </Button>
306 </Grid>
307 </Grid>
308 </Grid>
Nicolas Jager083b3ae2016-10-04 08:46:19 -0400309 <!-- call bar. -->
Nicolas Jagerc551c362016-10-01 19:24:50 -0400310 <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 Jager083b3ae2016-10-04 08:46:19 -0400318 <TextBlock x:Name="_CallStatus_"
Nicolas Jagerc551c362016-10-01 19:24:50 -0400319 Grid.Row="0"
320 Foreground="White"
Nicolas Jager083b3ae2016-10-04 08:46:19 -0400321 Text="{x:Bind _callStatus, Mode=OneWay}"
322 Visibility="{x:Bind _callStatus, Converter={StaticResource _HasAnActiveCall_}, Mode=OneWay}"
Nicolas Jagerc551c362016-10-01 19:24:50 -0400323 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 Jager083b3ae2016-10-04 08:46:19 -0400331 Visibility="{x:Bind _callStatus, Converter={StaticResource _IncomingVisibility_}, Mode=OneWay}"
Nicolas Jagerc551c362016-10-01 19:24:50 -0400332 VerticalAlignment="Center"
333 HorizontalAlignment="Center"
334 Content="Accept"/>
335 <Button x:Name="_rejectIncomingCallBtn_"
336 Click="_rejectIncomingCallBtn__Click"
Nicolas Jager083b3ae2016-10-04 08:46:19 -0400337 Visibility="{x:Bind _callStatus, Converter={StaticResource _IncomingVisibility_}, Mode=OneWay}"
Nicolas Jagerc551c362016-10-01 19:24:50 -0400338 VerticalAlignment="Center"
339 HorizontalAlignment="Center"
340 Content="Reject"/>
341 <Button x:Name="_cancelCallBtn_"
342 Click="_cancelCallBtn__Click"
Nicolas Jager083b3ae2016-10-04 08:46:19 -0400343 Visibility="{x:Bind _callStatus, Converter={StaticResource _OutGoingVisibility_}, Mode=OneWay}"
Nicolas Jagerc551c362016-10-01 19:24:50 -0400344 VerticalAlignment="Center"
345 HorizontalAlignment="Center"
346 Content="Cancel"/>
347 </StackPanel>
348 </Grid>
Nicolas Jager7c409f32016-09-08 09:35:16 -0400349 </Grid>
350 </DataTemplate>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400351 </Page.Resources>
352
Nicolas Jager998fbd72016-08-08 11:41:28 -0400353 <Grid>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400354 <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>
atraczyk2425ddd2016-09-01 13:16:22 -0400377 <Ellipse
378 x:Name="_selectedAccountAvatarContainer_"
379 Height="80"
380 Width="80"
381 Grid.Column="0"
Nicolas Jagerf3ad2c02016-10-26 13:39:03 -0400382 Stroke="White"
383 StrokeThickness="3"
384 PointerEntered="_selectedAccountAvatarContainer__PointerEntered"
385 PointerExited="_selectedAccountAvatarContainer__PointerExited"
386 PointerReleased="_selectedAccountAvatarContainer__PointerReleased"
atraczyk2425ddd2016-09-01 13:16:22 -0400387 Margin="5">
388 <Ellipse.Fill>
389 <ImageBrush
390 x:Name="_selectedAccountAvatar_"
391 ImageSource="Assets\TESTS\contactAvatar.png"/>
392 </Ellipse.Fill>
393 </Ellipse>
Nicolas Jagerf3ad2c02016-10-26 13:39:03 -0400394 <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="&#xE722;">
411 </TextBlock>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400412 <StackPanel Grid.Column="1"
413 VerticalAlignment="Bottom">
atraczyk4a8cffc2016-08-25 20:01:25 -0400414 <TextBlock x:Name="_selectedAccountName_"
atraczyk5c395ea2016-09-20 17:28:09 -0400415 Text="[TEXT MISSING]"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400416 Margin="10"
417 Style="{StaticResource TextStyle2}"/>
418 <StackPanel Orientation="Horizontal">
419 <!--Content="&#xE0A1;-->
420 <ToggleButton x:Name="_accountsMenuButton_"
421 VerticalAlignment="Bottom"
422 Content="&#xE168;"
423 Checked="_accountsMenuButton__Checked"
424 Unchecked="_accountsMenuButton__Unchecked"
425 Style="{StaticResource ToggleButtonStyle1}"/>
Nicolas Jager95c526b2016-10-20 09:47:03 -0400426 <!-- _shareMenuButton_ -->
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400427 <ToggleButton x:Name="_shareMenuButton_"
428 VerticalAlignment="Bottom"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400429 Checked="_shareMenuButton__Checked"
430 Unchecked="_shareMenuButton__Unchecked"
Nicolas Jager95c526b2016-10-20 09:47:03 -0400431 Style="{StaticResource ToggleButtonStyle1}">
432 <Image Source="Assets/qrCodeIcon.png"
433 Stretch="Uniform"/>
434 </ToggleButton>
435 <!-- _devicesMenuButton_ -->
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400436 <ToggleButton x:Name="_devicesMenuButton_"
437 VerticalAlignment="Bottom"
Nicolas Jagerd0830772016-10-07 08:45:33 -0400438 Content="&#xE836;"
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400439 Checked="_devicesMenuButton__Checked"
Nicolas Jagerd0830772016-10-07 08:45:33 -0400440 Unchecked="_devicesMenuButton__Unchecked"
441 Style="{StaticResource ToggleButtonStyle1}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400442 </StackPanel>
443 </StackPanel>
444 <ToggleButton x:Name="_settingsTBtn_"
445 Grid.Column="2"
446 VerticalAlignment="Bottom"
447 Content="&#xE115;"
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 Jagerc551c362016-10-01 19:24:50 -0400454 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 -0400455
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>
atraczyk196936e2016-09-02 15:31:53 -0400466 <ScrollViewer x:Name="_accountsListScrollView_"
467 ScrollViewer.VerticalScrollBarVisibility="Auto"
468 ScrollViewer.VerticalScrollMode="Enabled">
469 <ListBox x:Name="_accountsList_"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400470 Grid.Row="0"
atraczyk4a8cffc2016-08-25 20:01:25 -0400471 SelectionChanged="_accountList__SelectionChanged"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400472 Width="320"
473 ItemContainerStyle="{StaticResource contactsListBoxStyle}"
474 Background="#FFE4F1F9"
Nicolas Jagerbf406b22016-10-21 11:32:33 -0400475 ItemTemplate="{StaticResource AccountListItemsTemplate}"/>
atraczyk196936e2016-09-02 15:31:53 -0400476 </ScrollViewer>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400477 <Button x:Name="_addAccountBtn_"
478 Grid.Row="1"
479 VerticalAlignment="Center"
480 HorizontalAlignment="Center"
481 Content="&#xE948;"
482 Click="_addAccountBtn__Click"
atraczyke87716f2016-09-20 13:46:22 -0400483 Style="{StaticResource ButtonStyle6}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400484 </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 Jager0a7b77d2016-10-26 12:26:43 -0400497 <!-- alias sub menu. -->
498 <StackPanel Orientation="Horizontal" Margin="10">
499 <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
500 Text="&#xE8EC;"/>
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="&#xE168;"/>
511 <TextBlock Text="Account type" Margin="10"/>
512 </StackPanel>
513 <ComboBox x:Name="_accountTypeComboBox_"
atraczyk196936e2016-09-02 15:31:53 -0400514 SelectedIndex="0"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400515 Margin="10"
Nicolas Jager0a7b77d2016-10-26 12:26:43 -0400516 SelectionChanged="_accountTypeComboBox__SelectionChanged"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400517 VerticalAlignment="Center"
518 Width="195">
Nicolas Jager0a7b77d2016-10-26 12:26:43 -0400519 <ComboBoxItem Content="Ring"/>
520 <ComboBoxItem Content="Sip"/>
521 </ComboBox>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400522 <!-- RING account. -->
523 <StackPanel x:Name="_ringAccountCreationStack_"
524 Visibility="Visible">
Nicolas Jager0a7b77d2016-10-26 12:26:43 -0400525 <!-- password sub menu. -->
526 <StackPanel Orientation="Horizontal" Margin="10">
527 <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
528 Text="&#xE8D7;"/>
529 <TextBlock Text="Archive password" Margin="10"/>
530 </StackPanel>
531 <PasswordBox x:Name="_ringPasswordBoxAccountCreation_"
Nicolas Jager7168df92016-10-25 13:23:03 -0400532 Margin="10"
533 PasswordChanged="_passwordBoxAccountCreationCheck__PasswordChanged"
Nicolas Jager0a7b77d2016-10-26 12:26:43 -0400534 PlaceholderText="Enter archive password"/>
535 <PasswordBox x:Name="_ringPasswordBoxAccountCreationCheck_"
Nicolas Jager7168df92016-10-25 13:23:03 -0400536 Margin="10"
537 PasswordChanged="_passwordBoxAccountCreationCheck__PasswordChanged"
Nicolas Jager0a7b77d2016-10-26 12:26:43 -0400538 PlaceholderText="Repeat archive Password"/>
539 <!-- upnp sub menu. -->
540 <StackPanel Orientation="Horizontal" Margin="10">
541 <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
542 Text="&#xE15E;"/>
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="&#xE717;"/>
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 Jagerbff5fbb2016-08-18 08:58:56 -0400568 </StackPanel>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400569 </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="&#xE081;"
579 Click="_createAccountYes__Click"
atraczyk196936e2016-09-02 15:31:53 -0400580 Style="{StaticResource ButtonStyle5}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400581 <Button x:Name="_createAccountNo_"
582 Grid.Row="1"
583 VerticalAlignment="Center"
584 HorizontalAlignment="Center"
585 Content="&#xE106;"
586 Click="_createAccountNo__Click"
atraczyk196936e2016-09-02 15:31:53 -0400587 Style="{StaticResource ButtonStyle5}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400588 </StackPanel>
589 </Grid>
590 </Grid>
Nicolas Jager6abfc0d2016-10-21 14:57:47 -0400591 <!-- 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="&#xE1CB;"/>
607 <TextBlock Text="Alias" Margin="10"/>
608 </StackPanel>
609 <TextBox x:Name="_aliasTextBoxEditionMenu_"
610 FontSize="20"
611 Margin="20,10"
Nicolas Jager0a7b77d2016-10-26 12:26:43 -0400612 PlaceholderText="Enter alias"/>
Nicolas Jager6abfc0d2016-10-21 14:57:47 -0400613 <!-- upnp sub menu. -->
Nicolas Jager0a7b77d2016-10-26 12:26:43 -0400614 <StackPanel x:Name="_upnpStackEditionMenu_">
615 <StackPanel Orientation="Horizontal" Margin="10">
616 <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
617 Text="&#xE15E;"/>
618 <TextBlock Text="UPnP" Margin="10"/>
619 </StackPanel>
620 <ToggleSwitch x:Name="_upnpState_"
621 Margin="20,10"/>
Nicolas Jager6abfc0d2016-10-21 14:57:47 -0400622 </StackPanel>
Nicolas Jager0a7b77d2016-10-26 12:26:43 -0400623 <!-- 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="&#xE717;"/>
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 Jager6abfc0d2016-10-21 14:57:47 -0400643 <!-- delete account sub menu. -->
Nicolas Jager72b42922016-10-25 07:52:42 -0400644 <StackPanel Orientation="Horizontal" Margin="10">
Nicolas Jager6abfc0d2016-10-21 14:57:47 -0400645 <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}"
646 Text="&#xE74D;"/>
647 <TextBlock Text="Delete account" Margin="10"/>
648 </StackPanel>
649 <ToggleButton x:Name="_deleteAccountBtnEditionMenu_"
650 Margin="20,10"
Nicolas Jager72b42922016-10-25 07:52:42 -0400651 Content="Delete"/>
Nicolas Jager6abfc0d2016-10-21 14:57:47 -0400652 </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="&#xE081;"
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="&#xE106;"
669 Click="_cancelAccountModification__Click"
670 Style="{StaticResource ButtonStyle5}"/>
671 </StackPanel>
672 </Grid>
673 </Grid>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400674 <!-- 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 Jager95c526b2016-10-20 09:47:03 -0400689 <Grid Background="white"
690 Margin="10"
691 MaxHeight="150"
692 MaxWidth="140"
693 Padding="5">
694 <Image x:Name="_selectedAccountQrCode_"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400695 Width="200"
696 Margin="5"
697 Grid.Row="0"
Nicolas Jager95c526b2016-10-20 09:47:03 -0400698 Stretch="None"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400699 Height="200"/>
Nicolas Jager95c526b2016-10-20 09:47:03 -0400700 </Grid>
701 <TextBlock x:Name="_ringId_"
702 Padding="5"
703 Style="{StaticResource TextStyle4}"
704 Text=""
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400705 Grid.Row="1"
Nicolas Jager95c526b2016-10-20 09:47:03 -0400706 IsTextSelectionEnabled="True"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400707 HorizontalAlignment="Center"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400708 </Grid>
Nicolas Jager95c526b2016-10-20 09:47:03 -0400709 <Button x:Name="_shareMenuDone_"
710 Grid.Row="1"
711 VerticalAlignment="Center"
712 HorizontalAlignment="Center"
713 Content="&#xE081;"
714 Click="_shareMenuDone__Click"
715 Style="{StaticResource ButtonStyle6}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400716 </Grid>
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400717 <!-- 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 Jager813cf4d2016-10-06 10:54:46 -0400729 <RowDefinition Height="auto"/>
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400730 <RowDefinition Height="*"/>
731 <RowDefinition Height="auto"/>
732 <RowDefinition Height="auto"/>
733 </Grid.RowDefinitions>
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400734 <TextBlock Text="Device ID:"
Nicolas Jager38dd4422016-10-07 10:49:32 -0400735 Margin="10"
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400736 Grid.Row="0"
737 HorizontalAlignment="Center"/>
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400738 <TextBlock x:Name="_deviceId_"
Nicolas Jager38dd4422016-10-07 10:49:32 -0400739 Margin="10"
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400740 Text="[TEXT_MISSING]"
Nicolas Jager38dd4422016-10-07 10:49:32 -0400741 TextTrimming="CharacterEllipsis"
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400742 Grid.Row="1"
743 IsTextSelectionEnabled="True"
744 HorizontalAlignment="Center"/>
Nicolas Jager38dd4422016-10-07 10:49:32 -0400745 <TextBlock x:Name="_waitingDevicesList_"
746 Text="waiting for devices list..."
747 Grid.Row="2"
748 IsTextSelectionEnabled="True"
749 HorizontalAlignment="Center"/>
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400750 <ListBox x:Name="_devicesIdList_"
Nicolas Jager38dd4422016-10-07 10:49:32 -0400751 Visibility="Collapsed"
Nicolas Jager813cf4d2016-10-06 10:54:46 -0400752 Grid.Row="2"/>
Nicolas Jagere4eb5132016-10-04 14:25:15 -0400753 </Grid>
754 <Button x:Name="_addDevice_"
755 Grid.Row="1"
756 VerticalAlignment="Center"
757 HorizontalAlignment="Center"
758 Content="&#xE948;"
759 Click="_addDevice__Click"
760 Style="{StaticResource ButtonStyle6}"/>
761 </Grid>
Nicolas Jagerd0830772016-10-07 08:45:33 -0400762 <!-- 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="&#xE081;"
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="&#xE106;"
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 Jager38dd4422016-10-07 10:49:32 -0400830 <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="&#xE081;"
838 Click="_closePin__Click"
839 Style="{StaticResource ButtonStyle5}"/>
840 </StackPanel>
841 </Grid>
Nicolas Jagerd0830772016-10-07 08:45:33 -0400842 </Grid>
Nicolas Jager38dd4422016-10-07 10:49:32 -0400843
844
845
846
847
848
849
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400850 </Grid>
Nicolas Jager7c409f32016-09-08 09:35:16 -0400851 <!-- smartList and settings. -->
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400852 <Grid Grid.Row="1">
Nicolas Jager7c409f32016-09-08 09:35:16 -0400853 <!-- contacts + calls => smartpanelitems. -->
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400854 <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 Jager8a85e1f2016-08-15 15:11:06 -0400862 HorizontalAlignment="Center"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400863 VerticalAlignment="Center"
864 Width="320"
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400865 TextWrapping="Wrap"
atraczyke87716f2016-09-20 13:46:22 -0400866 Style="{StaticResource addContactTextBoxStyle}"
atraczyk82f8dda2016-08-25 16:34:52 -0400867 KeyDown="_ringTxtBx__KeyDown"
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400868 Text=""/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400869 <ListBox x:Name="_smartList_"
870 Grid.Row="1"
871 Margin="0"
872 Padding="0"
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400873 SelectionChanged="_smartList__SelectionChanged"
874 ScrollViewer.HorizontalScrollBarVisibility="Auto"
875 ScrollViewer.HorizontalScrollMode="Enabled"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400876 ItemContainerStyle="{StaticResource contactsListBoxStyle}"
Nicolas Jager7c409f32016-09-08 09:35:16 -0400877 ItemTemplate="{StaticResource SmartPanelItemsTemplate}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400878 </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 Jager998fbd72016-08-08 11:41:28 -0400886 </Grid>
887
888</Page>