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

    <Page.Resources>
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 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
        <Storyboard x:Name="_fadeInMessagesListStoryBoard_">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="_messagesList_"
                                           Storyboard.TargetProperty="Opacity"
                                           Duration="0:0:0.40">
                <LinearDoubleKeyFrame KeyTime="0:0:0" Value="0" />
                <LinearDoubleKeyFrame KeyTime="0:0:0.40" Value="1" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

        <Storyboard x:Name="_fadeInMessagesPageInfoStoryBoard_">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="_contactInfoGrid_"
                                           Storyboard.TargetProperty="Opacity"
                                           Duration="0:0:0.40">
                <LinearDoubleKeyFrame KeyTime="0:0:0" Value="0" />
                <LinearDoubleKeyFrame KeyTime="0:0:0.40" Value="1" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

        <Storyboard x:Name="_easeUpMessagesListStoryBoard_">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="_messagesListTranslateTransform_"
                                           Storyboard.TargetProperty="Y"
                                           Duration="0:0:0.15">
                <EasingDoubleKeyFrame KeyTime="0" Value="-80" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.15" Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

        <DataTemplate x:Key="ConversationMessageTemplate" x:DataType="local:ConversationMessage">
            <Grid Margin="12,0,20,0" HorizontalAlignment="{x:Bind FromContact, Converter={StaticResource _bubbleHorizontalAlignement_}}">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="{x:Bind MessageIndex, Converter={StaticResource _MessageChainBreakToHeight_}, Mode=OneWay}" />
                </Grid.RowDefinitions>
                <!--  avatar, message spikes, and message body  -->
                <Grid Grid.Row="0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="40" />
                        <ColumnDefinition Width="10" />
                        <ColumnDefinition Width="2*" />
                        <ColumnDefinition Width="8*" />
                    </Grid.ColumnDefinitions>
                    <!--  avatar  -->
                    <Grid Grid.Column="0"
                          Visibility="{x:Bind MessageIndex, Converter={StaticResource _MessageChainBreakToVisibility_}, ConverterParameter=First}">
                        <Ellipse Width="36"
                                 Height="36"
                                 Canvas.ZIndex="1"
                                 Margin="0,2,0,0"
                                 HorizontalAlignment="Center"
                                 VerticalAlignment="Top"
                                 Visibility="{x:Bind FromContact, Converter={StaticResource _boolToVisibility_}}">
                            <Ellipse.Fill>
                                <ImageBrush x:Name="_contactAvatar_" ImageSource="{x:Bind MessageAvatar, Mode=OneWay}" />
                            </Ellipse.Fill>
                        </Ellipse>
                        <Grid Width="36"
                              Height="36"
                              Canvas.ZIndex="0"
                              Margin="0,2,0,0"
                              HorizontalAlignment="Center"
                              VerticalAlignment="Top"
                              Visibility="{x:Bind MessageIndex, Converter={StaticResource _MessageChainBreakToVisibility_}, ConverterParameter=First}">
                            <Grid Visibility="{x:Bind FromContact, Converter={StaticResource _boolToVisibility_}}">
                                <Ellipse x:Name="_defaultAvatar_" Fill="{x:Bind MessageAvatarColorBrush, Mode=OneWay}" />
                                <TextBlock HorizontalAlignment="Center"
                                           VerticalAlignment="Center"
                                           FontFamily="Arial"
                                           FontSize="21"
                                           Foreground="White"
                                           Text="{x:Bind MessageAvatarInitial, Mode=OneWay}"
                                           TextAlignment="Center" />
                            </Grid>
                        </Grid>
                    </Grid>
                    <!--  left spike  -->
                    <Grid Grid.Column="1" Visibility="{x:Bind MessageIndex, Converter={StaticResource _MessageChainBreakToVisibility_}, ConverterParameter=First}">
                        <Polygon Name="_chatLeftBubbleSpike_"
                                 Fill="{x:Bind FromContact, Converter={StaticResource _bubbleBackground_}}"
                                 Points="10,0,0,5,10,10"
                                 Visibility="{x:Bind FromContact, Converter={StaticResource _boolToVisibility_}}">
                            <Polygon.RenderTransform>
                                <TranslateTransform X="8" Y="15" />
                            </Polygon.RenderTransform>
                        </Polygon>
                    </Grid>
                    <!--  message  -->
                    <Border Grid.Column="3"
                            Width="auto"
                            Height="auto"
                            Margin="5"
                            Padding="10,6,10,6"
                            Background="{x:Bind FromContact, Converter={StaticResource _bubbleBackground_}}"
                            CornerRadius="4">
                        <ContentPresenter>
                            <RichTextBlock x:Name="_msgContent_"
                                           uc:TextBlockExtension.FormattedText="{x:Bind Payload}"
                                           Foreground="#ff303030"
                                           IsTextSelectionEnabled="True"
                                           TextWrapping="Wrap">
                                <Paragraph />
                            </RichTextBlock>
                        </ContentPresenter>
                    </Border>
                    <!--  right spike  -->
                    <Grid Grid.Column="3" Visibility="{x:Bind MessageIndex, Converter={StaticResource _MessageChainBreakToVisibility_}, ConverterParameter=First}">
                        <Polygon Name="_chatRightBubbleSpike_"
                                 HorizontalAlignment="Right"
                                 Fill="{x:Bind FromContact, Converter={StaticResource _bubbleBackground_}}"
                                 Points="0,0,10,5,0,10"
                                 Visibility="{x:Bind FromContact, Converter={StaticResource _boolToVisibility_}, ConverterParameter=Inverted}">
                            <Polygon.RenderTransform>
                                <TranslateTransform X="3" Y="15" />
                            </Polygon.RenderTransform>
                        </Polygon>
                    </Grid>
                </Grid>
                <!--  message info  -->
                <Grid Grid.Row="1">
                    <StackPanel x:Name="_messageInfo_"
                                Margin="10,0,10,0"
                                HorizontalAlignment="{x:Bind FromContact, Converter={StaticResource _bubbleHorizontalAlignement_}}"
                                Orientation="Horizontal">
                        <Grid Grid.Column="2"
                              x:Name="_confirmationCheckGrid_"
                              Margin="0,1,8,0"
                              Visibility="Collapsed">
                            <Rectangle x:Name="_checkHider_"
                                       Width="12"
                                       HorizontalAlignment="Right"
                                       Canvas.ZIndex="999"
                                       Fill="{ThemeResource RingMessagePageBrush}"
                                       Visibility="{x:Bind FromContact, Converter={StaticResource _boolToVisibility_}, ConverterParameter=Inverted}">
                                <Rectangle.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1.0" />
                                        <TranslateTransform X="0" />
                                    </TransformGroup>
                                </Rectangle.RenderTransform>
                                <Rectangle.Triggers>
                                    <EventTrigger>
                                        <BeginStoryboard>
                                            <Storyboard x:Name="_showCheck_">
                                                <DoubleAnimation Storyboard.TargetName="_checkHider_"
                                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"
                                                                 From="1"
                                                                 To="0"
                                                                 Duration="0:0:0.5" />
                                                <DoubleAnimation Storyboard.TargetName="_checkHider_"
                                                                 Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
                                                                 From="0"
                                                                 To="12"
                                                                 Duration="0:0:0.5" />
                                            </Storyboard>
                                        </BeginStoryboard>
                                    </EventTrigger>
                                </Rectangle.Triggers>
                            </Rectangle>
                            <TextBlock Margin="6,0,0,0"
                                       FontFamily="Segoe MDL2 Assets"
                                       FontSize="12"
                                       Foreground="Green"
                                       Text="&#xE73E;"
                                       Visibility="{x:Bind FromContact, Converter={StaticResource _boolToVisibility_}, ConverterParameter=Inverted}" />
                        </Grid>
                        <TextBlock x:Name="_messageTimeFrom_"
                                   FontSize="10"
                                   Foreground="Gray"
                                   Text="{x:Bind MessageIndex, Converter={StaticResource _MessageDateTimeString_}}"
                                   Visibility="{x:Bind FromContact, Converter={StaticResource _boolToVisibility_}}">
                            <TextBlock.RenderTransform>
                                <TranslateTransform X="50" />
                            </TextBlock.RenderTransform>
                        </TextBlock>
                        <TextBlock x:Name="_messageTimeTo_"
                                   FontSize="10"
                                   Foreground="Gray"
                                   Text="{x:Bind MessageIndex, Converter={StaticResource _MessageDateTimeString_}}"
                                   Visibility="{x:Bind FromContact, Converter={StaticResource _boolToVisibility_}, ConverterParameter=Inverted}" />
                    </StackPanel>
                </Grid>
