<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:ForzaUI"
    xmlns:System="clr-namespace:System;assembly=mscorlib">

    <local:MessageTypeSelector x:Key="A_DataTemplateSelector_MessageTypeSelector"/>
    <Color x:Key="A_Color_MessageTileBacking">#FFF6F6F6</Color>
    <Color x:Key="A_Color_MessageTile_DateSelected">#80272D33</Color>

    <!-- Keep these in sync -->
    <Thickness x:Key="A_Tickness_MessageContentOffset">0,66,0,0</Thickness>

    <System:Double x:Key="A_Double_MessageTileHeight">90</System:Double>

    <Style x:Key="A_Style_FZMaterial_MessageTileBacking" TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Color" Value="{StaticResource A_Color_MessageTileBacking}"/>
        <Setter Property="Opacity" Value="0"/>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_MessageTileContentsTextOnly" TargetType="{x:Type FrameworkElement}">
        <Setter Property="Margin" Value="126,0,0,0"/>
        <Setter Property="Height" Value="{StaticResource A_Double_MessageTileHeight}"/>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_MessageTileContents" TargetType="{x:Type FrameworkElement}">
        <Setter Property="Margin" Value="29,0,45,0"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <Style x:Key="A_Style_StackPanel_MessageTileText" TargetType="{x:Type StackPanel}">
        <Setter Property="Orientation" Value="Vertical"/>
        <Setter Property="Margin" Value="19,0,0,0"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <Style x:Key="A_Style_Viewbox_MessageTileTopLine" TargetType="{x:Type Viewbox}">
        <Setter Property="StretchDirection" Value="DownOnly"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
    </Style>

    <Style x:Key="A_Style_StackPanel_MessageTileTopLine" TargetType="{x:Type StackPanel}">
        <Setter Property="Orientation" Value="Horizontal"/>
        <Setter Property="Margin" Value="0,0,0,8"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_MessageTileBase" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonD}">
        <Setter Property="Color" Value="{StaticResource A_Color_Tile_Text}"/>
        <Setter Property="FontSize" Value="20"/>
        <Setter Property="Stretch" Value="None"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_MessageTileMessage" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_MessageTileBase}">
        <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_MessageTileTitle" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_MessageTileBase}">
        <Setter Property="Margin" Value="0,0,6,0"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_MessageTileTimeStamp" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_MessageTileBase}">
        <Setter Property="Color" Value="{StaticResource A_Color_MessageTile_DateSelected}"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_MessageTileStatus" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_MessageTileBase}">
        <Setter Property="Color" Value="{StaticResource A_Color_MessageTile_DateSelected}"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>
</ResourceDictionary>
