SmartPanel.xaml 24 KB
Newer Older
Nicolas Jager's avatar
Nicolas Jager committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<!-- **********************************************************************
* Copyright (C) 2016 by Savoir-faire Linux                                *
* Author: Jäger Nicolas<nicolas.jager@savoirfairelinux.com>               *
*                                                                         *
* This program is free software; you can redistribute it and/or modify    *
* it under the terms of the GNU General Public License as published by    *
* the Free Software Foundation; either version 3 of the License, or       *
* (at your option) any later version.                                     *
*                                                                         *
* This program is distributed in the hope that it will be useful,         *
* but WITHOUT ANY WARRANTY; without even the implied warranty of          *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
* GNU General Public License for more details.                            *
*                                                                         *
* You should have received a copy of the GNU General Public License       *
* along with this program.  If not, see <http://www.gnu.org/licenses/> .  *
*********************************************************************** -->
<Page x:Class="RingClientUWP.Views.SmartPanel"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="using:RingClientUWP"
22
      xmlns:controls="using:RingClientUWP.Controls"
Nicolas Jager's avatar
Nicolas Jager committed
23 24 25 26
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d">

Nicolas Jager's avatar
Nicolas Jager committed
27 28 29 30 31 32 33 34 35
    <Page.Resources>
        <!-- template for contacts. -->
        <DataTemplate x:Key="ContactTemplate"
                      x:DataType="local:Contact">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="60"/>
                    <!-- use the height of _contactBar_ to make it visible or collapsed. -->
                    <RowDefinition x:Name="_contactBar_"
36
                                   Height="{x:Bind _contactBarHeight, Mode=OneWay}"/>
Nicolas Jager's avatar
Nicolas Jager committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
                </Grid.RowDefinitions>
                <Grid Grid.Row="0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="60"/>
                        <ColumnDefinition Width="*"
                                          MinWidth="200"/>
                    </Grid.ColumnDefinitions>
                    <Image x:Name="_contactAvatar_"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center"
                           Grid.Column="0"
                           Width="55"
                           Height="55"
                           Source="Assets\TESTS\contactAvatar.png"/>
                    <!-- visual notifications. -->
                    <Border x:Name="_visualNotificationVideoChat_"
                            Visibility="Collapsed"
                            Style="{StaticResource BorderStyle1}">
                        <TextBlock Text="&#xE8AA;"
                                   Style="{StaticResource TextSegoeStyle1}"/>
                        <Border.RenderTransform>
                            <TranslateTransform X="17" Y="-14"/>
                        </Border.RenderTransform>
                    </Border>
                    <Border x:Name="_visualNotificationNewMessage_"
62
                            Visibility="{x:Bind notificationNewMessage, Mode=OneWay}"
Nicolas Jager's avatar
Nicolas Jager committed
63
                            Style="{StaticResource BorderStyle2}">
64
                        <TextBlock Text="{x:Bind unreadMessages, Mode=OneWay}"
Nicolas Jager's avatar
Nicolas Jager committed
65 66 67 68 69
                                   Style="{StaticResource TextStyle3}"/>
                        <Border.RenderTransform>
                            <TranslateTransform X="-17" Y="-14"/>
                        </Border.RenderTransform>
                    </Border>
70 71 72 73 74 75 76 77
                    <Grid Grid.Column="1">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="30"/>
                            <RowDefinition Height="30"/>
                        </Grid.RowDefinitions>
                        <!-- name of the contact. -->
                        <TextBlock x:Name="_contactName_"
                                   Grid.Row="0"
Nicolas Jager's avatar
Nicolas Jager committed
78
                               Text="{x:Bind name_}">
79
                        </TextBlock>
Nicolas Jager's avatar
Nicolas Jager committed
80 81
                        <!-- call status. REFACTO : REMOVE CODE BELOW -->
                        <!--<StackPanel MaxWidth="240"
82 83 84 85 86 87 88 89 90
                                    MinWidth="240"
                                    Grid.Row="1"
                                    HorizontalAlignment="Left">
                            <TextBlock x:Name="_contactCallStatus_"
                                       Foreground="DarkGray"
                                       Text="{x:Bind _call.state, Mode=OneWay}"
                                       Visibility="Visible"
                                       HorizontalAlignment="Center">
                            </TextBlock>
Nicolas Jager's avatar
Nicolas Jager committed
91
                        </StackPanel>-->
92
                    </Grid>
Nicolas Jager's avatar
Nicolas Jager committed
93
                </Grid>