219
            </Grid>
220
        </DataTemplate>
221 222

        <Style x:Key="MessageSendBox" TargetType="TextBox">
223 224 225
            <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}" />
            <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}" />
            <Setter Property="Foreground" Value="Black" />
226
            <Setter Property="Background" Value="White" />
227 228 229 230 231 232 233
            <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
            <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
            <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto" />
            <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto" />
            <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" />
            <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" />
            <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
234
            <Setter Property="Padding" Value="4,0,8,4" />
235 236 237
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="TextBox">
238 239
                        <Grid>
                            <Grid.ColumnDefinitions>
240 241 242 243 244 245 246
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
247 248 249
                            <Border Grid.Row="1"
                                    x:Name="BackgroundElement"
                                    Grid.RowSpan="1"
250
                                    Grid.ColumnSpan="2"
251 252 253
                                    Margin="0"
                                    Background="{TemplateBinding Background}"
                                    BorderBrush="{StaticResource RingBlueMidBrush}"
254
                                    BorderThickness="0"
255 256 257 258 259 260 261 262 263 264 265 266 267 268
                                    Opacity="1" />
                            <ContentPresenter Grid.Row="0"
                                              x:Name="HeaderContentPresenter"
                                              Grid.ColumnSpan="2"
                                              Margin="0,0,0,0"
                                              Padding="2,4,2,2"
                                              x:DeferLoadStrategy="Lazy"
                                              Content="{TemplateBinding Header}"
                                              ContentTemplate="{TemplateBinding HeaderTemplate}"
                                              FontWeight="Normal"
                                              Foreground="{ThemeResource SystemControlForegroundBaseHighBrush}"
                                              Visibility="Collapsed" />
                            <ScrollViewer Grid.Row="1"
                                          x:Name="ContentElement"
