SmartPanel.xaml 116 KB
Newer Older
Nicolas Jager's avatar
Nicolas Jager committed
1 2 3
<!-- **********************************************************************
* Copyright (C) 2016 by Savoir-faire Linux                                *
* Author: Jäger Nicolas<nicolas.jager@savoirfairelinux.com>               *
4
* Author: Traczyk Andreas<andreas.traczyk@savoirfairelinux.com>           *
Nicolas Jager's avatar
Nicolas Jager committed
5 6 7 8 9 10 11 12 13 14 15 16 17
*                                                                         *
* 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/> .  *
18
***********************************************************************-->
Nicolas Jager's avatar
Nicolas Jager committed
19 20 21
<Page x:Class="RingClientUWP.Views.SmartPanel"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
22
      xmlns:controls="using:RingClientUWP.Controls"
Nicolas Jager's avatar
Nicolas Jager committed
23
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
24
      xmlns:local="using:RingClientUWP"
Nicolas Jager's avatar
Nicolas Jager committed
25
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
26
      xmlns:views="using:RingClientUWP.Views"
27
      NavigationCacheMode="Enabled"
Nicolas Jager's avatar
Nicolas Jager committed
28 29
      mc:Ignorable="d">

Nicolas Jager's avatar
Nicolas Jager committed
30
    <Page.Resources>
31 32
        <!--  template for AccountListItems.  -->
        <DataTemplate x:Key="AccountListItemsTemplate" x:DataType="controls:AccountListItem">
33
            <Grid Margin="0,10">
Nicolas Jager's avatar
Nicolas Jager committed
34
                <Grid.ColumnDefinitions>
35 36
                    <ColumnDefinition Width="60" />
                    <ColumnDefinition Width="260" />
Nicolas Jager's avatar
Nicolas Jager committed
37
                </Grid.ColumnDefinitions>
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
                <Image Grid.Column="0"
                       x:Name="_AccountTypeIcon_"
                       Width="32"
                       Height="48"
                       Margin="5,0"
                       HorizontalAlignment="Center"
                       VerticalAlignment="Center"
                       Source="{x:Bind _account.accountType_, Converter={StaticResource _AccountTypeToSourceImage_}, Mode=OneWay}" />
                <!--  display share/home/about  -->
                <Grid Visibility="{x:Bind _account.accountType_, Converter={StaticResource _RingAccountTypeToVisibility_}, Mode=OneWay}">
                    <Button Grid.Column="1"
                            x:Name="_shareMenuButton_"
                            VerticalAlignment="Bottom"
                            Click="_shareMenuButton__Click"
                            Style="{StaticResource FlatRoundShareListItemButton}"
                            Visibility="{x:Bind _isSelected, Converter={StaticResource _AccountSelectedToVisibility_}, Mode=OneWay}">
                        <ToolTipService.ToolTip>
                            <TextBlock x:Uid="_tt_share_menu_" />
                        </ToolTipService.ToolTip>
                    </Button>
                    <Grid.RenderTransform>
                        <TranslateTransform X="244" Y="0" />
                    </Grid.RenderTransform>
                </Grid>
                <!--  edit acccount  -->
                <Button Grid.Column="1"
                        x:Name="_editAccountMenuButton_"
                        Width="31"
                        Height="36"
67
                        Click="_editAccountMenuButton__Click"
68 69 70 71 72 73 74 75
                        Content="&#xE115;"
                        FontFamily="Segoe MDL2 Assets"
                        FontSize="18"
                        Style="{StaticResource FlatRoundSettingsListItemButton}"
                        Visibility="{x:Bind _isSelected, Converter={StaticResource _AccountSelectedToVisibility_}, Mode=OneWay}">
                    <ToolTipService.ToolTip>
                        <TextBlock x:Uid="_tt_edit_account_" />
                    </ToolTipService.ToolTip>
76
                    <Button.RenderTransform>
77
                        <TranslateTransform X="218" Y="10" />
78 79
                    </Button.RenderTransform>
                </Button>
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
                <StackPanel Grid.Column="1" Orientation="Vertical">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="180" />
                            <ColumnDefinition Width="80" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0"
                                   x:Name="_accountName_"
                                   Style="{StaticResource TextStyle5}"
                                   Text="{x:Bind _account._bestName3, Mode=OneWay}" />
                        <TextBlock Grid.Column="1"
                                   x:Name="_registrationState_"
                                   Margin="0,0,22,0"
                                   HorizontalAlignment="Right"
                                   FontSize="12"
                                   FontWeight="Bold"
                                   Foreground="{x:Bind _account, Converter={StaticResource _AccountRegistrationStateToForeground_}, Mode=OneWay}"
                                   Text="{x:Bind _account, Converter={StaticResource _AccountRegistrationStateToString_}, Mode=OneWay}" />
                    </Grid>
                    <Grid>
                        <TextBlock x:Name="_ringID_"
                                   Width="160"
                                   Style="{StaticResource TextStyle6}"
                                   Text="{x:Bind _account.ringID_, Mode=OneWay}"
                                   TextTrimming="CharacterEllipsis"
                                   Visibility="{x:Bind _account.ringID_, Converter={StaticResource _CollapseEmptyString_}, Mode=OneWay}">
                            <ToolTipService.ToolTip>
                                <TextBlock Text="{x:Bind _account.ringID_, Mode=OneWay}" />
                            </ToolTipService.ToolTip>
                        </TextBlock>
                    </Grid>
111
                    <StackPanel Orientation="Horizontal">
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
                        <Border x:Name="_unreadAccountNotifications_"
                                Width="20"
                                Height="14"
                                Padding="0"
                                Style="{StaticResource BorderStyle2}"
                                Visibility="{x:Bind _account._allUnread, Converter={StaticResource _MoreThanZeroToVisibility_}, Mode=OneWay}">
                            <TextBlock VerticalAlignment="Bottom"
                                       FontSize="12"
                                       Style="{StaticResource TextStyle3}"
                                       Text="{x:Bind _account, Converter={StaticResource _UnreadAccountNotificationsString_}, ConverterParameter=Summary, Mode=OneWay}">
                                <ToolTipService.ToolTip>
                                    <TextBlock Text="{x:Bind _account, Converter={StaticResource _UnreadAccountNotificationsString_}, Mode=OneWay}" />
                                </ToolTipService.ToolTip>
                            </TextBlock>
                            <Border.RenderTransform>
                                <TranslateTransform X="0" Y="4" />
                            </Border.RenderTransform>
                        </Border>
130
                    </StackPanel>
131
                </StackPanel>
Nicolas Jager's avatar
Nicolas Jager committed
132 133
            </Grid>
        </DataTemplate>
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 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 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 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226

        <!--  template for RingDeviceItems.  -->
        <DataTemplate x:Key="RingDeviceItemsTemplate" x:DataType="controls:RingDeviceItem">
            <Grid Margin="10" HorizontalAlignment="Center">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid Grid.Row="0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="52" />
                        <ColumnDefinition Width="180" />
                        <ColumnDefinition Width="42" />
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0"
                               x:Uid="_deviceName_"
                               VerticalAlignment="Center"
                               FontWeight="Bold" />
                    <TextBlock Grid.Column="1"
                               x:Name="_deviceName_"
                               Width="180"
                               VerticalAlignment="Center"
                               Text="{x:Bind _deviceName, Mode=OneWay}"
                               TextTrimming="CharacterEllipsis" />
                    <Button Grid.Column="2"
                            x:Name="_revokeDeviceButton_"
                            Width="38"
                            Height="32"
                            Margin="4,0,0,0"
                            Background="Transparent"
                            BorderThickness="0"
                            Click="_revokeDeviceButton__Click"
                            Content="&#xE74D;"
                            FontFamily="Segoe MDL2 Assets"
                            FontSize="19"
                            Style="{StaticResource FlatRoundListItemButton}">
                        <ToolTipService.ToolTip>
                            <TextBlock x:Uid="_tt_revoke_device_" />
                        </ToolTipService.ToolTip>
                    </Button>
                </Grid>
                <Grid Grid.Row="1" Margin="0,10,0,0">
                    <TextBlock x:Name="_deviceId_"
                               VerticalAlignment="Center"
                               FontSize="12"
                               Text="{x:Bind _deviceId, Mode=OneWay}"
                               TextTrimming="CharacterEllipsis" />
                </Grid>
            </Grid>
        </DataTemplate>

        <!--  template for smartpanelitems.  -->
        <DataTemplate x:Key="SmartPanelItemsTemplate" x:DataType="controls:SmartPanelItem">
            <Grid DoubleTapped="SmartPanelItem_Grid_DoubleTapped"
                  PointerEntered="SmartPanelItem_Grid_PointerEntered"
                  PointerExited="SmartPanelItem_Grid_PointerExited"
                  PointerMoved="SmartPanelItem_Grid_PointerMoved"
                  RightTapped="SmartPanelItem_Grid_RightTapped"
                  Visibility="{x:Bind _isVisible, Mode=OneWay}">
                <FlyoutBase.AttachedFlyout>
                    <MenuFlyout x:Name="_SPI_MenuFlyout_"
                                LightDismissOverlayMode="Off"
                                Placement="Bottom">
                        <MenuFlyoutItem x:Name="_videoCall_MenuFlyoutItem_"
                                        x:Uid="_call_"
                                        Tapped="_videocall_MenuFlyoutItem_Tapped" />
                        <MenuFlyoutItem x:Name="_addToConference_MenuFlyoutItem_"
                                        x:Uid="_add_to_conference_"
                                        Tapped="_addToConference_MenuFlyoutItem__Tapped"
                                        Visibility="{x:Bind _contact, Converter={StaticResource _ContactConferenceableToVisibility_}, Mode=OneWay}" />
                        <MenuFlyoutSeparator />
                        <MenuFlyoutItem x:Name="_copyRingID_MenuFlyoutItem_"
                                        x:Uid="_copy_ring_id_"
                                        Tapped="_copyRingID_MenuFlyoutItem__Tapped"
                                        Visibility="{x:Bind _contact, Converter={StaticResource _ContactAccountTypeToVisibility_}, ConverterParameter=RING, Mode=OneWay}" />
                        <MenuFlyoutItem x:Name="_removeContact_MenuFlyoutItem_"
                                        x:Uid="_remove_contact_"
                                        Tapped="_removeContact_MenuFlyoutItem__Tapped" />
                    </MenuFlyout>
                </FlyoutBase.AttachedFlyout>
                <!--  the first rectangle helps to detect mouse overing  -->
                <Rectangle Fill="Transparent" />
                <!--  curtain over item with contact not ready (e.g. lookup is in progress)  -->
                <Rectangle Canvas.ZIndex="2"
                           Fill="White"
                           IsHitTestVisible="False"
                           Opacity="0.6"
                           Visibility="{x:Bind _contact._contactStatus, Converter={StaticResource _ContactStatusNotification_}, Mode=OneWay}" />
                <!--  contact.  -->
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="320" />
                    </Grid.ColumnDefinitions>
227
                    <Grid.RowDefinitions>
228
                        <RowDefinition Height="60" />
229
                    </Grid.RowDefinitions>