Nicolas Jager's avatar
Nicolas Jager committed
94
                <!-- REFACTO : REMOVE CODE BELOW -->
Nicolas Jager's avatar
Nicolas Jager committed
95 96
                <!-- button bar for accept/reject or cancel call. -->
                <!-- nb : dont use Visibility with the grid, use the height of the hosting row (_contactBar_). -->
Nicolas Jager's avatar
Nicolas Jager committed
97
                <!--<Grid Width="320"
Nicolas Jager's avatar
Nicolas Jager committed
98
                      HorizontalAlignment="Left"
99
                      Grid.Row="2"
Nicolas Jager's avatar
Nicolas Jager committed
100 101
                      Background="DarkGray">
                    <StackPanel Orientation="Horizontal"
102
                                Grid.Row="0"
Nicolas Jager's avatar
Nicolas Jager committed
103 104
                                HorizontalAlignment="Center">
                        <Button x:Name="_acceptIncomingCallBtn_"
105
                                Click="_acceptIncomingCallBtn__Click"
Nicolas Jager's avatar
Nicolas Jager committed
106 107
                            VerticalAlignment="Center"
                            HorizontalAlignment="Center"
108
                            Content="Accept"/>
Nicolas Jager's avatar
Nicolas Jager committed
109
                        <Button x:Name="_rejectIncomingCallBtn_"
110
                                Click="_rejectIncomingCallBtn__Click"
Nicolas Jager's avatar
Nicolas Jager committed
111 112
                            VerticalAlignment="Center"
                            HorizontalAlignment="Center"
113
                            Content="Reject"/>
Nicolas Jager's avatar
Nicolas Jager committed
114
                    </StackPanel>
Nicolas Jager's avatar
Nicolas Jager committed
115
                </Grid>-->
Nicolas Jager's avatar
Nicolas Jager committed
116 117 118 119 120 121 122
            </Grid>
        </DataTemplate>
        <!-- template for accounts. -->
        <DataTemplate x:Key="AccountTemplate"
                      x:DataType="local:Account">
            <Grid>
                <Grid.ColumnDefinitions>
123
                    <ColumnDefinition Width="260"/>
124
                    <ColumnDefinition Width="60"/>
Nicolas Jager's avatar
Nicolas Jager committed
125
                </Grid.ColumnDefinitions>
126 127 128 129
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>
Nicolas Jager's avatar
Nicolas Jager committed
130
                <TextBlock x:Name="_accountName_"
131
                           Grid.Column="0"
132
                           Grid.Row="0"
133
                           Margin="10,5,10,0"
Nicolas Jager's avatar
Nicolas Jager committed
134
                           Text="{x:Bind name_}"/>
135
                <TextBlock x:Name="_accountType_"
136
                           Grid.Column="1"
137 138
                           Grid.Row="0"
                           TextAlignment="Right"
atraczyk's avatar
atraczyk committed
139
                           Margin="0,5,18,0"
140 141 142
                           Foreground="ForestGreen"
                           Text="{x:Bind accountType_}"/>
                <TextBlock x:Name="_ringID_"
143
                           Grid.Column="0"
144 145 146
                           Grid.ColumnSpan="2"
                           Grid.Row="1"
                           Foreground="Crimson"
147 148
                           Margin="10,5,10,0"
                           FontSize="14"
149 150
                           TextTrimming="CharacterEllipsis"
                           Text="{x:Bind ringID_}"/>
Nicolas Jager's avatar
Nicolas Jager committed
151 152
            </Grid>
        </DataTemplate>
Nicolas Jager's avatar
Nicolas Jager committed
153 154
        <!-- template for incoming calls. -->
        <DataTemplate x:Key="IncomingCallTemplate" x:DataType="local:Call">
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
            <Grid Width="320"
                      HorizontalAlignment="Left"
                      Background="DarkGray">
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>
                <TextBlock x:Name="_contactCallStatus_"
                           Grid.Row="0"
                           Foreground="White"
                           Text="{x:Bind state, Mode=OneWay}"
                           Visibility="Visible"
                           HorizontalAlignment="Center">
                </TextBlock>
                <StackPanel Orientation="Horizontal"
                            Grid.Row="1"
                            HorizontalAlignment="Center">
                    <Button x:Name="_acceptIncomingCallBtn_"
                            Click="_acceptIncomingCallBtn__Click"
                            VerticalAlignment="Center"
                            HorizontalAlignment="Center"
                            Content="Accept"/>
                    <Button x:Name="_rejectIncomingCallBtn_"
                            Click="_rejectIncomingCallBtn__Click"
                            VerticalAlignment="Center"
                            HorizontalAlignment="Center"
                            Content="Reject"/>
                </StackPanel>
            </Grid>
        </DataTemplate>