269 270
                                          Margin="{TemplateBinding BorderThickness}"
                                          Padding="{TemplateBinding Padding}"
271
                                          VerticalAlignment="Center"
272
                                          AutomationProperties.AccessibilityView="Raw"
273 274 275 276 277 278 279 280
                                          HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                                          HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}"
                                          IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}"
                                          IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}"
                                          IsTabStop="False"
                                          IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}"
                                          VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
                                          VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}"
281
                                          ZoomMode="Disabled" />
282 283 284 285 286 287
                            <Button Grid.Row="1"
                                    Grid.Column="1"
                                    x:Name="_sendBtn_"
                                    MinWidth="34"
                                    Margin="8,0,0,0"
                                    VerticalAlignment="Stretch"
288
                                    Background="Transparent"
289
                                    BorderThickness="0"
290
                                    Click="_sendBtn__Click"
291 292
                                    Content="&#xE89C;"
                                    FontFamily="Segoe MDL2 Assets"
293
                                    FontSize="20"
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
                                    IsEnabled="False"
                                    IsTabStop="False"
                                    Style="{StaticResource FlatRoundSendButton}"
                                    Visibility="Visible">
                                <ToolTipService.ToolTip>
                                    <TextBlock x:Uid="_tt_send_message_" />
                                </ToolTipService.ToolTip>
                            </Button>
                            <ContentControl Grid.Row="1"
                                            x:Name="PlaceholderTextContentPresenter"
                                            Grid.ColumnSpan="2"
                                            Margin="{TemplateBinding BorderThickness}"
                                            Padding="{TemplateBinding Padding}"
                                            VerticalAlignment="Center"
                                            Content="{TemplateBinding PlaceholderText}"
                                            Foreground="Gray"
                                            IsHitTestVisible="False"
                                            IsTabStop="False" />