Nicolas Jager's avatar
Nicolas Jager committed
230 231
                    <Grid Grid.Row="0">
                        <Grid.ColumnDefinitions>
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 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 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 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 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="*" MinWidth="200" />
                        </Grid.ColumnDefinitions>
                        <StackPanel Grid.Column="0">
                            <!--  black magic replaced  -->
                            <StackPanel>
                                <Grid x:Name="_contactAvatarGrid_">
                                    <Ellipse x:Name="_contactAvatarEllipse_"
                                             Width="50"
                                             Height="50"
                                             Margin="5"
                                             HorizontalAlignment="Center"
                                             VerticalAlignment="Center"
                                             Canvas.ZIndex="3"
                                             Visibility="{x:Bind _callStatus, Converter={StaticResource _CallStatusForIncomingCallEllipse_}, ConverterParameter=Inverted, Mode=OneWay}">
                                        <Ellipse.Fill>
                                            <ImageBrush x:Name="_contactAvatar_" ImageSource="{x:Bind _contact._avatarImage, Mode=OneWay}" />
                                        </Ellipse.Fill>
                                    </Ellipse>
                                    <Ellipse x:Name="_contactAvatarEllipse2_"
                                             Width="50"
                                             Height="50"
                                             Margin="5"
                                             HorizontalAlignment="Center"
                                             VerticalAlignment="Center"
                                             Canvas.ZIndex="2"
                                             Visibility="{x:Bind _callStatus, Converter={StaticResource _CallStatusForIncomingCallEllipse_}, Mode=OneWay}">
                                        <Ellipse.Fill>
                                            <ImageBrush x:Name="_contactAvatar2_" ImageSource="{x:Bind _contact._avatarImage, Mode=OneWay}" />
                                        </Ellipse.Fill>
                                        <Ellipse.Triggers>
                                            <EventTrigger>
                                                <BeginStoryboard>
                                                    <Storyboard x:Name="_incomingCallStoryboard_">
                                                        <DoubleAnimation AutoReverse="True"
                                                                         RepeatBehavior="Forever"
                                                                         Storyboard.TargetName="_contactAvatarEllipse2_"
                                                                         Storyboard.TargetProperty="Opacity"
                                                                         From="1"
                                                                         To="0.25"
                                                                         Duration="0:0:1" />
                                                    </Storyboard>
                                                </BeginStoryboard>
                                            </EventTrigger>
                                        </Ellipse.Triggers>
                                    </Ellipse>
                                    <Grid Visibility="{x:Bind _contact, Converter={StaticResource _HasAvatarToVisibility_}, ConverterParameter=Inverted, Mode=OneWay}">
                                        <Grid x:Name="_defaultAvatarGrid_"
                                              Width="50"
                                              Height="50"
                                              Canvas.ZIndex="1"
                                              Visibility="{x:Bind _callStatus, Converter={StaticResource _CallStatusForIncomingCallEllipse_}, ConverterParameter=Inverted, Mode=OneWay}">
                                            <Ellipse x:Name="_defaultAvatar_" Fill="{x:Bind _contact._avatarColorBrush, Mode=OneWay}" />
                                            <TextBlock HorizontalAlignment="Center"
                                                       VerticalAlignment="Center"
                                                       FontFamily="Arial"
                                                       FontSize="30"
                                                       Foreground="White"
                                                       Text="{x:Bind _contact._bestName2, Converter={StaticResource _NameToInitialConverter_}, Mode=OneWay}"
                                                       TextAlignment="Center" />
                                        </Grid>
                                        <Grid x:Name="_defaultAvatarGrid2_"
                                              Width="50"
                                              Height="50"
                                              Canvas.ZIndex="0"
                                              Visibility="{x:Bind _callStatus, Converter={StaticResource _CallStatusForIncomingCallEllipse_}, Mode=OneWay}">
                                            <Ellipse x:Name="_defaultAvatar2_" Fill="{x:Bind _contact._avatarColorBrush, Mode=OneWay}" />
                                            <TextBlock HorizontalAlignment="Center"
                                                       VerticalAlignment="Center"
                                                       FontFamily="Arial"
                                                       FontSize="30"
                                                       Foreground="White"
                                                       Text="{x:Bind _contact._bestName2, Converter={StaticResource _NameToInitialConverter_}, Mode=OneWay}"
                                                       TextAlignment="Center" />
                                            <Grid.Triggers>
                                                <EventTrigger>
                                                    <BeginStoryboard>
                                                        <Storyboard x:Name="_incomingCallStoryboard2_">
                                                            <DoubleAnimation AutoReverse="True"
                                                                             RepeatBehavior="Forever"
                                                                             Storyboard.TargetName="_defaultAvatarGrid2_"
                                                                             Storyboard.TargetProperty="Opacity"
                                                                             From="1"
                                                                             To="0.25"
                                                                             Duration="0:0:1" />
                                                        </Storyboard>
                                                    </BeginStoryboard>
                                                </EventTrigger>
                                            </Grid.Triggers>
                                        </Grid>
                                    </Grid>
                                </Grid>
                                <Grid>
                                    <Ellipse x:Name="_presenceNotificationCircle_"
                                             Width="14"
                                             Height="14"
                                             Fill="{x:Bind _contact._presenceStatus, Converter={StaticResource _PresenceStatus_}, Mode=OneWay}"
                                             IsHitTestVisible="False"
                                             Stroke="{x:Bind _contact._presenceStatus, Converter={StaticResource _PresenceStatus_}, ConverterParameter=Border, Mode=OneWay}"
                                             StrokeThickness="1.5"
                                             Visibility="Visible">
                                        <Ellipse.RenderTransform>
                                            <TranslateTransform X="16" Y="-21" />
                                        </Ellipse.RenderTransform>
                                    </Ellipse>
                                </Grid>
                            </StackPanel>
                            <Border x:Name="_visualNotificationNewMessage_"
                                    Width="24"
                                    Height="20"
                                    Padding="2"
                                    Style="{StaticResource BorderStyle2}"
                                    Visibility="{x:Bind _contact._unreadMessages, Converter={StaticResource _NewMessageBubbleNotification_}, Mode=OneWay}">
                                <TextBlock VerticalAlignment="Bottom"
                                           FontSize="14"
                                           Style="{StaticResource TextStyle3}"
                                           Text="{x:Bind _contact._unreadMessages, Converter={StaticResource _NewMessageNotificationToNumber_}, Mode=OneWay}" />
                                <Border.RenderTransform>
                                    <TranslateTransform X="-17" Y="-58" />
                                </Border.RenderTransform>
                            </Border>
                        </StackPanel>

                        <Grid Grid.Column="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="60" />
                                <RowDefinition Height="30" />
                            </Grid.RowDefinitions>
                            <StackPanel Grid.Row="0" Padding="0,4,0,0">
                                <!--  name of the contact.  -->
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="180" />
                                        <ColumnDefinition Width="*" />
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Grid.Column="0"
                                               x:Name="_contactName_"
                                               MaxWidth="180"
                                               Text="{x:Bind _contact._bestName, Mode=OneWay}"
                                               TextTrimming="CharacterEllipsis">
                                        <ToolTipService.ToolTip>
                                            <StackPanel Orientation="Vertical">
                                                <TextBlock Text="{x:Bind _contact._bestName, Mode=OneWay}" />
                                            </StackPanel>
                                        </ToolTipService.ToolTip>
                                    </TextBlock>
                                    <StackPanel Grid.Column="1" Orientation="Horizontal">
                                        <ProgressBar Width="80"
                                                     Padding="4,0,4,0"
                                                     HorizontalAlignment="Right"
                                                     Foreground="#333333"
                                                     IsIndeterminate="True"
                                                     Visibility="{x:Bind _callStatus, Converter={StaticResource _CallStatusToSpinnerVisibility_}, Mode=OneWay}" />
                                        <ProgressBar Width="80"
                                                     Padding="4,0,4,0"
                                                     HorizontalAlignment="Right"
                                                     Canvas.ZIndex="3"
                                                     Foreground="#333333"
                                                     IsIndeterminate="True"
                                                     Visibility="{x:Bind _contact._contactStatus, Converter={StaticResource _ContactStatusNotification_}, Mode=OneWay}" />
                                    </StackPanel>
                                </Grid>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock x:Name="_contactLastTime_"
                                               MaxWidth="180"
                                               FontSize="10"
                                               FontStyle="Italic"
                                               Foreground="#FF333333"
                                               Text="{x:Bind _contact._lastTime, Mode=OneWay}"
                                               TextTrimming="CharacterEllipsis" />
                                </StackPanel>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*" />
                                        <ColumnDefinition Width="*" />
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Grid.Column="0"
                                               x:Uid="_contactRequestSent_"
                                               MaxWidth="200"
                                               FontSize="12"
                                               FontStyle="Italic"
                                               Foreground="#FF339933"
                                               TextTrimming="CharacterEllipsis"
                                               Visibility="{x:Bind _contact._trustStatus, Converter={StaticResource _PartialTrustToVisibility_}, Mode=OneWay}" />
                                    <!--  call action buttons.  -->
                                    <Grid Grid.Column="1"
                                          x:Name="_callActionButtonGrid_"
                                          Margin="5,5,7,5"
                                          HorizontalAlignment="Right">
                                        <Grid.RenderTransform>
                                            <TranslateTransform X="0" Y="-19" />
                                        </Grid.RenderTransform>
                                        <Button Grid.Row="0"
                                                x:Name="_callBtn_"
                                                HorizontalAlignment="Left"
                                                VerticalAlignment="Bottom"
                                                Content="&#xE116;"
                                                FontFamily="Segoe MDL2 Assets"
                                                GotFocus="_callBtn__Click"
                                                Style="{StaticResource FlatRoundListItemButton}"
                                                Visibility="{x:Bind _isCallable, Converter={StaticResource _boolToVisibility_}, Mode=OneWay}">
                                            <ToolTipService.ToolTip>
                                                <TextBlock x:Uid="_tt_video_call_" />
                                            </ToolTipService.ToolTip>
                                        </Button>
                                        <StackPanel Grid.Row="0"
                                                    HorizontalAlignment="Right"
                                                    VerticalAlignment="Bottom"
                                                    Orientation="Horizontal"
                                                    Visibility="Visible">
                                            <Button x:Name="_acceptIncomingCallBtn_"
                                                    HorizontalAlignment="Center"
                                                    VerticalAlignment="Bottom"
                                                    Content="&#xE10B;"
                                                    FontFamily="Segoe MDL2 Assets"
                                                    GotFocus="_acceptIncomingCallBtn__Click"
                                                    Style="{StaticResource FlatRoundListItemButton}"
                                                    Visibility="{x:Bind _callStatus, Converter={StaticResource _IncomingVisibility_}, Mode=OneWay}">
                                                <ToolTipService.ToolTip>
                                                    <TextBlock x:Uid="_tt_accept_call_" />
                                                </ToolTipService.ToolTip>
                                            </Button>
                                            <Button x:Name="_rejectIncomingCallBtn_"
                                                    HorizontalAlignment="Center"
                                                    VerticalAlignment="Bottom"
                                                    Content="&#xE10A;"
                                                    FontFamily="Segoe MDL2 Assets"
                                                    GotFocus="_rejectIncomingCallBtn__Click"
                                                    Style="{StaticResource FlatRoundListItemButton}"
                                                    Visibility="{x:Bind _callStatus, Converter={StaticResource _IncomingVisibility_}, Mode=OneWay}">
                                                <ToolTipService.ToolTip>
                                                    <TextBlock x:Uid="_tt_reject_call_" />
                                                </ToolTipService.ToolTip>
                                            </Button>
                                        </StackPanel>
                                        <Button x:Name="_cancelCallBtn_"
                                                HorizontalAlignment="Right"
                                                VerticalAlignment="Bottom"
                                                Content="&#xE10A;"
                                                FontFamily="Segoe MDL2 Assets"
                                                GotFocus="_cancelCallBtn__Click"
                                                Style="{StaticResource FlatRoundListItemButton}"
                                                Visibility="{x:Bind _callStatus, Converter={StaticResource _OutGoingVisibility_}, Mode=OneWay}">
                                            <ToolTipService.ToolTip>
                                                <TextBlock x:Uid="_tt_cancel_call_" />
                                            </ToolTipService.ToolTip>
                                        </Button>
                                    </Grid>
                                </Grid>
                            </StackPanel>
                        </Grid>
                    </Grid>
                </Grid>
            </Grid>
        </DataTemplate>

        <!--  template for ContactRequestItems.  -->
        <DataTemplate x:Key="ContactRequestItemsTemplate" x:DataType="controls:ContactRequestItem">
            <!--<StackPanel Visibility="{x:Bind _contact, Converter={StaticResource _SelectedAccountToVisibility_}, Mode=OneWay}">-->
            <StackPanel>
                <Grid PointerEntered="ContactRequestItem_Grid_PointerEntered"
                      PointerExited="ContactRequestItem_Grid_PointerExited"
                      PointerMoved="ContactRequestItem_Grid_PointerMoved"
                      PointerReleased="ContactRequestItem_Grid_PointerReleased"
                      Visibility="{x:Bind _isVisible, Mode=OneWay}">
                    <Grid Grid.Row="0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="320" />