Nicolas Jager's avatar
Nicolas Jager committed
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
        <!-- template for outgoing calls. -->
        <DataTemplate x:Key="OutGoingCallTemplate" x:DataType="local:Call">
            <Grid Width="320"
                      HorizontalAlignment="Left"
                      Background="DarkGray">
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>
                <TextBlock x:Name="_contactCallStatus_"
                           Grid.Row="0"
                           Foreground="White"
                           Text="{x:Bind state, Mode=OneWay}"
                           Visibility="Visible"
                           HorizontalAlignment="Center">
                </TextBlock>
                <StackPanel Orientation="Horizontal"
                            Grid.Row="1"
                            HorizontalAlignment="Center">
                    <Button x:Name="_cancelCallBtn_"
                            Click="_cancelCallBtn__Click"
                            VerticalAlignment="Center"
                            HorizontalAlignment="Center"
                            Content="Cancel"/>
                </StackPanel>
            </Grid>
        </DataTemplate>
212 213 214
        <!-- template for smartpanelitems. -->
        <DataTemplate x:Key="SmartPanelItemsTemplate"
                      x:DataType="controls:SmartPanelItem">
Nicolas Jager's avatar
Nicolas Jager committed
215
            <Grid PointerEntered="Grid_PointerEntered" PointerExited="Grid_PointerExited">
216 217 218 219 220 221 222 223
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                </Grid.RowDefinitions>
                <ListBoxItem x:Name="_contactItem_"
                             Padding="0"
                             Margin="0"
                             Grid.Row="0"
Nicolas Jager's avatar
Nicolas Jager committed
224
                             PointerReleased="_contactItem__PointerReleased"
225 226
                             ContentTemplate="{StaticResource ContactTemplate}"
                             Content="{x:Bind _contact, Mode=OneWay}"/>
Nicolas Jager's avatar
Nicolas Jager committed
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
                <ListBoxItem Grid.Row="1"
                             Visibility="{x:Bind _IncomingCallBar, Mode=OneWay}"
                             Padding="0"
                             Margin="0"
                             ContentTemplate="{StaticResource IncomingCallTemplate}"
                             Content="{x:Bind _call, Mode=OneWay}"/>
                <Button Grid.Row="0"
                        HorizontalAlignment="Left"
                        Visibility="{x:Bind _callBar, Mode=OneWay}"
                        Content="call"
                        Padding="0"
                        Click="_callContact__Click"
                        VerticalAlignment="Bottom"
                        Margin="10">
                    <Button.RenderTransform>
                        <TranslateTransform X="160"/>
                    </Button.RenderTransform>
                </Button>
                <ListBoxItem Grid.Row="1"
                             Visibility="{x:Bind _OutGoingCallBar, Mode=OneWay}"
247 248
                             Padding="0"
                             Margin="0"
Nicolas Jager's avatar
Nicolas Jager committed
249
                             ContentTemplate="{StaticResource OutGoingCallTemplate}"
250 251 252
                             Content="{x:Bind _call, Mode=OneWay}"/>
            </Grid>
        </DataTemplate>
Nicolas Jager's avatar
Nicolas Jager committed
253 254
    </Page.Resources>

Nicolas Jager's avatar
Nicolas Jager committed
255
    <Grid>
Nicolas Jager's avatar
Nicolas Jager committed
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
        <Grid.RowDefinitions>
            <!-- where accounts and share menu drop down are. -->
            <RowDefinition Height="auto"/>
            <!-- where contacts and settings are. -->
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <!-- drop down menus. -->
        <Grid Background="LightBlue">
            <Grid.RowDefinitions>
                <!-- where the selected account is shown. -->
                <RowDefinition x:Name="_selectedAccountRow_"
                               Height="90"/>
                <!-- where the drop down menus are shown. -->
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <!-- selected account. -->
            <Grid Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition x:Name="_selectedAccountAvatarColumn_"
                                      Width="90"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="50"/>
                </Grid.ColumnDefinitions>
279 280 281 282 283 284 285 286 287 288 289 290
                <Ellipse
                    x:Name="_selectedAccountAvatarContainer_"
                    Height="80"
                    Width="80"
                    Grid.Column="0"
                    Margin="5">
                    <Ellipse.Fill>
                        <ImageBrush
                            x:Name="_selectedAccountAvatar_"
                            ImageSource="Assets\TESTS\contactAvatar.png"/>
                    </Ellipse.Fill>
                </Ellipse>