312 313 314 315 316
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
317 318
    </Page.Resources>

319
    <Grid Background="{ThemeResource RingMessagePageBrush}">
320
        <Grid.RowDefinitions>
Nicolas Jager's avatar
Nicolas Jager committed
321
            <RowDefinition Height="auto" />
322 323
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
324 325
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
326
        <Grid Grid.Row="0"
327 328 329
              x:Name="_contactInfoGrid_"
              Height="auto"
              Background="White">
atraczyk's avatar
atraczyk committed
330
            <Grid.ColumnDefinitions>
331 332 333
                <ColumnDefinition Width="62" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="auto" />
atraczyk's avatar
atraczyk committed
334
            </Grid.ColumnDefinitions>
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
            <Grid.RowDefinitions>
                <RowDefinition Height="auto" />
                <RowDefinition Height="auto" />
            </Grid.RowDefinitions>
            <Grid Grid.Column="0" x:Name="_contactBarAvatarGrid_">
                <Ellipse Width="50"
                         Height="50"
                         Canvas.ZIndex="1">
                    <Ellipse.Fill>
                        <ImageBrush x:Name="_contactBarAvatar_" />
                    </Ellipse.Fill>
                </Ellipse>
            </Grid>
            <Grid Grid.Column="0"
                  x:Name="_defaultContactBarAvatarGrid_"
                  Width="50"
                  Height="50"
                  Canvas.ZIndex="0">
                <Ellipse x:Name="_defaultAvatar_" Fill="#ff808080" />
                <TextBlock x:Name="_defaultAvatarInitial_"
                           HorizontalAlignment="Center"
                           VerticalAlignment="Center"
                           FontFamily="Arial"
                           FontSize="30"
                           Foreground="White"
                           Text="?"
                           TextAlignment="Center" />
            </Grid>
            <Grid Grid.Column="1" x:Name="_contactInfoGridData_">
atraczyk's avatar
atraczyk committed
364
                <Grid.RowDefinitions>
365
                    <RowDefinition Height="32" />
atraczyk's avatar
atraczyk committed
366 367
                    <RowDefinition Height="30" />
                </Grid.RowDefinitions>
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
                <TextBlock Grid.Row="0"
                           x:Name="_contactName_"
                           Margin="8,4,8,0"
                           HorizontalAlignment="Left"
                           VerticalAlignment="Center"
                           FontSize="18"
                           FontWeight="Normal"
                           Text=""
                           TextTrimming="CharacterEllipsis"
                           TextWrapping="NoWrap">
                    <ToolTipService.ToolTip>
                        <TextBlock x:Name="_tt_contactName_" />
                    </ToolTipService.ToolTip>
                </TextBlock>
                <TextBlock Grid.Row="2"
                           x:Name="_contactName2_"
                           Margin="8,-10,8,0"
                           HorizontalAlignment="Left"
                           VerticalAlignment="Center"
                           FontSize="15"
                           FontWeight="SemiLight"
                           Text=""
                           TextTrimming="CharacterEllipsis"
                           TextWrapping="NoWrap">
                    <ToolTipService.ToolTip>
                        <TextBlock x:Name="_tt_contactName2_" />
                    </ToolTipService.ToolTip>
                </TextBlock>
            </Grid>
            <Grid Grid.Row="0"
                  Grid.Column="2"
                  x:Name="_contactButtonsGrid_"
                  Margin="0,0,14,0"
                  HorizontalAlignment="Right">
                <StackPanel Orientation="Horizontal">
                    <Button x:Name="_sendContactRequestBtn_"
                            Click="_sendContactRequestBtn__Click"
                            Content="&#xE8FA;"
                            FontFamily="Segoe MDL2 Assets"
                            FontSize="18"
                            Style="{StaticResource FlatRoundButton}"
                            Visibility="Visible">
                        <ToolTipService.ToolTip>
                            <TextBlock x:Uid="_tt_send_contactrequest_" />
                        </ToolTipService.ToolTip>
                    </Button>
                    <Button x:Name="_videoCallBtn_"
                            Click="_videoCallBtn__Click"
                            Content="&#xE714;"
                            FontFamily="Segoe MDL2 Assets"
                            FontSize="18"
                            Style="{StaticResource FlatRoundButton}">
                        <ToolTipService.ToolTip>
                            <TextBlock x:Uid="_tt_video_call_" />
                        </ToolTipService.ToolTip>
                    </Button>
                    <Button x:Name="_audioCallBtn_"
                            Click="_audioCallBtn__Click"
                            Content="&#xE13A;"
                            FontFamily="Segoe MDL2 Assets"
                            FontSize="18"
                            Style="{StaticResource FlatRoundButton}"
                            Visibility="Collapsed">
                        <ToolTipService.ToolTip>
                            <TextBlock x:Uid="_tt_audio_call_" />
                        </ToolTipService.ToolTip>
                    </Button>
                    <Button x:Name="_clearConversationBtn_"
                            Click="_clearConversationBtn__Click"
                            Content="&#xE74D;"
                            FontFamily="Segoe MDL2 Assets"
                            FontSize="18"
                            Style="{StaticResource FlatRoundButton}">
                        <ToolTipService.ToolTip>
                            <TextBlock x:Uid="_tt_clear_conversation_" />
                        </ToolTipService.ToolTip>
                    </Button>
                </StackPanel>