Nicolas Jager's avatar
Nicolas Jager committed
500
                        </Grid.ColumnDefinitions>
501
                        <Grid.RowDefinitions>
502 503 504
                            <RowDefinition Height="60" />
                            <!--  use the height of _contactBar_ to make it visible or collapsed.  -->
                            <RowDefinition x:Name="_contactBar_" Height="{x:Bind _contact._contactBarHeight, Mode=OneWay}" />
505 506 507
                        </Grid.RowDefinitions>
                        <Grid Grid.Row="0">
                            <Grid.ColumnDefinitions>
508 509
                                <ColumnDefinition Width="60" />
                                <ColumnDefinition Width="*" MinWidth="200" />
510
                            </Grid.ColumnDefinitions>
511 512 513 514 515 516 517
                            <Grid Grid.Column="0">
                                <Ellipse Width="50"
                                         Height="50"
                                         Margin="5"
                                         HorizontalAlignment="Center"
                                         VerticalAlignment="Center"
                                         Canvas.ZIndex="1">
518
                                    <Ellipse.Fill>
519
                                        <ImageBrush x:Name="_contactAvatar_" ImageSource="{x:Bind _contact._avatarImage, Mode=OneWay}" />
520 521
                                    </Ellipse.Fill>
                                </Ellipse>
522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615
                                <Grid Width="50"
                                      Height="50"
                                      Margin="5"
                                      Canvas.ZIndex="0">
                                    <Ellipse x:Name="_defaultAvatar_" Fill="{x:Bind _contact._avatarColorBrush, Mode=OneWay}" />
                                    <TextBlock HorizontalAlignment="Center"
                                               VerticalAlignment="Center"
                                               FontFamily="Arial"
                                               FontSize="30"
                                               Foreground="White"
                                               Text="{x:Bind _contact._bestName2, Converter={StaticResource _NameToInitialConverter_}, Mode=OneWay}"
                                               TextAlignment="Center" />
                                </Grid>
                            </Grid>
                            <Grid Grid.Column="1">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="60" />
                                    <RowDefinition Height="30" />
                                </Grid.RowDefinitions>
                                <StackPanel Grid.Row="0"
                                            Margin="0,3,0,0"
                                            Orientation="Vertical">
                                    <!--  name of the contact.  -->
                                    <TextBlock x:Name="_contactName_"
                                               MaxWidth="240"
                                               HorizontalAlignment="Left"
                                               FontSize="14"
                                               Text="{x:Bind _contact._name, Mode=OneWay}"
                                               TextTrimming="CharacterEllipsis">
                                        <ToolTipService.ToolTip>
                                            <StackPanel Orientation="Vertical">
                                                <TextBlock Text="{x:Bind _contact._name, Mode=OneWay}" />
                                            </StackPanel>
                                        </ToolTipService.ToolTip>
                                    </TextBlock>
                                    <TextBlock x:Uid="_contactRequestPending_"
                                               MaxWidth="200"
                                               HorizontalAlignment="Left"
                                               FontSize="12"
                                               FontStyle="Italic"
                                               Foreground="#FF339933"
                                               TextTrimming="CharacterEllipsis" />
                                </StackPanel>
                                <StackPanel Grid.Row="0"
                                            Margin="0,0,6,6"
                                            HorizontalAlignment="Right"
                                            VerticalAlignment="Bottom"
                                            Orientation="Horizontal"
                                            Visibility="Visible">
                                    <Button x:Name="_acceptContactRequestBtn_"
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Bottom"
                                            Click="_acceptContactRequestBtn__Click"
                                            Content="&#xE10B;"
                                            FontFamily="Segoe MDL2 Assets"
                                            Style="{StaticResource FlatRoundListItemButton}">
                                        <ToolTipService.ToolTip>
                                            <TextBlock x:Uid="_tt_accept_cr_" />
                                        </ToolTipService.ToolTip>
                                    </Button>
                                    <Button x:Name="_rejectContactRequestBtn_"
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Bottom"
                                            Click="_rejectContactRequestBtn__Click"
                                            Content="&#xE10A;"
                                            FontFamily="Segoe MDL2 Assets"
                                            Style="{StaticResource FlatRoundListItemButton}">
                                        <ToolTipService.ToolTip>
                                            <TextBlock x:Uid="_tt_ingnore_cr_" />
                                        </ToolTipService.ToolTip>
                                    </Button>
                                    <Button x:Name="_blockContactBtn_"
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Bottom"
                                            Click="_blockContactBtn__Click"
                                            Content="&#xE8F8;"
                                            FontFamily="Segoe MDL2 Assets"
                                            Style="{StaticResource FlatRoundListItemButton}">
                                        <ToolTipService.ToolTip>
                                            <StackPanel Orientation="Vertical">
                                                <TextBlock x:Uid="_tt_block_cr_" TextWrapping="Wrap" />
                                                <TextBlock x:Uid="_tt_block_cr_2"
                                                           FontStyle="Italic"
                                                           TextWrapping="Wrap" />
                                            </StackPanel>
                                        </ToolTipService.ToolTip>
                                    </Button>
                                </StackPanel>
                            </Grid>
                        </Grid>
                    </Grid>
                </Grid>
            </StackPanel>
        </DataTemplate>
616

617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635
        <!--  template for BannedContactTemplate.  -->
        <DataTemplate x:Key="BannedContactTemplate" x:DataType="controls:SmartPanelItem">
            <StackPanel>
                <Grid Background="{StaticResource RingBlueHighLight3Brush}" Visibility="{x:Bind _isVisible, Mode=OneWay}">
                    <Grid Grid.Row="0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="260" />
                        </Grid.ColumnDefinitions>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="60" />
                                <ColumnDefinition Width="*" MinWidth="200" />
                            </Grid.ColumnDefinitions>
                            <StackPanel Grid.Column="0" Canvas.ZIndex="1">
                                <Ellipse Width="50"
                                         Height="50"
                                         Margin="5"
                                         HorizontalAlignment="Center"
                                         VerticalAlignment="Center">
636
                                    <Ellipse.Fill>
637
                                        <ImageBrush x:Name="_contactAvatar_" ImageSource="{x:Bind _contact._avatarImage, Mode=OneWay}" />
638 639 640
                                    </Ellipse.Fill>
                                </Ellipse>
                            </StackPanel>
641 642 643 644 645 646 647 648 649 650 651 652 653 654
                            <Grid Grid.Column="0"
                                  Width="50"
                                  Height="50"
                                  Margin="5"
                                  Canvas.ZIndex="0">
                                <Ellipse x:Name="_defaultAvatar_" Fill="{x:Bind _contact._avatarColorBrush, Mode=OneWay}" />
                                <TextBlock HorizontalAlignment="Center"
                                           VerticalAlignment="Center"
                                           FontFamily="Arial"
                                           FontSize="30"
                                           Foreground="White"
                                           Text="{x:Bind _contact._bestName2, Converter={StaticResource _NameToInitialConverter_}, Mode=OneWay}"
                                           TextAlignment="Center" />
                            </Grid>
655 656
                            <Grid Grid.Column="1">
                                <Grid.RowDefinitions>
657
                                    <RowDefinition Height="60" />
658
                                </Grid.RowDefinitions>
659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678
                                <StackPanel Grid.Row="0"
                                            Margin="0,3,0,0"
                                            Orientation="Vertical">
                                    <!--  name of the contact.  -->
                                    <TextBlock x:Name="_contactName_"
                                               MaxWidth="180"
                                               HorizontalAlignment="Left"
                                               FontSize="14"
                                               Text="{x:Bind _contact._name, Mode=OneWay}"
                                               TextTrimming="CharacterEllipsis">
                                        <ToolTipService.ToolTip>
                                            <StackPanel Orientation="Vertical">
                                                <TextBlock Text="{x:Bind _contact._name, Mode=OneWay}" />
                                            </StackPanel>
                                        </ToolTipService.ToolTip>
                                    </TextBlock>
                                </StackPanel>
                                <StackPanel Grid.Row="0"
                                            Margin="0,0,6,6"
                                            HorizontalAlignment="Right"
679
                                            VerticalAlignment="Bottom"
680 681 682
                                            Orientation="Horizontal"
                                            Visibility="Visible">
                                    <Button x:Name="_addBannedContactBtn_"
683 684
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Bottom"
685 686
                                            Click="_addBannedContactBtn__Click"
                                            Content="&#xE8FA;"
687
                                            FontFamily="Segoe MDL2 Assets"
688 689 690 691 692 693 694
                                            Style="{StaticResource FlatRoundListItemButton}">
                                        <ToolTipService.ToolTip>
                                            <StackPanel Orientation="Vertical">
                                                <TextBlock x:Uid="_tt_add_banned_" />
                                            </StackPanel>
                                        </ToolTipService.ToolTip>
                                    </Button>
695 696
                                </StackPanel>
                            </Grid>
Nicolas Jager's avatar
Nicolas Jager committed
697 698 699
                        </Grid>
                    </Grid>
                </Grid>
700
            </StackPanel>
701
        </DataTemplate>
Nicolas Jager's avatar
Nicolas Jager committed
702 703
    </Page.Resources>

Nicolas Jager's avatar
Nicolas Jager committed
704
    <Grid>
Nicolas Jager's avatar
Nicolas Jager committed
705
        <Grid.RowDefinitions>
706 707 708 709 710 711
            <!--  connectivity notification.  -->
            <RowDefinition x:Name="_networkConnectivityNotificationRow_" Height="32" />
            <!--  where accounts and share menu drop down are.  -->
            <RowDefinition Height="auto" />
            <!--  where contacts and settings are.  -->
            <RowDefinition Height="*" />
Nicolas Jager's avatar
Nicolas Jager committed
712
        </Grid.RowDefinitions>
713 714 715 716 717 718 719 720 721
        <Grid Grid.Row="0" Background="#FFFF4343">
            <TextBlock x:Uid="_network_unavailable_"
                       HorizontalAlignment="Center"
                       VerticalAlignment="Center"
                       FontSize="12"
                       Foreground="White" />
        </Grid>
        <!--  drop down menus.  -->
        <Grid Grid.Row="1" Background="{StaticResource RingBlueMidBrush}">
Nicolas Jager's avatar
Nicolas Jager committed
722
            <Grid.RowDefinitions>
723 724 725 726
                <!--  where the selected account is shown.  -->
                <RowDefinition x:Name="_selectedAccountRow_" Height="60" />
                <!--  where the drop down menus are shown.  -->
                <RowDefinition Height="auto" />