Nicolas Jager's avatar
Nicolas Jager committed
291 292
                <StackPanel Grid.Column="1"
                            VerticalAlignment="Bottom">
293 294
                    <TextBlock x:Name="_selectedAccountName_"
                               Text="default name"
Nicolas Jager's avatar
Nicolas Jager committed
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
                               Margin="10"
                               Style="{StaticResource TextStyle2}"/>
                    <StackPanel Orientation="Horizontal">
                        <!--Content="&#xE0A1;-->
                        <ToggleButton x:Name="_accountsMenuButton_"
                                      VerticalAlignment="Bottom"
                                      Content="&#xE168;"
                                      Checked="_accountsMenuButton__Checked"
                                      Unchecked="_accountsMenuButton__Unchecked"
                                      Style="{StaticResource ToggleButtonStyle1}"/>
                        <ToggleButton x:Name="_shareMenuButton_"
                                      VerticalAlignment="Bottom"
                                      Content="&#xE72D;"
                                      Checked="_shareMenuButton__Checked"
                                      Unchecked="_shareMenuButton__Unchecked"
                                      Style="{StaticResource ToggleButtonStyle1}"/>
                    </StackPanel>
                </StackPanel>
                <ToggleButton x:Name="_settingsTBtn_"
                              Grid.Column="2"
                              VerticalAlignment="Bottom"
                              Content="&#xE115;"
                              Checked="_settings__Checked"
                              Unchecked="_settings__Unchecked"
                              Style="{StaticResource ToggleButtonStyle1}"/>
            </Grid>

            <!--sub menus like the accounts list or the share menu are just below, technicaly they are nested inside the
            same row. To sumon them we use the visibility of their own grid, by linking it to a toggle button-->

            <!-- accounts menu. -->
            <Grid x:Name="_accountsMenuGrid_"
                  MaxHeight="350"
                  Grid.Row="1"
                  Visibility="Collapsed"
                  Background="LightBlue">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>
atraczyk's avatar
atraczyk committed
335 336 337 338
                <ScrollViewer x:Name="_accountsListScrollView_"
                              ScrollViewer.VerticalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollMode="Enabled">
                    <ListBox x:Name="_accountsList_"
Nicolas Jager's avatar
Nicolas Jager committed
339
                         Grid.Row="0"
340
                         SelectionChanged="_accountList__SelectionChanged"
Nicolas Jager's avatar
Nicolas Jager committed
341 342 343 344
                         Width="320"
                         ItemContainerStyle="{StaticResource contactsListBoxStyle}"
                         Background="#FFE4F1F9"
                         ItemTemplate="{StaticResource AccountTemplate}"/>
atraczyk's avatar
atraczyk committed
345
                </ScrollViewer>
Nicolas Jager's avatar
Nicolas Jager committed
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369
                <Button x:Name="_addAccountBtn_"
                        Grid.Row="1"
                        VerticalAlignment="Center"
                        HorizontalAlignment="Center"
                        Content="&#xE948;"
                        Click="_addAccountBtn__Click"
                        Style="{StaticResource ButtonStyle2}"/>
            </Grid>
            <!-- account creation menu. -->
            <Grid x:Name="_accountCreationMenuGrid_"
                  Grid.Row="2"
                  Visibility="Collapsed"
                  Background="LightBlue">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>
                <StackPanel Orientation="Vertical"
                            Grid.Row="0"
                            Background="#FFE4F1F9">
                    <StackPanel Orientation="Horizontal">
                        <TextBlock VerticalAlignment="Center"
                                   Text="Account type : "
                                   Margin="10,10,0,10"/>
atraczyk's avatar
atraczyk committed
370 371
                        <ComboBox x:Name="_accountTypeComboBox_"
                                  SelectedIndex="0"
Nicolas Jager's avatar
Nicolas Jager committed
372 373 374 375 376 377 378 379 380 381
                                  Margin="10"
                                  VerticalAlignment="Center"
                                  Width="195">
                            <ComboBoxItem Content="Ring"/>
                            <ComboBoxItem Content="Sip"/>
                        </ComboBox>
                    </StackPanel>
                    <!-- RING account. -->
                    <StackPanel x:Name="_ringAccountCreationStack_"
                                Visibility="Visible">
atraczyk's avatar
atraczyk committed
382 383
                        <TextBox  x:Name="_aliasTextBox_"
                                  Margin="10"
