<?xml version="1.0" encoding="utf-8"?>
<!-- Resource Dictionary used to store a Data Template used to 
     display a Contact within message content.
     This data template will be selected by the MessageContentSelector class if 
     the message content is determined to be of Contact type. 
     You should include a static reference to MessageContentApplicationDataTemplate on the page where you plan to use
     the DataTemplate MessageContentApplicationDataTemplate.xaml -->
<ResourceDictionary
    x:Class="was.droidtransfer.features.messaging.ux.MessageContentContactDataTemplate"
    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:data="using:was.droidtransfer.features.messaging.data">
    <DataTemplate x:Key="MessageContentContactDataTemplate" x:DataType="data:IMessageContent">
        <Grid x:Name="gridContactsContent" Margin="0,5" DataContextChanged="_gridContactsContent_DataContextChanged">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <FontIcon x:Name="fontIcon" Glyph="&#xEA8C;" FontSize="32" VerticalAlignment="Top" Margin="0,0,20,0" Foreground="{ThemeResource SystemColorButtonFaceColor}" />
            <Border x:Name="borderContactImage" VerticalAlignment="Top" Margin="0,0,20,0" CornerRadius="20" Visibility="Collapsed" Background="{ThemeResource AppBarBackgroundThemeBrush}" Width="40" Height="40">
                <!--<Image x:Name="imageContact" Width="40" />-->
                <TextBlock x:Name="textBlockInitials" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="SemiBold" FontSize="16" IsTextScaleFactorEnabled="True" MaxWidth="40" />
            </Border>
            <StackPanel x:Name="stackPanelDetail" Grid.Column="1">
                <TextBlock x:Uid="TextBlockLoadingContact" x:Name="textBlockTitle" Text="XX Loading Contact..." FontStyle="Italic" />
                <TextBlock x:Name="textBlockDetail" Margin="0,5,0,5"/>
                <StackPanel x:Name="stackPanelButtons" Orientation="Horizontal" Spacing="5">
                    <Button x:Name="buttonOpenContact" x:Uid="ButtonOpenContact" Content="XX Open Contact" Click="_buttonOpenContact_Clicked" IsEnabled="False"/>
                    <Button x:Name="buttonSaveToPC" x:Uid="ButtonSaveToPC" Content="XX Save to PC" Click="_buttonSaveToPC_Clicked" IsEnabled="False"/>
                </StackPanel>
            </StackPanel>
        </Grid>
    </DataTemplate>
</ResourceDictionary>