Nicolas Jager's avatar
Nicolas Jager committed
727
            </Grid.RowDefinitions>
728
            <!--  selected account.  -->
Nicolas Jager's avatar
Nicolas Jager committed
729 730
            <Grid Grid.Row="0">
                <Grid.ColumnDefinitions>
731 732
                    <ColumnDefinition x:Name="_selectedAccountAvatarColumn_" Width="60" />
                    <ColumnDefinition Width="*" />
Nicolas Jager's avatar
Nicolas Jager committed
733
                </Grid.ColumnDefinitions>
734 735 736 737 738 739 740 741
                <Ellipse Grid.Column="0"
                         x:Name="_selectedAccountAvatarContainer_"
                         Width="50"
                         Height="50"
                         Margin="0"
                         PointerEntered="_selectedAccountAvatarContainer__PointerEntered"
                         PointerExited="_selectedAccountAvatarContainer__PointerExited"
                         PointerReleased="_selectedAccountAvatarContainer__PointerReleased">
742
                    <Ellipse.Fill>
743
                        <ImageBrush x:Name="_selectedAccountAvatar_" ImageSource="Assets\TESTS\contactAvatar.png" />
744 745
                    </Ellipse.Fill>
                </Ellipse>
746 747 748 749 750 751 752 753 754 755 756
                <Ellipse Grid.Column="0"
                         x:Name="_shaderPhotoboothIcon_"
                         Width="50"
                         Height="50"
                         Margin="5"
                         Fill="Black"
                         IsHitTestVisible="False"
                         Opacity="0.3"
                         Visibility="Collapsed" />
                <TextBlock Grid.Column="0"
                           x:Name="_photoboothIcon_"
757 758
                           IsHitTestVisible="False"
                           Style="{StaticResource TextSegoeStyle-Centered-40pt-white}"
759 760 761
                           Text="&#xE722;"
                           Visibility="Collapsed" />
                <StackPanel Grid.Column="1" VerticalAlignment="Bottom">
Nicolas Jager's avatar
Nicolas Jager committed
762
                    <StackPanel Orientation="Horizontal">
763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862
                        <TextBlock x:Name="_selectedAccountName_"
                                   MaxWidth="125"
                                   Margin="4,6,6,4"
                                   VerticalAlignment="Center"
                                   FontSize="18px"
                                   FontWeight="SemiLight"
                                   Style="{StaticResource TextStyle2}"
                                   Text="[TEXT MISSING]"
                                   TextTrimming="CharacterEllipsis" />
                        <TextBlock x:Name="_selectedAccountUsername_"
                                   MaxWidth="120"
                                   Margin="4,6,6,4"
                                   VerticalAlignment="Center"
                                   FontSize="18px"
                                   FontWeight="Light"
                                   Foreground="#FFF0F0F0"
                                   Style="{StaticResource TextStyle2}"
                                   Text=""
                                   TextTrimming="CharacterEllipsis" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <!--  contacts list  -->
                        <Grid>
                            <ToggleButton x:Name="_contactsListMenuButton_"
                                          VerticalAlignment="Bottom"
                                          Click="_contactsListMenuButton__Click"
                                          Content="&#xe716;"
                                          Style="{StaticResource FlatToggleButton}">
                                <ToolTipService.ToolTip>
                                    <TextBlock x:Uid="_tt_contact_list_menu_" />
                                </ToolTipService.ToolTip>
                            </ToggleButton>
                            <Ellipse x:Name="_unreadMessagesCircle_"
                                     Width="8"
                                     Height="8"
                                     Fill="OrangeRed"
                                     IsHitTestVisible="False"
                                     Stroke="OrangeRed"
                                     StrokeThickness="1"
                                     Visibility="Collapsed">
                                <Ellipse.RenderTransform>
                                    <TranslateTransform X="11" Y="-8" />
                                </Ellipse.RenderTransform>
                                <Ellipse.Triggers>
                                    <EventTrigger>
                                        <BeginStoryboard>
                                            <Storyboard x:Name="_unreadMessagesAnimation_">
                                                <DoubleAnimation AutoReverse="True"
                                                                 RepeatBehavior="Forever"
                                                                 Storyboard.TargetName="_unreadMessagesCircle_"
                                                                 Storyboard.TargetProperty="Opacity"
                                                                 From="1.0"
                                                                 To="0.4"
                                                                 Duration="0:0:1" />
                                            </Storyboard>
                                        </BeginStoryboard>
                                    </EventTrigger>
                                </Ellipse.Triggers>
                            </Ellipse>
                        </Grid>
                        <!--  contact request list  -->
                        <Grid>
                            <ToggleButton x:Name="_contactRequestListMenuButton_"
                                          VerticalAlignment="Bottom"
                                          Click="_contactRequestListMenuButton__Click"
                                          Content="&#xe8fa;"
                                          Style="{StaticResource FlatToggleButton}">
                                <ToolTipService.ToolTip>
                                    <TextBlock x:Uid="_tt_cr_list_menu_" />
                                </ToolTipService.ToolTip>
                            </ToggleButton>
                            <Ellipse x:Name="_unreadContactRequestsCircle_"
                                     Width="8"
                                     Height="8"
                                     Fill="OrangeRed"
                                     IsHitTestVisible="False"
                                     Stroke="OrangeRed"
                                     StrokeThickness="1"
                                     Visibility="Collapsed">
                                <Ellipse.RenderTransform>
                                    <TranslateTransform X="11" Y="-8" />
                                </Ellipse.RenderTransform>
                                <Ellipse.Triggers>
                                    <EventTrigger>
                                        <BeginStoryboard>
                                            <Storyboard x:Name="_unreadContactRequestsAnimation_">
                                                <DoubleAnimation AutoReverse="True"
                                                                 RepeatBehavior="Forever"
                                                                 Storyboard.TargetName="_unreadContactRequestsCircle_"
                                                                 Storyboard.TargetProperty="Opacity"
                                                                 From="1.0"
                                                                 To="0.4"
                                                                 Duration="0:0:1" />
                                            </Storyboard>
                                        </BeginStoryboard>
                                    </EventTrigger>
                                </Ellipse.Triggers>
                            </Ellipse>
                        </Grid>
                        <!--  account menu  -->
863 864
                        <Grid>
                            <ToggleButton x:Name="_accountsMenuButton_"
865 866 867 868 869 870 871
                                          VerticalAlignment="Bottom"
                                          Click="_accountsMenuButton__Click"
                                          Content="&#xE168;"
                                          Style="{StaticResource FlatToggleButton}">
                                <ToolTipService.ToolTip>
                                    <TextBlock x:Uid="_tt_account_list_menu_" />
                                </ToolTipService.ToolTip>
872
                            </ToggleButton>
873 874 875 876 877 878 879 880
                            <Ellipse x:Name="_unreadAccountNotificationsCircle_"
                                     Width="8"
                                     Height="8"
                                     Fill="OrangeRed"
                                     IsHitTestVisible="False"
                                     Stroke="OrangeRed"
                                     StrokeThickness="1"
                                     Visibility="Collapsed">
881
                                <Ellipse.RenderTransform>
882
                                    <TranslateTransform X="11" Y="-8" />
883 884 885 886 887
                                </Ellipse.RenderTransform>
                                <Ellipse.Triggers>
                                    <EventTrigger>
                                        <BeginStoryboard>
                                            <Storyboard x:Name="_unreadAccountMessagesAnimation_">
888 889 890 891 892 893 894
                                                <DoubleAnimation AutoReverse="True"
                                                                 RepeatBehavior="Forever"
                                                                 Storyboard.TargetName="_unreadAccountNotificationsCircle_"
                                                                 Storyboard.TargetProperty="Opacity"
                                                                 From="1.0"
                                                                 To="0.4"
                                                                 Duration="0:0:1" />
895 896 897 898 899 900
                                            </Storyboard>
                                        </BeginStoryboard>
                                    </EventTrigger>
                                </Ellipse.Triggers>
                            </Ellipse>
                        </Grid>
901
                        <!--  _devicesMenuButton_  -->
902 903
                        <ToggleButton x:Name="_devicesMenuButton_"
                                      VerticalAlignment="Bottom"
904
                                      Click="_devicesMenuButton__Click"
905
                                      Content="&#xE836;"
906 907 908 909 910 911
                                      Style="{StaticResource FlatToggleButton}">
                            <ToolTipService.ToolTip>
                                <TextBlock x:Uid="_tt_devices_list_menu_" />
                            </ToolTipService.ToolTip>
                        </ToggleButton>
                        <!--  _settingsMenuButton_  -->
atraczyk's avatar
atraczyk committed
912 913
                        <ToggleButton x:Name="_settingsMenuButton_"
                                      VerticalAlignment="Bottom"
914 915 916 917 918 919 920 921 922
                                      Click="_settingsMenuButton__Click"
                                      Content="&#xE90F;"
                                      Style="{StaticResource FlatToggleButton}">
                            <ToolTipService.ToolTip>
                                <StackPanel Orientation="Vertical">
                                    <TextBlock x:Uid="_tt_settings_menu_" />
                                </StackPanel>
                            </ToolTipService.ToolTip>
                        </ToggleButton>
Nicolas Jager's avatar
Nicolas Jager committed
923 924 925 926
                    </StackPanel>
                </StackPanel>
            </Grid>

927 928 929 930
            <!--
                sub menus like the accounts list or the share menu are just below, technicaly they are nested inside the
                same row. To summon them we use the visibility of their own grid, by linking it to a toggle button
            -->
Nicolas Jager's avatar
Nicolas Jager committed
931

Nicolas Jager's avatar
Nicolas Jager committed
932
        </Grid>
933 934 935 936 937 938 939 940

        <!--  smartList and settings.  -->
        <Grid Grid.Row="2" Background="{StaticResource RingBlueLightBrush}">
            <!--  accounts menu.  -->
            <Grid Grid.Row="0"
                  x:Name="_accountsMenuGrid_"
                  Background="{StaticResource RingBlueLightBrush}"
                  Visibility="Collapsed">
Nicolas Jager's avatar
Nicolas Jager committed
941
                <Grid.RowDefinitions>
942 943 944
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="30" />
Nicolas Jager's avatar
Nicolas Jager committed
945
                </Grid.RowDefinitions>
946 947 948 949 950 951
                <TextBlock Grid.Row="0"
                           x:Uid="_accountsTitle_"
                           Margin="12,6,4,8"
                           Style="{StaticResource SubheaderTextBlockStyle}" />
                <ScrollViewer Grid.Row="1"
                              x:Name="_accountsListScrollView_"
952 953 954
                              ScrollViewer.VerticalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollMode="Enabled">
                    <ListBox x:Name="_accountsList_"
955 956 957 958 959
                             Width="320"
                             Background="{StaticResource RingBlueLightBrush}"
                             ItemContainerStyle="{StaticResource contactsListBoxStyle}"
                             ItemTemplate="{StaticResource AccountListItemsTemplate}"
                             SelectionChanged="_accountList__SelectionChanged" />
960
                </ScrollViewer>
961 962 963
                <StackPanel Grid.Row="2"
                            Background="{StaticResource RingBlueMidBrush}"
                            Orientation="Horizontal">
964 965
                    <Button x:Name="_addAccountBtn_"
                            HorizontalAlignment="Center"
966
                            VerticalAlignment="Center"
967
                            Click="_addAccountBtn__Click"
968 969 970 971 972 973
                            Content="&#xE948;"
                            Style="{StaticResource AccountMenuButtonStyle}">
                        <ToolTipService.ToolTip>
                            <TextBlock x:Uid="_tt_add_account_" />
                        </ToolTipService.ToolTip>
                    </Button>
