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

    <System:Double x:Key="A_Double_FestivalPass_BackgroundImageHeight">708</System:Double>
    <System:Double x:Key="A_Double_FestivalPass_BackgroundImageWidth">1676</System:Double>

    <Thickness x:Key="A_Thickness_ScenePadding_Playlist">78,132,78,102</Thickness>

    <Style x:Key="A_Style_Border_ScenePadding_Playlist" 
           BasedOn="{StaticResource A_Style_FrameworkElement_LayoutRoot}"
           TargetType="Border">
        <Setter Property="Padding" Value="{StaticResource A_Thickness_ScenePadding_Opus}"/>
    </Style>


    <ImageSource x:Key="A_BitmapImage_FPPill_CheckmarkIcon">/ForzaUI;component/Textures/Data_Bound/FestivalPass/FP_Tick_Icon.png</ImageSource>

    <Style x:Key="A_Style_FZMaterial_FestivalPass_CheckBox_Base" TargetType="FZMaterial">
        <Setter Property="Width" Value="24"/>
        <Setter Property="Height" Value="24"/>
        <Setter Property="Preset" Value="{RoundtangleStroke Thickness=2}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_FestivalPass_CheckBox_Tick" TargetType="FZMaterial">
        <Setter Property="Width" Value="24"/>
        <Setter Property="Height" Value="24"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="ImageSource" Value="{StaticResource A_BitmapImage_FPPill_CheckmarkIcon}"/>
    </Style>

    <Style x:Key="A_Style_Control_FestivalPass_PlaylistIcon" TargetType="Control"
           BasedOn="{StaticResource H_Style_Control_PlaylistIcon}">
        <Setter Property="Height" Value="26" />
        <Setter Property="Width" Value="26" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Margin" Value="0,-3,0,0" />
    </Style>

    <Style x:Key="A_Style_FZRun_FestivalPass_Default" TargetType="{x:Type local:FZRun}"/>

    <Style x:Key="A_Style_FZRun_FP_ICON" TargetType="Control">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Control Style="{StaticResource H_Style_Control_PlaylistIcon}"
                             Margin="-4"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_FZRun_FestivalPass_HIGHLIGHT" TargetType="{x:Type local:FZRun}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
    </Style>

    <Style x:Key="A_Style_FZRun_FestivalPass_HIGHLIGHT_PreviewDescription" TargetType="{x:Type local:FZRun}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
        <Setter Property="FontFamily" Value="Horizon_A"/>
    </Style>

    <MappingConverter x:Key="A_MappingConverter_ProgressSliderValue_Markup">
        <MappingConverterEntry Key="{NoCase FP_ICON}" Value="{StaticResource A_Style_FZRun_FP_ICON}" />
        <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_FestivalPass_HIGHLIGHT}" />
        <MappingConverterEntry Key="{NoCase NUM}" Value="{StaticResource A_Style_FZRun_FestivalPass_Default}" />
    </MappingConverter>    

    <MappingConverter x:Key="A_MappingConverter_PreviewDescription_Markup">
        <MappingConverterEntry Key="{NoCase FP_ICON}" Value="{StaticResource A_Style_FZRun_FP_ICON}" />
        <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_FestivalPass_HIGHLIGHT_PreviewDescription}" />
        <MappingConverterEntry Key="{NoCase NUM}" Value="{StaticResource A_Style_FZRun_FestivalPass_Default}" />
    </MappingConverter>    

    <Style x:Key="A_Style_FZTextBlock_ProgressSlider_ValueText" TargetType="local:FZTextBlock"
        BasedOn="{StaticResource A_Style_FZTextBlock_HorizonC}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
        <Setter Property="CapHeight" Value="20" />
        <Setter Property="Text" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}" />
        <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc DestinationMenu.IDS_SeriesProgress_Format}" />
        <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_ProgressSliderValue_Markup}" />
    </Style>
    
    <local:MultiConverter x:Key="A_Converter_CarNameShort">
        <local:MultiConverterEntry Converter="{CarOrdinalConverter}" Parameter="ModelShort"/>
    </local:MultiConverter>

    <local:MappingConverter x:Key="A_Converter_Season_To_String_Styled">
        <local:MappingConverterEntry Key="{x:Static local:Season.Spring}"
                             Value="{local:Loc InGame.IDS_Season_Spring_Styled}" />
        <local:MappingConverterEntry Key="{x:Static local:Season.Summer}"
                             Value="{local:Loc InGame.IDS_Season_Summer_Styled}" />
        <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}"
                             Value="{local:Loc InGame.IDS_Season_Autumn_Styled}" />
        <local:MappingConverterEntry Key="{x:Static local:Season.Winter}"
                             Value="{local:Loc InGame.IDS_Season_Winter_Styled}" />
    </local:MappingConverter>
    
    <local:MappingConverter x:Key="A_Converter_PrizeTypeToImageSource_Badge_RewardItem"
                            Default="game:\Media\UI\Textures\Data_Bound\FestivalPass\RewardIcons\Generic_Prize_Icon.png">
        <MappingConverterEntry Key="{x:Static local:UIRewardType.Car}"
                               Value="game:\Media\UI\Textures\Data_Bound\FestivalPass\RewardIcons\Car_Prize_Icon.png" />
    </local:MappingConverter>
    

</ResourceDictionary>