<!-- Resource Dictionary used to store a Data Template used to 
     display message content Text.
     This data template will be selected by the MessageContentSelector class if the message 
     content is determined to be of Application type. -->
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:converters="using:was.touchcopy.features.messaging.converters"
    xmlns:commonConverters="using:was.touchcopy.features.converters">

    <converters:MessageDetailToForegroundConverter x:Key="MessageDetailToForegroundConverter"/>
    <converters:MessageContentToFontWeight x:Key="MessageContentToFontWeight"/>
    <converters:MessageTextToFontSizeConverter x:Key="MessageTextToFontSizeConverter" />
    <commonConverters:ValueToVisibilityConverter x:Key="ValueToVisibilityConverter"/>

    <DataTemplate x:Key="MessageContentTextDataTemplate" >

        <TextBlock x:Name="textBlockMessageText" Text="{Binding ContentLocation}" TextWrapping="Wrap" 
                   Foreground="{Binding Converter={StaticResource MessageDetailToForegroundConverter}}"
                   FontSize="{Binding ContentLocation, Converter={StaticResource MessageTextToFontSizeConverter}}"
                    FontWeight="{Binding Converter={StaticResource MessageContentToFontWeight}}"
                    Visibility="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Text, Converter={StaticResource ValueToVisibilityConverter}}" />
    </DataTemplate>
</ResourceDictionary>