974 975
                    <Button x:Name="_linkThisDeviceBtn_"
                            HorizontalAlignment="Center"
976
                            VerticalAlignment="Center"
977
                            Click="_linkThisDeviceBtn__Click"
978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994
                            Content="&#xE836;"
                            Style="{StaticResource AccountMenuButtonStyle}">
                        <ToolTipService.ToolTip>
                            <TextBlock x:Uid="_tt_link_device_" />
                        </ToolTipService.ToolTip>
                    </Button>
                    <Button x:Name="_deleteAccountButton_"
                            Width="106"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Click="_deleteAccountButton__Click"
                            Content="&#xE74D;"
                            Style="{StaticResource AccountMenuButtonStyle}">
                        <ToolTipService.ToolTip>
                            <TextBlock x:Uid="_tt_delete_account_" />
                        </ToolTipService.ToolTip>
                    </Button>
995
                </StackPanel>
Nicolas Jager's avatar
Nicolas Jager committed
996
            </Grid>
997 998 999 1000 1001
            <!--  account edition menu.  -->
            <Grid Grid.Row="0"
                  x:Name="_accountEditionGrid_"
                  Background="{StaticResource RingBlueLightBrush}"
                  Visibility="Collapsed">
Nicolas Jager's avatar
Nicolas Jager committed
1002
                <Grid.RowDefinitions>
1003 1004 1005
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="30" />
Nicolas Jager's avatar
Nicolas Jager committed
1006
                </Grid.RowDefinitions>
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020
                <TextBlock Grid.Row="0"
                           x:Uid="_accountEditionTitle_"
                           Margin="12,6,4,8"
                           Style="{StaticResource SubheaderTextBlockStyle}" />
                <ScrollViewer Grid.Row="1" x:Name="_scrollViewerEditionMenu_">
                    <StackPanel Padding="0,10,0,20"
                                Background="{StaticResource RingBlueLightBrush}"
                                Orientation="Vertical">
                        <!--  enabled  -->
                        <StackPanel Margin="20,20,10,10" Orientation="Horizontal">
                            <TextBlock Margin="0,0,10,0"
                                       Style="{StaticResource TextSegoeStyle-20pt-black}"
                                       Text="&#xED5C;" />
                            <TextBlock x:Uid="_accountsEnabled_" />
Nicolas Jager's avatar
Nicolas Jager committed
1021
                        </StackPanel>
1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032
                        <ToggleSwitch x:Name="_enabledState_" Margin="30,0,20,10" />
                        <!--  alias sub menu.  -->
                        <StackPanel Margin="10,30,0,10"
                                    Padding="10,0"
                                    Orientation="Horizontal">
                            <TextBlock Margin="0,0,10,0"
                                       Style="{StaticResource TextSegoeStyle-20pt-black}"
                                       Text="&#xE8EC;" />
                            <TextBlock x:Uid="_accountsAlias_" />
                        </StackPanel>
                        <Grid Margin="10" Padding="10,0">
Nicolas Jager's avatar
Nicolas Jager committed
1033
                            <Grid.ColumnDefinitions>
1034 1035
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="25" />
Nicolas Jager's avatar
Nicolas Jager committed
1036
                            </Grid.ColumnDefinitions>
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053
                            <TextBox Grid.Column="0"
                                     x:Name="_accountAliasTextBoxEdition_"
                                     x:Uid="_accountAliasTextBoxUid_"
                                     Margin="10,0,10,0"
                                     IsSpellCheckEnabled="False"
                                     TextChanged="_accountAliasTextBoxEdition__TextChanged" />
                            <TextBlock Grid.Column="1"
                                       x:Name="_accountAliasValidEdition_"
                                       Padding="10,0"
                                       Style="{StaticResource TextSegoeStyle-20pt-green}"
                                       Text="&#xE10B;"
                                       Visibility="Collapsed" />
                            <TextBlock Grid.Column="1"
                                       x:Name="_accountAliasInvalidEdition_"
                                       Padding="10,0"
                                       Style="{StaticResource TextSegoeStyle-20pt-red}"
                                       Text="&#xE10A;" />
Nicolas Jager's avatar
Nicolas Jager committed
1054
                        </Grid>
1055 1056 1057 1058 1059 1060 1061 1062 1063 1064
                        <!--  edition sub menu.  -->
                        <StackPanel x:Name="_ringStackEdition_"
                                    Margin="0,10,0,0"
                                    Padding="10,0">
                            <!--  register account on blockachain  -->
                            <StackPanel Margin="10,20,0,10" Orientation="Horizontal">
                                <TextBlock Margin="0,0,10,0"
                                           Style="{StaticResource TextSegoeStyle-20pt-black}"
                                           Text="&#xE167;" />
                                <TextBlock x:Uid="_accountsRegisterPublicName_" />
Nicolas Jager's avatar
Nicolas Jager committed
1065 1066
                            </StackPanel>
                            <ToggleSwitch x:Name="_RegisterStateEdition_"
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076
                                          Margin="20,0,20,10"
                                          IsOn="True"
                                          Toggled="_RegisterStateEdition__Toggled" />
                            <TextBlock x:Name="_whatWillHappenEdition_"
                                       x:Uid="_whatWillHappenEditionUid_"
                                       Margin="20,10,0,0"
                                       Style="{StaticResource BodyTextBlockStyle}" />
                            <HyperlinkButton x:Uid="_accountsEditionLearnMore_"
                                             Margin="20,0,0,10"
                                             NavigateUri="http://ring.cx" />
Nicolas Jager's avatar
Nicolas Jager committed
1077 1078
                            <Grid Margin="10">
                                <Grid.ColumnDefinitions>
1079 1080
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="25" />
Nicolas Jager's avatar
Nicolas Jager committed
1081
                                </Grid.ColumnDefinitions>
1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098
                                <TextBox Grid.Column="0"
                                         x:Name="_usernameTextBoxEdition_"
                                         x:Uid="_usernameTextBoxEditionUid_"
                                         Margin="10,0,10,0"
                                         IsSpellCheckEnabled="False"
                                         KeyUp="_usernameTextBoxEdition__KeyUp" />
                                <TextBlock Grid.Column="1"
                                           x:Name="_usernameValidEdition_"
                                           Padding="10,0"
                                           Style="{StaticResource TextSegoeStyle-20pt-green}"
                                           Text="&#xE10B;"
                                           Visibility="Collapsed" />
                                <TextBlock Grid.Column="1"
                                           x:Name="_usernameInvalidEdition_"
                                           Padding="10,0"
                                           Style="{StaticResource TextSegoeStyle-20pt-red}"
                                           Text="&#xE10A;" />
Nicolas Jager's avatar
Nicolas Jager committed
1099 1100
                            </Grid>
                            <Button x:Name="_registerOnBlockchainEdition_"
1101 1102 1103
                                    x:Uid="_registerOnBlockchainEditionUid_"
                                    Click="_registerOnBlockchainEdition__Click"
                                    Visibility="Collapsed" />
Nicolas Jager's avatar
Nicolas Jager committed
1104
                        </StackPanel>
1105 1106
                        <!--  SIP accounts section  -->
                        <!--  SIP parameters.  -->
Nicolas Jager's avatar
Nicolas Jager committed
1107
                        <StackPanel x:Name="_sipAccountStackEdition_"
1108 1109 1110 1111 1112 1113
                                    Margin="0,10,0,0"
                                    Padding="10,0"
                                    Visibility="Collapsed">
                            <StackPanel Margin="10" Orientation="Horizontal">
                                <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}" Text="&#xE717;" />
                                <TextBlock Margin="10" Text="SIP account parameters" />
Nicolas Jager's avatar
Nicolas Jager committed
1114
                            </StackPanel>
1115 1116 1117 1118 1119 1120 1121 1122
                            <TextBox x:Name="_sipHostnameEdition_"
                                     x:Uid="_sipHostnameEditionUid_"
                                     Margin="20,10,20,10"
                                     IsSpellCheckEnabled="False" />
                            <TextBox x:Name="_sipUsernameEditionTextBox_"
                                     x:Uid="_sipUsernameEditionTextBoxUid_"
                                     Margin="20,10,20,10"
                                     IsSpellCheckEnabled="False" />
Nicolas Jager's avatar
Nicolas Jager committed
1123
                            <PasswordBox x:Name="_sipPasswordEdition_"
1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136
                                         x:Uid="_sipPasswordEditionUid_"
                                         Margin="20,10,20,10" />
                        </StackPanel>
                        <!--  END SIP accounts section  -->
                        <!--  other settings  -->
                        <!--  auto answer  -->
                        <StackPanel Margin="10,20,10,0"
                                    Padding="10,0"
                                    Orientation="Horizontal">
                            <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}" Text="&#xE8D0;" />
                            <TextBlock x:Uid="_accountsAutoAnswer_"
                                       Margin="10,20,10,10"
                                       TextWrapping="Wrap" />
Nicolas Jager's avatar
Nicolas Jager committed
1137
                        </StackPanel>
1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207
                        <ToggleSwitch x:Name="_autoAnswerToggle_"
                                      Margin="30,0,20,10"
                                      Padding="10,0"
                                      IsOn="False" />
                        <!--  RING accounts section  -->
                        <StackPanel x:Name="_ringStackEdition2_" Visibility="Collapsed">
                            <!--  incognito contacts  -->
                            <StackPanel Margin="10,20,10,0"
                                        Padding="10,0"
                                        Orientation="Horizontal">
                                <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}" Text="&#xE8D7;" />
                                <TextBlock x:Uid="_accountsIncognitoContacts_"
                                           Width="240"
                                           Margin="10"
                                           TextWrapping="Wrap" />
                            </StackPanel>
                            <ToggleSwitch x:Name="_dhtPublicInCallsToggle_"
                                          Margin="30,0,20,10"
                                          Padding="10,0"
                                          IsOn="True" />
                            <!--  turn settings  -->
                            <StackPanel Margin="10,20,10,0"
                                        Padding="10,0"
                                        Orientation="Horizontal">
                                <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}" Text="&#xE8CE;" />
                                <TextBlock x:Uid="_accountsTurnEnabled_"
                                           Width="240"
                                           Margin="10"
                                           TextWrapping="Wrap" />
                            </StackPanel>
                            <ToggleSwitch x:Name="_turnEnabledToggle_"
                                          Margin="30,0,20,10"
                                          Padding="10,0"
                                          IsOn="True"
                                          Toggled="_turnEnabledToggle__Toggled" />
                            <TextBox x:Name="_turnEditionTextBox_"
                                     x:Uid="_turnEditionTextBoxUid_"
                                     Margin="30,10,60,10"
                                     IsSpellCheckEnabled="False" />
                            <!--  upnp state  -->
                            <StackPanel Margin="20,20,10,0" Orientation="Horizontal">
                                <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}" Text="&#xE15E;" />
                                <TextBlock x:Uid="_accountsUPnP_" Margin="10" />
                            </StackPanel>
                            <ToggleSwitch x:Name="_upnpState_" Margin="30,0,20,10" />
                            <!--  banned list  -->
                            <StackPanel Margin="0,10,0,0">
                                <StackPanel Margin="10"
                                            Padding="10,0"
                                            Orientation="Horizontal">
                                    <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}" Text="&#xE8F8;" />
                                    <HyperlinkButton x:Name="_accountsShowBannedList_"
                                                     Margin="10,0,0,10"
                                                     Click="_showBannedList__PointerPressed"
                                                     Content="Show banned contact list" />
                                </StackPanel>
                                <Grid x:Name="_bannedContactListGrid_" Visibility="Collapsed">
                                    <StackPanel>
                                        <ListBox x:Name="_bannedContactList_"
                                                 MaxWidth="260"
                                                 Margin="0"
                                                 Padding="0"
                                                 Background="{StaticResource RingBlueLightBrush}"
                                                 ItemContainerStyle="{StaticResource bannedContactListBoxStyle}"
                                                 ItemTemplate="{StaticResource BannedContactTemplate}"
                                                 ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                 ScrollViewer.HorizontalScrollMode="Disabled" />
                                    </StackPanel>
                                </Grid>
                            </StackPanel>
