<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">

        
    <CornerRadius x:Key="A_CornerRadius_FlyerBorderCornerRadius">3</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_FlyerOuterBorder">16</CornerRadius>

    <local:MappingConverter x:Key="A_Converter_IsCustomRules_ToIcon" Default="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/UGC_HorizonDefault.png">
        <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/UGC_CustomRules.png"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_FestivalSanctioned">
        <local:MappingConverterEntry Key="True" Value="{local:Loc EventBlueprint.IDS_SeasonalChampionship}"/>
        <local:MappingConverterEntry Key="False" Value="{local:Loc EventBlueprint.IDS_SeasonEvent}"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_ProgressionThread_To_AstraSilhouette">
        <local:MappingConverterEntry Key="dirt_rally" Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/Dirt.png"/>
        <local:MappingConverterEntry Key="mixed_rally" Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/Mixed.png"/>
        <local:MappingConverterEntry Key="road_rally" Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/Road.png"/>
        <local:MappingConverterEntry Key="street_dirt_rally" Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/Dirt.png"/>
        <local:MappingConverterEntry Key="street_mixed_rally" Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/Mixed.png"/>
        <local:MappingConverterEntry Key="street_road_rally" Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/Road.png"/>
    </local:MappingConverter>

    <System:Double x:Key="A_Double_CampaignSetupFlyerWidth">442</System:Double>
    <System:Double x:Key="A_Double_CampaignSetupFlyerHalfWidth">221</System:Double>
    <System:Double x:Key="A_Double_CampaignSetupFlyerHeight">708</System:Double>


    <local:EventBlueprintFlyerTemplateSelector x:Key="A_EventBlueprintFlyerTemplateSelector" DataTemplateBaseName="A_DataTemplate_CampaignSetup_Tile" />

    <Style x:Key="A_FZRun_BOLD" TargetType="local:FZRun">
        <Setter Property="FontFamily" Value="Horizon_A" />
    </Style>

    <MappingConverter x:Key="A_MappingConverter_BoldText" >
        <MappingConverterEntry Key="{NoCase BOLD}" Value="{StaticResource A_FZRun_BOLD}" />
    </MappingConverter>


    <Style x:Key="A_Style_ManualPassThrough_Visible_And_AncestorListBoxFocused_Allowed">
        <Setter Property="local:ManualPassthroughProperty.Allowed" Value="{StaticResource A_Boolean_False}"/>
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}" Value="{StaticResource A_Boolean_True}"/>
                    <Condition Binding="{Binding Visibility, RelativeSource={RelativeSource Self}}" Value="{x:Static Visibility.Visible}"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="local:ManualPassthroughProperty.Allowed" Value="{StaticResource A_Boolean_True}"/>
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_ScreenReader_EventFlyerButton" BasedOn="{StaticResource A_Style_ManualPassThrough_Visible_And_AncestorListBoxFocused_Allowed}">
        <Setter Property="local:ScreenReader.Line" Value="{Binding (local:ManualPassthroughProperty.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_TrimInlineMarkup}}"/>
        <Setter Property="local:ScreenReader.LineType" Value="SelectedItem"/>
        <Setter Property="local:ScreenReader.Event" Value="OnChange"/>
        <Setter Property="local:ScreenReader.ControlType" Value="Button"/>
        <Setter Property="local:ScreenReader.SelectedNumber" Value="{Binding (VirtualizingWrapPanel.ItemIndex), FallbackValue=0, RelativeSource={RelativeSource AncestorType={Type ListBoxItem}}, Converter={StaticResource A_IndexToNumberConverter}}"/>
        <Setter Property="local:ScreenReader.SelectedCount" Value="{Binding Items.Count, FallbackValue=0, RelativeSource={RelativeSource AncestorType={Type Selector}}}"/>
    </Style>
    
    <Style x:Key="A_Style_ScreenReader_EventFlyer_Details" BasedOn="{StaticResource A_Style_ManualPassThrough_Visible_And_AncestorListBoxFocused_Allowed}">
        <Setter Property="local:ManualPassthroughProperty.Input" Value="{Binding ScreenReaderDetailsString}"/>
        <Setter Property="local:ScreenReader.Line" Value="{Binding (local:ManualPassthroughProperty.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_TrimInlineMarkup}}"/>
        <Setter Property="local:ScreenReader.LineType" Value="SelectedDetails"/>
        <Setter Property="local:ScreenReader.Event" Value="OnChange"/>
    </Style>
    
    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile">
        <Grid>
            <local:FZMaterial ImageSource="{Binding BackgroundImage}" />
            <Grid>
                <DockPanel Margin="30">
                    <local:FZTextBlock Text="{Binding Creator.FormattedGamertag}" Style="{StaticResource A_Style_FZTextBlock_HorizonB}" FontSize="50" Color="#000000"
                                               DockPanel.Dock="Top"/>
                    <local:FZTextBlock Text="{Binding Name}" Style="{StaticResource A_Style_FZTextBlock_HorizonB}" Color="#000000"
                                               TextWrapping="Wrap" FontSize="100" MaxHeight="500" TextAlignment="Center" />
                </DockPanel>
            </Grid>
        </Grid>
    </DataTemplate>

    <Style x:Key="A_Style_Control_EventBlueprint_DebugName" TargetType="Control">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <ControlTemplate.Resources>
                        <Style x:Key="A_Style_EventBlueprint_DebugText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonD}">
                            <Setter Property="Color" Value="#000000" />
                            <Setter Property="FontSize" Value="15" />
                            <Setter Property="Margin" Value="0,0,20,0" />
                        </Style>
                    </ControlTemplate.Resources>
                    <StackPanel Orientation="Horizontal">
                        <local:FZTextBlock Text="{TemplateBinding Tag}" Style="{StaticResource A_Style_EventBlueprint_DebugText}" />
                        <local:FZTextBlock Text="{Binding VariationId}" Style="{StaticResource A_Style_EventBlueprint_DebugText}" />
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
        <Setter Property="Visibility" Value="Collapsed" />
    </Style>


    <Style x:Key="A_Style_FZTextBlock_FlyerHorizonA" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_A"/>
        <Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}"/>
        <Setter Property="LineAdjust" Value="{StaticResource A_Double_LineAdjust_HorizonA}"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_FlyerHorizonB" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_B" />
        <Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}" />
        <Setter Property="LineAdjust" Value="{StaticResource A_Double_LineAdjust_HorizonB}"/>
    </Style>

    <Style x:Key="A_Style_Control_OnlineFlyerCarClass"
           TargetType="Control"
           BasedOn="{StaticResource A_Style_Control_CarClassBadge_Only_Class}">
        <Setter Property="Margin" Value="0" />
        <Setter Property="Height" Value="Auto" />
        <Setter Property="local:BindingProxy.A" Value="{Binding XAMLCarRestrictions.CarPIMaxRestriction}" />
        <Setter Property="local:BindingProxy.B" Value="{Binding XAMLCarRestrictions.CarClassRestriction}" />
        <Setter Property="local:BindingProxy.C" Value="{Binding XAMLCarRestrictions.CarPIMinRestriction}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding XAMLCarRestrictions.HasCarClassOrPIRestriction, FallbackValue=False}" Value="False">
                <Setter Property="Visibility" Value="Collapsed" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Color x:Key="A_Color_Highlight_Darker_GradientA">#FFBF4910</Color>
    <Color x:Key="A_Color_Highlight_Darker_GradientB">#FFBD013F</Color>
    <CornerRadius x:Key="A_CornerRadius_Showdown">3</CornerRadius>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHighlight_Darker"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        GradientColorA="{StaticResource A_Color_Highlight_Darker_GradientA}"
        GradientColorB="{StaticResource A_Color_Highlight_Darker_GradientB}"
        CornerRadius="{StaticResource A_CornerRadius_Showdown}"
        GradientAngle="90"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientHighlight_Showdown_Inner" 
                                       BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight}"
                                       CornerRadius="{StaticResource A_CornerRadius_Inner_All}"/>
    <ControlTemplate x:Key="A_Control_Showdown_Pill" TargetType="Control">
        <local:FZMaterial Width="115" Preset="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight_Darker}">
            <local:FZMaterial Margin="3" Preset="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight_Showdown_Inner}">
                <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_CarClassShowdown}" Color="White" CapHeight="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            </local:FZMaterial>
        </local:FZMaterial>
    </ControlTemplate>

    <local:MappingConverter x:Key="A_Converter_Weather_Severity_To_Short_String" Default="{local:Loc EventBlueprint.IDS_WeatherAndTimeOfDayControl_Natural}" CheckEnumKey="XAMLWeather">
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Clear}" Value="{local:Loc GameOptions2.IDS_Weather_Severity_Clear}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.ClearPostRain}" Value="{local:Loc GameOptions2.IDS_Weather_Severity_ClearPostRain}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Cloudy}" Value="{local:Loc GameOptions2.IDS_Weather_Severity_Cloudy}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.CloudyPostRain}" Value="{local:Loc GameOptions2.IDS_Weather_Severity_CloudyPostRain}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Overcast}" Value="{local:Loc GameOptions2.IDS_Weather_Severity_Overcast}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.LightPrecipitation}" Value="{local:Loc GameOptions2.IDS_Weather_Severity_LightPrecipitation}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.HeavyPrecipitation}" Value="{local:Loc GameOptions2.IDS_Weather_Severity_HeavyPrecipitation}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.TropicalStorm}" Value="{local:Loc GameOptions2.IDS_Weather_Severity_TropicalStorm}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.DustStorm}" Value="{local:Loc GameOptions2.IDS_Weather_Severity_DustStorm}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Gale}" Value="{local:Loc GameOptions2.IDS_Weather_Severity_Gale}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Fog}" Value="{local:Loc GameOptions2.IDS_Weather_Severity_Fog}"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_Weather_TimeOfDay_To_Short_String" Default="{local:Loc EventBlueprint.IDS_WeatherAndTimeOfDayControl_Natural}" CheckEnumKey="XAMLTimeOfDay">
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Dawn}" Value="{local:Loc GameOptions2.IDS_Weather_TimeOfDay_Dawn}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Sunrise}" Value="{local:Loc GameOptions2.IDS_Weather_TimeOfDay_Sunrise}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Morning}" Value="{local:Loc GameOptions2.IDS_Weather_TimeOfDay_Morning}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.EarlyAfternoon}" Value="{local:Loc GameOptions2.IDS_Weather_TimeOfDay_EarlyAfternoon}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.LateAfternoon}" Value="{local:Loc GameOptions2.IDS_Weather_TimeOfDay_LateAfternoon}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Sunset}" Value="{local:Loc GameOptions2.IDS_Weather_TimeOfDay_Sunset}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Evening}" Value="{local:Loc GameOptions2.IDS_Weather_TimeOfDay_Evening}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Night}" Value="{local:Loc GameOptions2.IDS_Weather_TimeOfDay_Night}"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_Weather_TimeOfDay_IsFreeroam" Default="True" CheckEnumKey="XAMLTimeOfDay">
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Dawn}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Sunrise}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Morning}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.EarlyAfternoon}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.LateAfternoon}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Sunset}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Evening}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Night}" Value="False"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_Weather_Severity_IsFreeroam" Default="True" CheckEnumKey="XAMLWeather">
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Clear}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.ClearPostRain}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Cloudy}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.CloudyPostRain}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Overcast}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.LightPrecipitation}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.HeavyPrecipitation}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.TropicalStorm}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.DustStorm}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Gale}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Fog}" Value="False"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_Weather_Severity_To_PillIcon" Default="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Dynamic.png" CheckEnumKey="XAMLWeather">
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Clear}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Clear.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.ClearPostRain}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Post_Rain.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Cloudy}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Cloudy.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.CloudyPostRain}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Post_Rain.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Overcast}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Overcast.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.LightPrecipitation}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Light_Precipitation.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.HeavyPrecipitation}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Heavy_Precipitation.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.TropicalStorm}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Tropical_Storm.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.DustStorm}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Dust_Storm.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Gale}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Gale.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Fog}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Fog.png"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_TimeOfDay_To_String" Default="" CheckEnumKey="XAMLTimeOfDay">
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Dawn}" Value="{local:Loc InGame.IDS_Label_Dawn}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Sunrise}" Value="{local:Loc InGame.IDS_Label_Sunrise}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Morning}" Value="{local:Loc InGame.IDS_Label_Morning}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.EarlyAfternoon}" Value="{local:Loc InGame.IDS_Label_EarlyAfternoon}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.LateAfternoon}" Value="{local:Loc InGame.IDS_Label_LateAfternoon}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Sunset}" Value="{local:Loc InGame.IDS_Label_Sunset}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Evening}" Value="{local:Loc InGame.IDS_Label_Evening}"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.Night}" Value="{local:Loc InGame.IDS_Label_Night}"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_Season_To_FooterIcon">
        <local:MappingConverterEntry Key="{x:Static local:Season.Spring}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/Seasons/Season_Spring.png"/>
        <local:MappingConverterEntry Key="{x:Static local:Season.Summer}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/Seasons/Season_Summer.png"/>
        <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/Seasons/Season_Autumn.png"/>
        <local:MappingConverterEntry Key="{x:Static local:Season.Winter}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/Seasons/Season_Winter.png"/>
    </local:MappingConverter>

    <ControlTemplate x:Key="A_Control_RaceWeather_Pill">
        <ControlTemplate.Resources>
            <local:MappingConverter x:Key="A_Converter_RaceMode_To_RaceSilhouetteIcon" Default="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/LapsRace.png">
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.LapsRace}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/LapsRace.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.P2P}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/P2P.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.CrossCountry}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/CrossCountry.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.CrossCountryCircuit}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/CrossCountryCircuit.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.Scramble}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/Scramble.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.TrailRace}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/TrailRace.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.StreetRace}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/StreetRace.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.Drag}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/Drag.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.King}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/PlaygroundGames.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.Infection}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/PlaygroundGames.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.FlagRush}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/PlaygroundGames.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.TeamKing}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/PlaygroundGames.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.TeamInfected}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/PlaygroundGames.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.TeamFlagRush}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/PlaygroundGames.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.DriftRun}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/LapsRace.png" />
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.FreeRoamPointToPoint}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/FreeRoamPointToPoint.png"/>
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.SpeedSprint}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/SpeedSprint.png"/>
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.SpeedCircuit}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/SpeedCircuit.png"/>
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.ExtremeSprint}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/ExtremeSprint.png"/>
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.ExtremeCircuit}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/ExtremeCircuit.png"/>
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.RallyRace}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/RallyRace.png"/>
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.RallyCross}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/RallyCross.png"/>
                <local:MappingConverterEntry Key="{x:Static local:RaceMode.RallyBoss}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/Event_Blueprint/AdditionalInfo/RaceForegroundIcon/RallyBoss.png"/>
            </local:MappingConverter>

        </ControlTemplate.Resources>
        <Viewbox Stretch="Uniform" StretchDirection="Both" x:Name="WeatherPill" Focusable="False">
            <local:FZMaterial Color="{StaticResource H_Color_Primary_Purple}" Height="50" Width="100">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <local:FZMaterial x:Name="SeasonIcon"
                            Stretch="Uniform"
                            GreedyMeasure="True"
                            Color="#FFFFFFFF"
                            Grid.Column="0" >
                        <FZMaterial.Style>
                            <Style  TargetType="{Type FZMaterial}">
                                <Setter Property="ImageSource" Value="{Binding (local:BindingProxy.C), Converter={StaticResource A_Converter_Season_To_FooterIcon}, RelativeSource={RelativeSource TemplatedParent}}"/>
                            </Style>
                        </FZMaterial.Style>
                    </local:FZMaterial>
                    <Grid Grid.Column="1" HorizontalAlignment="Right" Width="50">
                        <local:FZMaterial x:Name="WeatherIcon"
                            ImageSourceNoPreload="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_Converter_Weather_Severity_To_PillIcon}}"
                            Stretch="Uniform"
                            Color="{StaticResource H_Color_Primary_White}"
                            GreedyMeasure="True"/>
                    </Grid>
                </Grid>
            </local:FZMaterial>
        </Viewbox>
        <ControlTemplate.Triggers>
            <MultiDataTrigger>
                <!--at early nighttime on a clear sky, change the weather -->
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding (local:BindingProxy.B), RelativeSource={RelativeSource Self}}" Value="{x:Static local:XAMLTimeOfDay.Night}"/>
                    <Condition Binding="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource Self}}" Value="{x:Static local:XAMLWeather.Clear}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="WeatherIcon" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Clear_Night.png"/>
            </MultiDataTrigger>

            <MultiDataTrigger>
                <!--at early nighttime on a clear post rain sky, change the weather -->
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding (local:BindingProxy.B), RelativeSource={RelativeSource Self}}" Value="{x:Static local:XAMLTimeOfDay.Night}"/>
                    <Condition Binding="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource Self}}" Value="{x:Static local:XAMLWeather.ClearPostRain}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="WeatherIcon" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Clear_Night.png"/>
            </MultiDataTrigger>

            <MultiDataTrigger>
                <!--at early nighttime on a cloudy post rain sky, change the weather -->
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding (local:BindingProxy.B), RelativeSource={RelativeSource Self}}" Value="{x:Static local:XAMLTimeOfDay.Night}"/>
                    <Condition Binding="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource Self}}" Value="{x:Static local:XAMLWeather.CloudyPostRain}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="WeatherIcon" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Clear_Night.png"/>
            </MultiDataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <local:MappingConverter x:Key="A_Converter_Branding_To_Icon" CheckEnumKey="FlyerBrandingEnum">
        <local:MappingConverterEntry Key="{x:Static local:FlyerBrandingEnum.None}" Value=""/>
        <local:MappingConverterEntry Key="{x:Static local:FlyerBrandingEnum.DiscoverJapan}"   Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Branding/Discover_Japan_Logo.png"/>
        <local:MappingConverterEntry Key="{x:Static local:FlyerBrandingEnum.HorizonFestival}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Branding/Festival_Logo.png"/>
        <local:MappingConverterEntry Key="{x:Static local:FlyerBrandingEnum.EventLab}"        Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Branding/Eventlab_Logo.png"/>
    </local:MappingConverter>
  
    <local:MappingConverter x:Key="A_Converter_Branding_To_Visibility" Default="Visible">
        <local:MappingConverterEntry Key="{x:Static local:FlyerBrandingEnum.None}" Value="Collapsed"/>
    </local:MappingConverter>
    
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlyerBackgroundImage"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_FlyerBorderCornerRadius}"/>

    <Style x:Key="A_Style_FZMaterial_FlyerBackgroundImage" TargetType="local:FZMaterial" 
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBackgroundImage}" />
        <Setter Property="Visibility" Value="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter UseHidden=True}}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_CarRestrictionImage_Custom" TargetType="local:FZMaterial" 
       BasedOn="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}">
        <Setter Property="Visibility" Value="{Binding ImageSource, RelativeSource={RelativeSource Self}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding HasCustomBackground}" Value="True">
                <Setter Property="Visibility" Value="Collapsed" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlyerHighContrastUnderlay" TargetType="local:FZMaterial" 
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBackgroundImage}" />
        <Setter Property="Color" Value="#66000000" />
        <Setter Property="Visibility" Value="{StaticResource A_Visibility_ShowForHighContrastOnly}" />
    </Style>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlyerBorder"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_FlyerBorderCornerRadius}"/>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlyerBorder_OnlineAdventure"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_FlyerOuterBorder}"/>


    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlyerBorder_Glass"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        BlurAmount="Medium"
        CornerRadius="{StaticResource A_CornerRadius_FlyerOuterBorder}"/>

    <Style x:Key="A_Style_FZMaterial_FlyerBorder_Glass" TargetType="local:FZMaterial"
           BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_Pill}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBorder_Glass}" />
    </Style>

    <MappingConverter x:Key="A_Converter_RaceMode_To_Banner" Default="{Null}">
        <MappingConverterEntry Key="{Static RaceMode.LapsRace}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_Asphalt_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.P2P}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_Asphalt_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.CrossCountry}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_Crosscountry_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.CrossCountryCircuit}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_Crosscountry_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.Scramble}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_MixedSurface_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.TrailRace}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_MixedSurface_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.MidnightBattle}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_MidnightBattle_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.StreetRace}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_StreetRace_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.Drag}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_DragRace_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.King}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames.png" />
        <MappingConverterEntry Key="{Static RaceMode.Infection}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames.png" />
        <MappingConverterEntry Key="{Static RaceMode.FlagRush}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames.png" />
        <MappingConverterEntry Key="{Static RaceMode.TeamKing}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames.png" />
        <MappingConverterEntry Key="{Static RaceMode.TeamInfected}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames.png" />
        <MappingConverterEntry Key="{Static RaceMode.TeamFlagRush}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames.png" />
        <MappingConverterEntry Key="{Static RaceMode.SpeedSprint}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_Speed_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.SpeedCircuit}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_Speed_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.ExtremeSprint}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_Extreme_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.ExtremeCircuit}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_Extreme_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.RallyRace}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_Rally_Race.png" />
        <MappingConverterEntry Key="{Static RaceMode.RallyCross}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_Rally_Cross.png" />
        <MappingConverterEntry Key="{Static RaceMode.RallyBoss}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Event_Rally_Boss.png" />
    </MappingConverter>

    <MappingConverter x:Key="A_Converter_RaceMode_To_SeasonalBanner" Default="{Null}">
        <MappingConverterEntry Key="{Static RaceMode.LapsRace}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Asphalt_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.P2P}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Asphalt_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.CrossCountry}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Crosscountry_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.CrossCountryCircuit}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Crosscountry_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.Scramble}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_MixedSurface_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.TrailRace}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_MixedSurface_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.StreetRace}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_StreetRace_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.Drag}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_DragRace_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.King}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames_Seasonal.png" />
        <MappingConverterEntry Key="{Static RaceMode.Infection}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames_Seasonal.png" />
        <MappingConverterEntry Key="{Static RaceMode.FlagRush}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames_Seasonal.png" />
        <MappingConverterEntry Key="{Static RaceMode.TeamKing}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames_Seasonal.png" />
        <MappingConverterEntry Key="{Static RaceMode.TeamInfected}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames_Seasonal.png" />
        <MappingConverterEntry Key="{Static RaceMode.TeamFlagRush}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/PlaygroundGames_Seasonal.png" />
        <MappingConverterEntry Key="{Static RaceMode.SpeedSprint}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Speed_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.SpeedCircuit}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Speed_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.ExtremeSprint}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Extreme_Series.png" />
        <MappingConverterEntry Key="{Static RaceMode.ExtremeCircuit}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Extreme_Circuit.png" />
        <MappingConverterEntry Key="{Static RaceMode.RallyRace}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Rally_Race.png" />
        <MappingConverterEntry Key="{Static RaceMode.RallyCross}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Rally_Cross.png" />
        <MappingConverterEntry Key="{Static RaceMode.RallyBoss}"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Rally_Boss.png" />
    </MappingConverter>

    <MappingConverter x:Key="A_Converter_ProgressionThread_To_SeasonalBanner" Default="{Null}">
        <MappingConverterEntry Key="dirt_rally"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Astra_Dirt.png" />
        <MappingConverterEntry Key="street_dirt_rally"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Astra_Dirt.png" />
        <MappingConverterEntry Key="rally_boss_battle_dirt"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Astra_Dirt.png" />
        <MappingConverterEntry Key="mixed_rally"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Astra_Mixed.png" />
        <MappingConverterEntry Key="street_mixed_rally"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Astra_Mixed.png" />
        <MappingConverterEntry Key="rally_boss_battle_street"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Astra_Mixed.png" />
        <MappingConverterEntry Key="road_rally"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Astra_Road.png" />
        <MappingConverterEntry Key="street_road_rally"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Astra_Road.png" />
        <MappingConverterEntry Key="rally_boss_battle_road"
                               Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Season_Event_Astra_Road.png" />
    </MappingConverter>

    <MappingConverter x:Key="A_Converter_FestivalLink_To_Banner"
                      Default="{Null}">
        <local:MappingConverterEntry Key="MainOutpost"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Horizon_Mexico.png" />
        <local:MappingConverterEntry Key="RoadRacingOutpost"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Horizon_Apex.png" />
        <local:MappingConverterEntry Key="DirtRacingOutpost"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Horizon_Wilds.png" />
        <local:MappingConverterEntry Key="CrossCountryOutpost"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Horizon_Baja.png" />
        <local:MappingConverterEntry Key="StreetRacingOutpost"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Horizon_StreetScene.png" />
        <local:MappingConverterEntry Key="SpectrumOutpost"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Horizon_Spectrum.png" />
        <local:MappingConverterEntry Key="FalconOutpost"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Horizon_Falcon.png" />
    </MappingConverter>
    
    <MappingConverter x:Key="A_Converter_RaceMode_To_BannerText" Default="{Null}">
        <MappingConverterEntry Key="{Static RaceMode.LapsRace}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_LapsRace}" />
        <MappingConverterEntry Key="{Static RaceMode.P2P}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_P2P}" />
        <MappingConverterEntry Key="{Static RaceMode.CrossCountry}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_CrossCountry}" />
        <MappingConverterEntry Key="{Static RaceMode.CrossCountryCircuit}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_CrossCountryCircuit}" />
        <MappingConverterEntry Key="{Static RaceMode.Scramble}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_Scramble}" />
        <MappingConverterEntry Key="{Static RaceMode.TrailRace}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_TrailRace}" />
        <MappingConverterEntry Key="{Static RaceMode.StreetRace}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_StreetRace}" />
        <MappingConverterEntry Key="{Static RaceMode.Drag}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_Drag}" />
        <MappingConverterEntry Key="{Static RaceMode.King}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_King}" />
        <MappingConverterEntry Key="{Static RaceMode.Infection}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_Infection}" />
        <MappingConverterEntry Key="{Static RaceMode.FlagRush}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_FlagRush}" />
        <MappingConverterEntry Key="{Static RaceMode.TeamKing}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_TeamKing}" />
        <MappingConverterEntry Key="{Static RaceMode.TeamInfected}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_TeamInfected}" />
        <MappingConverterEntry Key="{Static RaceMode.TeamFlagRush}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_TeamFlagRush}" />
        <MappingConverterEntry Key="{Static RaceMode.SpeedSprint}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_SpeedSprint}" />
        <MappingConverterEntry Key="{Static RaceMode.SpeedCircuit}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_SpeedCircuit}" />
        <MappingConverterEntry Key="{Static RaceMode.ExtremeSprint}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_ExtremeSprint}" />
        <MappingConverterEntry Key="{Static RaceMode.ExtremeCircuit}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_ExtremeCircuit}" />
        <MappingConverterEntry Key="{Static RaceMode.RallyRace}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_RallyRace}" />
        <MappingConverterEntry Key="{Static RaceMode.RallyCross}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_RallyCross}" />
        <MappingConverterEntry Key="{Static RaceMode.RallyBoss}"
                               Value="{Loc EventBlueprint.IDS_RaceMode_RallyBoss}" />
    </MappingConverter>

    <local:MappingConverter x:Key="A_Converter_MediaTrackToFooterPath">
        <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.Default}"
                                     Value="" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.ExpansionOne}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Event_Blueprint/PDLC1_Footer.png" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.ExpansionTwo}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/Event_Blueprint/PDLC2_Footer.png" />
    </local:MappingConverter>

    <Style x:Key="A_Style_FZMaterial_FlyerBackgroundImageMediaTrackFooter"
           TargetType="local:FZMaterial">
        <Style.Triggers>
            <DataTrigger Binding="{Binding RaceSetups.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="1">
                <Setter Property="ImageSource" Value="{Binding RaceSetups[0].MediaTrack, Converter={StaticResource A_Converter_MediaTrackToFooterPath}}" />
            </DataTrigger>
        </Style.Triggers>
        <Setter Property="HorizontalAlignment"
                Value="Stretch" />
        <Setter Property="VerticalAlignment"
                Value="Bottom" />
        <Setter Property="GreedyMeasure"
                Value="True" />
        <Setter Property="Stretch"
                Value="Uniform" />
    </Style>

    <local:MappingConverter x:Key="A_Converter_MediaTrackToFooterIconPath" Default="">
        <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.Default}"
                                     Value="" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.ExpansionOne}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Event_Blueprint/PDLC1_Footer_Icon.png" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.ExpansionTwo}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/Event_Blueprint/PDLC2_Footer_Icon.png" />
    </local:MappingConverter>

    <local:MultiConverter x:Key="A_Converter_MediaTrackToVisibility">
        <local:MultiConverterEntry Converter="{StaticResource A_Converter_MediaTrackToFooterIconPath}" />
        <local:MultiConverterEntry Converter="{StaticResource A_StringVisConverter}" />
    </local:MultiConverter>

    <MappingConverter x:Key="A_MappingConverter_FlyerVariationIdToTextColor" Default="{StaticResource H_Color_Primary_White}">
        <MappingConverterEntry Key="Dark" Value="{StaticResource A_Color_TextMenu_Text_Default}"/>
    </MappingConverter>
    
        <MappingConverter x:Key="A_MappingConverter_FlyerVariationIdToColor" Default="{StaticResource H_Color_Primary_White}">
        <MappingConverterEntry Key="Dark" Value="{StaticResource H_Color_Primary_Black}"/>
    </MappingConverter>

    <Style x:Key="A_Style_TextBlock_CampaignSetupFlyer" TargetType="{x:Type local:FZTextBlock}">
        <Setter Property="TextWrapping" Value="Wrap" />
        <Setter Property="TextAlignment" Value="Center" />
        <Setter Property="Color" Value="{Binding VariationId, Converter={StaticResource A_MappingConverter_FlyerVariationIdToTextColor}}"/>
    </Style>

    <MappingConverter x:Key="A_LangStrToCampaignSetupFlyerHeadingTextLineAdjust" Default="-0.61">
        <MappingConverterEntry Key="KO" Value="-0.3"/>
        <MappingConverterEntry Key="FR" Value="-0.4"/>
        <MappingConverterEntry Key="HU" Value="-0.3"/>
        <MappingConverterEntry Key="JP" Value="-0.2"/>
        <MappingConverterEntry Key="RU" Value="-0.3"/>
        <MappingConverterEntry Key="TR" Value="-0.3"/>
        <MappingConverterEntry Key="CHT" Value="-0.3"/>
        <MappingConverterEntry Key="CHS" Value="-0.3"/>
        <MappingConverterEntry Key="DE" Value="-0.4"/>
        <MappingConverterEntry Key="PL" Value="-0.3"/>
        <MappingConverterEntry Key="IT" Value="-0.3"/>
        <MappingConverterEntry Key="ES" Value="-0.3"/>
        <MappingConverterEntry Key="MX" Value="-0.3"/>
        <MappingConverterEntry Key="BR" Value="-0.3"/>
    </MappingConverter>

    <Style x:Key="A_Style_TextBlock_CampaignSetupFlyer_Heading_Base" BasedOn="{StaticResource A_Style_TextBlock_CampaignSetupFlyer}" TargetType="{x:Type local:FZTextBlock}">
        <Setter Property="CapHeight" Value="29" />
        <Setter Property="FontFamily" Value="Horizon_A" />
        <Setter Property="LineAdjust" Value="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToCampaignSetupFlyerHeadingTextLineAdjust}}" />
    </Style>

    <Style x:Key="A_Style_TextBlock_CampaignSetupFlyer_Description" BasedOn="{StaticResource A_Style_TextBlock_CampaignSetupFlyer}" TargetType="{x:Type local:FZTextBlock}">
        <Setter Property="CapHeight" Value="18" />
        <Setter Property="FontFamily" Value="Horizon_B" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_RaceInfo_HeaderText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="CapHeight" Value="18"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding RaceSetups[0].FestivalSiteId, Converter={StaticResource A_Converter_FestivalLink_To_Banner}}"
                         Value="{Null}">
                <Setter Property="Text"
                        Value="{Binding RaceSetups[0].RaceMode, Converter={StaticResource A_Converter_RaceMode_To_BannerText}, FallbackValue={Null}}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding SetupType}" Value="{x:Static local:CampaignSetupType.SeasonalEvent}">
                <Setter Property="Text" Value="{Binding IsStreetRaceOnly, Converter={StaticResource A_Converter_FestivalSanctioned}}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding IsOnlineAdventure}" Value="True">
                <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_Flyer_HorizonOpen}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_SeasonChampionship}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding IsTour}" Value="True">
                <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_HorizonTourEvent}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding RaceSetups[0].RaceMode}"
                         Value="{Static RaceMode.MidnightBattle}">
                <Setter Property="Text"
                        Value="{Loc EventBlueprint.IDS_ThreadSetting_MidnightBattle}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <local:MappingConverter x:Key="A_Converter_Visible_IsSetupType_UGC" Default="Collapsed">
        <local:MappingConverterEntry Key="{x:Static local:CampaignSetupType.Community}" Value="Visible"/>
        <local:MappingConverterEntry Key="{x:Static local:CampaignSetupType.Dynamic}"
                                     Value="Visible" />
        <local:MappingConverterEntry Key="{x:Static local:CampaignSetupType.LocalPlayerCreated}"
                                     Value="Visible" />
    </local:MappingConverter>

    <DataTemplate x:Key="A_ControlTemplate_OptionsHighlight_Blueprint_Pill">
        <FZMaterial Color="{StaticResource H_Color_Primary_Black}"
                    Preset="{Roundtangle CornerRadius=6}"
                    Visibility="{Binding DataContext, RelativeSource={RelativeSource Self}, Converter={StaticResource A_StringVisConverter}}"
                    Margin="0,0,3,0">
            <Grid>
                <FZMaterial Color="{StaticResource H_Color_Primary_White}"
                            Margin="2">
                    <FZMaterial.Preset>
                        <FZMaterialPresetRoundtangleStroke CornerRadius="3"
                                                           Thickness="2"/>
                    </FZMaterial.Preset>
                </FZMaterial>
                <FZTextBlock Text="{Binding DataContext, RelativeSource={RelativeSource Self}}"
                             Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                             Color="{StaticResource A_Color_White}"
                             CapHeight="14"
                             VerticalAlignment="Center"
                             HorizontalAlignment="Center"
                             Margin="10,4" />
            </Grid>
        </FZMaterial>
    </DataTemplate>

    <Style x:Key="A_Style_ItemsControl_FlyerTags" TargetType="ItemsControl">
        <Setter Property="Height" Value="33"/>
        <Setter Property="Visibility" Value="{Binding SetupType, Converter={StaticResource A_Converter_Visible_IsSetupType_UGC}, FallbackValue=Collapsed}"/>
        <Setter Property="Margin" Value="25,0,0,65"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Bottom"/>
        <Setter Property="ItemTemplate" Value="{StaticResource A_ControlTemplate_OptionsHighlight_Blueprint_Pill}"/>
        <Setter Property="ItemsSource" Value="{Binding RaceSetups[0].UIOptionHighlights}"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <StackPanel IsItemsHost="True"
                                Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_FZMaterial_CustomFlyerTape" TargetType="local:FZMaterial">
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Backgrounds/Eventlab/EventLab_Custom.png" />
        <Setter Property="Visibility" Value="Collapsed" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding ShouldApplyGradient}" Value="true"> 
                <Setter Property="Visibility" Value="Visible" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <!-- Event Setup tile datatemplates -->

    <Style x:Key="A_FZRun_BOLD" TargetType="local:FZRun">
        <Setter Property="FontFamily" Value="Horizon_A" />
    </Style>

    <MappingConverter x:Key="A_MappingConverter_BoldText" >
        <MappingConverterEntry Key="{NoCase BOLD}" Value="{StaticResource A_FZRun_BOLD}" />
        <MappingConverterEntry Key="{NoCase Num}" Value="{StaticResource A_FZRun_BOLD}" />
    </MappingConverter>

    <Style x:Key="A_Style_FZTextBlock_DistanceLabel" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_D" />
        <Setter Property="CapHeight" Value="14" />
        <Setter Property="Margin" Value="0,2.5" />
        <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_BoldText}" />
        <Setter Property="Color" Value="{Binding VariationId, Converter={StaticResource A_MappingConverter_FlyerVariationIdToTextColor}}"/>
        <Setter Property="TextAlignment" Value="Right" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="Visibility" Value="Collapsed" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_EventLabLikesPlaysLabel" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_C" />
        <Setter Property="CapHeight" Value="14" />
        <Setter Property="Color" Value="{Binding VariationId, Converter={StaticResource A_MappingConverter_FlyerVariationIdToColor}}" />
        <Setter Property="TextAlignment" Value="Right" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="VerticalAlignment" Value="Center" />
    </Style>

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

    <Style x:Key="A_Style_FZRun_CR_ICON" TargetType="Control">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Control Style="{StaticResource H_Style_Control_CreditsIcon}"
                             Height="22"
                             Width="22"
                             Margin="0,-3,0,0"
                             VerticalAlignment="Center"/>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <MappingConverter x:Key="A_MappingConverter_ValueText" >
        <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_FZRun_Highlight_Yellow_Value}" />
        <MappingConverterEntry Key="{NoCase CR_ICON}" Value="{StaticResource A_Style_FZRun_CR_ICON}" />
    </MappingConverter>

    <Style x:Key="A_Style_FZRun_HOUSE_ICON" TargetType="Control">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <FZMaterial ImageSource="game:\Media\UI\Textures\Data_Bound\Garage\Posters\Garage_House_Icon.png"
                                 Height="15"
                                 Width="16"
                                 Margin="4,-1,0,0"
                                 VerticalAlignment="Center"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <MappingConverter x:Key="A_MappingConverter_ActiveText" >
        <MappingConverterEntry Key="{NoCase HOUSE_ICON}" Value="{StaticResource A_Style_FZRun_HOUSE_ICON}" />
    </MappingConverter>

    <Style x:Key="A_Style_FZTextBlock_ValueLabel" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_C" />
        <Setter Property="CapHeight" Value="16" />
        <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_ValueText}" />
        <Setter Property="Color" Value="{Binding VariationId, Converter={StaticResource A_MappingConverter_FlyerVariationIdToTextColor}}"/>
        <Setter Property="TextAlignment" Value="Right" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="Visibility" Value="Collapsed" />
        <Setter Property="Text" Value="{Binding ValueText}" />
        <Setter Property="Visibility" Value="{Binding ValueText, Converter={StaticResource A_StringVisConverter}}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_DistanceUGCSeparator" TargetType="local:FZMaterial">
        <Setter Property="Color" Value="{Binding VariationId, Converter={StaticResource A_MappingConverter_FlyerVariationIdToColor}}" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="Width" Value="83" />
        <Setter Property="Height" Value="2" />
        <Setter Property="Visibility" Value="Collapsed" />
        <Setter Property="Margin" Value="0,10,0,3" />
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding ActualHeight, ElementName=DistanceLabelContainer, Converter={CompareConverter Value=15}}" Value="{x:Static CompareResult.GreaterThan}"/>
                    <Condition Binding="{Binding ActualHeight, ElementName=UGCLabelContainer, Converter={CompareConverter Value=15}}" Value="{x:Static CompareResult.GreaterThan}"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility" Value="Visible" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <!--Presents-->
    <ControlTemplate x:Key="A_ControlTemplate_Presents" TargetType="Control">
        <StackPanel Orientation="Horizontal"
                    VerticalAlignment="Top"
                    HorizontalAlignment="Left"
                    Margin="25"
                    Visibility="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringVisConverter}}">
            <local:FZMaterial Color="{StaticResource H_Color_Primary_White}">
                <local:FZTextBlock x:Name="CreatorNameText"
                                       Text="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}"
                                       FontFamily="Horizon_A"
                                       Color="{StaticResource H_Color_Primary_Black}"
                                       CapHeight="14"
                                       Margin="7,5"/>
            </local:FZMaterial>

            <local:FZMaterial Color="{StaticResource H_Color_Primary_Black}">
                <local:FZTextBlock FontFamily="Horizon_B"
                                       CapHeight="14"
                                       Margin="7,5"
                                       Text="{local:Loc EventBlueprint.IDS_Flyer_CreatorPresents}"
                                       Color="{StaticResource H_Color_Primary_White}"/>
            </local:FZMaterial>
        </StackPanel>
    </ControlTemplate> 
    
    
    <!--UGC Likes/Dislikes And Distance-->
    <ControlTemplate x:Key="A_ControlTemplate_LikesAndDistance" TargetType="Control">
        <StackPanel Orientation="Vertical"
                        VerticalAlignment="Top"
                        HorizontalAlignment="Right" 
                        Margin="0,492,25,0">
            <StackPanel x:Name="DistanceLabelContainer"
                            Orientation="Vertical"
                            HorizontalAlignment="Right">
                <local:FZTextBlock Text="{Binding RaceCountText}"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}"
                                       Style="{StaticResource A_Style_FZTextBlock_DistanceLabel}" />
                <local:FZTextBlock Text="{Binding TotalLengthText}"
                                       Visibility="{Binding TotalLengthText, Converter={StaticResource A_StringVisConverter}}"
                                       Style="{StaticResource A_Style_FZTextBlock_DistanceLabel}" />
                <local:FZTextBlock Text="{Binding TotalDistanceText}"
                                       Visibility="{Binding TotalDistanceText, Converter={StaticResource A_StringVisConverter}}"
                                       Style="{StaticResource A_Style_FZTextBlock_DistanceLabel}" />
            </StackPanel>

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_DistanceUGCSeparator}"/>

            <StackPanel x:Name="UGCLabelContainer"
                            Orientation="Vertical"
                            HorizontalAlignment="Right">

                <StackPanel Orientation="Horizontal"
                                Margin="0,2.5"
                                Visibility="{Binding PlaysText, Converter={StaticResource A_StringVisConverter}}"
                                HorizontalAlignment="Right">
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_EventLabLikesPlaysLabel}"
                                           Text="{Binding PlaysText}"/>
                    <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/UGC_Plays.png"
                                      Color="{Binding VariationId, Converter={StaticResource A_MappingConverter_FlyerVariationIdToColor}}"
                                      Width="31" Height="31"
                                      Margin="0,-3"
                                      VerticalAlignment="Center"/>
                </StackPanel>

                <StackPanel Orientation="Horizontal"
                                Margin="0,0"
                                Visibility="{Binding LikesText, Converter={StaticResource A_StringVisConverter}}"
                                HorizontalAlignment="Right">
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_EventLabLikesPlaysLabel}"
                                           Text="{Binding LikesText}"/>
                    <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/UGC_Likes.png"
                                      Color="{Binding VariationId, Converter={StaticResource A_MappingConverter_FlyerVariationIdToColor}}"
                                      Width="31" Height="31"
                                      Margin="0,-3"
                                      VerticalAlignment="Center"/>
                </StackPanel>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>

    <ControlTemplate x:Key="A_ControlTemplate_Footer_Value" TargetType="Control">
        <local:FZTextBlock x:Name="FooterValueText" Margin="25" VerticalAlignment="Bottom"
                           Style="{StaticResource A_Style_FZTextBlock_ValueLabel}"/>
    </ControlTemplate>

    <Thickness x:Key="A_Margin_EventName">25,492,25,0</Thickness>

    <!--MaxWidth to accomodate EventDetails(Event Length etc.) on right side-->
    <Style x:Key="A_Style_FZTextBlock_Flyer_EventName_WithMax"
           TargetType="local:FZTextBlock"
           BasedOn="{StaticResource A_Style_TextBlock_CampaignSetupFlyer_Heading_Base}">
        <Setter Property="CapHeight" Value="21" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="TextAlignment" Value="Left" />
        <Setter Property="MaxWidth" Value="238" />
        <Setter Property="MaxHeight" Value="65" />
        <Setter Property="FontFamily" Value="Horizon_C" />
        <Setter Property="Text" Value="{Binding Name}" />
    </Style>
    
    <Style x:Key="A_Style_FZTextBlock_Flyer_EventType_WithMax"
           TargetType="local:FZTextBlock"
           BasedOn="{StaticResource A_Style_TextBlock_CampaignSetupFlyer_Heading_Base}">
        <Setter Property="CapHeight" Value="21" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="TextAlignment" Value="Left" />
        <Setter Property="MaxWidth" Value="238" />
        <Setter Property="MaxHeight" Value="109" />
        <Setter Property="FontFamily" Value="Horizon_C" />
        <Setter Property="Text" Value="{Binding RaceTypeText}" />
    </Style>
    
    <Style x:Key="A_Style_FZTextBlock_Flyer_EventName"
           TargetType="local:FZTextBlock"
           BasedOn="{StaticResource A_Style_TextBlock_CampaignSetupFlyer_Heading_Base}">
        <Setter Property="CapHeight" Value="21" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="TextAlignment" Value="Left" />
        <Setter Property="MaxHeight" Value="65" />
        <Setter Property="FontFamily" Value="Horizon_C" />
        <Setter Property="Text" Value="{Binding Name}" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_Flyer_EventType"
           TargetType="local:FZTextBlock"
           BasedOn="{StaticResource A_Style_TextBlock_CampaignSetupFlyer_Heading_Base}">
        <Setter Property="CapHeight" Value="21" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="TextAlignment" Value="Left" />
        <Setter Property="MaxHeight" Value="109" />
        <Setter Property="FontFamily" Value="Horizon_C" />
        <Setter Property="Text" Value="{Binding RaceTypeText}" />
    </Style>

    <ControlTemplate x:Key="A_Control_Template_TitleSeparator" TargetType="Control">
        <StackPanel HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    Orientation="Vertical">
            <Decorator Height="15" />
            <local:FZMaterial Height="2"
                              Width="238"
                              HorizontalAlignment="Left"
                              Color="{Binding VariationId, Converter={StaticResource A_MappingConverter_FlyerVariationIdToColor}}"/>
            <Decorator Height="15" />
        </StackPanel>

    </ControlTemplate>
    
    <!--Spec Car Info-->
    <ControlTemplate x:Key="A_ControlTemplate_CarSpec" TargetType="Control">
        <StackPanel HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    Orientation="Vertical"
                    Visibility="{Binding CarModel, Converter={StaticResource A_StringVisConverter}}">
            <!-- Car info -->
            <local:FZTextBlock CapHeight="19"
                               HorizontalAlignment="Left"
                               LineAdjust="-0.35"
                               Style="{StaticResource A_Style_TextBlock_CampaignSetupFlyer_Heading_Base}"
                               FontFamily="Horizon_A"
                               Text="{Binding ShortName, Converter={StaticResource A_StringToUpper}}" 
                               AutoScroll.AllowScrolling="True"
                               TextTrimming="None"/>

            <Decorator Height="15" />
            <!--Rarity, PI and Class-->
            <StackPanel HorizontalAlignment="Left"
                        VerticalAlignment="Top"
                        Orientation="Horizontal"
                        Visibility="{Binding CarModel, Converter={StaticResource A_StringVisConverter}}">
                <Control Style="{StaticResource A_Style_Control_AuctionHouse_RarityPill}"
                         HorizontalAlignment="Left"
                         Height="25"/>

                <Control Margin="3,0,0,0" Height="25"
                         Style="{StaticResource A_Style_Control_CarClassBadge_Small}"
                         local:BindingProxy.A="{Binding CarPerformanceRating}"
                         local:BindingProxy.B="{Binding CarClass}"/>
            </StackPanel>
        </StackPanel>
    </ControlTemplate>
    
    <!--Footer Content-->
    <ControlTemplate x:Key="A_ControlTemplate_Races_FooterContent" TargetType="Control">
        <StackPanel x:Name="FooterContent" Margin="25" VerticalAlignment="Bottom" Orientation="Horizontal">
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FooterSeasonIcon}"/>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FooterWeatherIcon}"/>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FooterCustomRouteIcon}"/>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FooterHasPropsIcon}"/>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FooterNoRewindIcon}"/>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FooterPlayedIcon}"/>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FooterFavoriteIcon}"/>
        </StackPanel>
    </ControlTemplate>
    
    <!--Branding Content-->
    <ControlTemplate x:Key="A_ControlTemplate_Flyer_BrandingContent" TargetType="Control">
        <local:FZMaterial x:Name="BrandingIcon"
                          Margin="25"
                          Height="33"
                          Width="103"
                          VerticalAlignment="Bottom"
                          HorizontalAlignment="Right"
                          ImageSource="{Binding Branding, Converter={StaticResource A_Converter_Branding_To_Icon}}"
                          Color="{Binding VariationId, Converter={StaticResource A_MappingConverter_FlyerVariationIdToColor}}"
                          Visibility="{Binding Branding, Converter={StaticResource A_Converter_Branding_To_Visibility}}">
        </local:FZMaterial>
    </ControlTemplate>

    <Style TargetType="local:FZRun" x:Key="A_FZRun_EventInfo_Description_HIGHLIGHT">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
    </Style>
    <MappingConverter x:Key="A_MarkupConverter_Event_Description">
        <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_FZRun_EventInfo_Description_HIGHLIGHT}"/>
    </MappingConverter>
    

    <Style x:Key="A_Style_FZTextBlock_EventDescription_Poster"
       TargetType="local:FZTextBlock"
       BasedOn="{StaticResource A_Style_TextBlock_CampaignSetupFlyer_Heading_Base}">
        <Setter Property="CapHeight" Value="14" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="TextAlignment" Value="Left" />
        <Setter Property="Margin" Value="0,0,0,0" />
        <Setter Property="MaxHeight" Value="103" />
        <Setter Property="FontFamily" Value="Horizon_D" />
        <Setter Property="TrackingAdjust" Value="-0.01" />
        <Setter Property="MarkupConverter" Value="{StaticResource A_MarkupConverter_Event_Description}" />
        <Setter Property="Text" Value="{Binding Description}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_CarThemeImage"
           TargetType="local:FZMaterial"
           BasedOn="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}">
        <Setter Property="ImageSource" Value="{Binding CarThemeImage}" />
        <Setter Property="Width" Value="125" />
        <Setter Property="Height" Value="125" />
        <Setter Property="Stretch" Value="Uniform" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
        <Setter Property="Margin" Value="0,0,25,242" />
        <Setter Property="Visibility" Value="{Binding DisplayCarRestriction, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
    </Style>

    <!-- PosterLayouts-->
    <DataTemplate x:Key="PART_A_DataTemplate_CampaignSetup_Tile_RaceLayout1">
        <Grid Style="{StaticResource A_Style_ScreenReader_EventFlyerButton}"
              local:ManualPassthroughProperty.Input="{Binding Text, ElementName=EventNameText}">
            <local:FZMaterial x:Name="BackgroundImage" ImageSource="{Binding BackgroundImage}" Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}" />

            <local:FZMaterial x:Name="EventLabCustomBackgroundTape" 
                              Style="{StaticResource A_Style_FZMaterial_CustomFlyerTape}" />
            
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImageMediaTrackFooter}" />
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerHighContrastUnderlay}" />

            <Control Template="{StaticResource A_ControlTemplate_Presents}" />

            <StackPanel Margin="{StaticResource A_Margin_EventName}"
                        Orientation="Vertical">
                <local:FZTextBlock x:Name="EventTypeText"
                                   Style="{StaticResource A_Style_FZTextBlock_Flyer_EventType_WithMax}" />
                <Control Template="{StaticResource A_Control_Template_TitleSeparator}"/>
                <local:FZTextBlock x:Name="EventNameText"
                                   Style="{StaticResource A_Style_FZTextBlock_Flyer_EventName_WithMax}" />

            </StackPanel>

            <ItemsControl Style="{StaticResource A_Style_ItemsControl_FlyerTags}"/>

            <!--UGC - Likes and Distance-->
            <Control Template="{StaticResource A_ControlTemplate_LikesAndDistance}" />


            <local:FZMaterial x:Name="CarThemeImage" 
                              Style="{StaticResource A_Style_FZMaterial_CarThemeImage}" />
            <!--<Control Tag="A_DataTemplate_CampaignSetup_Tile_RaceLayout1" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />-->

            <Control Template="{StaticResource A_ControlTemplate_Races_FooterContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
            <Control Template="{StaticResource A_ControlTemplate_Flyer_BrandingContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
        </Grid>
    </DataTemplate>


    <ControlTemplate x:Key="A_ControlTemplate_UGCLocation_LocationAndActiveTags" TargetType="Control">
        <ControlTemplate.Resources>
            <MappingConverter x:Key="A_MappingConverter_SharedState_To_String" Default="">
                <MappingConverterEntry Key="{x:Static local:UGCSharedState.Shared}" Value="{local:Loc PlayerEstate.IDS_Shared}" />
                <MappingConverterEntry Key="{x:Static local:UGCSharedState.Unshared}" Value="{local:Loc PlayerEstate.IDS_Unshared}" />
            </MappingConverter>

            <MappingConverter x:Key="A_MappingConverter_SharedState_To_Visibility" Default="Collapsed">
                <MappingConverterEntry Key="{x:Static local:UGCSharedState.Shared}" Value="Visible" />
                <MappingConverterEntry Key="{x:Static local:UGCSharedState.Unshared}" Value="Visible" />
            </MappingConverter>

            <MappingConverter x:Key="A_MappingConverter_SharedState_To_CheckmarkVisibility" Default="Collapsed">
                <MappingConverterEntry Key="{x:Static local:UGCSharedState.Shared}" Value="Visible" />
            </MappingConverter>

            <MappingConverter x:Key="A_MappingConverter_SharedState_To_BackgroundColor" Default="{StaticResource H_Color_Primary_Black}">
                <MappingConverterEntry Key="{x:Static local:UGCSharedState.Shared}" Value="{StaticResource H_Color_Primary_Green}" />
            </MappingConverter>

            <MappingConverter x:Key="A_MappingConverter_SharedState_To_TextColor" Default="{StaticResource H_Color_Primary_White}">
                <MappingConverterEntry Key="{x:Static local:UGCSharedState.Shared}" Value="{StaticResource H_Color_Primary_Black}" />
            </MappingConverter>

            <MappingConverter x:Key="A_MappingConverter_LocationState_To_String" Default="">
                <MappingConverterEntry Key="{x:Static local:UGCLocationState.Active}" Value="{local:Loc PlayerEstate.IDS_Active_Location}" />
                <MappingConverterEntry Key="{x:Static local:UGCLocationState.NotActive}" Value="{local:Loc PlayerEstate.IDS_NotActive_Location}" />
            </MappingConverter>

            <MappingConverter x:Key="A_MappingConverter_LocationState_To_Visibility" Default="Collapsed">
                <MappingConverterEntry Key="{x:Static local:UGCLocationState.Active}" Value="Visible" />
                <MappingConverterEntry Key="{x:Static local:UGCLocationState.NotActive}" Value="Visible" />
            </MappingConverter>

            <MappingConverter x:Key="A_MappingConverter_LocationState_To_CheckmarkVisibility" Default="Collapsed">
                <MappingConverterEntry Key="{x:Static local:UGCLocationState.Active}" Value="Visible" />
            </MappingConverter>

            <MappingConverter x:Key="A_MappingConverter_LocationState_To_BackgroundColor" Default="{StaticResource H_Color_Primary_Black}">
                <MappingConverterEntry Key="{x:Static local:UGCLocationState.Active}" Value="{StaticResource H_Color_Primary_Green}" />
            </MappingConverter>

            <MappingConverter x:Key="A_MappingConverter_LocationState_To_TextColor" Default="{StaticResource H_Color_Primary_White}">
                <MappingConverterEntry Key="{x:Static local:UGCLocationState.Active}" Value="{StaticResource H_Color_Primary_Black}" />
            </MappingConverter>

            <Style x:Key="A_Style_FZMaterial_Location_Tag_Background" TargetType="local:FZMaterial">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
                <Setter Property="Preset" Value="{Roundtangle CornerRadius=6}"/>
                <Setter Property="Margin" Value="0,0,3,0"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Location_Tag_Checkmark" TargetType="local:FZMaterial">
                <Setter Property="Width" Value="31"/>
                <Setter Property="Height" Value="31"/>
                <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/UGCLocation_Active_Tick.png"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="0,0,-7,0"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Location_Tag_Text" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
                <Setter Property="CapHeight" Value="14"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="7,4"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Location_Tag_Active_Text" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZMaterial_Location_Tag_Text}">
                <Setter Property="Text" Value="{Binding LocationState, Converter={StaticResource A_MappingConverter_LocationState_To_String}}" />
                <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_ActiveText}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding LocationStateText, Converter={StaticResource H_TrueIfNotNull}}" Value="True">
                        <Setter Property="Text" Value="{Binding LocationStateText}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

        </ControlTemplate.Resources>
        <Grid>
            <StackPanel Orientation="Horizontal"
                        Height="33"
                        Margin="25,0,0,230"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Bottom">

                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Location_Tag_Background}"
                            Visibility="{Binding LocationState, Converter={StaticResource A_MappingConverter_LocationState_To_Visibility}}">
                    <Grid>
                        <local:FZMaterial Color="{StaticResource H_Color_Primary_White}"
                                    Margin="2">
                            <local:FZMaterial.Preset>
                                <FZMaterialPresetRoundtangleStroke CornerRadius="3"
                                                                   Thickness="2"/>
                            </local:FZMaterial.Preset>
                            <local:FZMaterial Color="{Binding LocationState, Converter={StaticResource A_MappingConverter_LocationState_To_BackgroundColor}}"
                                        Margin="2">
                                <StackPanel Orientation="Horizontal">
                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Location_Tag_Checkmark}"
                                                  Visibility="{Binding LocationState, Converter={StaticResource A_MappingConverter_LocationState_To_CheckmarkVisibility}}"
                                                      />
                                    <local:FZTextBlock Style="{StaticResource A_Style_FZMaterial_Location_Tag_Active_Text}"
                                                       Color="{Binding LocationState, Converter={StaticResource A_MappingConverter_LocationState_To_TextColor}}"/>
                                </StackPanel>
                            </local:FZMaterial>
                        </local:FZMaterial>
                    </Grid>
                </local:FZMaterial>


                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Location_Tag_Background}"
                            Visibility="{Binding SharedState, Converter={StaticResource A_MappingConverter_SharedState_To_Visibility}}">
                    <Grid>
                        <local:FZMaterial Color="{StaticResource H_Color_Primary_White}"
                                    Margin="2">
                            <local:FZMaterial.Preset>
                                <FZMaterialPresetRoundtangleStroke CornerRadius="3"
                                                                   Thickness="2"/>
                            </local:FZMaterial.Preset>

                            <local:FZMaterial Color="{Binding SharedState, Converter={StaticResource A_MappingConverter_SharedState_To_BackgroundColor}}"
                                        Margin="2">
                                <StackPanel Orientation="Horizontal">
                                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Location_Tag_Checkmark}"
                                                      Visibility="{Binding SharedState, Converter={StaticResource A_MappingConverter_SharedState_To_CheckmarkVisibility}}"
                                                      />

                                    <local:FZTextBlock Text="{Binding SharedState, Converter={StaticResource A_MappingConverter_SharedState_To_String}}"
                                                       Style="{StaticResource A_Style_FZMaterial_Location_Tag_Text}"
                                                       Color="{Binding SharedState, Converter={StaticResource A_MappingConverter_SharedState_To_TextColor}}"/>
                                </StackPanel>
                            </local:FZMaterial>
                        </local:FZMaterial>
                    </Grid>
                </local:FZMaterial>
            </StackPanel>
        </Grid>
    </ControlTemplate>

    <DataTemplate x:Key="PART_A_DataTemplate_CampaignSetup_Tile_UGCLocation">
        <Grid Style="{StaticResource A_Style_ScreenReader_EventFlyerButton}"
              local:ManualPassthroughProperty.Input="{Binding Text, ElementName=EventNameText}">
            <local:FZMaterial x:Name="BackgroundImage" ImageSource="{Binding BackgroundImage}" Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}" />
            <local:FZMaterial x:Name="BackgroundFooter" ImageSource="{Binding BackgroundFooter}" Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}" />

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerHighContrastUnderlay}" />

            <Control Template="{StaticResource A_ControlTemplate_Presents}" />

            <local:FZTextBlock x:Name="EventNameText"
                           Style="{StaticResource A_Style_FZTextBlock_Flyer_EventName_WithMax}"
                           Margin="{StaticResource A_Margin_EventName}"/>

            <Control Template="{StaticResource A_ControlTemplate_UGCLocation_LocationAndActiveTags}"/>

            <ItemsControl Style="{StaticResource A_Style_ItemsControl_FlyerTags}"
                          ItemsSource="{Binding UIOptionHighlights}"
                          Visibility="Visible"/>

            <Control Template="{StaticResource A_ControlTemplate_Footer_Value}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
            <Control Template="{StaticResource A_ControlTemplate_Flyer_BrandingContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
        </Grid>
    </DataTemplate>

    <DataTemplate x:Key="PART_A_DataTemplate_CampaignSetup_Tile_Stories">
        <Grid Style="{StaticResource A_Style_ScreenReader_EventFlyerButton}"
              local:ManualPassthroughProperty.Input="{Binding Text, ElementName=EventNameText}">
            <local:FZMaterial x:Name="BackgroundImage" ImageSource="{Binding BackgroundImage}" Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}" />

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerHighContrastUnderlay}" />

            <Control Template="{StaticResource A_ControlTemplate_Presents}" />

            <StackPanel Orientation="Vertical"
                        Margin="{StaticResource A_Margin_EventName}"
                         Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" >
                <local:FZTextBlock x:Name="EventNameText"
                                   Style="{StaticResource A_Style_FZTextBlock_Flyer_EventName}"
                                   MaxWidth="infinity" /> 
                <Control Template="{StaticResource A_Control_Template_TitleSeparator}"/>
                <local:FZTextBlock x:Name="EventDescriptionText"
                                   Style="{StaticResource A_Style_FZTextBlock_EventDescription_Poster}"/>
            </StackPanel>

            <Control Template="{StaticResource A_ControlTemplate_Flyer_BrandingContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
        </Grid>
    </DataTemplate>

    <DataTemplate x:Key="PART_A_DataTemplate_CampaignSetup_Tile_CustomCar">
        <Grid Style="{StaticResource A_Style_ScreenReader_EventFlyerButton}"
              local:ManualPassthroughProperty.Input="{Binding Text, ElementName=EventNameText}">
            <local:FZMaterial x:Name="BackgroundImage" ImageSource="{Binding BackgroundImage}" Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}" />

            <local:FZMaterial x:Name="EventLabCustomBackgroundTape" 
                              Style="{StaticResource A_Style_FZMaterial_CustomFlyerTape}" />

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImageMediaTrackFooter}" />
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerHighContrastUnderlay}" />

            <Control Template="{StaticResource A_ControlTemplate_Presents}" />
            <ItemsControl Style="{StaticResource A_Style_ItemsControl_FlyerTags}"/>
            <Control Template="{StaticResource A_ControlTemplate_LikesAndDistance}" />

            <Grid Margin="{StaticResource A_Margin_EventName}">
                <local:FZTextBlock x:Name="EventNameText"
                                   Style="{StaticResource A_Style_FZTextBlock_Flyer_EventName_WithMax}"/>
            </Grid>

            <local:FZMaterial ImageSource="{Binding CarRestrictionImage}"
                              Margin="0,120,0,0"
                              VerticalAlignment="Top"
                              HorizontalAlignment="Center"
                              Width="442"
                              Height="248"
                              Stretch="Uniform"
                              Style="{StaticResource A_Style_FZMaterial_CarRestrictionImage_Custom}"/>

            <local:FZMaterial x:Name="CarThemeImage" 
                              Style="{StaticResource A_Style_FZMaterial_CarThemeImage}" />

            <Control Template="{StaticResource A_ControlTemplate_Races_FooterContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
            <Control Template="{StaticResource A_ControlTemplate_Flyer_BrandingContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
        </Grid>
    </DataTemplate>

    <DataTemplate x:Key="PART_A_DataTemplate_CampaignSetup_Tile_MyCar">
        <Grid Style="{StaticResource A_Style_ScreenReader_EventFlyerButton}"
              local:ManualPassthroughProperty.Input="{Binding Text, ElementName=EventNameText}">
            <local:FZMaterial x:Name="BackgroundImage" ImageSource="{Binding BackgroundImage}" Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}" />

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImageMediaTrackFooter}" />
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerHighContrastUnderlay}" />

            <local:FZMaterial x:Name="EventLabCustomBackgroundTape" 
                              Style="{StaticResource A_Style_FZMaterial_CustomFlyerTape}" />
            
            <Control Template="{StaticResource A_ControlTemplate_Presents}" />
            <ItemsControl Style="{StaticResource A_Style_ItemsControl_FlyerTags}"/>
            <Control Template="{StaticResource A_ControlTemplate_LikesAndDistance}" />

            <Grid Margin="{StaticResource A_Margin_EventName}">
                <local:FZTextBlock x:Name="EventNameText"
                                   Style="{StaticResource A_Style_FZTextBlock_Flyer_EventName_WithMax}"/>
            </Grid>

            <local:FZMaterial ImageSource="{Binding CarRestrictionImage}"
                              Margin="0,232,0,0"
                              VerticalAlignment="Top"
                              HorizontalAlignment="Center"
                              Width="442"
                              Height="248"
                              Stretch="Uniform"
                              Style="{StaticResource A_Style_FZMaterial_CarRestrictionImage_Custom}"/>

            <local:FZMaterial x:Name="CarThemeImage" 
                              Style="{StaticResource A_Style_FZMaterial_CarThemeImage}" />

            <Control Template="{StaticResource A_ControlTemplate_Races_FooterContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
            <Control Template="{StaticResource A_ControlTemplate_Flyer_BrandingContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
        </Grid>
    </DataTemplate>

    <!-- This is the blueprint option in the flyer select -->
    <ControlTemplate x:Key="A_ControlTemplate_BlueprintFlyer" TargetType="Control">
        <ControlTemplate.Resources>
            <MappingConverter x:Key="A_LangStrToBlueprintFlyerLineHeight" Default="55">
                <MappingConverterEntry Key="CHS" Value="68"/>
                <MappingConverterEntry Key="CHT" Value="68"/>
                <MappingConverterEntry Key="JP" Value="58"/>
            </MappingConverter>
        </ControlTemplate.Resources>
        <Grid>
            <local:FZMaterial  Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBorder}" 
                               ImageSourceNoPreload="{TemplateBinding local:BindingProxy.A}" />
            <local:FZTextBlock Text="{TemplateBinding Tag}"
                               MarkupConverter="{StaticResource A_MappingConverter_BoldText}"
                               Style="{StaticResource A_Style_FZTextBlock_HorizonB}" 
                               Color="#FFFFFF" FontSize="60" 
                               LineHeight="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToBlueprintFlyerLineHeight}}" LineStackingStrategy="BlockLineHeight"
                               VerticalAlignment="Top" HorizontalAlignment="Left" Margin="27" />
            <Control Template="{StaticResource A_ControlTemplate_Flyer_BrandingContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
        </Grid>
    </ControlTemplate>

    <DataTemplate x:Key="PART_A_DataTemplate_CampaignSetup_Tile_Blueprint">
        <Control Template="{StaticResource A_ControlTemplate_BlueprintFlyer}" 
                 local:BindingProxy.A="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBlueprint.png"
                 Tag="{Binding BlueprintOptionText}" />
    </DataTemplate>

    <DataTemplate x:Key="PART_A_DataTemplate_CampaignSetup_Tile_HotWheelsBlueprint">
        <Control Template="{StaticResource A_ControlTemplate_BlueprintFlyer}"
                 local:BindingProxy.A="/ForzaUI;component/Textures/Data_Bound/OpusIsland/EventBlueprint/EventBlueprint_StuntSwap.png"
                 Tag="{Binding BlueprintOptionText}" />
    </DataTemplate>

    <!-- Online Adventure -->
    <DataTemplate x:Key="PART_A_DataTemplate_CampaignSetup_Tile_OnlineAdventure">
        <Grid Style="{StaticResource A_Style_ScreenReader_EventFlyerButton}"
              local:ManualPassthroughProperty.Input="{Binding Text, ElementName=EventNameText}">
            <local:FZMaterial x:Name="BackgroundImage" ImageSource="{Binding BackgroundImage}" Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}" />

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImageMediaTrackFooter}" />
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerHighContrastUnderlay}" />

            <Control Template="{StaticResource A_ControlTemplate_Presents}" />

            <StackPanel Margin="{StaticResource A_Margin_EventName}"
                        Orientation="Vertical">
                <local:FZTextBlock x:Name="EventNameText"
                                   Style="{StaticResource A_Style_FZTextBlock_Flyer_EventName_WithMax}"/>
                <Control Template="{StaticResource A_Control_Template_TitleSeparator}"
                         Visibility="{Binding CarModel, Converter={StaticResource A_StringVisConverter}}"/>
                <Control Template="{StaticResource A_ControlTemplate_CarSpec}"/>
            </StackPanel>

            <Decorator Visibility="{Binding CarOrdinal, Converter={StaticResource H_VisibleIfGreaterThanZero}}">
                <local:FZMaterial Margin="0,166,0,0"
                      VerticalAlignment="Top"
                      HorizontalAlignment="Center"
                      Width="442"
                      Height="248"
                      Stretch="Uniform"
                      ImageSource="{Binding CarOrdinal, Converter={CarOrdinalConverter}, ConverterParameter=thumbnail}" 
                      Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}}"/>
            </Decorator>

            <Control Style="{StaticResource A_Style_Control_DriveTrainDisplay}" 
                     local:BindingProxy.B="DriveType"
                     local:BindingProxy.A="{Binding DriveTypeRestriction}"
                     HorizontalAlignment="Right" 
                     VerticalAlignment="Top"
                     Visibility="{Binding HasDriveTypeRestriction, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                     Width="116"
                     Height="34"
                     Margin="0,74,25,0"/>

            <!--UGC - Likes and Distance-->
            <Control Template="{StaticResource A_ControlTemplate_LikesAndDistance}" />

            <Control Template="{StaticResource A_ControlTemplate_Races_FooterContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
            <Control Template="{StaticResource A_ControlTemplate_Flyer_BrandingContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
        </Grid>
    </DataTemplate>


    <!-- ShowCase -->
    <Style x:Key="A_Style_FZMaterial_FlyerBack_OuterBorder_Top" TargetType="local:FZMaterial" 
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterTopOnly}"/>
    </Style>
    <Style x:Key="A_Style_FZMaterial_FlyerBack_OuterBorder_Bottom" TargetType="local:FZMaterial" 
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterBottomOnly}"/>
    </Style>
    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_Showcase">
        <Grid>
            <local:FZMaterial Color="{StaticResource A_Color_White}" Style="{StaticResource A_Style_FZMaterial_FlyerBack_OuterBorder}" Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBorder_OnlineAdventure}"/>
            <local:FZMaterial ImageSource="{Binding BackgroundImage}" Margin="7,34,6,0" Width="550" Height="576" VerticalAlignment="Top" HorizontalAlignment="Left"/>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerHighContrastUnderlay}" />
            <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/Showcase_Flyer/Showcase_Top.png"  Margin="7"  
                              VerticalAlignment="Top" HorizontalAlignment="Left" Width="550" Height="111" Style="{StaticResource A_Style_FZMaterial_FlyerBack_OuterBorder_Top}"/>
            <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/Showcase_Flyer/Showcase_Bottom.png"  Margin="7" 
                              VerticalAlignment="Bottom" Height="367" HorizontalAlignment="Left" Width="550" Style="{StaticResource A_Style_FZMaterial_FlyerBack_OuterBorder_Bottom}">
                <local:FZMaterial VerticalAlignment="Top" HorizontalAlignment="Left" Width="160" Height="160"
                                  ImageSource="{Binding ShowcaseIcon}" Margin="40,20,0,0"/>
            </local:FZMaterial>

            <StackPanel VerticalAlignment="Top" HorizontalAlignment="Left" Margin="22">
                <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" >
                    <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Flyer_Horizon_CreatorName}" FontFamily="Horizon_A" FontSize="36" Color="{StaticResource A_Color_White}" />
                </Decorator>
                <Decorator Height="8"/>
                <Decorator LayoutTransform="{StaticResource A_Transform_Italic}">
                    <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Flyer_CreatorPresents}" FontFamily="Horizon_B" FontSize="22" Color="{StaticResource A_Color_White}"/>
                </Decorator>
            </StackPanel>

            <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Right" MaxWidth="340" Margin="0,0,24,68">
                <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,0,10">
                    <local:FZTextBlock Text="{Binding Name, Converter={StaticResource A_StringToUpper}}" FontFamily="Horizon_A" FontSize="60" Color="{StaticResource A_Color_White}" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
                </Decorator>
                <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,0,8">
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
                        <local:FZTextBlock Text="{Binding ShowcaseTypeName, Converter={StaticResource A_StringToUpper}}" FontFamily="Horizon_A" FontSize="24" Color="{StaticResource A_Color_White}"/>
                        <local:FZTextBlock Text="/" FontFamily="Horizon_A" FontSize="24" Color="{StaticResource A_Color_White}" Margin="4,0,3,0" />
                        <local:FZTextBlock Text="{Binding TotalEventDistance, Converter={StaticResource A_StringToUpper}}" FontFamily="Horizon_A" FontSize="24" Color="{StaticResource A_Color_White}"/>
                    </StackPanel>
                </Decorator>

                <Decorator HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,0,0">
                    <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,0,12" >
                        <local:FZTextBlock Text="{Binding ShowcaseVehicle, Converter={StaticResource A_StringToUpper}}" HorizontalAlignment="Right" VerticalAlignment="Top" 
                                           FontFamily="Horizon_B" FontSize="22" Color="{StaticResource A_Color_White}"/>
                    </Decorator>
                </Decorator>
            </StackPanel>
            
            <!--Not sure if showcases should have footer icons #pgEOzdemir-->
            <!--<Control Template="{StaticResource A_ControlTemplate_Races_FooterContent}" />-->
            <Control Template="{StaticResource A_ControlTemplate_Flyer_BrandingContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
        </Grid>
    </DataTemplate>

    <DataTemplate x:Key="PART_A_DataTemplate_CampaignSetup_Tile_BasicPoster">
        <Grid Style="{StaticResource A_Style_ScreenReader_EventFlyerButton}"
              local:ManualPassthroughProperty.Input="{Binding Text, ElementName=EventNameText}">
            <local:FZMaterial x:Name="BackgroundImage" ImageSource="{Binding BackgroundImage}" Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}" />

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerHighContrastUnderlay}" />

            <Control Template="{StaticResource A_ControlTemplate_Presents}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />

            <StackPanel Margin="{StaticResource A_Margin_EventName}"
                        Orientation="Vertical">
                <local:FZTextBlock x:Name="EventTypeText"
                                   Style="{StaticResource A_Style_FZTextBlock_Flyer_EventName}" />
                <Control Template="{StaticResource A_Control_Template_TitleSeparator}"/>
                <local:FZTextBlock x:Name="EventDescriptionText"
                                   Style="{StaticResource A_Style_FZTextBlock_EventDescription_Poster}"/>

            </StackPanel>

            <Control Template="{StaticResource A_ControlTemplate_Flyer_BrandingContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
        </Grid>
    </DataTemplate>

    <DataTemplate x:Key="PART_A_DataTemplate_CampaignSetup_Tile_Freeroam">
        <Grid Style="{StaticResource A_Style_ScreenReader_EventFlyerButton}"
              local:ManualPassthroughProperty.Input="{Binding Text, ElementName=EventNameText}">
            <local:FZMaterial x:Name="BackgroundImage" ImageSource="{Binding BackgroundImage}" Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}" />

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImageMediaTrackFooter}" />
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerHighContrastUnderlay}" />

            <DockPanel Margin="0,0,0,68" VerticalAlignment="Bottom" HorizontalAlignment="Center" Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" >
                <local:FZTextBlock x:Name="EventNameText"
                               DockPanel.Dock="Top"
                               MaxWidth="350"
                               Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                               Style="{StaticResource A_Style_TextBlock_CampaignSetupFlyer_Heading_Base}" />

            </DockPanel>
            <Control Template="{StaticResource A_ControlTemplate_Flyer_BrandingContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
        </Grid>
    </DataTemplate>

    <DataTemplate x:Key="PART_A_DataTemplate_CampaignSetup_Tile_CampaignEvent">
        <Grid Style="{StaticResource A_Style_ScreenReader_EventFlyerButton}"
              local:ManualPassthroughProperty.Input="{Binding Text, ElementName=EventNameText}">
            <local:FZMaterial x:Name="BackgroundImage" ImageSource="{Binding BackgroundImage}" Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}" />

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerHighContrastUnderlay}" />

            <Control Template="{StaticResource A_ControlTemplate_Presents}" />

            <StackPanel Margin="{StaticResource A_Margin_EventName}"
                        Orientation="Vertical">
                <local:FZTextBlock x:Name="EventTypeText"
                                   Style="{StaticResource A_Style_FZTextBlock_Flyer_EventType}" />
                <Control Template="{StaticResource A_Control_Template_TitleSeparator}"/>
                <local:FZTextBlock x:Name="EventNameText"
                                   Style="{StaticResource A_Style_FZTextBlock_Flyer_EventName}" />

            </StackPanel>

            <Control Template="{StaticResource A_ControlTemplate_Races_FooterContent}" Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
            <Control Template="{StaticResource A_ControlTemplate_Flyer_BrandingContent}"  Style="{StaticResource A_Style_ScreenReader_EventFlyer_Details}" />
        </Grid>
    </DataTemplate>


    <Color x:Key="A_Color_FlyerBack_EventNameText">#FFFFFF</Color>

  
    <Style x:Key="A_Style_FZMaterial_FlyerBack_OuterBorder" TargetType="local:FZMaterial" 
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
    </Style>

    <Style x:Key="A_Style_FZTextBlock_BottomDescription" TargetType="local:FZTextBlock">
        <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc EventBlueprint.IDS_Blueprint_EventHas_SeasonTimeofDayWeather}" />
        <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding (local:BindingProxy.A).EventSeason, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ListBoxItem}}, Converter={StaticResource A_Converter_Season_To_String}}" />
        <Setter Property="local:MultiStringFormatter.Param1" Value="{Binding TimeOfDay, Converter={StaticResource A_Converter_Weather_TimeOfDay_To_Short_String}}" />
        <Setter Property="local:MultiStringFormatter.Param2" Value="{Binding WeatherMode, Converter={StaticResource A_Converter_Weather_Severity_To_Short_String}}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding WeatherMode, Converter={StaticResource A_Converter_Weather_Severity_IsFreeroam}}" Value="True">
                <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc EventBlueprint.IDS_Blueprint_EventHas_SeasonAndTimeofDay}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding TimeOfDay, Converter={StaticResource A_Converter_Weather_TimeOfDay_IsFreeroam}}" Value="True">
                <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc EventBlueprint.IDS_Blueprint_EventHas_SeasonAndWeather}" />
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding WeatherMode, Converter={StaticResource A_Converter_Weather_Severity_IsFreeroam}}" Value="True"/>
                    <Condition Binding="{Binding TimeOfDay, Converter={StaticResource A_Converter_Weather_TimeOfDay_IsFreeroam}}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc EventBlueprint.IDS_Blueprint_EventHas_Season}" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>




    <local:MappingConverter x:Key="A_Converter_ShouldUseRaceModeForIcon" Default="True">
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.RallyRace}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.RallyCross}" Value="False"/>
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.RallyBoss}" Value="False"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_RaceMode_To_FlyerBackRaceIcon" Default="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/LapsRace.png">
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.LapsRace}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/LapsRace.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.P2P}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/P2P.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.CrossCountry}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/CrossCountry.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.CrossCountryCircuit}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/CrossCountryCircuit.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.Scramble}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Scramble.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.TrailRace}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/TrailRace.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.StreetRace}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/StreetRace.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.MidnightBattle}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/MidnightBattle.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.Drag}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Drag.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.King}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/King.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.Infection}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Infection.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.FlagRush}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/FlagRush.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.TeamKing}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/TeamKing.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.TeamInfected}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/TeamInfected.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.TeamFlagRush}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/TeamFlagRush.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.DriftRun}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/LapsRace.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.FreeRoamPointToPoint}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/FreeRoamPointToPoint.png"/>
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.SpeedSprint}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Event_Blueprint/FlyerBack/Icons/SpeedSprint.png"/>
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.SpeedCircuit}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Event_Blueprint/FlyerBack/Icons/SpeedCircuit.png"/>
         <local:MappingConverterEntry Key="{x:Static local:RaceMode.ExtremeSprint}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Event_Blueprint/FlyerBack/Icons/ExtremeSprint.png"/>
         <local:MappingConverterEntry Key="{x:Static local:RaceMode.ExtremeCircuit}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Event_Blueprint/FlyerBack/Icons/ExtremeCircuit.png"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_ProgressionThread_To_AstraFlyerBackRaceIcon_BossesAndFinale">
        <local:MappingConverterEntry Key="rally_boss_battle_dirt" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/Event_Blueprint/FlyerBack/Icons/Boss_Dirt.png" />
        <local:MappingConverterEntry Key="rally_boss_battle_road" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/Event_Blueprint/FlyerBack/Icons/Boss_Road.png" />
        <local:MappingConverterEntry Key="rally_boss_battle_street" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/Event_Blueprint/FlyerBack/Icons/Boss_Street.png" />
        <!-- finale -->
        <local:MappingConverterEntry Key="dirt_rally" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/Event_Blueprint/FlyerBack/Icons/Finale.png" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_ProgressionThread_To_AstraFlyerBackRaceIcon_NonBosses" Default="game:/Media/UI/Textures/Data_Bound/PDLC2/Event_Blueprint/FlyerBack/Icons/Dirt.png" >
        <local:MappingConverterEntry Key="dirt_rally" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/Event_Blueprint/FlyerBack/Icons/Dirt.png" />
        <local:MappingConverterEntry Key="mixed_rally" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/Event_Blueprint/FlyerBack/Icons/Mixed.png" />
        <local:MappingConverterEntry Key="road_rally" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/Event_Blueprint/FlyerBack/Icons/Road.png" />
        <local:MappingConverterEntry Key="street_dirt_rally" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/Event_Blueprint/FlyerBack/Icons/Street_Dirt.png" />
        <local:MappingConverterEntry Key="street_mixed_rally" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/Event_Blueprint/FlyerBack/Icons/Street_Mixed.png" />
        <local:MappingConverterEntry Key="street_road_rally" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/Event_Blueprint/FlyerBack/Icons/Street_Road.png" />
    </local:MappingConverter>

    <Style TargetType="local:FZRun" x:Key="A_FZRun_EventInfo_LapLengthAndNumberOfLaps_THIN">
        <Setter Property="FontFamily" Value="Horizon_B"/>
    </Style>

    <MappingConverter x:Key="A_MappingConverter_EventInfo_LapLengthAndNumberOfLaps" >
        <MappingConverterEntry Key="{NoCase THIN}" Value="{StaticResource A_FZRun_EventInfo_LapLengthAndNumberOfLaps_THIN}" />
    </MappingConverter>

    <Style x:Key="A_Style_FZTextBlock_EventInfo" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}" TargetType="local:FZTextBlock">
        <Style.Triggers>
            <DataTrigger Binding="{Binding TrackLengthText, Converter={StaticResource A_StringVisConverter}, FallbackValue=Hidden}" Value="{x:Static Visibility.Visible}">
                    <Setter Property="Text" Value="{Binding TrackLengthText, Converter={StaticResource A_StringToUpper}}" />
                    <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_BoldText}"/>
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding LapCountText, Converter={StaticResource A_StringVisConverter}, FallbackValue=Hidden}" Value="{x:Static Visibility.Visible}"/>
                    <Condition Binding="{Binding TrackLengthText, Converter={StaticResource A_StringVisConverter}, FallbackValue=Hidden}" Value="{x:Static Visibility.Visible}"/>
                </MultiDataTrigger.Conditions>
                <MultiDataTrigger.Setters>
                    <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc EventBlueprint.IDS_Blueprint_LapDistanceAndNumberOfLaps}" />
                    <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding TrackLengthText, Converter={StaticResource A_StringToUpper}}" />
                    <Setter Property="local:MultiStringFormatter.Param1" Value="{Binding LapCountText, Converter={StaticResource A_StringToUpper}}" />
                    <Setter Property="Text" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}" />
                    <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_EventInfo_LapLengthAndNumberOfLaps}" />
                </MultiDataTrigger.Setters>
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

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

    <MappingConverter x:Key="A_MarkupConverter_EventAdditionalInfo">
        <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_FZRun_EventAdditionalInfo_HIGHLIGHT}" />
    </MappingConverter>

    <MappingConverter x:Key="A_MappingConverter_RaceCompletionState_To_ItemBackgroundColor" Default="{StaticResource H_Color_Primary_White}">
        <MappingConverterEntry Key="{x:Static AVUIRaceCompletionState.Completed}" Value="{StaticResource H_Color_Glass_Purple_40pc}"/>
        <MappingConverterEntry Key="{x:Static AVUIRaceCompletionState.InProgress}" Value="{StaticResource H_Color_Glass_Purple_40pc}"/>
    </MappingConverter>

    <MappingConverter x:Key="A_MappingConverter_RaceCompletionState_To_ItemTextColor" Default="{StaticResource H_Color_Primary_Black}">
        <MappingConverterEntry Key="{x:Static AVUIRaceCompletionState.Completed}" Value="{StaticResource H_Color_Primary_Grey_70pc}"/>
        <MappingConverterEntry Key="{x:Static AVUIRaceCompletionState.InProgress}" Value="{StaticResource H_Color_Primary_Grey_70pc}"/>
    </MappingConverter>

    <MappingConverter x:Key="A_MappingConverter_RaceCompletionState_To_Text" Default="">
        <MappingConverterEntry Key="{x:Static AVUIRaceCompletionState.Completed}" Value="{local:Loc EventBlueprint.IDS_RaceCompletionState_Completed}"/>
        <MappingConverterEntry Key="{x:Static AVUIRaceCompletionState.InProgress}" Value="{local:Loc EventBlueprint.IDS_RaceCompletionState_InProgress}"/>
        <MappingConverterEntry Key="{x:Static AVUIRaceCompletionState.UpNext}" Value="{local:Loc EventBlueprint.IDS_RaceCompletionState_UpNext}"/>
    </MappingConverter>

    <DataTemplate x:Key="A_DataTemplate_RaceSetupItem">
        <DataTemplate.Resources>
            <Style TargetType="local:FZRun" x:Key="A_FZRun_EventInfo_LapLengthAndNumberOfLaps_THIN">
                <Setter Property="FontFamily" Value="Horizon_B"/>
            </Style>
        </DataTemplate.Resources>
        <DockPanel Margin="20,20,20,24">
            <!-- left side info-->
            <DockPanel DockPanel.Dock="Left" VerticalAlignment="Stretch">
                <StackPanel Orientation="Horizontal" DockPanel.Dock="Top">
                    <Control local:BindingProxy.A="{Binding WeatherMode}" 
                             local:BindingProxy.B="{Binding TimeOfDay}"
                             local:BindingProxy.C="{Binding (local:BindingProxy.A).EventSeason, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ListBoxItem}}}"
                             VerticalAlignment="Center"
                             Template="{StaticResource A_Control_RaceWeather_Pill}" Height="50"/>
                    <StackPanel Orientation="Vertical" Margin="16,0,0,0" VerticalAlignment="Center">
                        <local:FZTextBlock Text="{Binding TrackName}"
                                           Color="{Binding CompletionState, Converter={StaticResource A_MappingConverter_RaceCompletionState_To_ItemTextColor}}"
                                           CapHeight="19"
                                           Margin="0,0,32,8"/>
                        <local:FZTextBlock Style="{StaticResource A_Style_RaceSetupItem_PresentedBy}"
                                           local:MultiStringFormatter.Format="{local:Loc EventBlueprint.IDS_Blueprint_PresentedByX}"
                                           local:MultiStringFormatter.Param0="{Binding EventInfoDataView.CampaignSetupItem.Creator.FormattedGamertag, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Page}}, Converter={StaticResource A_StringToUpper}}"
                                           MarkupConverter="{StaticResource A_MarkupConverter_EventAdditionalInfo}"
                                           Text="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}" 
                                           FontFamily="Horizon_B"
                                           HorizontalAlignment="Left" VerticalAlignment="Center"
                                           CapHeight="20" 
                                           Color="{Binding CompletionState, Converter={StaticResource A_MappingConverter_RaceCompletionState_To_ItemTextColor}}"/>
                        <Grid Margin="0,5,0,0" Style="{StaticResource A_Style_RaceSetupItem_DistanceAndLapInfo}">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_EventInfo}"
                                               CapHeight="18"
                                               HorizontalAlignment="Left"
                                               Color="{Binding CompletionState, Converter={StaticResource A_MappingConverter_RaceCompletionState_To_ItemTextColor}}" />
                        </Grid>
                    </StackPanel>
                </StackPanel>
                <local:FZTextBlock DockPanel.Dock="Bottom"
                                   Style="{StaticResource A_Style_FZTextBlock_BottomDescription}"
                                   Text="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"
                                   HorizontalAlignment="Left" VerticalAlignment="Bottom" FontFamily="Horizon_A"
                                   CapHeight="16" Color="{StaticResource H_Color_Primary_Grey_70pc}"/>
            </DockPanel>
            <!-- right side info-->
            <Grid>
                <StackPanel Orientation="Vertical" Style="{StaticResource A_Style_RaceSetupItem_RightSideInfo}">
                
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
                        <local:FZMaterial Color="{StaticResource H_Color_Primary_Yellow}" 
                                          Width="42" Height="42"
                                          Visibility="{Binding IsCustomRules, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                                          Preset="{StaticResource H_Roundtangle_Outer_1px}">
                            <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/UGC_CustomRules.png" 
                                              Color="{StaticResource H_Color_Primary_Purple}"
                                              Stretch="Uniform"/>
                        </local:FZMaterial>
                        <local:FZMaterial Color="{StaticResource H_Color_Primary_Yellow}" 
                                          Width="42" Height="42" Margin="6,0,0,0" 
                                          Visibility="{Binding IsCustomRoute, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                          Preset="{StaticResource H_Roundtangle_Outer_1px}">
                            <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/UGC_CustomRoute.png" 
                                              Color="{StaticResource H_Color_Primary_Purple}"
                                              Stretch="Uniform"/>
                        </local:FZMaterial>
                    </StackPanel>

                    <!-- additional rules TODO -->
                </StackPanel>
                <Decorator Style="{StaticResource A_Style_RaceSetupItem_OnlineAdventure_RightSideInfo}" HorizontalAlignment="Right">
                    <FZTextBlock Text="{Binding CompletionState, Converter={StaticResource A_MappingConverter_RaceCompletionState_To_Text}}"
                                 CapHeight="18"
                                 Color="{Binding CompletionState, Converter={StaticResource A_MappingConverter_RaceCompletionState_To_ItemTextColor}}"/>
                </Decorator>
            </Grid>
        </DockPanel>
    </DataTemplate>

    <Style x:Key="A_Style_RaceSetupItem_DistanceAndLapInfo" TargetType="FrameworkElement">
        <Setter Property="Visibility" Value="Collapsed" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding (local:BindingProxy.A).IsTour, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ListBoxItem}}}" 
                         Value="True">
                <Setter Property="Visibility" Value="Visible" />
            </DataTrigger>
            <DataTrigger Binding="{Binding (local:BindingProxy.A).IsOnlineAdventure, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ListBoxItem}}}" 
                         Value="True">
                <Setter Property="Visibility" Value="Visible" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_RaceSetupItem_RightSideInfo" TargetType="FrameworkElement">
        <Setter Property="Visibility" Value="Visible" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding (local:BindingProxy.A).IsOnlineAdventure, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ListBoxItem}}}" Value="True">
                <Setter Property="Visibility" Value="Collapsed" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_RaceSetupItem_OnlineAdventure_RightSideInfo" TargetType="FrameworkElement">
        <Setter Property="Visibility" Value="Visible" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding (local:BindingProxy.A).IsOnlineAdventure, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ListBoxItem}}}" Value="False">
                <Setter Property="Visibility" Value="Collapsed" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_RaceSetupItem_PresentedBy" TargetType="FrameworkElement">
        <Setter Property="Visibility" Value="Visible" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding (local:BindingProxy.A).IsOnlineAdventure, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ListBoxItem}}}" Value="True">
                <Setter Property="Visibility" Value="Collapsed" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style
        x:Key="A_Style_Control_EmptyItemStyle"
        TargetType="Control">
        <Setter
            Property="Focusable"
            Value="False"/>
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="Control">
                    <DockPanel VerticalAlignment="Stretch" Margin="0,2,0,2">
                        <FZMaterial Margin="0,0,4,0" DockPanel.Dock="Left" Width="50"
                                    Preset="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
                                    Color="{StaticResource A_Color_GlassPanel_NonInteractive}"/>

                        <FZMaterial
                            Preset="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
                            Color="{StaticResource A_Color_GlassPanel_NonInteractive}"/>
                    </DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_RaceInfo_SubHeaderText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
        <Setter Property="Text" Value="{Binding Name}"/>
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
        <Setter Property="CapHeight" Value="19"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsOnlineAdventure}" Value="True">
                <Setter Property="Text" Value="{Binding TotalLengthText}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsTour}" Value="True">
                <Setter Property="Text" Value="{Binding TotalLengthText}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonPlayHeader" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
        <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_EventInfo_LapLengthAndNumberOfLaps}"/>
        <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc EventBlueprint.IDS_HorizonPlayHeader_Format}"/>
        <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding EventTypeName}"/>
        <Setter Property="local:MultiStringFormatter.Param1" Value="{Binding NextRaceIndex}"/>
        <Setter Property="local:MultiStringFormatter.Param2" Value="{Binding RaceCount}"/>
        <Setter Property="local:MultiStringFormatter.Param3" Value="{Binding TotalDistanceText}"/>
        <Setter Property="Text" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
        <Setter Property="CapHeight" Value="19"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonPlayHeader_Distance" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
        <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc EventBlueprint.IDS_HorizonPlayHeader_Distance_Format}"/>
        <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding TotalDistanceText, Converter={StaticResource A_StringToUpper}}"/>
        <Setter Property="Text" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
        <Setter Property="CapHeight" Value="19"/>
    </Style>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPreset_RaceInfo_Header"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="1" />

    <Style x:Key="A_Style_FZMaterial_FooterIconBase"
        TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Width" Value="31"/>
        <Setter Property="Height" Value="31"/>
        <Setter Property="Margin" Value="0,0,3,0"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_RaceSpecific_FooterIconBase"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FooterIconBase}">
        <Setter Property="Visibility" Value="Collapsed"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FooterSeasonIcon"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FooterIconBase}">
        <Setter Property="ImageSource" Value="{Binding EventSeason, Converter={StaticResource A_Converter_Season_To_FooterIcon}}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FooterWeatherIcon"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_RaceSpecific_FooterIconBase}">
        <Style.Triggers>
            <DataTrigger Binding="{Binding RaceSetups.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="1">
                <Setter Property="ImageSource" Value="{Binding RaceSetups[0].WeatherMode, Converter={StaticResource A_Converter_Weather_Severity_To_PillIcon}}"/>
                <Setter Property="Visibility" Value="Visible"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FooterTimeOfDayIcon"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_RaceSpecific_FooterIconBase}">
        <Style.Triggers>
            <DataTrigger Binding="{Binding RaceSetups.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="1">
                <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/ToD.png"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding RaceSetups[0].TimeOfDay, Converter={StaticResource A_Converter_Weather_TimeOfDay_IsFreeroam}}" Value="False">
                <Setter Property="Visibility" Value="Visible"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FooterCustomRouteIcon"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FooterIconBase}">
        <Setter Property="Visibility" Value="Collapsed"/>
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding RaceSetups.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="1"/>
                    <Condition Binding="{Binding RaceSetups[0].IsCustomRoute, FallbackValue=False}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <MultiDataTrigger.Setters>
                    <Setter Property="Visibility" Value="Visible"/>
                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Custom_Route.png"/>
                </MultiDataTrigger.Setters>
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FooterHasPropsIcon"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FooterIconBase}">
        <Setter Property="Visibility" Value="Collapsed"/>
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding RaceSetups.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="1"/>
                    <Condition Binding="{Binding RaceSetups[0].IsCustomProps, FallbackValue=False}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <MultiDataTrigger.Setters>
                    <Setter Property="Visibility" Value="Visible"/>
                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Custom_Props.png"/>
                </MultiDataTrigger.Setters>
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FooterNoRewindIcon"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FooterIconBase}">
        <Setter Property="Visibility" Value="Collapsed"/>
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding RaceSetups.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="1"/>
                    <Condition Binding="{Binding RaceSetups[0].RewindEnabled, FallbackValue=True}" Value="False"/>
                </MultiDataTrigger.Conditions>
                <MultiDataTrigger.Setters>
                    <Setter Property="Visibility" Value="Visible"/>
                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/No_Rewind.png"/>
                </MultiDataTrigger.Setters>
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>
    

    <Style x:Key="A_Style_FZMaterial_FooterFavoriteIcon"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FooterIconBase}">
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Favourite.png"/>
        <Setter Property="Visibility" Value="{Binding IsFavorite, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FooterPlayedIcon"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FooterIconBase}">
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Played.png"/>
        <Setter Property="Visibility" Value="{Binding LocalPlayerHasPlayed, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
    </Style>


    <Style x:Key="A_Style_ContentControl_CampaignFlyerFront" TargetType="ContentControl">
        <Style.Resources>
            <Style x:Key="A_Style_Flyer_TopStrip_IconBacking" TargetType="local:FZMaterial">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Purple}" />
                <Setter Property="Height" Value="38" />
                <Setter Property="Margin" Value="2,0" />
                <Setter Property="Preset" Value="{StaticResource H_Roundtangle_Outer_3px}" />
            </Style>

            <Style x:Key="A_Style_FZRun_Plays_BOLD" TargetType="local:FZRun">
                <Setter Property="FontFamily" Value="Horizon_A" />
            </Style>
            <MappingConverter x:Key="A_MappingConverter_Plays" >
                <MappingConverterEntry Key="{NoCase BOLD}" Value="{StaticResource A_Style_FZRun_Plays_BOLD}" />
            </MappingConverter>
        </Style.Resources>
        <Setter Property="ContentTemplateSelector" Value="{StaticResource A_EventBlueprintFlyerTemplateSelector}" />
        <Setter Property="Content" Value="{Binding}" />
        <Setter Property="Height" Value="{StaticResource A_Double_CampaignSetupFlyerHeight}" />
        <Setter Property="Width" Value="{StaticResource A_Double_CampaignSetupFlyerWidth}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Grid>
                        <ContentPresenter Width="{StaticResource A_Double_CampaignSetupFlyerWidth}"
                                          Height="{StaticResource A_Double_CampaignSetupFlyerHeight}"/>

                        <Control Style="{StaticResource A_Style_Control_OnlineFlyerCarClass}"
                                 Tag="{TemplateBinding Tag}"
                                 HorizontalAlignment="Right"
                                 VerticalAlignment="Top"
                                 Height="45"
                                 Margin="25"/>

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <local:LinearTransformConverter x:Key="A_LinearTransformConverter_FlyerFlippingShadow" Scale="0.01111" Add="-1" />

    <Storyboard x:Key="A_Storyboard_ShowBackOfFlyer">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Tag"
                                       Storyboard.TargetName="Flyer">
            <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="180.0">
                <EasingDoubleKeyFrame.EasingFunction>
                    <ExponentialEase EasingMode="EaseInOut" />
                </EasingDoubleKeyFrame.EasingFunction>
            </EasingDoubleKeyFrame>
        </DoubleAnimationUsingKeyFrames>
        <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="Focusable"
                                       Storyboard.TargetName="Flyer">
            <DiscreteBooleanKeyFrame KeyTime="0:0:0.0" Value="False"/>
            <DiscreteBooleanKeyFrame KeyTime="0:0:0.3" Value="True"/>
        </BooleanAnimationUsingKeyFrames>
        <StringAnimationUsingKeyFrames Storyboard.TargetName="Audio"
                                       Storyboard.TargetProperty="(local:AudioEvent.SoundName)">
            <DiscreteStringKeyFrame KeyTime="0" Value="/Master/UI/PreRace/HZ3_SFX_UI_PreRace_ViewFlyerBack" />
        </StringAnimationUsingKeyFrames>
    </Storyboard>

    <Storyboard x:Key="A_Storyboard_ShowFrontOfFlyer">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Tag"
                                       Storyboard.TargetName="Flyer">
            <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.0">
                <EasingDoubleKeyFrame.EasingFunction>
                    <ExponentialEase EasingMode="EaseInOut" />
                </EasingDoubleKeyFrame.EasingFunction>
            </EasingDoubleKeyFrame>
        </DoubleAnimationUsingKeyFrames>
        <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="Focusable"
                                       Storyboard.TargetName="Flyer">
            <DiscreteBooleanKeyFrame KeyTime="0:0:0.0" Value="False"/>
            <DiscreteBooleanKeyFrame KeyTime="0:0:0.3" Value="True"/>
        </BooleanAnimationUsingKeyFrames>
        <StringAnimationUsingKeyFrames Storyboard.TargetName="Audio"
                                       Storyboard.TargetProperty="(local:AudioEvent.SoundName)">
            <DiscreteStringKeyFrame KeyTime="0" Value="/Master/UI/PreRace/HZ3_SFX_UI_PreRace_ViewFlyerFront" />
        </StringAnimationUsingKeyFrames>
    </Storyboard>

    <ControlTemplate x:Key="A_ControlTemplate_Control_CampaignFlyer_Internal" TargetType="Control">
        <ControlTemplate.Resources>
            <RotateTransform3D x:Key="A_RotateTransform3D_FlyerFlip180"  CenterX="{StaticResource A_Double_CampaignSetupFlyerHalfWidth}">
                <RotateTransform3D.Rotation>
                    <AxisAngleRotation3D Axis="0,-1,0" Angle="180" />
                </RotateTransform3D.Rotation>
            </RotateTransform3D>
            <Thickness x:Key="A_Thickness_FlyerBorderMargin">0</Thickness>
        </ControlTemplate.Resources>
        <Grid Margin="{DynamicResource A_Thickness_FlyerBorderMargin}">
            <Grid x:Name="RotationContainer">
                <local:ZPanel.Transform>
                    <RotateTransform3D CenterX="{StaticResource A_Double_CampaignSetupFlyerHalfWidth}">
                        <RotateTransform3D.Rotation>
                            <AxisAngleRotation3D x:Name="FlyerRotation"  Axis="0,-1,0" Angle="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}" />
                        </RotateTransform3D.Rotation>
                    </RotateTransform3D>
                </local:ZPanel.Transform>

                <Grid x:Name="FrontFace">
                    <ContentControl Style="{StaticResource A_Style_ContentControl_CampaignFlyerFront}" />
                </Grid>
            </Grid>
        </Grid>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding Angle, ElementName=FlyerRotation, Converter={StaticResource A_CompareConverter}, ConverterParameter=90}" Value="-1">
                <Setter TargetName="FrontFace" Property="Visibility" Value="Visible" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Angle, ElementName=FlyerRotation, Converter={StaticResource A_CompareConverter}, ConverterParameter=90}" Value="1">
                <Setter TargetName="FrontFace" Property="Visibility" Value="Hidden" />
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style x:Key="A_Style_Control_CampaignFlyer_Internal" TargetType="Control">
        <Setter Property="Template" Value="{StaticResource A_ControlTemplate_Control_CampaignFlyer_Internal}" />
        <Setter Property="Tag">
            <Setter.Value>
                <System:Double>0</System:Double>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_CampaignFlyer_Internal_BorderedWithSelectionHighlight" TargetType="Control">
        <Setter Property="Template" Value="{StaticResource A_ControlTemplate_Control_CampaignFlyer_Internal}" />
        <Setter Property="Tag">
            <Setter.Value>
                <System:Double>0</System:Double>
            </Setter.Value>
        </Setter>
    </Style>

    <ControlTemplate x:Key="A_ControlTemplate_Control_CampaignFlyer" TargetType="Control">
        <Grid>
            <Control x:Name="Flyer" Style="{StaticResource A_Style_Control_CampaignFlyer_Internal}" />
            <local:AudioEvent x:Name="Audio" />
        </Grid>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding IsFlyerFlipped}" Value="True">
                <DataTrigger.EnterActions>
                    <BeginStoryboard HandoffBehavior="SnapshotAndReplace"
                                     Storyboard="{StaticResource A_Storyboard_ShowBackOfFlyer}" />
                </DataTrigger.EnterActions>
                <DataTrigger.ExitActions>
                    <BeginStoryboard HandoffBehavior="SnapshotAndReplace"
                                     Storyboard="{StaticResource A_Storyboard_ShowFrontOfFlyer}" />
                </DataTrigger.ExitActions>
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style x:Key="A_Style_Control_CampaignFlyer" TargetType="Control">
        <Setter Property="Template" Value="{StaticResource A_ControlTemplate_Control_CampaignFlyer}" />
    </Style>

    <Style x:Key="A_Style_ContentControl_Carousel_ContainerStyle_CampaignEventFlyer"
           BasedOn="{StaticResource A_Style_ContentControl_Carousel_ContainerStyle}"
           TargetType="ContentControl">
    </Style>


    <System:Double x:Key="A_Double_CampaignEventFlyer_Carousel_Tile_Width">446</System:Double>
    <System:Double x:Key="A_Double_CampaignEventFlyer_Carousel_Tile_Offset">981</System:Double>
    <System:Double x:Key="A_Double_CampaignEventFlyer_Carousel_Tile_Height">710</System:Double>
    <System:Double x:Key="A_Double_CampaignEventFlyer_Carousel_Total_Width">2698</System:Double>

    <Style TargetType="local:WrapListBox"
           x:Key="A_Style_Carousel_CampaignEventFlyer">
        <Style.Resources>
            <CornerRadius x:Key="A_CornerRadius_Dynamic_CarouselTile">16</CornerRadius>
            <System:Double x:Key="A_Opacity_Dynamic_CarouselTile">0.0</System:Double>
            <Style x:Key="A_Style_FZMaterial_ShadowBase_Dynamic"
                    TargetType="local:FZMaterial"
                    BasedOn="{StaticResource A_Style_FZMaterial_ShadowBase_Dynamic}">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding (local:MaxValue.Result), ElementName=VirtualizingWrapPanel}" Value="1">
                        <Setter Property="Preset">
                            <Setter.Value>
                                <local:FZMaterialPresetRoundtangle Softness="20" CornerRadius="25" AlphaMode="MultiplyInvColorOnly" Unlit="True" />
                            </Setter.Value>
                        </Setter>
                    </DataTrigger>
                </Style.Triggers>
            </Style>
            <Style x:Key="A_VirtualizingWrapPanel_Default_Dynamic"
                TargetType="local:VirtualizingWrapPanel"
                BasedOn="{StaticResource A_VirtualizingWrapPanel_Default}">
                <Style.Resources>
                    <Storyboard x:Key="PART_transition_in">
                        <Int32AnimationUsingKeyFrames Storyboard.TargetProperty="(local:MaxValue.B)"
                                                      Storyboard.TargetName="{x:Null}"
                                                      FillBehavior="Stop">
                            <DiscreteInt32KeyFrame KeyTime="0:0:0.0"
                                                   Value="{StaticResource A_Int32_EnableMotionBlur}"/>
                            <DiscreteInt32KeyFrame KeyTime="{StaticResource A_KeyTime_Transition_ElementIn}"
                                                   Value="{StaticResource A_Int32_EnableMotionBlur}"/>
                        </Int32AnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="PART_transition_out_forward">
                        <Int32AnimationUsingKeyFrames Storyboard.TargetProperty="(local:MaxValue.B)"
                                                       Storyboard.TargetName="{x:Null}"
                                                       FillBehavior="Stop">
                            <DiscreteInt32KeyFrame KeyTime="0:0:0.0"
                                                   Value="{StaticResource A_Int32_EnableMotionBlur}"/>
                            <DiscreteInt32KeyFrame KeyTime="{StaticResource A_KeyTime_Transition_ElementOut}"
                                                   Value="{StaticResource A_Int32_EnableMotionBlur}"/>
                        </Int32AnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="PART_transition_out_back">
                        <Int32AnimationUsingKeyFrames Storyboard.TargetProperty="(local:MaxValue.B)"
                                                       Storyboard.TargetName="{x:Null}"
                                                       FillBehavior="Stop">
                            <DiscreteInt32KeyFrame KeyTime="0:0:0.0"
                                                   Value="{StaticResource A_Int32_EnableMotionBlur}"/>
                            <DiscreteInt32KeyFrame KeyTime="{StaticResource A_KeyTime_Transition_ElementOut}"
                                                   Value="{StaticResource A_Int32_EnableMotionBlur}"/>
                        </Int32AnimationUsingKeyFrames>
                    </Storyboard>
                </Style.Resources>
                <Setter Property="local:BlendValue.InputChangedStoryboard" Value="{StaticResource A_Storyboard_Carousel_SmoothScrollWithMotionBlur}"/>
                <Setter Property="local:MaxValue.A" Value="{StaticResource A_Int32_DisableMotionBlur}"/>
                <Setter Property="local:MaxValue.B" Value="{StaticResource A_Int32_DisableMotionBlur}"/>
                <Setter Property="local:UIPageTransitionManager.TransitionIndex" Value="0"/>
            </Style>
        </Style.Resources>
        <Setter Property="Template"
                Value="{StaticResource A_ControlTemplate_Carousel_Default}" />
        <Setter Property="ItemContainerStyle"
                Value="{StaticResource A_Style_ContentControl_Carousel_ContainerStyle_CampaignEventFlyer}" />
        <Setter Property="Height"
                Value="{StaticResource A_Double_CampaignEventFlyer_Carousel_Tile_Height}" />
        <Setter Property="Width"
                Value="{StaticResource A_Double_CampaignEventFlyer_Carousel_Total_Width}" />
        <Setter Property="ItemWidth"
                Value="{StaticResource A_Double_CampaignEventFlyer_Carousel_Tile_Width}" />
        <Setter Property="ItemHeight"
                Value="{StaticResource A_Double_CampaignEventFlyer_Carousel_Tile_Height}" />
        <Setter Property="SelectionLimitTop"
                Value="{StaticResource A_Double_CampaignEventFlyer_Carousel_Tile_Offset}" />
        <Setter Property="Margin"
                Value="-566,0,0,0"/>
        <Setter Property="AlternationCount"
                Value="10000" />
        <Setter Property="PageSize"
                Value="1" />
    </Style>

    <Style x:Key="A_Style_TextBlock_InfoIconText" TargetType="local:FZTextBlock">
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="TextAlignment" Value="Left"/>
        <Setter Property="FontFamily" Value="Horizon_B"/>
        <Setter Property="CapHeight" Value="14"/>
        <Setter Property="Margin" Value="13,0,0,0"/>
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
    </Style>

    <ControlTemplate x:Key="A_ControlTemplate_AdditionalInfo_IconAndName" TargetType="Control">
        <local:FZMaterial Width="276" Height="33" Preset="{RoundtangleStroke CornerRadius=0, Thickness=1}"            
                          Color="{StaticResource H_Color_Primary_Black}" Visibility="{Binding Visibility, ElementName=AdditionalInfoIcon}">
            <DockPanel>
                <local:FZMaterial x:Name="AdditionalInfoIcon"
                                  VerticalAlignment="Center"
                                  DockPanel.Dock="Left"
                                  Style="{Binding (BindingProxy.A), RelativeSource={RelativeSource AncestorType=Control}}"                                  
                                  Margin="1,0,0,0"/>
                    
                <local:FZTextBlock Style="{StaticResource A_Style_TextBlock_InfoIconText}"
                                   Text="{Binding (BindingProxy.B), RelativeSource={RelativeSource AncestorType=Control}}"/>
            </DockPanel>
        </local:FZMaterial>
    </ControlTemplate>

    <ControlTemplate x:Key="A_ControlTemplate_AdditionalInfo_IconAndName_BucketList" TargetType="Control">
        <local:FZMaterial Width="276" Height="33" Preset="{RoundtangleStroke CornerRadius=0, Thickness=1}"            
                          Color="{StaticResource H_Color_Primary_Black}" Visibility="{Binding Visibility, ElementName=AdditionalInfoIcon}">
            <DockPanel>
                <local:FZMaterial x:Name="AdditionalInfoIcon"
                                  VerticalAlignment="Center"
                                  DockPanel.Dock="Left"
                                  Style="{Binding (BindingProxy.A), RelativeSource={RelativeSource AncestorType=Control}}"                                  
                                  Margin="1,0,0,0"/>

                <local:FZTextBlock Style="{StaticResource A_Style_TextBlock_InfoIconText}"
                                   Text="{Binding (BindingProxy.B), RelativeSource={RelativeSource AncestorType=Control}}"
                                   Color="{StaticResource H_Color_Primary_Black}"/>
            </DockPanel>
        </local:FZMaterial>
    </ControlTemplate>

    <CornerRadius x:Key="A_CornerRadius_AdditionalInfoPanel_Background">0</CornerRadius>
    <FZMaterialPresetRoundtangle x:Key="A_Preset_AdditionalInfoPanel_Background_Opaque"
                                         CornerRadius="{StaticResource A_CornerRadius_AdditionalInfoPanel_Background}"/>
    <FZMaterialPresetGlassRoundtangle x:Key="A_Preset_AdditionalInfoPanel_Background_Glass"
                                              BlurAmount="High"/>

    <local:MappingConverter x:Key="A_Converter_MapTrack_To_KeyArt_Fallback"
                            Default="/ForzaUI;component/Textures/Data_Bound/EventInfoKeyArt/Fallback.png" CheckEnumKey="XAMLTrack">
        <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.Invalid}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/EventInfoKeyArt/Fallback.png" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.Default}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/EventInfoKeyArt/Default.png" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.ExpansionOne}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/EventInfoKeyArt/ExpansionOne.png" />
        <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.ExpansionTwo}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/EventInfoKeyArt/ExpansionTwo.png" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_SceneEnumToType">
        <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.CampaignEventSelect}" Value="{x:Type local:CampaignEventSelect}" />
        <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.CampaignBlueprintSelectEventSignUp}" Value="{x:Type local:CampaignBlueprintSelectBase}" />
        <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.CampaignBlueprintSelectPauseMenu}" Value="{x:Type local:CampaignBlueprintSelectBase}" />
        <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.CampaignBlueprintSelectShowroom}" Value="{x:Type local:CampaignBlueprintSelectBase}" />
        <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.CampaignBlueprintSelectELAShowroom}" Value="{x:Type local:CampaignBlueprintSelectBase}" />
        <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.CampaignBlueprintSelectMyEvents}" Value="{x:Type local:CampaignBlueprintSelectBase}" />
        <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.CampaignBlueprintSelectImport}" Value="{x:Type local:CampaignBlueprintSelectBase}" />
    </local:MappingConverter>

    <Style x:Key="A_Style_MapCustomRenderElement_UIMap_EventBlueprint" 
                   TargetType="local:MapCustomRenderElement"
                   BasedOn="{StaticResource A_Style_MapCustomRenderElement_UIMap}">
        <Setter Property="local:AncestorPropertySetter.Property" Value="SelectedMapCustomRenderElement" />
        <Setter Property="local:AncestorPropertySetter.Type" Value="{Binding SceneEnum, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_Converter_SceneEnumToType}}" />
        <Setter Property="local:AncestorPropertySetter.AllowParentBindingFailure" Value="True" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="True">
                <Setter Property="local:AncestorPropertySetter.Value" Value="{Binding RelativeSource={RelativeSource Self}}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <local:MappingConverter x:Key="A_Converter_HeavyWeightLoadingState_VisbleIfNotReady"
                            Default="Visible">
        <local:MappingConverterEntry Key="{x:Static local:XAMLHeavyWeightLoadingState.Ready}"
                                     Value="Collapsed" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_HeavyWeightLoadingState_VisbleIfReady"
                            Default="Collapsed">
        <local:MappingConverterEntry Key="{x:Static local:XAMLHeavyWeightLoadingState.Ready}"
                                     Value="Visible" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_HeavyWeightLoadingState_VisbleIfFailedToLoad"
                            Default="Collapsed">
        <local:MappingConverterEntry Key="{x:Static local:XAMLHeavyWeightLoadingState.FailedToLoad}"
                                     Value="Visible" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_HeavyWeightLoadingState_VisbleIfLoading"
                            Default="Collapsed">
        <local:MappingConverterEntry Key="{x:Static local:XAMLHeavyWeightLoadingState.Loading}"
                                     Value="Visible" />
    </local:MappingConverter>
    
        
    <Double x:Key="A_Double_FailedRouteInfo_HorizonC_LineAdjust">-0.60</Double>
    
    <ControlTemplate x:Key="A_ControlTemplate_Event_AdditionalInfo_PreRacePanel">
        <Grid>
            <FZMaterial x:Name="ShadowMaterial"
                        Margin="-24"
                        Style="{StaticResource H_Style_FZMaterial_ShadowBase_ForSubgraph}"/>
            <FZMaterial>
                <FZMaterial.Style>
                    <Style TargetType="FZMaterial">
                        <Setter Property="Color" Value="{StaticResource H_Color_Glass_Purple_20pc}" />
                        <Setter Property="Preset" Value="{StaticResource A_Preset_AdditionalInfoPanel_Background_Glass}" />
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding UseAltStyle}" Value="{StaticResource A_Boolean_True}">
                                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
                                <Setter Property="Preset" Value="{StaticResource A_Preset_AdditionalInfoPanel_Background_Opaque}" />
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </FZMaterial.Style>
                
                <Grid x:Name="MapContainer"
                      Margin="21">
                    <local:MapViewControllerWindowed x:Name="RaceMapMapView"
                                                     DataContext="{Binding RouteMap}"
                                                     Style="{StaticResource A_Style_MapViewController_UIMap}" />

                    <local:FZMaterial CaptureSubgraph="True"
                                      HorizontalAlignment="Stretch"
                                      VerticalAlignment="Stretch"
                                      Visibility="{Binding HeavyWeightLoadingState, Converter={StaticResource A_Converter_HeavyWeightLoadingState_VisbleIfReady}}">
                        <local:MapCustomRenderElement MapId="default" Style="{StaticResource A_Style_MapCustomRenderElement_UIMap_EventBlueprint}"
                                                      DataContext="{Binding RouteMap}"
                                                      ClipToBounds="True"
                                                      MapView="{Binding ElementName=RaceMapMapView}"
                                                      x:Name="mapCustomRenderElement"
                                                      HorizontalAlignment="Stretch"
                                                      VerticalAlignment="Stretch"/>
                    </local:FZMaterial>


                    <local:FZMaterial x:Name="TrackFallBack"
                                      ImageSourceNoPreload="{Binding SelectedRace.MediaTrack, Converter={StaticResource A_Converter_MapTrack_To_KeyArt_Fallback}}"
                                      VerticalAlignment="Stretch"
                                      HorizontalAlignment="Stretch"
                                      Visibility="{Binding RouteMap, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, FallbackValue=Collapsed}"/>
                    <Decorator x:Name="HeavyDataLoading"
                               VerticalAlignment="Stretch"
                               HorizontalAlignment="Stretch" 
                               Visibility="{Binding HeavyWeightLoadingState, Converter={StaticResource A_Converter_HeavyWeightLoadingState_VisbleIfNotReady}}">
                        <StackPanel Orientation="Vertical"
                                    VerticalAlignment="Center">

                            <local:FZMaterial Width="80"
                                              Height="80"
                                              ImageSource="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Missing_Route_Icon.png"
                                              Color="{StaticResource H_Color_Primary_Grey_80pc}"
                                              Margin="11"
                                              HorizontalAlignment="Center"
                                              Visibility="{Binding HeavyWeightLoadingState, Converter={StaticResource A_Converter_HeavyWeightLoadingState_VisbleIfFailedToLoad}}"/>
                            
                            <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_FailedTogetRouteInfo}" 
                                               Margin="11"
                                               FontFamily="Horizon_C"
                                               HorizontalAlignment="Center" TextAlignment="Center"
                                               CapHeight="22" Color="{StaticResource H_Color_Primary_Grey_80pc}"
                                               Visibility="{Binding HeavyWeightLoadingState, Converter={StaticResource A_Converter_HeavyWeightLoadingState_VisbleIfFailedToLoad}}"
                                               LineAdjust="{StaticResource A_Double_FailedRouteInfo_HorizonC_LineAdjust}"/>
                            <ProgressBar Style="{StaticResource A_Style_ProgressBar_WaitSpinner}"
                                         Visibility="{Binding HeavyWeightLoadingState, Converter={StaticResource A_Converter_HeavyWeightLoadingState_VisbleIfLoading}}"
                                         HorizontalAlignment="Center"
                                         Height="30" />
                        </StackPanel>
                    </Decorator>
                </Grid>
            </FZMaterial>
        </Grid>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding UseAltStyle}" Value="{StaticResource A_Boolean_False}">
                <Setter TargetName="ShadowMaterial" Property="Visibility" Value="Collapsed"/>
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style x:Key="A_Style_FZMaterial_AdditionalInfo_Arrows" TargetType="local:FZMaterial">
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/AdditionalInfo/Arrows.png"/>
        <Setter Property="Width" Value="42"/>
        <Setter Property="Height" Value="36"/>
        <Setter Property="Margin" Value="-27,46,0,0"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
    </Style>
            
    <AutoScrollSettings x:Key="A_AutoScrollSettings_EventVertical"
                Speed="40"
                ScrollOrientation="Vertical"
                InitialPause="0:0:0.5"
                ScrollSeparation="50"/>

    <Style x:Key="A_Style_FZTextBlock_EventDescription" TargetType="local:FZTextBlock">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
        <Setter Property="FontFamily" Value="Horizon_D"/>
        <Setter Property="CapHeight" Value="14"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Text" Value="{Binding CampaignSetupItem.Description}"/>
        <Setter Property="Visibility" Value="{Binding CampaignSetupItem.Description, Converter={StaticResource A_StringVisConverter}}"/>
        <Setter Property="TextWrapping" Value="Wrap" />
        <Setter Property="LineAdjust" Value="-0.45" />
        <Setter Property="MaxHeight" Value="200" />
        <Setter Property="AutoScroll" Value="{StaticResource A_AutoScrollSettings_EventVertical}" />
        <Setter Property="AutoScroll.AllowScrolling" Value="{Binding Show}" />
        <Setter Property="TextAlignment" Value="Left" />
        <Setter Property="Stretch" Value="None" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding UseAltStyle}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <local:MappingConverter x:Key="A_Converter_VisbleIfRequiresShareCodeGenerate"
                                    Default="Collapsed">
        <local:MappingConverterEntry Key="{x:Static local:XAMLShareCodeState.RequiresGenerate}"
                                             Value="Visible" />
    </local:MappingConverter>

    <Style TargetType="local:FZRun" x:Key="A_FZRun_EventInfo_ShareCode_HIGHLIGHT">
        <Setter Property="FontFamily" Value="Horizon_C"/>
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_LightBlue}"/>
    </Style>
    <MappingConverter x:Key="A_MarkupConverter_EventBlueprint">
        <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_FZRun_EventInfo_ShareCode_HIGHLIGHT}"/>
    </MappingConverter>
    
    <Style x:Key="A_Style_FZTextBlock_EventDistanceDurationLength" TargetType="FZTextBlock">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
        <Setter Property="CapHeight" Value="19"/>
        <Setter Property="FontFamily" Value="Horizon_A"/>
        <Setter Property="Stretch" Value="None"/>
        <Setter Property="Margin" Value="0,5"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_EventWeatherTOD" TargetType="FZTextBlock">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
        <Setter Property="CapHeight" Value="19"/>
        <Setter Property="FontFamily" Value="Horizon_B" />
        <Setter Property="Stretch" Value="None"/>
        <Setter Property="Margin" Value="0,5"/>
    </Style>

    <AutoScrollSettings x:Key="A_AutoScrollSettings_EventHorizontal"
        Speed="40"
        ScrollOrientation="Horizontal"
        InitialPause="0:0:0.5"
        ScrollSeparation="50"/>

    <Style x:Key="A_Style_FZTextBlock_AutoScroll_EventDistanceDurationLength" BasedOn="{StaticResource A_Style_FZTextBlock_EventDistanceDurationLength}" TargetType="FZTextBlock">
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="AutoScroll" Value="{StaticResource A_AutoScrollSettings_EventHorizontal}" />
        <Setter Property="AutoScroll.AllowScrolling" Value="True" />
        <Setter Property="Text" Value="{Binding SelectedRace.TrackLengthText, Converter={StaticResource A_StringToUpper}}"/>

        <Style.Triggers>
            <DataTrigger Binding="{Binding SelectedRace.LapCountText, Converter={StaticResource A_StringVisConverter}, FallbackValue=Hidden}" Value="{x:Static Visibility.Visible}">
                <Setter Property="Text" Value="{Binding SelectedRace.LapCountText, Converter={StaticResource A_StringToUpper}}"/>
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition  Binding="{Binding SelectedRace.LapCountText, Converter={StaticResource A_StringVisConverter}, FallbackValue=Hidden}" Value="{x:Static Visibility.Visible}"/>
                    <Condition  Binding="{Binding SelectedRace.TrackLengthText, Converter={StaticResource A_StringVisConverter}, FallbackValue=Hidden}" Value="{x:Static Visibility.Visible}"/>
                </MultiDataTrigger.Conditions>
                <MultiDataTrigger.Setters>
                    <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc EventBlueprint.IDS_Blueprint_EventHas_LapsAndDistance}"/>
                    <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding SelectedRace.LapCountText}"/>
                    <Setter Property="local:MultiStringFormatter.Param1" Value="{Binding SelectedRace.TrackLengthText}"/>
                    <Setter Property="Text" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource A_StringToUpper}}"/>
                </MultiDataTrigger.Setters>
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_AutoScroll_EventWeatherTOD" BasedOn="{StaticResource A_Style_FZTextBlock_EventWeatherTOD}" TargetType="FZTextBlock">
        <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc EventBlueprint.IDS_Blueprint_EventHas_WeatherTimeofDay}"/>
        <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding SelectedRace.WeatherMode, Converter={StaticResource A_Converter_Weather_Severity_To_Short_String}}"/>
        <Setter Property="local:MultiStringFormatter.Param1" Value="{Binding SelectedRace.TimeOfDay, Converter={StaticResource A_Converter_Weather_TimeOfDay_To_Short_String}}"/>
        <Setter Property="Text" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource A_StringToUpper}}"/>
        <Setter Property="AutoScroll" Value="{StaticResource A_AutoScrollSettings_EventHorizontal}" />
        <Setter Property="AutoScroll.AllowScrolling" Value="True" />
    </Style>
    
    <Style x:Key="A_Style_DescriptionPanel_Text" TargetType="local:FZTextBlock">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
        <Setter Property="FontFamily" Value="Horizon_B"/>
        <Setter Property="LineAdjust" Value="-0.45"/>
        <Setter Property="Stretch" Value="None"/>
        <Setter Property="CapHeight" Value="17"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding UseAltStyle}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Purple}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_ShareCode" TargetType="local:FZTextBlock">
        <Setter Property="Color" Value="{StaticResource A_Color_RaceInfoPanel_ShareCode_Alt}"/>
        <Setter Property="FontFamily" Value="Horizon_B"/>
        <Setter Property="CapHeight" Value="14"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="MarkupConverter" Value="{StaticResource A_MarkupConverter_EventBlueprint}"/>
        <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_Blueprint_ShareCodeUnavailable}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding UseAltStyle}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ShareCodeState}"
                         Value="{x:Static local:XAMLShareCodeState.CodeLoading}">
                <Setter Property="Visibility"
                        Value="Hidden" />
            </DataTrigger>
            <DataTrigger Binding="{Binding CampaignSetupItem.DisplayShareCode, Converter={StaticResource A_Converter_TrueIfNotNull}}"
                         Value="{StaticResource A_Boolean_True}">
                <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc EventBlueprint.IDS_Blueprint_ShareCodeIsX}" />
                <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding CampaignSetupItem.DisplayShareCode}"/>
                <Setter Property="Text" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ShareCodeState}"
                         Value="{x:Static local:XAMLShareCodeState.RequiresGenerate}">
                <Setter Property="Text" 
                        Value="{Loc EventBlueprint.IDS_Blueprint_ShareCodeIsLoading}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZMaterial_ShareCode_Container" TargetType="local:FZMaterial">
        <Setter Property="Height" Value="44"/>
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
        <Setter Property="Visibility" Value="{Binding CampaignSetupItem.DisplayShareCode, Converter={StringVisConverter}}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding UseAltStyle}" Value="{StaticResource A_Boolean_True}">
                <Setter Property="Color" Value="{StaticResource A_Color_RaceInfoPanel_ShareCode_Alt}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ShareCodeState}"
                         Value="{x:Static local:XAMLShareCodeState.RequiresGenerate}">
                <Setter Property="Visibility" 
                        Value="Visible"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate x:Key="A_ControlTemplate_Event_AdditionalInfo_FlyerPopup">
        <Grid>
            <FZMaterial x:Name="ShadowMaterial"
                        Margin="-24"
                        Style="{StaticResource H_Style_FZMaterial_ShadowBase_ForSubgraph}"/>
            <FZMaterial>
                <FZMaterial.Style>
                    <Style TargetType="FZMaterial">
                        <Setter Property="HorizontalAlignment" Value="Left" /> 
                        <Setter Property="Color" Value="{StaticResource H_Color_Glass_Purple_20pc}" /> 
                        <Setter Property="Preset" Value="{StaticResource A_Preset_AdditionalInfoPanel_Background_Glass}" />
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding UseAltStyle}" Value="{StaticResource A_Boolean_True}">
                                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
                                <Setter Property="Preset" Value="{StaticResource A_Preset_AdditionalInfoPanel_Background_Opaque}" />
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </FZMaterial.Style>
                <DockPanel Margin="12"
                           HorizontalAlignment="Right"
                           Width="276">
                    <Grid x:Name="MapContainer"
                          DockPanel.Dock="Top"
                          Margin="0,0,0,12">
                        <local:MapViewControllerWindowed x:Name="RaceMapMapView"
                                                         DataContext="{Binding RouteMap}"
                                                         Style="{StaticResource A_Style_MapViewController_UIMap}" 
                                                         Width="276" Height="188"/>
                        
                        <local:FZMaterial CaptureSubgraph="True"
                                          HorizontalAlignment="Stretch"
                                          VerticalAlignment="Stretch"
                                          Width="276" Height="188">
                            <local:MapCustomRenderElement MapId="default" Style="{StaticResource A_Style_MapCustomRenderElement_UIMap_EventBlueprint}"
                                                          DataContext="{Binding RouteMap}"
                                                          ClipToBounds="True"
                                                          MapView="{Binding ElementName=RaceMapMapView}"
                                                          x:Name="mapCustomRenderElement"
                                                          HorizontalAlignment="Stretch"
                                                          VerticalAlignment="Stretch"/>
                        </local:FZMaterial>


                        <local:FZMaterial x:Name="TrackFallBack"
                                          ImageSourceNoPreload="{Binding SelectedRace.MediaTrack, Converter={StaticResource A_Converter_MapTrack_To_KeyArt_Fallback}}"
                                          VerticalAlignment="Stretch"
                                          HorizontalAlignment="Stretch"
                                          Visibility="{Binding RouteMap, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, FallbackValue=Collapsed}"/>
                        <local:FZMaterial x:Name="HeavyDataLoading"
                                          VerticalAlignment="Stretch"
                                          HorizontalAlignment="Stretch" 
                                          Color="{StaticResource H_Color_Primary_Black}" Visibility="{Binding HeavyWeightLoadingState, Converter={StaticResource A_Converter_HeavyWeightLoadingState_VisbleIfNotReady}}">
                            <StackPanel Orientation="Vertical"
                                        VerticalAlignment="Center">
                                                           
                                <local:FZMaterial Width="50"
                                                  Height="50"
                                                  ImageSource="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Missing_Route_Icon.png"
                                                  Margin="10"
                                                  HorizontalAlignment="Center"
                                                  Visibility="{Binding HeavyWeightLoadingState, Converter={StaticResource A_Converter_HeavyWeightLoadingState_VisbleIfFailedToLoad}}"/>
                                
                                <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_FailedTogetRouteInfo}" 
                                                   VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center"
                                                   CapHeight="20" Color="{StaticResource H_Color_Primary_White}"
                                                   Visibility="{Binding HeavyWeightLoadingState, Converter={StaticResource A_Converter_HeavyWeightLoadingState_VisbleIfFailedToLoad}}"
                                                   LineAdjust="{StaticResource A_Double_FailedRouteInfo_HorizonC_LineAdjust}"/>
                                
                                <ProgressBar Style="{StaticResource A_Style_ProgressBar_WaitSpinner}"
                                             Visibility="{Binding HeavyWeightLoadingState, Converter={StaticResource A_Converter_HeavyWeightLoadingState_VisbleIfLoading}}"
                                             HorizontalAlignment="Center"
                                             Height="30" />
                            </StackPanel>
                        </local:FZMaterial>
                    </Grid>

                    <local:FZTextBlock x:Name="DescriptionText"
                                       Style="{StaticResource A_Style_FZTextBlock_EventDescription}"
                                       DockPanel.Dock="Top"
                                       Margin="9,0,9,25"/>

                    <local:FZMaterial Preset="{RoundtangleStroke CornerRadius=0, Thickness=1}" Color="{StaticResource H_Color_Primary_Black}"
                                      DockPanel.Dock="Top"
                                      HorizontalAlignment="Center"
                                      Margin="0,0,0,12">
                        
                        <DockPanel Margin="1" HorizontalAlignment="Center"
                                   DockPanel.Dock="Top"
                                   SnapsToDevicePixels="True">

                            <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                     DataContext="{Binding CampaignSetupItem}"
                                     local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterSeasonIcon}"
                                     local:BindingProxy.B="{Binding EventSeason, Converter={StaticResource A_Converter_Season_To_String_Global}}"/>
                            <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                     DataContext="{Binding CampaignSetupItem}"
                                     local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterWeatherIcon}"
                                     local:BindingProxy.B="{Binding RaceSetups[0].WeatherMode, Converter={StaticResource A_Converter_Weather_Severity_To_Short_String}}"/>
                            <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                     local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterTimeOfDayIcon}"
                                     DataContext="{Binding CampaignSetupItem}"
                                     local:BindingProxy.B="{Binding RaceSetups[0].TimeOfDay, Converter={StaticResource A_Converter_Weather_TimeOfDay_To_Short_String}}"/>
                            <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                     DataContext="{Binding CampaignSetupItem}"
                                     local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterCustomRouteIcon}"
                                     local:BindingProxy.B="{local:Loc EventBlueprint.IDS_RouteBlueprint_CustomRoute}"/>
                            <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                     DataContext="{Binding CampaignSetupItem}"
                                     local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterHasPropsIcon}"
                                     local:BindingProxy.B="{local:Loc EventBlueprint.IDS_RouteBlueprint_HasProps}"/>
                            <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                     DataContext="{Binding CampaignSetupItem}"
                                     local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterNoRewindIcon}"
                                     local:BindingProxy.B="{local:Loc EventBlueprint.IDS_RouteBlueprint_NoRewind}"/>
                            <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                     DataContext="{Binding CampaignSetupItem}"
                                     local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterPlayedIcon}"
                                     local:BindingProxy.B="{local:Loc EventBlueprint.IDS_Played}"/>
                            <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                     DataContext="{Binding CampaignSetupItem}"
                                     local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterFavoriteIcon}"
                                     local:BindingProxy.B="{local:Loc EventBlueprint.IDS_RouteBlueprint_Favorited}"/>

                        </DockPanel>
                    </local:FZMaterial>

                    <local:FZMaterial DockPanel.Dock="Bottom"
                                      Style="{StaticResource A_Style_FZMaterial_ShareCode_Container}"
                                      Margin="-21,0,-13,-12">
                        <DockPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="12,2,12,2">
                            <ControllerButtonControl 
                                Visibility="{Binding ShareCodeState, Converter={StaticResource A_Converter_VisbleIfRequiresShareCodeGenerate}, FallbackValue=Collapsed}"
                                MaxHeight="30" 
                                Margin="4,0,0,0"
                                Style="{StaticResource A_Style_ControllerButtonControl_Standalone}" 
                                Button="{Binding Button, ElementName=get_share_code_input}" 
                                DockPanel.Dock="Right"/>
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ShareCode}"/>
                        </DockPanel>
                    </local:FZMaterial>
                </DockPanel>
            </FZMaterial>

            <FZMaterial x:Name="Arrows"
                        Style="{StaticResource A_Style_FZMaterial_AdditionalInfo_Arrows}"/>
        </Grid>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding UseAltStyle}" Value="{StaticResource A_Boolean_False}">
                <Setter TargetName="ShadowMaterial" Property="Visibility" Value="Collapsed"/>
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <ControlTemplate x:Key="A_ControlTemplate_Event_AdditionalInfo_PreRace_FlyerPopup">
        <Grid>
            <FZMaterial x:Name="ShadowMaterial"
                        Margin="-24"
                        Style="{StaticResource H_Style_FZMaterial_ShadowBase_ForSubgraph}" />
            <DockPanel HorizontalAlignment="Left">
                    <local:FZMaterial x:Name="TitleText"
                                      Height="45"
                                      Color="{StaticResource H_Color_Primary_Green}"
                                      DockPanel.Dock="Top"
                                      >
                        <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_EventInformation}"
                                           Style="{StaticResource A_Style_FZTextBlock_RaceInfo_HeaderText}"/>
                    </local:FZMaterial>

                    <FZMaterial >
                        <FZMaterial.Style>
                            <Style TargetType="FZMaterial">
                                <Setter Property="HorizontalAlignment" Value="Left" /> 
                                <Setter Property="Color" Value="{StaticResource H_Color_Glass_Purple_20pc}" /> 
                                <Setter Property="Preset" Value="{StaticResource A_Preset_AdditionalInfoPanel_Background_Glass}" />
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding UseAltStyle}" Value="{StaticResource A_Boolean_True}">
                                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
                                        <Setter Property="Preset" Value="{StaticResource A_Preset_AdditionalInfoPanel_Background_Opaque}" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </FZMaterial.Style>
                        <DockPanel Margin="12"
                                   HorizontalAlignment="Right"
                                   Width="276">

                            <local:FZTextBlock x:Name="DescriptionText"
                                               Style="{StaticResource A_Style_FZTextBlock_EventDescription}"
                                               DockPanel.Dock="Top"
                                               Margin="9,0,9,25"/>

                            <local:FZMaterial Preset="{RoundtangleStroke CornerRadius=0, Thickness=1}" Color="{StaticResource H_Color_Primary_Black}"
                                              DockPanel.Dock="Top"
                                              HorizontalAlignment="Center"
                                              Margin="0,0,0,12">
                        
                                <DockPanel Margin="1" HorizontalAlignment="Center"
                                           DockPanel.Dock="Top"
                                           SnapsToDevicePixels="True">

                                    <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                             DataContext="{Binding CampaignSetupItem}"
                                             local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterSeasonIcon}"
                                             local:BindingProxy.B="{Binding EventSeason, Converter={StaticResource A_Converter_Season_To_String_Global}}"/>
                                    <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                             DataContext="{Binding CampaignSetupItem}"
                                             local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterWeatherIcon}"
                                             local:BindingProxy.B="{Binding RaceSetups[0].WeatherMode, Converter={StaticResource A_Converter_Weather_Severity_To_Short_String}}"/>
                                    <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                             local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterTimeOfDayIcon}"
                                             DataContext="{Binding CampaignSetupItem}"
                                             local:BindingProxy.B="{Binding RaceSetups[0].TimeOfDay, Converter={StaticResource A_Converter_Weather_TimeOfDay_To_Short_String}}"/>
                                    <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                             DataContext="{Binding CampaignSetupItem}"
                                             local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterCustomRouteIcon}"
                                             local:BindingProxy.B="{local:Loc EventBlueprint.IDS_RouteBlueprint_CustomRoute}"/>
                                    <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                             DataContext="{Binding CampaignSetupItem}"
                                             local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterHasPropsIcon}"
                                             local:BindingProxy.B="{local:Loc EventBlueprint.IDS_RouteBlueprint_HasProps}"/>
                                    <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                             DataContext="{Binding CampaignSetupItem}"
                                             local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterNoRewindIcon}"
                                             local:BindingProxy.B="{local:Loc EventBlueprint.IDS_RouteBlueprint_NoRewind}"/>
                                    <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                             DataContext="{Binding CampaignSetupItem}"
                                             local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterPlayedIcon}"
                                             local:BindingProxy.B="{local:Loc EventBlueprint.IDS_Played}"/>
                                    <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName}" DockPanel.Dock="Top"
                                             DataContext="{Binding CampaignSetupItem}"
                                             local:BindingProxy.A="{StaticResource A_Style_FZMaterial_FooterFavoriteIcon}"
                                             local:BindingProxy.B="{local:Loc EventBlueprint.IDS_RouteBlueprint_Favorited}"/>

                                </DockPanel>
                            </local:FZMaterial>

                            <local:FZMaterial DockPanel.Dock="Bottom"
                                              Style="{StaticResource A_Style_FZMaterial_ShareCode_Container}"
                                              Margin="-21,0,-13,-12">
                                <DockPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="12,2,12,2">
                                    <ControllerButtonControl 
                                        Visibility="{Binding ShareCodeState, Converter={StaticResource A_Converter_VisbleIfRequiresShareCodeGenerate}, FallbackValue=Collapsed}"
                                        MaxHeight="30" 
                                        Margin="4,0,0,0"
                                        Style="{StaticResource A_Style_ControllerButtonControl_Standalone}" 
                                        Button="{Binding Button, ElementName=get_share_code_input}" 
                                        DockPanel.Dock="Right"/>
                                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ShareCode}"/>
                                </DockPanel>
                            </local:FZMaterial>
                        </DockPanel>
                    </FZMaterial>
                </DockPanel>

                <FZMaterial x:Name="Arrows"
                            Style="{StaticResource A_Style_FZMaterial_AdditionalInfo_Arrows}"/>
            </Grid>

        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding UseAltStyle}" Value="{StaticResource A_Boolean_False}">
                <Setter TargetName="ShadowMaterial" Property="Visibility" Value="Collapsed"/>
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    
    <Style x:Key="A_Style_FZMaterial_Footer_PublishedIcon"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FooterIconBase}">
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Date_Published.png"/>
        <Setter Property="Visibility" Value="{Binding PublishedText, Converter={StaticResource A_StringVisConverter}}"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_RaceInfo_HeaderText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="CapHeight" Value="18"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_ShareCode_Container_UGC" TargetType="local:FZMaterial">
        <Setter Property="Height" Value="44"/>
        <Setter Property="Color" Value="{StaticResource A_Color_RaceInfoPanel_ShareCode_Alt}"/>
        <Setter Property="Visibility" Value="{Binding DisplayShareCode, Converter={StringVisConverter}}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding ShareCodeState}"
                                 Value="{x:Static local:XAMLShareCodeState.RequiresGenerate}">
                <Setter Property="Visibility" 
                                Value="Visible"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_ShareCode_UGCLocation" TargetType="local:FZTextBlock">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
        <Setter Property="FontFamily" Value="Horizon_B"/>
        <Setter Property="CapHeight" Value="14"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="MarkupConverter" Value="{StaticResource A_MarkupConverter_EventBlueprint}"/>
        <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_Blueprint_ShareCodeUnavailable}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding ShareCodeState}"
                         Value="{x:Static local:XAMLShareCodeState.CodeLoading}">
                <Setter Property="Visibility"
                        Value="Hidden" />
            </DataTrigger>
            <DataTrigger Binding="{Binding DisplayShareCode, Converter={StaticResource A_Converter_TrueIfNotNull}}"
                         Value="{StaticResource A_Boolean_True}">
                <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc EventBlueprint.IDS_Blueprint_ShareCodeIsX}" />
                <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding DisplayShareCode}"/>
                <Setter Property="Text" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ShareCodeState}"
                         Value="{x:Static local:XAMLShareCodeState.RequiresGenerate}">
                <Setter Property="Text" 
                        Value="{Loc EventBlueprint.IDS_Blueprint_ShareCodeIsLoading}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate x:Key="A_ControlTemplate_UGCLocation_AdditionalInfo_FlyerPopup">
        <Grid>
            <FZMaterial x:Name="ShadowMaterial"
                Margin="-24"
                Style="{StaticResource H_Style_FZMaterial_ShadowBase_ForSubgraph}"/>

            <FZMaterial Color="{StaticResource H_Color_Primary_White}"
                        Preset="{StaticResource A_Preset_AdditionalInfoPanel_Background_Opaque}"
                        HorizontalAlignment="Left">
                <StackPanel HorizontalAlignment="Right"
                            Width="300">

                    <local:FZMaterial x:Name="TitleText"
                                      Height="45"
                                      Color="{StaticResource H_Color_Primary_Green}">
                        <local:FZTextBlock Text="{Binding Title}"
                                           Style="{StaticResource A_Style_FZTextBlock_RaceInfo_HeaderText}"/>
                    </local:FZMaterial>

                    <local:FZTextBlock x:Name="DescriptionText"
                                       Style="{StaticResource A_Style_FZTextBlock_EventDescription}"
                                       DockPanel.Dock="Top"
                                       Margin="25"
                                       Text="{Binding Description}"
                                       Visibility="{Binding Description, Converter={StaticResource A_StringVisConverter}}"
                                       Color="{StaticResource H_Color_Primary_Black}"/>

                    <local:FZMaterial Preset="{RoundtangleStroke CornerRadius=0, Thickness=1}" Color="{StaticResource H_Color_Primary_Black}"
                                      DockPanel.Dock="Top"
                                      HorizontalAlignment="Center"
                                      Margin="0,0,0,12"
                                      Visibility="{Binding PublishedText, ElementName=Container, Converter={StaticResource A_StringVisConverter}}">
                        <DockPanel x:Name="Container" Margin="1" HorizontalAlignment="Center"
                                   DockPanel.Dock="Top"
                                   SnapsToDevicePixels="True">

                            <Control Template="{StaticResource A_ControlTemplate_AdditionalInfo_IconAndName_BucketList}" DockPanel.Dock="Top"
                                     local:BindingProxy.A="{StaticResource A_Style_FZMaterial_Footer_PublishedIcon}"
                                     local:BindingProxy.B="{Binding PublishedText}"/>
                        </DockPanel>
                    </local:FZMaterial>

                    <local:FZMaterial DockPanel.Dock="Bottom"
                              Style="{StaticResource A_Style_FZMaterial_ShareCode_Container_UGC}"
                              Margin="0,0,0,0">
                        <DockPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="12,2,12,2">
                            <ControllerButtonControl Visibility="{Binding ShareCodeState, Converter={StaticResource A_Converter_VisbleIfRequiresShareCodeGenerate}, FallbackValue=Collapsed}"
                                                     MaxHeight="30" 
                                                     Margin="4,0,0,0"
                                                     Style="{StaticResource A_Style_ControllerButtonControl_Standalone}" 
                                                     Button="{Binding Button, ElementName=get_share_code_input}" 
                                                     DockPanel.Dock="Right"/>
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ShareCode_UGCLocation}"/>
                        </DockPanel>
                    </local:FZMaterial>
                </StackPanel>
            </FZMaterial>

            <FZMaterial x:Name="Arrows"
                Style="{StaticResource A_Style_FZMaterial_AdditionalInfo_Arrows}"/>
        </Grid>
    </ControlTemplate>
    

    <Style x:Key="A_Style_Event_RaceInfoPanel_PreRace" TargetType="Control">
        <Setter Property="Template" Value="{StaticResource A_ControlTemplate_Event_AdditionalInfo_PreRacePanel}"/>
        <Setter Property="Width" Value="380"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="Margin" Value="0,33"/>
    </Style>  
    
    <Style x:Key="A_Style_Event_RaceInfo_FlyerPopup" TargetType="Control">
        <Setter Property="Template" Value="{StaticResource A_ControlTemplate_Event_AdditionalInfo_FlyerPopup}"/>
        <Setter Property="Width" Value="317"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="Margin" Value="0,33"/>
    </Style>
    
    <Style x:Key="A_Style_Event_RaceInfo_PreRace_FlyerPopup" TargetType="Control">
        <Setter Property="Template" Value="{StaticResource A_ControlTemplate_Event_AdditionalInfo_PreRace_FlyerPopup}"/>
        <Setter Property="Width" Value="300"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="Margin" Value="0,33"/>
    </Style>

    <Style x:Key="A_Style_Event_UGCLocation_FlyerPopup" TargetType="Control">
        <Setter Property="Template" Value="{StaticResource A_ControlTemplate_UGCLocation_AdditionalInfo_FlyerPopup}"/>
        <Setter Property="Width" Value="317"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="Margin" Value="0,33"/>
    </Style>

</ResourceDictionary>
