<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ForzaUI;assembly="
                    xmlns:System="clr-namespace:System;assembly=mscorlib">
    <System:Double x:Key="A_Double_Poster_Width">442</System:Double>
    <System:Double x:Key="A_Double_Poster_Height">708</System:Double>

    <Style x:Key="A_Style_TextBlock_Poster" TargetType="{x:Type local:FZTextBlock}">
        <Setter Property="CapHeight" Value="22" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
    </Style>

    <Style x:Key="A_Style_TextBlock_Poster_Label" TargetType="{x:Type local:FZTextBlock}">
        <Setter Property="CapHeight" Value="22" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
    </Style>

    <MappingConverter x:Key="A_MappingConverter_IsActive_To_String" >
        <MappingConverterEntry Key="True" Value="Active" />
        <MappingConverterEntry Key="False" Value="Not Active" />
    </MappingConverter>

    <ControlTemplate TargetType="ContentControl"
                     x:Key="A_TemporaryEntries_Control">
        <StackPanel Orientation="Horizontal">
            <local:FZMaterial Color="{StaticResource H_Color_Primary_White}" >
                <local:FZTextBlock Style="{StaticResource A_Style_TextBlock_Poster_Label}"
                                   Text="{TemplateBinding Tag}"
                                   Margin="4"/>
            </local:FZMaterial>
            <local:FZMaterial Color="{StaticResource H_Color_Primary_White}">
                <local:FZTextBlock Style="{StaticResource A_Style_TextBlock_Poster}"
                                   Text="{TemplateBinding Content}"
                                   Margin="4"/>
            </local:FZMaterial>
        </StackPanel>
    </ControlTemplate>

    <ControlTemplate TargetType="{x:Type Control}"
                     x:Key="A_Template_UGCInfo_Control">
        <StackPanel Visibility="{Binding IsEnabled, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
            <ContentControl Content="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}"
                            Template="{StaticResource A_TemporaryEntries_Control}"
                            Tag="Creator:"/>
            <ContentControl Content="{Binding Likes}"
                            Template="{StaticResource A_TemporaryEntries_Control}"
                            Tag="Likes:"/>
            <ContentControl Content="{Binding Keyword1}"
                            Template="{StaticResource A_TemporaryEntries_Control}"
                            Tag="Keyword1:"/>
            <ContentControl Content="{Binding Keyword2}"
                            Template="{StaticResource A_TemporaryEntries_Control}"
                            Tag="Keyword2:"/>
        </StackPanel>
    </ControlTemplate>

    <ControlTemplate TargetType="{x:Type Control}"
                     x:Key="A_Template_VisitableInfo_Control">
        <StackPanel Visibility="{Binding IsEnabled, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
            <ContentControl Content="{Binding Visits}"
                            Template="{StaticResource A_TemporaryEntries_Control}"
                            Tag="Visits:"/>
            <ContentControl Content="Open"
                            Template="{StaticResource A_TemporaryEntries_Control}"
                            Tag="Visitor State:"/>
        </StackPanel>
    </ControlTemplate>

    <ControlTemplate TargetType="{x:Type Control}"
                     x:Key="A_Template_EstateInfo_Control">
        <StackPanel Visibility="{Binding IsEnabled, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
            <ContentControl Content="{Binding Value, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                            Template="{StaticResource A_TemporaryEntries_Control}"
                            Tag="Value:"/>
            <ContentControl Content="{Binding IsActive, Converter={StaticResource A_MappingConverter_IsActive_To_String}}"
                            Template="{StaticResource A_TemporaryEntries_Control}"
                            Tag="IsActive:"/>
        </StackPanel>
    </ControlTemplate>

    <Style TargetType="ContentControl"
           x:Key="A_Style_ContentControl_Poster">
        <Style.Resources>
            <DataTemplate DataType="{x:Type local:UGCLocationPosterDataSource}">
                <Grid Width="{StaticResource A_Double_Poster_Width}"
                      Height="{StaticResource A_Double_Poster_Height}"
                      HorizontalAlignment="Center"
                      VerticalAlignment="Center">
                    <local:FZMaterial Color="{StaticResource H_Color_Primary_White}" />
                    <local:FZMaterial ImageSource="{Binding Image}" 
                                      Width="{StaticResource A_Double_Poster_Width}"
                                      Height="{StaticResource A_Double_Poster_Height}"/>
                    <StackPanel>
                        <ContentControl Content="{Binding Title}"
                                        Template="{StaticResource A_TemporaryEntries_Control}"
                                        Tag="Name:"/>
                        <ContentControl Content="{Binding Description}"
                                        Template="{StaticResource A_TemporaryEntries_Control}"
                                        Tag="Description:"/>
                    </StackPanel>
                    <Control Template="{StaticResource A_Template_UGCInfo_Control}"
                             DataContext="{Binding UGCInfo}"
                             Margin="0,80,0,0"/>
                    <Control Template="{StaticResource A_Template_VisitableInfo_Control}"
                             DataContext="{Binding VisitableInfo}"
                             Margin="0,200,0,0"/>
                    <Control Template="{StaticResource A_Template_EstateInfo_Control}"
                             DataContext="{Binding EstateInfo}"
                             Margin="0,280,0,0"/>
                </Grid>
            </DataTemplate>
        </Style.Resources>
    </Style>
</ResourceDictionary>