Nicolas Jager's avatar
Nicolas Jager committed
1208
                        </StackPanel>
1209
                        <!--  END RING accounts section  -->
Nicolas Jager's avatar
Nicolas Jager committed
1210 1211
                    </StackPanel>
                </ScrollViewer>
1212 1213 1214 1215 1216
                <!--  buttons yes/no to accept the modification.  -->
                <Grid Grid.Row="2" Background="{StaticResource RingBlueMidBrush}">
                    <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
                        <Button Grid.Row="1"
                                x:Name="_acceptAccountModification_"
Nicolas Jager's avatar
Nicolas Jager committed
1217 1218
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
1219 1220 1221 1222 1223 1224 1225 1226 1227
                                Click="_acceptAccountModification__Click"
                                Content="&#xE081;"
                                Style="{StaticResource ButtonStyle5}">
                            <ToolTipService.ToolTip>
                                <TextBlock x:Uid="_tt_accept_account_mod_" />
                            </ToolTipService.ToolTip>
                        </Button>
                        <Button Grid.Row="1"
                                x:Name="_cancelAccountModification_"
Nicolas Jager's avatar
Nicolas Jager committed
1228
                                HorizontalAlignment="Center"
1229
                                VerticalAlignment="Center"
Nicolas Jager's avatar
Nicolas Jager committed
1230
                                Click="_cancelAccountModification__Click"
1231 1232 1233 1234 1235 1236
                                Content="&#xE106;"
                                Style="{StaticResource ButtonStyle5}">
                            <ToolTipService.ToolTip>
                                <TextBlock x:Uid="_tt_cancel_account_mod_" />
                            </ToolTipService.ToolTip>
                        </Button>
Nicolas Jager's avatar
Nicolas Jager committed
1237 1238 1239
                    </StackPanel>
                </Grid>
            </Grid>
1240 1241 1242 1243 1244
            <!--  account creation menu.  -->
            <Grid Grid.Row="0"
                  x:Name="_accountCreationMenuGrid_"
                  Background="{StaticResource RingBlueLightBrush}"
                  Visibility="Collapsed">
Nicolas Jager's avatar
Nicolas Jager committed
1245
                <Grid.RowDefinitions>
1246 1247 1248
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="30" />
Nicolas Jager's avatar
Nicolas Jager committed
1249
                </Grid.RowDefinitions>
1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263
                <TextBlock Grid.Row="0"
                           x:Uid="_accountsCreation_"
                           Margin="12,6,4,8"
                           Style="{StaticResource SubheaderTextBlockStyle}" />
                <ScrollViewer Grid.Row="1" x:Name="_accountCreationMenuScrollViewer_">
                    <StackPanel Padding="0,10,0,20"
                                Background="{StaticResource RingBlueLightBrush}"
                                Orientation="Vertical">
                        <!--  account type chooser  -->
                        <StackPanel Margin="20,20,0,10" Orientation="Horizontal">
                            <TextBlock Margin="0,0,10,0"
                                       Style="{StaticResource TextSegoeStyle-20pt-black}"
                                       Text="&#xE168;" />
                            <TextBlock x:Uid="_accountsType_" />
1264
                        </StackPanel>
1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283
                        <ComboBox x:Name="_accountTypeComboBox_"
                                  Width="195"
                                  Margin="30,10,20,10"
                                  VerticalAlignment="Center"
                                  SelectedIndex="0"
                                  SelectionChanged="_accountTypeComboBox__SelectionChanged">
                            <ComboBoxItem Content="Ring" />
                            <ComboBoxItem Content="Sip" />
                        </ComboBox>
                        <!--  alias sub menu.  -->
                        <StackPanel Margin="10,30,0,10"
                                    Padding="10,0"
                                    Orientation="Horizontal">
                            <TextBlock Margin="0,0,10,0"
                                       Style="{StaticResource TextSegoeStyle-20pt-black}"
                                       Text="&#xE8EC;" />
                            <TextBlock x:Uid="_accountsAlias_" />
                        </StackPanel>
                        <Grid Margin="10" Padding="10,0">
Nicolas Jager's avatar
Nicolas Jager committed
1284
                            <Grid.ColumnDefinitions>
1285 1286
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="25" />
Nicolas Jager's avatar
Nicolas Jager committed
1287
                            </Grid.ColumnDefinitions>
1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304
                            <TextBox Grid.Column="0"
                                     x:Name="_accountAliasTextBox_"
                                     x:Uid="_accountAliasTextBoxUid_"
                                     Margin="10,0,10,0"
                                     IsSpellCheckEnabled="False"
                                     TextChanged="_accountAliasTextBox__TextChanged" />
                            <TextBlock Grid.Column="1"
                                       x:Name="_accountAliasValid_"
                                       Padding="10,0"
                                       Style="{StaticResource TextSegoeStyle-20pt-green}"
                                       Text="&#xE10B;"
                                       Visibility="Collapsed" />
                            <TextBlock Grid.Column="1"
                                       x:Name="_accountAliasInvalid_"
                                       Padding="10,0"
                                       Style="{StaticResource TextSegoeStyle-20pt-red}"
                                       Text="&#xE10A;" />
Nicolas Jager's avatar
Nicolas Jager committed
1305
                        </Grid>
1306
                        <!--  RING account.  -->
Nicolas Jager's avatar
Nicolas Jager committed
1307
                        <StackPanel x:Name="_ringAccountCreationStack_"
1308
                                    Margin="20,10,10,10"
Nicolas Jager's avatar
Nicolas Jager committed
1309
                                    Visibility="Visible">
1310 1311 1312 1313 1314 1315
                            <!--  register account on blockachain  -->
                            <StackPanel Margin="0,20" Orientation="Horizontal">
                                <TextBlock Margin="0,0,10,0"
                                           Style="{StaticResource TextSegoeStyle-20pt-black}"
                                           Text="&#xE167;" />
                                <TextBlock x:Uid="_accountsRegisterPublicName_" />
Nicolas Jager's avatar
Nicolas Jager committed
1316 1317
                            </StackPanel>
                            <ToggleSwitch x:Name="_RegisterState_"
1318 1319 1320 1321 1322 1323 1324 1325 1326 1327
                                          Margin="10,0,0,10"
                                          IsOn="True"
                                          Toggled="_RegisterState__Toggled" />
                            <TextBlock x:Name="_whatWillHappen_"
                                       x:Uid="_whatWillHappenEditionUid_"
                                       Margin="10,10,0,0"
                                       Style="{StaticResource BodyTextBlockStyle}" />
                            <HyperlinkButton Margin="10,0,0,10"
                                             Content="Learn more"
                                             NavigateUri="http://ring.cx" />
Nicolas Jager's avatar
Nicolas Jager committed
1328 1329
                            <Grid Margin="10">
                                <Grid.ColumnDefinitions>
1330 1331
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="25" />
Nicolas Jager's avatar
Nicolas Jager committed
1332
                                </Grid.ColumnDefinitions>
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349
                                <TextBox Grid.Column="0"
                                         x:Name="_usernameTextBox_"
                                         x:Uid="_usernameTextBoxEditionUid_"
                                         Margin="0,0,10,0"
                                         IsSpellCheckEnabled="False"
                                         KeyUp="_usernameTextBox__KeyUp" />
                                <TextBlock Grid.Column="1"
                                           x:Name="_usernameValid_"
                                           Padding="10,0"
                                           Style="{StaticResource TextSegoeStyle-20pt-green}"
                                           Text="&#xE10B;"
                                           Visibility="Collapsed" />
                                <TextBlock Grid.Column="1"
                                           x:Name="_usernameInvalid_"
                                           Padding="10,0"
                                           Style="{StaticResource TextSegoeStyle-20pt-red}"
                                           Text="&#xE10A;" />
Nicolas Jager's avatar
Nicolas Jager committed
1350
                            </Grid>
1351 1352 1353 1354 1355 1356
                            <!--  password sub menu.  -->
                            <StackPanel Margin="0,20" Orientation="Horizontal">
                                <TextBlock Margin="0,0,10,0"
                                           Style="{StaticResource TextSegoeStyle-20pt-black}"
                                           Text="&#xE8D7;" />
                                <TextBlock Text="Password" />
Nicolas Jager's avatar
Nicolas Jager committed
1357 1358 1359
                            </StackPanel>
                            <Grid Margin="10">
                                <Grid.ColumnDefinitions>
1360 1361
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="25" />
Nicolas Jager's avatar
Nicolas Jager committed
1362
                                </Grid.ColumnDefinitions>
1363 1364 1365 1366 1367 1368 1369
                                <PasswordBox Grid.Column="0"
                                             x:Name="_ringPasswordBoxAccountCreation_"
                                             x:Uid="_ringPasswordBoxAccountCreationUid_"
                                             Margin="0,0,10,0"
                                             PasswordChanged="_passwordBoxAccountCreationCheck__PasswordChanged" />
                                <TextBlock Grid.Column="1"
                                           x:Name="_passwordValid_"
Nicolas Jager's avatar
Nicolas Jager committed
1370 1371
                                           Padding="10,0"
                                           Style="{StaticResource TextSegoeStyle-20pt-green}"
1372 1373 1374 1375
                                           Text="&#xE10B;"
                                           Visibility="Collapsed" />
                                <TextBlock Grid.Column="1"
                                           x:Name="_passwordInvalid_"
Nicolas Jager's avatar
Nicolas Jager committed
1376 1377
                                           Padding="10,0"
                                           Style="{StaticResource TextSegoeStyle-20pt-red}"
1378
                                           Text="&#xE10A;" />
Nicolas Jager's avatar
Nicolas Jager committed
1379 1380 1381
                            </Grid>
                            <Grid Margin="10">
                                <Grid.ColumnDefinitions>
1382 1383
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="25" />
Nicolas Jager's avatar
Nicolas Jager committed
1384
                                </Grid.ColumnDefinitions>
1385 1386 1387 1388 1389 1390 1391
                                <PasswordBox Grid.Column="0"
                                             x:Name="_ringPasswordBoxAccountCreationCheck_"
                                             x:Uid="_ringPasswordBoxAccountCreationCheckUid_"
                                             Margin="0,0,10,0"
                                             PasswordChanged="_passwordBoxAccountCreationCheck__PasswordChanged" />
                                <TextBlock Grid.Column="1"
                                           x:Name="_passwordCheckValid_"
Nicolas Jager's avatar
Nicolas Jager committed
1392 1393
                                           Padding="10,0"
                                           Style="{StaticResource TextSegoeStyle-20pt-green}"
1394 1395 1396 1397
                                           Text="&#xE10B;"
                                           Visibility="Collapsed" />
                                <TextBlock Grid.Column="1"
                                           x:Name="_passwordCheckInvalid_"
Nicolas Jager's avatar
Nicolas Jager committed
1398 1399
                                           Padding="10,0"
                                           Style="{StaticResource TextSegoeStyle-20pt-red}"
1400
                                           Text="&#xE10A;" />