Nicolas Jager's avatar
Nicolas Jager committed
384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
                                  PlaceholderText="Enter your username"/>
                        <PasswordBox Margin="10"
                                     PlaceholderText="Enter your password"/>
                        <PasswordBox  Margin="10"
                                      PlaceholderText="Repeat your Password"/>
                    </StackPanel>
                </StackPanel>
                <!-- buttons yes/no to create the new account. -->
                <Grid Grid.Row="1">
                    <StackPanel Orientation="Horizontal"
                                HorizontalAlignment="Center">
                        <Button x:Name="_createAccountYes_"
                                Grid.Row="1"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Center"
                                Content="&#xE081;"
                                Click="_createAccountYes__Click"
atraczyk's avatar
atraczyk committed
401
                                Style="{StaticResource ButtonStyle5}"/>
Nicolas Jager's avatar
Nicolas Jager committed
402 403 404 405 406 407
                        <Button x:Name="_createAccountNo_"
                                Grid.Row="1"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Center"
                                Content="&#xE106;"
                                Click="_createAccountNo__Click"
atraczyk's avatar
atraczyk committed
408
                                Style="{StaticResource ButtonStyle5}"/>
Nicolas Jager's avatar
Nicolas Jager committed
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442
                    </StackPanel>
                </Grid>
            </Grid>
            <!-- share menu. -->
            <Grid x:Name="_shareMenuGrid_"
                  Grid.Row="2"
                  Visibility="Collapsed"
                  Background="LightBlue">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>
                <Grid Background="#FFE4F1F9">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="auto"/>
                        <RowDefinition Height="auto"/>
                    </Grid.RowDefinitions>
                    <Image x:Name="_selectedAccountQrCode_"
                           Source="Assets\TESTS\qrcode.png"
                           Width="200"
                           Margin="5"
                           Grid.Row="0"
                           Height="200"/>
                    <TextBlock Text="RingId:"
                               Grid.Row="1"
                               HorizontalAlignment="Center"/>
                    <TextBox Style="{StaticResource TextBoxStyle2}"
                             HorizontalAlignment="Center"
                             Text="c4fc649aed8b2497a5e98fd2d856222f07020044"
                             Grid.Row="2"/>
                </Grid>
            </Grid>
        </Grid>
443
        <!-- smartList and settings. -->
Nicolas Jager's avatar
Nicolas Jager committed
444
        <Grid Grid.Row="1">
445
            <!-- contacts + calls => smartpanelitems. -->
Nicolas Jager's avatar
Nicolas Jager committed
446 447 448 449 450 451 452 453
            <Grid x:Name="_smartGrid_"
                  Grid.Row="0">
                <Grid.RowDefinitions>
                    <RowDefinition x:Name="_rowRingTxtBx_"
                                   Height="40"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <TextBox x:Name="_ringTxtBx_"
Nicolas Jager's avatar
Nicolas Jager committed
454
                         HorizontalAlignment="Center"
Nicolas Jager's avatar
Nicolas Jager committed
455 456
                         VerticalAlignment="Center"
                         Width="320"
Nicolas Jager's avatar
Nicolas Jager committed
457
                         TextWrapping="Wrap"
Nicolas Jager's avatar
Nicolas Jager committed
458
                         Style="{StaticResource TextBoxStyle1}"
459
                         KeyDown="_ringTxtBx__KeyDown"
Nicolas Jager's avatar
Nicolas Jager committed
460
                         Text=""/>
Nicolas Jager's avatar
Nicolas Jager committed
461 462 463 464
                <ListBox x:Name="_smartList_"
                         Grid.Row="1"
                         Margin="0"
                         Padding="0"
Nicolas Jager's avatar
Nicolas Jager committed
465 466 467
                         SelectionChanged="_smartList__SelectionChanged"
                         ScrollViewer.HorizontalScrollBarVisibility="Auto"
                         ScrollViewer.HorizontalScrollMode="Enabled"
Nicolas Jager's avatar
Nicolas Jager committed
468
                         ItemContainerStyle="{StaticResource contactsListBoxStyle}"
469
                         ItemTemplate="{StaticResource SmartPanelItemsTemplate}"/>
Nicolas Jager's avatar
Nicolas Jager committed
470 471 472 473 474 475 476 477
            </Grid>
            <!-- settings. -->
            <Grid x:Name="_settings_"
                  Grid.Row="0"
                  Visibility="Collapsed">
                <TextBlock>some settings</TextBlock>
            </Grid>
        </Grid>
Nicolas Jager's avatar
Nicolas Jager committed
478 479 480
    </Grid>

</Page>