446 447
            </Grid>
        </Grid>
448 449 450 451 452 453 454 455 456 457
        <Rectangle Grid.Row="1"
                   Height="1"
                   Margin="16,0,16,0"
                   Fill="LightGray" />
        <ScrollViewer Grid.Row="2"
                      x:Name="_scrollView_"
                      VerticalAlignment="Bottom"
                      BorderBrush="{StaticResource RingBlueMidBrush}"
                      BorderThickness="0,0,0,0"
                      ScrollViewer.VerticalScrollBarVisibility="Auto">
458
            <StackPanel>
459
                <Rectangle Height="6" Fill="Transparent" />
460 461 462
                <ListBox x:Name="_messagesList_"
                         Margin="0"
                         Padding="0"
463 464
                         Background="{StaticResource RingMessagePageBrush}"
                         ItemContainerStyle="{StaticResource messageBubbleStyle}"
465
                         ItemTemplate="{StaticResource ConversationMessageTemplate}">
466 467 468
                    <ListBox.RenderTransform>
                        <TranslateTransform x:Name="_messagesListTranslateTransform_" X="0" Y="0" />
                    </ListBox.RenderTransform>
469
                </ListBox>
470
                <Rectangle Height="6" Fill="Transparent" />
471 472
            </StackPanel>
        </ScrollViewer>
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
        <StackPanel Grid.Row="3" Orientation="Vertical">
            <Rectangle Grid.Row="0"
                       Height="1"
                       Margin="16,0,16,0"
                       Fill="LightGray" />
            <Grid MinHeight="52"
                  MaxHeight="128"
                  Margin="0,0,0,0"
                  Background="{ThemeResource RingMessagePageBrush}">
                <TextBox x:Name="_messageTextBox_"
                         x:Uid="_messageTextBox_"
                         MinHeight="24"
                         Margin="16,0,16,0"
                         HorizontalAlignment="Stretch"
                         VerticalAlignment="Center"
                         AcceptsReturn="True"
                         Background="{ThemeResource RingMessagePageBrush}"
                         IsSpellCheckEnabled="False"
                         IsTabStop="True"
                         KeyDown="_messageTextBox__KeyDown"
                         ScrollViewer.VerticalScrollBarVisibility="Auto"
                         Style="{StaticResource MessageSendBox}"
                         TextChanged="_messageTextBox__TextChanged"
                         TextWrapping="Wrap" />
            </Grid>
        </StackPanel>
499 500
    </Grid>
</Page>