Nicolas Jager's avatar
Nicolas Jager committed
1401 1402
                            </Grid>
                        </StackPanel>
1403
                        <!--  SIP account.  -->
Nicolas Jager's avatar
Nicolas Jager committed
1404
                        <StackPanel x:Name="_sipAccountCreationStack_"
1405
                                    Padding="10"
Nicolas Jager's avatar
Nicolas Jager committed
1406
                                    Visibility="Collapsed">
1407 1408 1409
                            <StackPanel Margin="10,10,10,0" Orientation="Horizontal">
                                <TextBlock Style="{StaticResource TextSegoeStyle-20pt-black}" Text="&#xE717;" />
                                <TextBlock x:Uid="_accountsSIPParameters_" Margin="10" />
Nicolas Jager's avatar
Nicolas Jager committed
1410
                            </StackPanel>
1411 1412 1413 1414 1415 1416 1417 1418
                            <TextBox x:Name="_sipHostnameTextBox_"
                                     x:Uid="_sipHostnameEditionUid_"
                                     Margin="20,10,20,10"
                                     IsSpellCheckEnabled="False" />
                            <TextBox x:Name="_sipUsernameTextBox_"
                                     x:Uid="_sipUsernameEditionTextBoxUid_"
                                     Margin="20,10,20,10"
                                     IsSpellCheckEnabled="False" />
Nicolas Jager's avatar
Nicolas Jager committed
1419
                            <PasswordBox x:Name="_sipPasswordBoxAccountCreation_"
1420 1421
                                         x:Uid="_sipPasswordEditionUid_"
                                         Margin="20,10,20,10" />
1422
                        </StackPanel>
Nicolas Jager's avatar
Nicolas Jager committed
1423
                    </StackPanel>
Nicolas Jager's avatar
Nicolas Jager committed
1424 1425
                </ScrollViewer>

1426 1427 1428 1429 1430
                <!--  buttons yes/no to create the new account.  -->
                <Grid Grid.Row="2" Background="{StaticResource RingBlueMidBrush}">
                    <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
                        <Button Grid.Row="1"
                                x:Name="_createAccountYes_"
Nicolas Jager's avatar
Nicolas Jager committed
1431 1432
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
1433 1434 1435 1436 1437 1438 1439 1440 1441
                                Click="_createAccountYes__Click"
                                Content="&#xE081;"
                                Style="{StaticResource ButtonStyle5}">
                            <ToolTipService.ToolTip>
                                <TextBlock x:Uid="_tt_create_account_yes_" />
                            </ToolTipService.ToolTip>
                        </Button>
                        <Button Grid.Row="1"
                                x:Name="_createAccountNo_"
Nicolas Jager's avatar
Nicolas Jager committed
1442
                                HorizontalAlignment="Center"
1443
                                VerticalAlignment="Center"
Nicolas Jager's avatar
Nicolas Jager committed
1444
                                Click="_createAccountNo__Click"
1445 1446 1447 1448 1449 1450
                                Content="&#xE106;"
                                Style="{StaticResource ButtonStyle5}">
                            <ToolTipService.ToolTip>
                                <TextBlock x:Uid="_tt_account_cancel_" />
                            </ToolTipService.ToolTip>
                        </Button>
Nicolas Jager's avatar
Nicolas Jager committed
1451 1452 1453
                    </StackPanel>
                </Grid>
            </Grid>
1454 1455 1456 1457 1458 1459

            <!--  add account menu.  -->
            <Grid Grid.Row="0"
                  x:Name="_accountAddMenuGrid_"
                  Background="{StaticResource RingBlueLightBrush}"
                  Visibility="Collapsed">
1460
                <Grid.RowDefinitions>
1461 1462 1463
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="30" />
1464
                </Grid.RowDefinitions>
1465 1466 1467 1468 1469
                <TextBlock Grid.Row="0"
                           x:Uid="_accountsAddDevice_"
                           Margin="12,6,4,2"
                           Style="{StaticResource SubheaderTextBlockStyle}" />
                <StackPanel Grid.Row="1"
1470
                            Padding="10"
1471 1472
                            Background="{StaticResource RingBlueLightBrush}"
                            Orientation="Horizontal">
1473 1474
                    <Button x:Name="_step1button_"
                            Click="_step1button__Click"
1475 1476
                            Content="Step 1" />
                    <TextBlock Text="&gt;" />
1477 1478
                    <Button x:Name="_step2button_"
                            Click="_step2button__Click"
1479
                            Content="Step 2" />
1480
                </StackPanel>
1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491
                <!--  step 1.  -->
                <StackPanel Grid.Row="1"
                            x:Name="_step1Menu_"
                            Padding="20"
                            Background="{StaticResource RingBlueLightBrush}">
                    <TextBlock x:Uid="_accountsAddStep1_"
                               TextAlignment="Left"
                               TextWrapping="Wrap" />
                    <HyperlinkButton x:Uid="_accountsEditionLearnMore_"
                                     Margin="0,0,0,10"
                                     NavigateUri="http://ring.cx" />
1492
                </StackPanel>
1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503
                <!--  step 2.  -->
                <StackPanel Grid.Row="1"
                            x:Name="_step2Menu_"
                            Background="{StaticResource RingBlueLightBrush}"
                            Visibility="Collapsed">
                    <TextBox x:Name="_PINTextBox_"
                             x:Uid="_accountsAddEnterPIN_"
                             Margin="20,10,20,10"
                             GotFocus="_PINTextBox__GotFocus"
                             IsSpellCheckEnabled="False"
                             KeyUp="_addAccountInputValidation__KeyUp" />
1504
                    <PasswordBox x:Name="_ArchivePassword_"
1505 1506 1507
                                 x:Uid="_accountsEnterArchivePassword_"
                                 Margin="20,10,20,10"
                                 KeyUp="_addAccountInputValidation__KeyUp" />
1508 1509
                    <TextBlock x:Name="_response_"
                               HorizontalAlignment="Center"
1510 1511
                               Foreground="Red"
                               Text="" />
1512
                </StackPanel>
1513 1514 1515 1516 1517
                <!--  buttons next step and yes/no to add the account.  -->
                <Grid Grid.Row="2" Background="{StaticResource RingBlueMidBrush}">
                    <StackPanel Padding="10,0"
                                HorizontalAlignment="Center"
                                Orientation="Horizontal">
1518
                        <Button x:Name="_nextstep_"
1519 1520 1521 1522 1523 1524 1525 1526 1527
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Click="_step2button__Click"
                                Content="&#xE081;"
                                Style="{StaticResource ButtonStyle2}">
                            <ToolTipService.ToolTip>
                                <TextBlock x:Uid="_tt_add_account_next_" />
                            </ToolTipService.ToolTip>
                        </Button>
1528
                        <Button x:Name="_addAccountYes_"
1529 1530 1531 1532 1533 1534 1535 1536 1537 1538
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Click="_addAccountYes__Click"
                                Content="&#xE081;"
                                Style="{StaticResource ButtonStyle5}"
                                Visibility="Collapsed">
                            <ToolTipService.ToolTip>
                                <TextBlock x:Uid="_tt_add_account_yes_" />
                            </ToolTipService.ToolTip>
                        </Button>
1539
                        <Button x:Name="_addAccountNo_"
1540 1541 1542 1543 1544 1545 1546 1547 1548 1549
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Click="_addAccountNo__Click"
                                Content="&#xE106;"
                                Style="{StaticResource ButtonStyle5}"
                                Visibility="Collapsed">
                            <ToolTipService.ToolTip>
                                <TextBlock x:Uid="_tt_account_cancel_" />
                            </ToolTipService.ToolTip>
                        </Button>
1550 1551 1552
                    </StackPanel>
                </Grid>
            </Grid>
1553 1554 1555 1556 1557
            <!--  devices menu.  -->
            <Grid Grid.Row="0"
                  x:Name="_devicesMenuGrid_"
                  Background="{StaticResource RingBlueLightBrush}"
                  Visibility="Collapsed">
Nicolas Jager's avatar
Nicolas Jager committed
1558
                <Grid.RowDefinitions>
1559 1560 1561
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="30" />
Nicolas Jager's avatar
Nicolas Jager committed
1562
                </Grid.RowDefinitions>
1563 1564 1565 1566 1567 1568
                <TextBlock Grid.Row="0"
                           x:Name="_devicesMenuTitle_"
                           x:Uid="_accountsDevices_"
                           Margin="12,6,4,2"
                           Style="{StaticResource SubheaderTextBlockStyle}" />
                <Grid Grid.Row="1">
1569
                    <Grid.RowDefinitions>
1570 1571 1572 1573 1574 1575
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto" />
1576
                    </Grid.RowDefinitions>
1577 1578 1579 1580 1581 1582 1583 1584
                    <!--  about this device  -->
                    <StackPanel Grid.Row="0"
                                Margin="10,20,10,10"
                                Orientation="Horizontal">
                        <TextBlock Margin="0,0,10,0"
                                   Style="{StaticResource TextSegoeStyle-20pt-black}"
                                   Text="&#xE211;" />
                        <TextBlock x:Uid="_thisDevice_" />
1585
                    </StackPanel>
1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634

                    <!--  this device  -->
                    <Grid Grid.Row="1"
                          Padding="10"
                          HorizontalAlignment="Center"
                          Background="AliceBlue">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Grid Grid.Row="0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="52" />
                                <ColumnDefinition Width="180" />
                                <ColumnDefinition Width="42" />
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0"
                                       x:Uid="_deviceName_"
                                       VerticalAlignment="Center"
                                       FontWeight="Bold"
                                       Text="Name " />
                            <TextBox Grid.Column="1"
                                     x:Name="_deviceName_"
                                     Width="180"
                                     Height="32"
                                     IsSpellCheckEnabled="False"
                                     KeyUp="_deviceName__KeyUp"
                                     LostFocus="_deviceName__LostFocus"
                                     MaxLength="16"
                                     Text="[TEXT_MISSING]"
                                     TextWrapping="NoWrap" />
                        </Grid>
                        <Grid Grid.Row="1" Margin="0,10,0,0">
                            <TextBlock x:Name="_deviceId_"
                                       VerticalAlignment="Center"
                                       FontSize="12"
                                       Text="[TEXT MISSING]"
                                       TextTrimming="CharacterEllipsis" />
                        </Grid>
                    </Grid>

                    <!--  other linked devices  -->
                    <StackPanel Grid.Row="2"
                                Margin="10,20"
                                Orientation="Horizontal">
                        <TextBlock Margin="0,0,10,0"
                                   Style="{StaticResource TextSegoeStyle-20pt-black}"
                                   Text="&#xE212;" />
                        <TextBlock x:Uid="_other_linked_devices_" />
1635
                    </StackPanel>
1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646
                    <TextBlock Grid.Row="3"
                               x:Name="_waitingDevicesList_"
                               x:Uid="_waitingDevicesListUid_"
                               HorizontalAlignment="Center" />
                    <TextBlock Grid.Row="3"
                               x:Name="_noDevicesList_"
                               Margin="20,-10,0,0"
                               Foreground="OrangeRed"
                               Visibility="Collapsed" />
                    <ListBox Grid.Row="3"
                             x:Name="_devicesIdList_"
1647
                             Padding="10,0"
1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665
                             Background="{StaticResource RingBlueLightBrush}"
                             ItemContainerStyle="{StaticResource otherdeviceListBoxStyle}"
                             ItemTemplate="{StaticResource RingDeviceItemsTemplate}"
                             Visibility="Collapsed" />
                </Grid>

                <!--  button to add device.  -->
                <Grid Grid.Row="2" Background="{StaticResource RingBlueMidBrush}">
                    <Button x:Name="_addDevice_"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Click="_addDevice__Click"
                            Content="&#xE948;"
                            Style="{StaticResource ButtonStyle6}">
                        <ToolTipService.ToolTip>
                            <TextBlock x:Uid="_tt_add_device_" />
                        </ToolTipService.ToolTip>
                    </Button>
