blob: b291d37f3edf5d645baed88881bc37afe7217e17 [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> *
4* *
5* This program is free software; you can redistribute it and/or modify *
6* it under the terms of the GNU General Public License as published by *
7* the Free Software Foundation; either version 3 of the License, or *
8* (at your option) any later version. *
9* *
10* This program is distributed in the hope that it will be useful, *
11* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13* GNU General Public License for more details. *
14* *
15* You should have received a copy of the GNU General Public License *
16* along with this program. If not, see <http://www.gnu.org/licenses/> . *
17*********************************************************************** -->
18<Page x:Class="RingClientUWP.Views.SmartPanel"
19 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
20 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
21 xmlns:local="using:RingClientUWP"
Nicolas Jager7c409f32016-09-08 09:35:16 -040022 xmlns:controls="using:RingClientUWP.Controls"
Nicolas Jager998fbd72016-08-08 11:41:28 -040023 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
24 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
25 mc:Ignorable="d">
26
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040027 <Page.Resources>
28 <!-- template for contacts. -->
29 <DataTemplate x:Key="ContactTemplate"
30 x:DataType="local:Contact">
31 <Grid>
32 <Grid.RowDefinitions>
33 <RowDefinition Height="60"/>
34 <!-- use the height of _contactBar_ to make it visible or collapsed. -->
35 <RowDefinition x:Name="_contactBar_"
Nicolas Jagerf6a10322016-09-06 08:17:49 -040036 Height="{x:Bind _contactBarHeight, Mode=OneWay}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040037 </Grid.RowDefinitions>
38 <Grid Grid.Row="0">
39 <Grid.ColumnDefinitions>
40 <ColumnDefinition Width="60"/>
41 <ColumnDefinition Width="*"
42 MinWidth="200"/>
43 </Grid.ColumnDefinitions>
44 <Image x:Name="_contactAvatar_"
45 VerticalAlignment="Center"
46 HorizontalAlignment="Center"
47 Grid.Column="0"
48 Width="55"
49 Height="55"
50 Source="Assets\TESTS\contactAvatar.png"/>
51 <!-- visual notifications. -->
52 <Border x:Name="_visualNotificationVideoChat_"
53 Visibility="Collapsed"
54 Style="{StaticResource BorderStyle1}">
55 <TextBlock Text="&#xE8AA;"
56 Style="{StaticResource TextSegoeStyle1}"/>
57 <Border.RenderTransform>
58 <TranslateTransform X="17" Y="-14"/>
59 </Border.RenderTransform>
60 </Border>
61 <Border x:Name="_visualNotificationNewMessage_"
Nicolas Jager0788e962016-08-26 15:41:06 -040062 Visibility="{x:Bind notificationNewMessage, Mode=OneWay}"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040063 Style="{StaticResource BorderStyle2}">
Nicolas Jager0788e962016-08-26 15:41:06 -040064 <TextBlock Text="{x:Bind unreadMessages, Mode=OneWay}"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040065 Style="{StaticResource TextStyle3}"/>
66 <Border.RenderTransform>
67 <TranslateTransform X="-17" Y="-14"/>
68 </Border.RenderTransform>
69 </Border>
Nicolas Jagerd76940f2016-08-31 14:44:04 -040070 <Grid Grid.Column="1">
71 <Grid.RowDefinitions>
72 <RowDefinition Height="30"/>
73 <RowDefinition Height="30"/>
74 </Grid.RowDefinitions>
75 <!-- name of the contact. -->
76 <TextBlock x:Name="_contactName_"
77 Grid.Row="0"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040078 Text="{x:Bind name_}">
Nicolas Jagerd76940f2016-08-31 14:44:04 -040079 </TextBlock>
Nicolas Jager5750df02016-09-13 11:20:33 -040080 <!-- call status. REFACTO : REMOVE CODE BELOW -->
81 <!--<StackPanel MaxWidth="240"
Nicolas Jagerd76940f2016-08-31 14:44:04 -040082 MinWidth="240"
83 Grid.Row="1"
84 HorizontalAlignment="Left">
85 <TextBlock x:Name="_contactCallStatus_"
86 Foreground="DarkGray"
87 Text="{x:Bind _call.state, Mode=OneWay}"
88 Visibility="Visible"
89 HorizontalAlignment="Center">
90 </TextBlock>
Nicolas Jager5750df02016-09-13 11:20:33 -040091 </StackPanel>-->
Nicolas Jagerd76940f2016-08-31 14:44:04 -040092 </Grid>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040093 </Grid>
Nicolas Jager5750df02016-09-13 11:20:33 -040094 <!-- REFACTO : REMOVE CODE BELOW -->
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040095 <!-- button bar for accept/reject or cancel call. -->
96 <!-- nb : dont use Visibility with the grid, use the height of the hosting row (_contactBar_). -->
Nicolas Jager5750df02016-09-13 11:20:33 -040097 <!--<Grid Width="320"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040098 HorizontalAlignment="Left"
Nicolas Jagerd76940f2016-08-31 14:44:04 -040099 Grid.Row="2"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400100 Background="DarkGray">
101 <StackPanel Orientation="Horizontal"
Nicolas Jagerd76940f2016-08-31 14:44:04 -0400102 Grid.Row="0"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400103 HorizontalAlignment="Center">
104 <Button x:Name="_acceptIncomingCallBtn_"
Nicolas Jagerf6a10322016-09-06 08:17:49 -0400105 Click="_acceptIncomingCallBtn__Click"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400106 VerticalAlignment="Center"
107 HorizontalAlignment="Center"
Nicolas Jagerd76940f2016-08-31 14:44:04 -0400108 Content="Accept"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400109 <Button x:Name="_rejectIncomingCallBtn_"
Nicolas Jagerf6a10322016-09-06 08:17:49 -0400110 Click="_rejectIncomingCallBtn__Click"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400111 VerticalAlignment="Center"
112 HorizontalAlignment="Center"
Nicolas Jagerd76940f2016-08-31 14:44:04 -0400113 Content="Reject"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400114 </StackPanel>
Nicolas Jager5750df02016-09-13 11:20:33 -0400115 </Grid>-->
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400116 </Grid>
117 </DataTemplate>
118 <!-- template for accounts. -->
119 <DataTemplate x:Key="AccountTemplate"
120 x:DataType="local:Account">
121 <Grid>
122 <Grid.ColumnDefinitions>
atraczyk2425ddd2016-09-01 13:16:22 -0400123 <ColumnDefinition Width="260"/>
atraczyk8ce1dee2016-08-25 18:15:07 -0400124 <ColumnDefinition Width="60"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400125 </Grid.ColumnDefinitions>
atraczyk8ce1dee2016-08-25 18:15:07 -0400126 <Grid.RowDefinitions>
127 <RowDefinition Height="30"/>
128 <RowDefinition Height="30"/>
129 </Grid.RowDefinitions>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400130 <TextBlock x:Name="_accountName_"
atraczyk2425ddd2016-09-01 13:16:22 -0400131 Grid.Column="0"
atraczyk8ce1dee2016-08-25 18:15:07 -0400132 Grid.Row="0"
atraczyk2425ddd2016-09-01 13:16:22 -0400133 Margin="10,5,10,0"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400134 Text="{x:Bind name_}"/>
atraczyk8ce1dee2016-08-25 18:15:07 -0400135 <TextBlock x:Name="_accountType_"
atraczyk2425ddd2016-09-01 13:16:22 -0400136 Grid.Column="1"
atraczyk8ce1dee2016-08-25 18:15:07 -0400137 Grid.Row="0"
138 TextAlignment="Right"
atraczyk196936e2016-09-02 15:31:53 -0400139 Margin="0,5,18,0"
atraczyk8ce1dee2016-08-25 18:15:07 -0400140 Foreground="ForestGreen"
141 Text="{x:Bind accountType_}"/>
142 <TextBlock x:Name="_ringID_"
atraczyk2425ddd2016-09-01 13:16:22 -0400143 Grid.Column="0"
atraczyk8ce1dee2016-08-25 18:15:07 -0400144 Grid.ColumnSpan="2"
145 Grid.Row="1"
146 Foreground="Crimson"
atraczyk2425ddd2016-09-01 13:16:22 -0400147 Margin="10,5,10,0"
148 FontSize="14"
atraczyk8ce1dee2016-08-25 18:15:07 -0400149 TextTrimming="CharacterEllipsis"
150 Text="{x:Bind ringID_}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400151 </Grid>
152 </DataTemplate>
Nicolas Jager5750df02016-09-13 11:20:33 -0400153 <!-- template for incoming calls. -->
154 <DataTemplate x:Key="IncomingCallTemplate" x:DataType="local:Call">
Nicolas Jager7c409f32016-09-08 09:35:16 -0400155 <Grid Width="320"
156 HorizontalAlignment="Left"
Nicolas Jager7c409f32016-09-08 09:35:16 -0400157 Background="DarkGray">
158 <Grid.RowDefinitions>
159 <RowDefinition Height="30"/>
160 <RowDefinition Height="30"/>
161 </Grid.RowDefinitions>
162 <TextBlock x:Name="_contactCallStatus_"
163 Grid.Row="0"
164 Foreground="White"
165 Text="{x:Bind state, Mode=OneWay}"
166 Visibility="Visible"
167 HorizontalAlignment="Center">
168 </TextBlock>
169 <StackPanel Orientation="Horizontal"
170 Grid.Row="1"
171 HorizontalAlignment="Center">
172 <Button x:Name="_acceptIncomingCallBtn_"
173 Click="_acceptIncomingCallBtn__Click"
174 VerticalAlignment="Center"
175 HorizontalAlignment="Center"
176 Content="Accept"/>
177 <Button x:Name="_rejectIncomingCallBtn_"
178 Click="_rejectIncomingCallBtn__Click"
179 VerticalAlignment="Center"
180 HorizontalAlignment="Center"
181 Content="Reject"/>
182 </StackPanel>
183 </Grid>
184 </DataTemplate>
Nicolas Jager5750df02016-09-13 11:20:33 -0400185 <!-- template for outgoing calls. -->
186 <DataTemplate x:Key="OutGoingCallTemplate" x:DataType="local:Call">
187 <Grid Width="320"
188 HorizontalAlignment="Left"
189 Background="DarkGray">
190 <Grid.RowDefinitions>
191 <RowDefinition Height="30"/>
192 <RowDefinition Height="30"/>
193 </Grid.RowDefinitions>
194 <TextBlock x:Name="_contactCallStatus_"
195 Grid.Row="0"
196 Foreground="White"
197 Text="{x:Bind state, Mode=OneWay}"
198 Visibility="Visible"
199 HorizontalAlignment="Center">
200 </TextBlock>
201 <StackPanel Orientation="Horizontal"
202 Grid.Row="1"
203 HorizontalAlignment="Center">
204 <Button x:Name="_cancelCallBtn_"
205 Click="_cancelCallBtn__Click"
206 VerticalAlignment="Center"
207 HorizontalAlignment="Center"
208 Content="Cancel"/>
209 </StackPanel>
210 </Grid>
211 </DataTemplate>
Nicolas Jager7c409f32016-09-08 09:35:16 -0400212 <!-- template for smartpanelitems. -->
213 <DataTemplate x:Key="SmartPanelItemsTemplate"
214 x:DataType="controls:SmartPanelItem">
Nicolas Jager5750df02016-09-13 11:20:33 -0400215 <Grid PointerEntered="Grid_PointerEntered" PointerExited="Grid_PointerExited">
Nicolas Jager7c409f32016-09-08 09:35:16 -0400216 <Grid.RowDefinitions>
217 <RowDefinition Height="auto"/>
218 <RowDefinition Height="auto"/>
219 </Grid.RowDefinitions>
220 <ListBoxItem x:Name="_contactItem_"
221 Padding="0"
222 Margin="0"
Nicolas Jager7c409f32016-09-08 09:35:16 -0400223 Grid.Row="0"
Nicolas Jager5750df02016-09-13 11:20:33 -0400224 PointerReleased="_contactItem__PointerReleased"
Nicolas Jager7c409f32016-09-08 09:35:16 -0400225 ContentTemplate="{StaticResource ContactTemplate}"
226 Content="{x:Bind _contact, Mode=OneWay}"/>
Nicolas Jager5750df02016-09-13 11:20:33 -0400227 <ListBoxItem Grid.Row="1"
228 Visibility="{x:Bind _IncomingCallBar, Mode=OneWay}"
Nicolas Jager7c409f32016-09-08 09:35:16 -0400229 Padding="0"
230 Margin="0"
Nicolas Jager5750df02016-09-13 11:20:33 -0400231 ContentTemplate="{StaticResource IncomingCallTemplate}"
232 Content="{x:Bind _call, Mode=OneWay}"/>
233 <Button Grid.Row="0"
234 HorizontalAlignment="Left"
235 Visibility="{x:Bind _callBar, Mode=OneWay}"
236 Content="call"
237 Padding="0"
238 Click="_callContact__Click"
239 VerticalAlignment="Bottom"
240 Margin="10">
241 <Button.RenderTransform>
242 <TranslateTransform X="160"/>
243 </Button.RenderTransform>
244 </Button>
245 <ListBoxItem Grid.Row="1"
246 Visibility="{x:Bind _OutGoingCallBar, Mode=OneWay}"
247 Padding="0"
248 Margin="0"
249 ContentTemplate="{StaticResource OutGoingCallTemplate}"
Nicolas Jager7c409f32016-09-08 09:35:16 -0400250 Content="{x:Bind _call, Mode=OneWay}"/>
251 </Grid>
252 </DataTemplate>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400253 </Page.Resources>
254
Nicolas Jager998fbd72016-08-08 11:41:28 -0400255 <Grid>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400256 <Grid.RowDefinitions>
257 <!-- where accounts and share menu drop down are. -->
258 <RowDefinition Height="auto"/>
259 <!-- where contacts and settings are. -->
260 <RowDefinition Height="*"/>
261 </Grid.RowDefinitions>
262 <!-- drop down menus. -->
263 <Grid Background="LightBlue">
264 <Grid.RowDefinitions>
265 <!-- where the selected account is shown. -->
266 <RowDefinition x:Name="_selectedAccountRow_"
267 Height="90"/>
268 <!-- where the drop down menus are shown. -->
269 <RowDefinition Height="auto"/>
270 </Grid.RowDefinitions>
271 <!-- selected account. -->
272 <Grid Grid.Row="0">
273 <Grid.ColumnDefinitions>
274 <ColumnDefinition x:Name="_selectedAccountAvatarColumn_"
275 Width="90"/>
276 <ColumnDefinition Width="*"/>
277 <ColumnDefinition Width="50"/>
278 </Grid.ColumnDefinitions>
atraczyk2425ddd2016-09-01 13:16:22 -0400279 <Ellipse
280 x:Name="_selectedAccountAvatarContainer_"
281 Height="80"
282 Width="80"
283 Grid.Column="0"
284 Margin="5">
285 <Ellipse.Fill>
286 <ImageBrush
287 x:Name="_selectedAccountAvatar_"
288 ImageSource="Assets\TESTS\contactAvatar.png"/>
289 </Ellipse.Fill>
290 </Ellipse>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400291 <StackPanel Grid.Column="1"
292 VerticalAlignment="Bottom">
atraczyk4a8cffc2016-08-25 20:01:25 -0400293 <TextBlock x:Name="_selectedAccountName_"
294 Text="default name"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400295 Margin="10"
296 Style="{StaticResource TextStyle2}"/>
297 <StackPanel Orientation="Horizontal">
298 <!--Content="&#xE0A1;-->
299 <ToggleButton x:Name="_accountsMenuButton_"
300 VerticalAlignment="Bottom"
301 Content="&#xE168;"
302 Checked="_accountsMenuButton__Checked"
303 Unchecked="_accountsMenuButton__Unchecked"
304 Style="{StaticResource ToggleButtonStyle1}"/>
305 <ToggleButton x:Name="_shareMenuButton_"
306 VerticalAlignment="Bottom"
307 Content="&#xE72D;"
308 Checked="_shareMenuButton__Checked"
309 Unchecked="_shareMenuButton__Unchecked"
310 Style="{StaticResource ToggleButtonStyle1}"/>
311 </StackPanel>
312 </StackPanel>
313 <ToggleButton x:Name="_settingsTBtn_"
314 Grid.Column="2"
315 VerticalAlignment="Bottom"
316 Content="&#xE115;"
317 Checked="_settings__Checked"
318 Unchecked="_settings__Unchecked"
319 Style="{StaticResource ToggleButtonStyle1}"/>
320 </Grid>
321
322 <!--sub menus like the accounts list or the share menu are just below, technicaly they are nested inside the
323 same row. To sumon them we use the visibility of their own grid, by linking it to a toggle button-->
324
325 <!-- accounts menu. -->
326 <Grid x:Name="_accountsMenuGrid_"
327 MaxHeight="350"
328 Grid.Row="1"
329 Visibility="Collapsed"
330 Background="LightBlue">
331 <Grid.RowDefinitions>
332 <RowDefinition Height="*"/>
333 <RowDefinition Height="30"/>
334 </Grid.RowDefinitions>
atraczyk196936e2016-09-02 15:31:53 -0400335 <ScrollViewer x:Name="_accountsListScrollView_"
336 ScrollViewer.VerticalScrollBarVisibility="Auto"
337 ScrollViewer.VerticalScrollMode="Enabled">
338 <ListBox x:Name="_accountsList_"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400339 Grid.Row="0"
atraczyk4a8cffc2016-08-25 20:01:25 -0400340 SelectionChanged="_accountList__SelectionChanged"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400341 Width="320"
342 ItemContainerStyle="{StaticResource contactsListBoxStyle}"
343 Background="#FFE4F1F9"
344 ItemTemplate="{StaticResource AccountTemplate}"/>
atraczyk196936e2016-09-02 15:31:53 -0400345 </ScrollViewer>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400346 <Button x:Name="_addAccountBtn_"
347 Grid.Row="1"
348 VerticalAlignment="Center"
349 HorizontalAlignment="Center"
350 Content="&#xE948;"
351 Click="_addAccountBtn__Click"
352 Style="{StaticResource ButtonStyle2}"/>
353 </Grid>
354 <!-- account creation menu. -->
355 <Grid x:Name="_accountCreationMenuGrid_"
356 Grid.Row="2"
357 Visibility="Collapsed"
358 Background="LightBlue">
359 <Grid.RowDefinitions>
360 <RowDefinition Height="*"/>
361 <RowDefinition Height="30"/>
362 </Grid.RowDefinitions>
363 <StackPanel Orientation="Vertical"
364 Grid.Row="0"
365 Background="#FFE4F1F9">
366 <StackPanel Orientation="Horizontal">
367 <TextBlock VerticalAlignment="Center"
368 Text="Account type : "
369 Margin="10,10,0,10"/>
atraczyk196936e2016-09-02 15:31:53 -0400370 <ComboBox x:Name="_accountTypeComboBox_"
371 SelectedIndex="0"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400372 Margin="10"
373 VerticalAlignment="Center"
374 Width="195">
375 <ComboBoxItem Content="Ring"/>
376 <ComboBoxItem Content="Sip"/>
377 </ComboBox>
378 </StackPanel>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400379 <!-- RING account. -->
380 <StackPanel x:Name="_ringAccountCreationStack_"
381 Visibility="Visible">
atraczyk196936e2016-09-02 15:31:53 -0400382 <TextBox x:Name="_aliasTextBox_"
383 Margin="10"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400384 PlaceholderText="Enter your username"/>
385 <PasswordBox Margin="10"
386 PlaceholderText="Enter your password"/>
387 <PasswordBox Margin="10"
388 PlaceholderText="Repeat your Password"/>
389 </StackPanel>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400390 </StackPanel>
391 <!-- buttons yes/no to create the new account. -->
392 <Grid Grid.Row="1">
393 <StackPanel Orientation="Horizontal"
394 HorizontalAlignment="Center">
395 <Button x:Name="_createAccountYes_"
396 Grid.Row="1"
397 VerticalAlignment="Center"
398 HorizontalAlignment="Center"
399 Content="&#xE081;"
400 Click="_createAccountYes__Click"
atraczyk196936e2016-09-02 15:31:53 -0400401 Style="{StaticResource ButtonStyle5}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400402 <Button x:Name="_createAccountNo_"
403 Grid.Row="1"
404 VerticalAlignment="Center"
405 HorizontalAlignment="Center"
406 Content="&#xE106;"
407 Click="_createAccountNo__Click"
atraczyk196936e2016-09-02 15:31:53 -0400408 Style="{StaticResource ButtonStyle5}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400409 </StackPanel>
410 </Grid>
411 </Grid>
412 <!-- share menu. -->
413 <Grid x:Name="_shareMenuGrid_"
414 Grid.Row="2"
415 Visibility="Collapsed"
416 Background="LightBlue">
417 <Grid.RowDefinitions>
418 <RowDefinition Height="*"/>
419 <RowDefinition Height="30"/>
420 </Grid.RowDefinitions>
421 <Grid Background="#FFE4F1F9">
422 <Grid.RowDefinitions>
423 <RowDefinition Height="*"/>
424 <RowDefinition Height="auto"/>
425 <RowDefinition Height="auto"/>
426 </Grid.RowDefinitions>
427 <Image x:Name="_selectedAccountQrCode_"
428 Source="Assets\TESTS\qrcode.png"
429 Width="200"
430 Margin="5"
431 Grid.Row="0"
432 Height="200"/>
433 <TextBlock Text="RingId:"
434 Grid.Row="1"
435 HorizontalAlignment="Center"/>
436 <TextBox Style="{StaticResource TextBoxStyle2}"
437 HorizontalAlignment="Center"
438 Text="c4fc649aed8b2497a5e98fd2d856222f07020044"
439 Grid.Row="2"/>
440 </Grid>
441 </Grid>
442 </Grid>
Nicolas Jager7c409f32016-09-08 09:35:16 -0400443 <!-- smartList and settings. -->
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400444 <Grid Grid.Row="1">
Nicolas Jager7c409f32016-09-08 09:35:16 -0400445 <!-- contacts + calls => smartpanelitems. -->
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400446 <Grid x:Name="_smartGrid_"
447 Grid.Row="0">
448 <Grid.RowDefinitions>
449 <RowDefinition x:Name="_rowRingTxtBx_"
450 Height="40"/>
451 <RowDefinition Height="*"/>
452 </Grid.RowDefinitions>
453 <TextBox x:Name="_ringTxtBx_"
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400454 HorizontalAlignment="Center"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400455 VerticalAlignment="Center"
456 Width="320"
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400457 TextWrapping="Wrap"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400458 Style="{StaticResource TextBoxStyle1}"
atraczyk82f8dda2016-08-25 16:34:52 -0400459 KeyDown="_ringTxtBx__KeyDown"
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400460 Text=""/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400461 <ListBox x:Name="_smartList_"
462 Grid.Row="1"
463 Margin="0"
464 Padding="0"
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400465 SelectionChanged="_smartList__SelectionChanged"
466 ScrollViewer.HorizontalScrollBarVisibility="Auto"
467 ScrollViewer.HorizontalScrollMode="Enabled"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400468 ItemContainerStyle="{StaticResource contactsListBoxStyle}"
Nicolas Jager7c409f32016-09-08 09:35:16 -0400469 ItemTemplate="{StaticResource SmartPanelItemsTemplate}"/>
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -0400470 </Grid>
471 <!-- settings. -->
472 <Grid x:Name="_settings_"
473 Grid.Row="0"
474 Visibility="Collapsed">
475 <TextBlock>some settings</TextBlock>
476 </Grid>
477 </Grid>
Nicolas Jager998fbd72016-08-08 11:41:28 -0400478 </Grid>
479
480</Page>