<?xml version="1.0" encoding="utf-8"?>
<ResourceDictionary
    x:Class="was.droidtransfer.features.messaging.ux.MessageContentVideoCTLDataTemplate"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:was.droidtransfer.features.messaging.ux"
    xmlns:converters="using:was.droidtransfer.features.messaging.converters">
    <converters:MessageContentToIsSupportedConverter x:Key="MessageContentToIsSupportedConverter" />
    <converters:MessageContentToUnsupportedTextConverter x:Key="MessageContentToUnsupportedTextConverter" />
    <DataTemplate x:Key="MessageContentVideoCTLDataTemplate">
        <Border Padding="0" Margin="0,0,0,0" CornerRadius="{ThemeResource HyperlinkFocusRectCornerRadius}" Background="Transparent">
            <Grid>
                <Grid x:Name="gridContent" MaxHeight="400" MaxWidth="400" Visibility="{Binding Converter={StaticResource MessageContentToIsSupportedConverter}}" Margin="0,0,0,10">
                    <Border Height="250" Background="{ThemeResource AppBarBackgroundThemeBrush}" PointerPressed="_borderContent_PointerPressed">
                        <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Padding="10" Spacing="5">
                            <FontIcon Glyph="&#xE714;" />
                            <TextBlock x:Uid="TextBlockVideoClickToPlay" Text="Video: Click to Play" TextWrapping="WrapWholeWords" TextAlignment="Center" />
                        </StackPanel>
                    </Border>
                </Grid>
                <Border BorderThickness="4,0,0,0" BorderBrush="{ThemeResource SystemErrorTextColor}" HorizontalAlignment="Stretch" Padding="8,2,4,8" Background="{ThemeResource TextFillColorInverse}" CornerRadius="0,4,4,0" Visibility="{Binding Converter={StaticResource MessageContentToIsSupportedConverter}, ConverterParameter='invert'}" Margin="0,0,0,4">
                    <StackPanel Spacing="5">
                        <TextBlock Style="{ThemeResource BodyStrongTextBlockStyle}" Text="{Binding Converter={StaticResource MessageContentToUnsupportedTextConverter}}" Padding="0" Margin="0" Foreground="{ThemeResource SystemErrorTextColor}" />
                        <TextBlock x:Uid="TextBlockUnsupportedVideoDescription" TextWrapping="Wrap" Text="XX This video format cannot be previewed but can be saved to your PC." Padding="0" Margin="0" />
                        <Button x:Uid="ButtonUnsupportedSaveToPC" Margin="0,10,0,0" Content="XX Save to PC" Click="_saveToPCButton_Click" />
                    </StackPanel>
                </Border>
            </Grid>
        </Border>
    </DataTemplate>
</ResourceDictionary>