1666 1667
                </Grid>
            </Grid>
1668 1669 1670 1671 1672 1673

            <!--  add device (pin generator) menu.  -->
            <Grid Grid.Row="0"
                  x:Name="_addingDeviceGrid_"
                  Background="{StaticResource RingBlueLightBrush}"
                  Visibility="Collapsed">
1674
                <Grid.RowDefinitions>
1675 1676 1677
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="30" />
1678
                </Grid.RowDefinitions>
1679 1680 1681 1682 1683
                <TextBlock Grid.Row="0"
                           x:Uid="_addDeviceMenuTitle_"
                           Margin="12,6,4,8"
                           Style="{StaticResource SubheaderTextBlockStyle}" />
                <Grid Grid.Row="1">
1684
                    <Grid.RowDefinitions>
1685 1686 1687
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="*" />
1688
                    </Grid.RowDefinitions>
1689 1690 1691
                    <TextBlock Grid.Row="0"
                               x:Uid="_accountsPINGenerator_"
                               Margin="10,10,0,10"
1692
                               HorizontalAlignment="Center"
1693 1694 1695 1696
                               VerticalAlignment="Center" />
                    <PasswordBox Grid.Row="1"
                                 x:Name="_passwordForPinGenerator_"
                                 x:Uid="_accountsEnterArchivePassword_"
1697
                                 Margin="10"
1698
                                 KeyUp="_passwordForPinGenerator__KeyUp" />
1699
                </Grid>
1700 1701 1702 1703 1704
                <!--  buttons yes/no to generate a PIN.  -->
                <Grid Grid.Row="2" Background="{StaticResource RingBlueMidBrush}">
                    <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
                        <Button Grid.Row="1"
                                x:Name="_pinGeneratorYes_"
1705 1706
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
1707 1708 1709 1710 1711 1712 1713 1714 1715
                                Click="_pinGeneratorYes__Click"
                                Content="&#xE081;"
                                Style="{StaticResource ButtonStyle5}">
                            <ToolTipService.ToolTip>
                                <TextBlock x:Uid="_tt_pin_gen_yes_" />
                            </ToolTipService.ToolTip>
                        </Button>
                        <Button Grid.Row="1"
                                x:Name="_pinGeneratorNo_"
1716
                                HorizontalAlignment="Center"
1717
                                VerticalAlignment="Center"
1718
                                Click="_pinGeneratorNo__Click"
1719 1720 1721 1722 1723 1724
                                Content="&#xE106;"
                                Style="{StaticResource ButtonStyle5}">
                            <ToolTipService.ToolTip>
                                <TextBlock x:Uid="_tt_pin_gen_no_" />
                            </ToolTipService.ToolTip>
                        </Button>
1725 1726 1727
                    </StackPanel>
                </Grid>
            </Grid>
1728 1729 1730 1731 1732
            <!--  waiting for a PIN.  -->
            <Grid Grid.Row="0"
                  x:Name="_waitingForPin_"
                  Background="{StaticResource RingBlueLightBrush}"
                  Visibility="Collapsed">
1733
                <Grid.RowDefinitions>
1734 1735 1736
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="30" />
1737
                </Grid.RowDefinitions>
1738 1739 1740 1741 1742
                <TextBlock Grid.Row="0"
                           x:Uid="_accountsAddDevice_"
                           Margin="12,6,4,8"
                           Style="{StaticResource SubheaderTextBlockStyle}" />
                <Grid Grid.Row="1">
1743
                    <Grid.RowDefinitions>
1744 1745 1746
                        <RowDefinition Height="*" />
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="*" />
1747
                    </Grid.RowDefinitions>
1748 1749 1750 1751
                    <TextBlock Grid.Row="0"
                               x:Name="_waitingAndResult_"
                               x:Uid="_accountsWaitingAndResult_"
                               Margin="10,10,0,10"
1752
                               HorizontalAlignment="Center"
1753
                               VerticalAlignment="Center" />
1754
                </Grid>
1755 1756 1757 1758
                <Grid Grid.Row="2" Background="{StaticResource RingBlueMidBrush}">
                    <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
                        <Button Grid.Row="1"
                                x:Name="_closePin_"
Nicolas Jager's avatar
Nicolas Jager committed
1759
                                HorizontalAlignment="Center"
1760
                                VerticalAlignment="Center"
Nicolas Jager's avatar
Nicolas Jager committed
1761
                                Click="_closePin__Click"
1762 1763 1764 1765 1766 1767
                                Content="&#xE081;"
                                Style="{StaticResource ButtonStyle5}">
                            <ToolTipService.ToolTip>
                                <TextBlock x:Uid="_tt_pin_gen_close_" />
                            </ToolTipService.ToolTip>
                        </Button>
Nicolas Jager's avatar
Nicolas Jager committed
1768 1769
                    </StackPanel>
                </Grid>
1770
            </Grid>
1771 1772 1773 1774
            <!--  contacts + calls => smartpanelitems.  -->
            <Grid Grid.Row="0"
                  x:Name="_smartGrid_"
                  Background="{StaticResource RingBlueLightBrush}">
Nicolas Jager's avatar
Nicolas Jager committed
1775
                <Grid.RowDefinitions>
1776 1777 1778 1779
                    <RowDefinition x:Name="_contactsTitleRow_" Height="54" />
                    <RowDefinition x:Name="_rowRingTxtBx_" Height="48" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
Nicolas Jager's avatar
Nicolas Jager committed
1780
                </Grid.RowDefinitions>
1781 1782 1783 1784 1785 1786
                <TextBlock Grid.Row="0"
                           x:Name="_contactsTitle_"
                           x:Uid="_contactsTitle_"
                           Margin="12,6,4,2"
                           Style="{StaticResource SubheaderTextBlockStyle}" />
                <Grid Grid.Row="1" Margin="0,0,0,10">
1787
                    <Grid.ColumnDefinitions>
1788 1789
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
1790
                    </Grid.ColumnDefinitions>
1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820
                    <Border Grid.Column="0"
                            x:Name="BackgroundElement"
                            Grid.ColumnSpan="2"
                            Margin="12,4,12,4"
                            Background="White"
                            BorderBrush="LightGray"
                            BorderThickness="1"
                            Opacity="1" />
                    <TextBox Grid.Column="0"
                             x:Name="_ringTxtBx_"
                             x:Uid="_ringTxtBx_"
                             Margin="14,7,7,7"
                             Padding="7,6,7,7"
                             HorizontalAlignment="Stretch"
                             VerticalAlignment="Center"
                             Background="White"
                             BorderThickness="0"
                             Foreground="Black"
                             IsSpellCheckEnabled="False"
                             KeyUp="_ringTxtBx__KeyUp"
                             TextWrapping="Wrap" />
                    <Button Grid.Column="1"
                            x:Name="_addButton_"
                            Width="38"
                            Margin="0,4,12,4"
                            Padding="4,5,6,2"
                            VerticalAlignment="Stretch"
                            Background="Transparent"
                            BorderThickness="0"
                            Click="_ringTxtBx__Click"
1821
                            Content="&#xE71E;"
1822 1823 1824 1825 1826
                            FontFamily="Segoe MDL2 Assets"
                            FontSize="18"
                            Foreground="{StaticResource RingBlueMidBrush}"
                            IsTabStop="False"
                            Visibility="Visible">
1827
                        <Button.RenderTransform>
1828
                            <TranslateTransform X="0" />
1829 1830 1831
                        </Button.RenderTransform>
                    </Button>
                </Grid>
1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865
                <ListBox Grid.Row="3"
                         x:Name="_smartList_"
                         MaxWidth="320"
                         Margin="0"
                         Padding="0"
                         Background="Transparent"
                         GotFocus="_smartList__GotFocus"
                         ItemContainerStyle="{StaticResource contactsListBoxStyle}"
                         ItemTemplate="{StaticResource SmartPanelItemsTemplate}"
                         ScrollViewer.HorizontalScrollBarVisibility="Auto"
                         ScrollViewer.HorizontalScrollMode="Disabled"
                         SelectionChanged="_smartList__SelectionChanged" />
            </Grid>
            <!--  trust requests  -->
            <Grid Grid.Row="0" x:Name="_incomingContactRequestGrid_">
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0"
                           x:Name="_contactRequestsTitle_"
                           x:Uid="_contactRequestsTitle_"
                           Margin="12,6,4,8"
                           Style="{StaticResource SubheaderTextBlockStyle}" />
                <ListBox Grid.Row="1"
                         x:Name="_incomingContactRequestList_"
                         MaxWidth="320"
                         Margin="0"
                         Padding="0"
                         Background="Transparent"
                         ItemContainerStyle="{StaticResource contactsListBoxStyle}"
                         ItemTemplate="{StaticResource ContactRequestItemsTemplate}"
                         ScrollViewer.HorizontalScrollBarVisibility="Auto"
                         ScrollViewer.HorizontalScrollMode="Disabled" />
Nicolas Jager's avatar
Nicolas Jager committed
1866
            </Grid>
1867 1868 1869 1870 1871
            <!--  settings.  -->
            <Grid Grid.Row="0"
                  x:Name="_settingsMenu_"
                  Background="{StaticResource RingBlueLightBrush}"
                  Visibility="Collapsed">
1872
                <Grid.RowDefinitions>
1873 1874
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
1875
                </Grid.RowDefinitions>
1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893
                <TextBlock Grid.Row="0"
                           x:Name="_settingsTitle_"
                           x:Uid="_settingsTitle_"
                           Margin="12,6,4,8"
                           Style="{StaticResource SubheaderTextBlockStyle}" />
                <ScrollViewer Grid.Row="1"
                              x:Name="_settingsScrollView_"
                              ScrollViewer.VerticalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollMode="Enabled">
                    <!--  video settings  -->
                    <StackPanel Margin="4">
                        <TextBlock x:Uid="_settingsVideo_"
                                   Margin="8"
                                   Style="{StaticResource TitleTextBlockStyle}" />
                        <TextBlock x:Uid="_settingsVideoDevice_"
                                   Margin="10"
                                   Style="{StaticResource BaseTextBlockStyle}" />
                        <ComboBox x:Name="_videoDeviceComboBox_"
1894
                                  Margin="10"
1895 1896 1897 1898 1899
                                  SelectionChanged="_videoDeviceComboBox__SelectionChanged" />
                        <TextBlock x:Uid="_settingsVideoResolution_"
                                   Margin="10"
                                   Style="{StaticResource BaseTextBlockStyle}" />
                        <ComboBox x:Name="_videoResolutionComboBox_"
1900
                                  Margin="10"
1901 1902 1903 1904 1905
                                  SelectionChanged="_videoResolutionComboBox__SelectionChanged" />
                        <TextBlock x:Uid="_settingsVideoRate_"
                                   Margin="10"
                                   Style="{StaticResource BaseTextBlockStyle}" />
                        <ComboBox x:Name="_videoRateComboBox_"
1906
                                  Margin="10"
1907 1908
                                  SelectionChanged="_videoRateComboBox__SelectionChanged" />
                    </StackPanel>
1909
                </ScrollViewer>
Nicolas Jager's avatar
Nicolas Jager committed
1910 1911
            </Grid>
        </Grid>
Nicolas Jager's avatar
Nicolas Jager committed
1912 1913
    </Grid>
</Page>