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

    <System:Double x:Key="A_Double_CampaignSetupDescriptionPanel_Width">1086</System:Double>
    <System:Double x:Key="A_Double_CampaignSetupDescriptionPanel_Height">82</System:Double>
    <Thickness x:Key="A_Thickness_CampaignSetupContents_Margin">68,0,68,-40</Thickness>
    <CornerRadius x:Key="A_CornerRadius_FlyerBorderCornerRadius">9</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_FlyerBorderCornerRadius_BottomOnly">0,0,9,9</CornerRadius>
    <CornerRadius x:Key="A_CornerRadius_FlyerOuterBorder">16</CornerRadius>

    <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlass_Rounded_ScreenBlurHigh" 
                         BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_InnerAll}"
                         BlurAmount="High"/>
    
    <ControlTemplate x:Key="A_ControlTemplate_Blueprint_Background"
                     TargetType="{x:Type Control}">
        <Grid Style="{StaticResource A_Style_FrameworkElement_ScreenBlurTransition}" local:UIPageTransitionManager.TransitionTags="Blueprint" >
            <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetGlass_ScreenBlurHigh}" Color="#00000000" />
            <Grid Margin="38,34,38,34">
                <!--Method of creating outline via glass capture ignoring back panel-->
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}" Opacity="0.15"/>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_GlassPanel_Pill}"
                                  Color="#26000000" Preset="{StaticResource A_FZMaterialPresetGlass_Rounded_ScreenBlurHigh}" Margin="2">
                    <local:FZMaterial  ImageSource="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Grid_Tile.png"
                                        TextureWrap="True" RenderTransformOrigin="0.5,0.5" Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}" >
                        <local:FZMaterial.ImageTransform>
                            <ScaleTransform ScaleX="0.060" ScaleY="0.108"/>
                        </local:FZMaterial.ImageTransform>
                    </local:FZMaterial>
                </local:FZMaterial>
            </Grid>
            <local:FZMaterialGlassCapture />
        </Grid>
    </ControlTemplate>

    <System:Double x:Key="A_Double_CampaignSetupFlyerWidth">564</System:Double>
    <System:Double x:Key="A_Double_CampaignSetupFlyerHalfWidth">282</System:Double>
    <System:Double x:Key="A_Double_CampaignSetupFlyerHeight">836</System:Double>

    <ScaleTransform x:Key="A_Transform_FlyerPreviewResize" ScaleX="0.8333" ScaleY="0.835" />

    <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>
    
    <Style x:Key="A_FZRun_BOLD" TargetType="local:FZRun">
        <Setter Property="FontFamily" Value="Horizon_A" />
    </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>

    <Color x:Key="A_Color_Festival_Online">#0068E5</Color>
    <Color x:Key="A_Color_FlyerText_Pink">#ff3083</Color>
    <Color x:Key="A_Color_FlyerText_Red">#FF2A44</Color>
    <Color x:Key="A_Color_FlyerText_Yellow">#FFD00E</Color>
    <Color x:Key="A_Color_FlyerText_BrightYellow">#F8E422</Color>
    <Color x:Key="A_Color_FlyerText_Blue">#3BCDEA</Color>
    <Color x:Key="A_Color_FlyerText_Turquoise">#17faf0</Color>
    <Color x:Key="A_Color_FlyerText_DarkTurquoise">#21EBC5</Color>
    <Color x:Key="A_Color_FlyerText_Orange">#FF931C</Color>
    <Color x:Key="A_Color_FlyerText_Green">#9EF711</Color>
    <Color x:Key="A_Color_FlyerText_White">#FFFFFF</Color>

    <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_FZTextBlock_FlyerHorizonC" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_C" />
        <Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}" />
        <Setter Property="LineAdjust" Value="{StaticResource A_Double_LineAdjust_HorizonC}"/>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_ShowOnlyForPlaygroundGames" TargetType="FrameworkElement">
        <Setter Property="Visibility"
                Value="Collapsed" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsPlaygroundFlagRush}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Visible" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsPlaygroundKing}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Visible" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsPlaygroundInfected}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Visible" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsPlaygroundTeamFlagRush}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Visible" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsPlaygroundTeamKing}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Visible" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsPlaygroundTeamInfected}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Visible" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_HideForPlaygroundGames" TargetType="FrameworkElement">
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsPlaygroundFlagRush}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsPlaygroundKing}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsPlaygroundInfected}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsPlaygroundTeamFlagRush}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsPlaygroundTeamKing}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsPlaygroundTeamInfected}"
                         Value="True">
                <Setter Property="Visibility"
                        Value="Collapsed" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_Control_OnlineFlyerCarClass"
           TargetType="Control"
           BasedOn="{StaticResource A_Style_Control_AdvancedCarRestrictions}">
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
        <Setter Property="Margin" Value="0,15,0,0" />
        <Setter Property="Height" Value="39"/>
        <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>
    
    <Style x:Key="A_Style_Control_OnlineFlyerCarClass_AnyClass"
           TargetType="Control"
           BasedOn="{StaticResource A_Style_Control_CarClassBadge_Small}">
        <Style.Resources>
            <Style x:Key="A_Style_CarClassPIText_Dynamic" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_IconText}">
                <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_CarClassAny_Pill}"/>
                <Setter Property="FontFamily" Value="Horizon_A"/>
                <Setter Property="CapHeight" Value="15"/>
                <Setter Property="Color" Value="{StaticResource A_Color_CarClassPIText}"/>
            </Style>
        </Style.Resources>
        <Setter Property="local:BindingProxy.A" Value="{x:Null}" />
        <Setter Property="local:BindingProxy.B" Value="{x:Null}" />
        <Setter Property="local:BindingProxy.C" Value="{x:Null}" />
    </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">6</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" Height="39" 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" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            </local:FZMaterial>
        </local:FZMaterial>
    </ControlTemplate>
    <Style x:Key="A_Style_ShowdownPill" TargetType="Control">
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
        <Setter Property="Margin" Value="0,15,0,0" />
        <Setter Property="Visibility" Value="Visible"/>
        <Setter Property="Template" Value="{StaticResource A_Control_Showdown_Pill}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsShowdown}" Value="False">
                <Setter Property="Visibility" Value="Collapsed"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate x:Key="A_Control_Flyer_CarClassPills" TargetType="Control">
        <Grid>
            <Control Style="{StaticResource A_Style_Control_OnlineFlyerCarClass}"/>
            <Control Style="{StaticResource A_Style_ShowdownPill}"/>
        </Grid>
    </ControlTemplate>

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

    <Style x:Key="A_Style_Control_PrivateAdventureFlyerDriveType"
           TargetType="Control"
           BasedOn="{StaticResource A_Style_Control_DriveTypeDisplay}">
        <Setter Property="Height" Value="39" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
        <Setter Property="Margin" Value="0,15,0,0" />
        <Setter Property="local:BindingProxy.A" Value="{Binding DriveTypeRestriction}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding HasDriveTypeRestriction}" Value="False">
                <Setter Property="Visibility" Value="Collapsed" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate x:Key="A_Control_WeatherTime_Pill">
        <ControlTemplate.Resources>
            <local:MappingConverter x:Key="A_Converter_Weather_Severity_To_PillIcon" Default="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Dynamic.png">
                <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.LightRain}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Light_Rain.png"/>
                <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.HeavyRain}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Heavy_Rain.png"/>
                <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Fog}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Fog.png"/>
                <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.LightSnow}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Light_Snow.png"/>
                <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.HeavySnow}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Heavy_Snow.png"/>
                <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Blizzard}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Weather/Blizzard.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.Lightning}" Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Weather/EventBlueprint_Lightning.png"/>
                <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Aurora}" Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Weather/EventBlueprint_Aurora.png"/>
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_Converter_Weather_TimeOfDay_To_Short_String" Default="{local:Loc EventBlueprint.IDS_WeatherAndTimeOfDayControl_Natural}">
                <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_Afternoon}"/>
                <local:MappingConverterEntry Key="{x:Static local:XAMLTimeOfDay.LateAfternoon}" Value="{local:Loc GameOptions2.IDS_Weather_TimeOfDay_Afternoon}"/>
                <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:MultiConverter x:Key="A_Converter_WeatherTimeOfDay_Upper">
                <local:MultiConverterEntry Converter="{StaticResource A_Converter_Weather_TimeOfDay_To_Short_String}" />
                <local:MultiConverterEntry Converter="{StaticResource A_StringToUpper}" />
            </local:MultiConverter>
            
        </ControlTemplate.Resources>
        <Viewbox Stretch="Uniform" StretchDirection="Both" x:Name="WeatherPill" Focusable="False">
            <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
                              Color="#FF404040"
                              MinWidth="128"
                              MaxWidth="198">
                <DockPanel Height="42">
                    <local:FZMaterial x:Name="WeatherIcon"
                            ImageSourceNoPreload="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_Converter_Weather_Severity_To_PillIcon}}"
                            Stretch="Uniform"
                            GreedyMeasure="True"
                            DockPanel.Dock="Left"
                            Margin="0" />
                    <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerInnerRightOnly}"
                                      Color="#FFFFFFFF"
                                      Margin="0,2,2,2">
                        <local:FZTextBlock x:Name="TimeOfDayText"
                                       Style="{StaticResource A_Style_FZTextBlock_DriveType}"
                                       TextAlignment="Center"
                                       Text="{Binding (local:BindingProxy.B), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_Converter_WeatherTimeOfDay_Upper}}"
                                       MaxHeight="40" Color="#FF404040"
                                       Margin="8,8,8,8" />
                    </local:FZMaterial>
                </DockPanel>
            </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>

    <Style TargetType="Control"
           x:Key="A_Style_Control_WeatherTime_Display">
        <Setter Property="Height" Value="42"/>
        <Setter Property="local:BindingProxy.A" Value="0"/>
        <Setter Property="local:BindingProxy.B" Value="0"/>
        <Setter Property="Template" Value="{StaticResource A_Control_WeatherTime_Pill}"/>
        <Setter Property="VerticalAlignment" Value="Center" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding RaceSetups.Count}" Value="1">
                <Setter Property="local:BindingProxy.A" Value="{Binding RaceSetups[0].WeatherMode}"/>
                <Setter Property="local:BindingProxy.B" Value="{Binding RaceSetups[0].TimeOfDay}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_Control_WeatherTime"
           TargetType="Control"
           BasedOn="{StaticResource A_Style_Control_WeatherTime_Display}">
        <Setter Property="Height" Value="39" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Bottom" />
        <Setter Property="Visibility" Value="Collapsed"/>
        <Setter Property="Margin" Value="0,15,0,0" />
        <Style.Triggers>
            <!--show only if we have a single race and drive type is any-->
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding HasDriveTypeRestriction}" Value="False"/>
                    <Condition Binding="{Binding RaceSetups.Count}" Value="1"/>
                </MultiDataTrigger.Conditions>
               <Setter Property="Visibility" Value="Visible" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <!--Wraps up drivetrain and weather pill into same location -->
    <ControlTemplate x:Key="A_Control_Flyer_EventBonusInformationPill" TargetType="Control">
        <Grid>
            <Control Style="{StaticResource A_Style_Control_PrivateAdventureFlyerDriveType}"/>
            <Control Style="{StaticResource A_Style_Control_WeatherTime}"/>
        </Grid>
    </ControlTemplate>

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

    <Style x:Key="A_Style_CustomBlueprint_Pill" TargetType="local:FZMaterial">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"/>
        <Setter Property="Visibility" Value="Collapsed"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding RaceSetups.Count}" Value="1">
                <Setter Property="Visibility" Value="{Binding RaceSetups[0].IsCustomRoute, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    
    <Style x:Key="A_Style_FrameworkElement_CarClassDriveTypeSpacer"
           TargetType="FrameworkElement">
        <Setter Property="Width" Value="6" />
        <Setter Property="Visibility" Value="{Binding IsShowdown, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}" />
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding HasDriveTypeRestriction}" Value="True"/>
                    <Condition Binding="{Binding XAMLCarRestrictions.HasCarClassOrPIRestriction, FallbackValue=False}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility" Value="Visible" />
            </MultiDataTrigger>

            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding HasDriveTypeRestriction}" Value="False"/>
                    <Condition Binding="{Binding XAMLCarRestrictions.HasCarClassOrPIRestriction, FallbackValue=False}" Value="True"/>
                    <Condition Binding="{Binding RaceSetups.Count}" Value="1"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility" Value="Visible" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZMaterial_ColorController" TargetType="local:FZMaterial">
        <Setter Property="Visibility" Value="Hidden" />
    </Style>
  
    <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}" />
    </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}"/>

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

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

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

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlyerBackgroundFooter"
                                       BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                       CornerRadius="{StaticResource A_CornerRadius_FlyerBorderCornerRadius_BottomOnly}" />
    <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="Preset"
                Value="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBackgroundFooter}" />
        <Setter Property="HorizontalAlignment"
                Value="Stretch" />
        <Setter Property="VerticalAlignment"
                Value="Bottom" />
        <Setter Property="GreedyMeasure"
                Value="True" />
        <Setter Property="Stretch"
                Value="Uniform" />
    </Style>

    <Thickness x:Key="A_Thickness_FooterContentMargin_Default">0,0,11,7</Thickness>
    <Thickness x:Key="A_Thickness_FooterContentMargin_ExpansionTwo">0,0,11,9</Thickness>

    <local:MappingConverter x:Key="A_Converter_MediaTrackToFooterContentContainerMargin"
        Default="{StaticResource A_Thickness_FooterContentMargin_Default}">
        <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.ExpansionTwo}"
                                     Value="{StaticResource A_Thickness_FooterContentMargin_ExpansionTwo}" />
    </local:MappingConverter>

    <Style x:Key="A_Style_FrameworkElement_FooterContentContainer"
        TargetType="{x:Type FrameworkElement}">
        <Setter Property="Margin" Value="{StaticResource A_Thickness_FooterContentMargin_Default}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding RaceSetups.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="{x:Static local:CompareResult.GreaterThan}">
                <Setter Property="Margin" Value="{Binding RaceSetups[0].MediaTrack, Converter={StaticResource A_Converter_MediaTrackToFooterContentContainerMargin}}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <!-- Event Setup tile datatemplates -->
    
    <!-- Car Buckets -->
    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_CarBucket1">
        <DataTemplate.Resources>
            <Style x:Key="A_Style_FZTextBlock_RaceInfo" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="FontSize" Value="28" />
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="" />
            </Style>

            <Thickness x:Key="A_Thickness_EventType_Separator">0,0,0,8</Thickness>
            <Thickness x:Key="A_Thickness_EventType_Separator_CHS">0,0,0,12</Thickness>
            <Thickness x:Key="A_Thickness_EventType_Separator_CHT">0,0,0,12</Thickness>

            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_Large" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="LineHeight" Value="72"/>
                <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
                <Setter Property="TextWrapping" Value="WrapWithOverflow"/>
                <Setter Property="FontSize" Value="93"/>
            </Style>
            
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_Large_CHS" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_Large}">
                <Setter Property="FontSize" Value="90"/>
                <Setter Property="LineHeight" Value="90"/>
                <Setter Property="Margin" Value="0,12,0,4"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_Large_CHT" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_Large_CHS}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_Large_CZ" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_Large}">
                <Setter Property="LineHeight" Value="90"/>
                <Setter Property="FontSize" Value="86"/>
                <Setter Property="Margin" Value="0,12,0,4"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_Large_MX" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_Large}">
                <Setter Property="LineHeight" Value="90"/>
                <Setter Property="FontSize" Value="86"/>
                <Setter Property="Margin" Value="0,12,0,4"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_Large_TR" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_Large}">
                <Setter Property="FontSize" Value="88"/>
                <Setter Property="LineHeight" Value="92"/>
                <Setter Property="Margin" Value="0,12,0,4"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_Large_JP" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_Large}">
                <Setter Property="FontSize" Value="90"/>
                <Setter Property="LineHeight" Value="90"/>
                <Setter Property="Margin" Value="0,6,0,4"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_Large_KO" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_Large}">
                <Setter Property="FontSize" Value="90"/>
                <Setter Property="LineHeight" Value="90"/>
                <Setter Property="Margin" Value="0,6,0,4"/>
            </Style>

            <Thickness x:Key="A_Thickness_CreatorName_Padding">0,0,0,9</Thickness>
            <Thickness x:Key="A_Thickness_CreatorName_Padding_CHS">0,0,0,16</Thickness>
            <Thickness x:Key="A_Thickness_CreatorName_Padding_CHT">0,0,0,16</Thickness>
            <Thickness x:Key="A_Thickness_CreatorName_Padding_JP">0,0,0,14</Thickness>
            <Thickness x:Key="A_Thickness_CreatorName_Padding_KO">0,0,0,14</Thickness>
        </DataTemplate.Resources>
        <Grid>
            <local:FZMaterial x:Name="TextColorController" Style="{StaticResource A_Style_FZMaterial_ColorController}" />
            
            <local:FZMaterial 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}" />

            <StackPanel Orientation="Vertical"
                VerticalAlignment="Bottom"
                HorizontalAlignment="Left"
                Margin="28,0,28,78">
                <local:FZTextBlock Text="{Binding BlueprintThreadRankText}" 
                               Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                               HorizontalAlignment="Left"
                               FontSize="24"
                               Color="{StaticResource A_Color_FlyerText_White}"
                               Margin="0,0,0,6" 
                               Visibility="{Binding BlueprintThreadRankText, Converter={StaticResource A_StringVisConverter}}"/>

                <local:FZTextBlock x:Name="CreatorNameText" Text="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}" 
                               Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                               HorizontalAlignment="Left"
                               MaxWidth="335"
                               FontSize="48"
                               Color="{StaticResource A_Color_FlyerText_White}"
                               Margin="{local:LocalizedResource A_Thickness_CreatorName_Padding}"/>

                <DockPanel HorizontalAlignment="Left"
                    VerticalAlignment="Bottom"
                    Height="312">

                    <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Flyer_CreatorPresents}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                                   HorizontalAlignment="Left"
                                   FontSize="28"
                                   Color="{Binding Color, ElementName=TextColorController}"
                                   Margin="0,0,0,34"
                                   DockPanel.Dock="Top" />

                    <StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom">
                        <Control Style="{StaticResource A_Style_FlyerClassRestriction}"/>
                        <FrameworkElement Style="{StaticResource A_Style_FrameworkElement_CarClassDriveTypeSpacer}" />
                        <Control Style="{StaticResource A_Style_Flyer_EventBonusInformationPill}" />
                    </StackPanel>

                    <StackPanel Orientation="Vertical" DockPanel.Dock="Bottom">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                                       Color="{Binding Color, ElementName=TextColorController}"
                                       FontSize="28"
                                       Margin="{local:LocalizedResource A_Thickness_EventType_Separator}"
                                       local:TextBlockInlineMarkup.ResourceBaseName=""
                                       local:TextBlockInlineMarkup.Markup="{Binding ThreadText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter_UseHidden}}" />

                        <StackPanel Orientation="Horizontal">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                            <Decorator Visibility="{Binding TotalLengthText, Converter={StaticResource A_StringVisConverter}}">
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}"
                                            Text="-"
                                            Margin="6,0"
                                            Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />
                            </Decorator>
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" />
                        </StackPanel>
                    </StackPanel>

                    <Decorator HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="0,0,0,18">
                        <local:FZTextBlock x:Name="EventNameText" Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                                           Style="{local:LocalizedResource A_Style_FZTextBlock_Flyer_EventNameText_Large}" />
                    </Decorator>
                </DockPanel>
            </StackPanel>

            <Control Tag="A_DataTemplate_CampaignSetup_Tile_CarBucket1" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding VariationId}" Value="Blue">
                <Setter TargetName="TextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Blue}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Yellow">
                <Setter TargetName="TextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Yellow}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Pink">
                <Setter TargetName="TextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Pink}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Turquoise">
                <Setter TargetName="TextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Turquoise}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Orange">
                <Setter TargetName="TextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Orange}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Green">
                <Setter TargetName="TextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Green}" />
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_CarBucket2">
        <DataTemplate.Resources>
            <Style x:Key="A_Style_FZTextBlock_RaceInfo" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="FontSize" Value="26" />
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="A_FZRun_" />
            </Style>
            <Style x:Key="A_Style_FrameworkElement_Rotation" TargetType="FrameworkElement">
                <Setter Property="RenderTransformOrigin" Value="0.0,0.0" />
                <Setter Property="RenderTransform">
                    <Setter.Value>
                        <TransformGroup>
                            <SkewTransform AngleX="-13.2" />
                            <RotateTransform Angle="-13.2" />
                        </TransformGroup>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="A_Style_FZMaterial_Line" TargetType="local:FZMaterial">
                <Setter Property="Height" Value="2.5" />
                <Setter Property="Color" Value="#FF1D58" />
                <Setter Property="HorizontalAlignment" Value="Left" />
            </Style>

            <Style x:Key="A_Style_FZTextBlock_Location" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="" />
                <Setter Property="HorizontalAlignment" Value="Center" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="FontSize" Value="26" />
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_DarkGrey}" />
            </Style>

            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}"/>
                <Setter Property="HorizontalAlignment" Value="Left"/>
                <Setter Property="VerticalAlignment" Value="Bottom"/>
                <Setter Property="LineHeight" Value="60"/>
                <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
                <Setter Property="TextWrapping" Value="WrapWithOverflow"/>
                <Setter Property="FontSize" Value="82"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CHS" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText}">
                <Setter Property="LineHeight" Value="84"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CZ" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText}">
                <Setter Property="LineHeight" Value="84"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_MX" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText}">
                <Setter Property="LineHeight" Value="84"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CHT" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_CHS}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_JP" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText}">
                <Setter Property="LineHeight" Value="80"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_KO" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText}">
                <Setter Property="LineHeight" Value="80"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_TR" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText}">
                <Setter Property="LineHeight" Value="86"/>
            </Style>

            <System:Double x:Key="A_Double_CarBucket_CreatorName_Separator">0</System:Double>
            <System:Double x:Key="A_Double_CarBucket_CreatorName_Separator_CZ">4</System:Double>
            <System:Double x:Key="A_Double_CarBucket_CreatorName_Separator_MX">4</System:Double>
            <System:Double x:Key="A_Double_CarBucket_CreatorName_Separator_CHS">8</System:Double>
            <System:Double x:Key="A_Double_CarBucket_CreatorName_Separator_CHT">8</System:Double>
            <System:Double x:Key="A_Double_CarBucket_CreatorName_Separator_JP">6</System:Double>
            <System:Double x:Key="A_Double_CarBucket_CreatorName_Separator_KO">6</System:Double>
            <System:Double x:Key="A_Double_CarBucket_CreatorName_Separator_TR">4</System:Double>

            <Thickness x:Key="A_Thickness_EventName">52,0,0,0</Thickness>
            <Thickness x:Key="A_Thickness_EventName_CZ">52,8,0,8</Thickness>
            <Thickness x:Key="A_Thickness_EventName_MX">52,8,0,8</Thickness>
            <Thickness x:Key="A_Thickness_EventName_CHS">52,20,0,20</Thickness>
            <Thickness x:Key="A_Thickness_EventName_CHT">52,20,0,20</Thickness>
            <Thickness x:Key="A_Thickness_EventName_JP">52,8,0,8</Thickness>
            <Thickness x:Key="A_Thickness_EventName_KO">52,8,0,8</Thickness>
            <Thickness x:Key="A_Thickness_EventName_TR">52,16,0,16</Thickness>

            <Thickness x:Key="A_Thickness_CreatorName_Padding">0</Thickness>
            <Thickness x:Key="A_Thickness_CreatorName_Padding_MX">0,6,0,4</Thickness>
            <Thickness x:Key="A_Thickness_CreatorName_Padding_CZ">0,6,0,4</Thickness>
            <Thickness x:Key="A_Thickness_CreatorName_Padding_CHS">0,6,0,4</Thickness>
            <Thickness x:Key="A_Thickness_CreatorName_Padding_CHT">0,6,0,4</Thickness>
            <Thickness x:Key="A_Thickness_CreatorName_Padding_JP">0,6,0,4</Thickness>
            <Thickness x:Key="A_Thickness_CreatorName_Padding_KO">0,6,0,4</Thickness>
        </DataTemplate.Resources>
        <Grid>
            <local:FZMaterial x:Name="InfoTextColorController" 
                              Style="{StaticResource A_Style_FZMaterial_ColorController}"
                              Color="{StaticResource A_Color_FlyerText_DarkGrey}" />
            <local:FZMaterial x:Name="TitleTextColorController" 
                              Style="{StaticResource A_Style_FZMaterial_ColorController}"
                              Color="{StaticResource A_Color_FlyerText_DarkGrey}"/>
            <local:FZMaterial x:Name="BannerTextColorController" 
                              Style="{StaticResource A_Style_FZMaterial_ColorController}"
                              Color="{StaticResource A_Color_FlyerText_DarkGrey}"/>
            <local:FZMaterial x:Name="LineColorController" 
                              Style="{StaticResource A_Style_FZMaterial_ColorController}" />

            <local:FZMaterial 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}" />

            <Canvas>
                <StackPanel Orientation="Vertical" Canvas.Left="0" Canvas.Bottom="432"
                           Style="{StaticResource A_Style_FrameworkElement_Rotation}">
                    <Decorator Margin="28,0,0,8" MaxWidth="440" HorizontalAlignment="Left">
                        <local:FZTextBlock Text="{Binding BlueprintThreadRankText}" 
                           Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                           HorizontalAlignment="Left" VerticalAlignment="Center"
                           FontSize="26"
                           Color="{StaticResource A_Color_FlyerText_White}"
                           Visibility="{Binding BlueprintThreadRankText, Converter={StaticResource A_StringVisConverter}}"/>
                   </Decorator>

                    <local:FZMaterial x:Name="Line1" Width="329" Margin="-0.5,0,0,6" 
                                      Style="{StaticResource A_Style_FZMaterial_Line}"
                                      Color="{Binding Color, ElementName=LineColorController}" />

                    <Decorator Margin="28,0,0,4" MaxWidth="440" HorizontalAlignment="Left">
                        <local:FZTextBlock x:Name="CreatorNameText" Text="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}" 
                                   Margin="{local:LocalizedResource A_Thickness_CreatorName_Padding}"
                                   HorizontalAlignment="Left" VerticalAlignment="Center"
                                   FontSize="48" 
                                   Color="{StaticResource A_Color_FlyerText_White}" />
                    </Decorator>
                    <Decorator Height="{local:LocalizedResource A_Double_CarBucket_CreatorName_Separator}"/>
                    <Decorator Margin="28,0,0,7" MaxWidth="440" HorizontalAlignment="Left">
                        <local:FZTextBlock x:Name="PresentsText" Text="{local:Loc EventBlueprint.IDS_Flyer_CreatorPresents}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}" 
                                   HorizontalAlignment="Left" VerticalAlignment="Center"
                                   FontSize="26" 
                                   Color="{StaticResource A_Color_FlyerText_White}" />
                    </Decorator>

                    <local:FZMaterial x:Name="Line2" Width="428" Margin="-0.5,0,0,3" 
                                      Style="{StaticResource A_Style_FZMaterial_Line}"
                                      Color="{Binding Color, ElementName=LineColorController}"  />

                    <local:FZMaterial x:Name="Line3" Width="403" Margin="-0.5,0,0,10" 
                                      Style="{StaticResource A_Style_FZMaterial_Line}"
                                      Color="{Binding Color, ElementName=LineColorController}"  />

                    <Decorator Margin="{local:LocalizedResource A_Thickness_EventName}" MaxWidth="460" MinHeight="100" MaxHeight="173" HorizontalAlignment="Left">
                        <local:FZTextBlock x:Name="EventNameText" Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                                   Style="{local:LocalizedResource A_Style_FZTextBlock_Flyer_EventNameText}"/>
                    </Decorator>
                </StackPanel>

                <Decorator Width="450" Height="17" Canvas.Left="62" Canvas.Top="425"
                           Style="{StaticResource A_Style_FrameworkElement_Rotation}">
                    <Viewbox HorizontalAlignment="Center" VerticalAlignment="Center">
                        <StackPanel Orientation="Horizontal">
                            <local:FZTextBlock x:Name="ThreadText" Style="{StaticResource A_Style_FZTextBlock_Location}" 
                                    local:TextBlockInlineMarkup.Markup="{Binding ThreadText, Converter={StaticResource A_StringToUpper}}"
                                    Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                            <local:FZTextBlock x:Name="ThreadTextSeparator" Style="{StaticResource A_Style_FZTextBlock_Location}"
                                    Text="-" FontFamily="Horizon_A"
                                    Margin="4,0"
                                    Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                            <local:FZTextBlock x:Name="RaceCountText" Style="{StaticResource A_Style_FZTextBlock_Location}" 
                                        local:TextBlockInlineMarkup.Markup="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}"
                                        Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                            <Decorator Visibility="{Binding TotalLengthText, Converter={StaticResource A_StringVisConverter}}">
                                <local:FZTextBlock x:Name="RaceCountSeparator" Style="{StaticResource A_Style_FZTextBlock_Location}"
                                            Text="-" FontFamily="Horizon_A"
                                            Margin="4,0"
                                            Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />
                            </Decorator>
                            <local:FZTextBlock x:Name="RaceLengthText" Style="{StaticResource A_Style_FZTextBlock_Location}" 
                                        local:TextBlockInlineMarkup.Markup="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" />
                        </StackPanel>
                    </Viewbox>
                </Decorator>
            </Canvas>
            <StackPanel Orientation="Horizontal"
                VerticalAlignment="Bottom"
                HorizontalAlignment="Left"
                Margin="28,0,0,78">
                <Control Style="{StaticResource A_Style_FlyerClassRestriction}" />
                <FrameworkElement Style="{StaticResource A_Style_FrameworkElement_CarClassDriveTypeSpacer}" />
                <Control Style="{StaticResource A_Style_Flyer_EventBonusInformationPill}" />
            </StackPanel>
            <Control Tag="A_DataTemplate_CampaignSetup_Tile_CarBucket2" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding VariationId}" Value="Blue">
                <Setter TargetName="LineColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Blue}" />
                <Setter TargetName="TitleTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_DarkGrey}" />
                <Setter TargetName="BannerTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_DarkGrey}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Yellow">
                <Setter TargetName="LineColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Yellow}" />
                <Setter TargetName="BannerTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter TargetName="TitleTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Pink">
                <Setter TargetName="LineColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Pink}" />
                <Setter TargetName="TitleTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter TargetName="BannerTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Turquoise">
                <Setter TargetName="LineColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Turquoise}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Orange">
                <Setter TargetName="LineColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Orange}" />
                <Setter TargetName="BannerTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter TargetName="TitleTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Green">
                <Setter TargetName="LineColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_Green}" />
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <!-- Decades -->
    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_Decade1">
        <DataTemplate.Resources>
            <Style x:Key="A_Style_FZTextBlock_RaceInfo" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="FontSize" Value="24" />
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="" />
            </Style>

            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}">
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Color" Value="{Binding Color, ElementName=EventNameTextColorController}"/>
                <Setter Property="TextAlignment" Value="Center"/>
                <Setter Property="LineHeight" Value="43"/>
                <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
                <Setter Property="TextWrapping" Value="Wrap"/>
                <Setter Property="FontSize" Value="60"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_LangCommon" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText}">
                <Setter Property="LineHeight" Value="60"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_MX" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CHS" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CZ" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CHT" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_CHS}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_JP" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_KO" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_TR" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>

        </DataTemplate.Resources>
        <Grid>
            <local:FZMaterial x:Name="CreatorTextColorController" 
                              Style="{StaticResource A_Style_FZMaterial_ColorController}"
                              Color="{StaticResource A_Color_FlyerText_White}" />
            <local:FZMaterial x:Name="EventNameTextColorController" 
                              Style="{StaticResource A_Style_FZMaterial_ColorController}"
                              Color="{StaticResource A_Color_FlyerText_DarkGrey}" />
            <local:FZMaterial x:Name="EventInfoTextColorController" 
                              Style="{StaticResource A_Style_FZMaterial_ColorController}"
                              Color="{StaticResource A_Color_FlyerText_DarkGrey}" />

            <local:FZMaterial 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 Height="216" Margin="26,0,26,78" VerticalAlignment="Bottom">
                <Viewbox HorizontalAlignment="Center" StretchDirection="DownOnly" 
                         Margin="0,0,0,15" DockPanel.Dock="Top">
                    <StackPanel VerticalAlignment="Top" Orientation="Vertical">
                        <local:FZTextBlock x:Name="BlueprintRankText" Text="{Binding BlueprintThreadRankText}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}"  
                                   Color="{Binding Color, ElementName=CreatorTextColorController}"
                                   HorizontalAlignment="Center"
                                   FontSize="24" Margin="0,0,0,5"
                                   Visibility="{Binding BlueprintThreadRankText, Converter={StaticResource A_StringVisConverter}}" />
                       <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Center">
                            <local:FZTextBlock x:Name="CreatorNameText" Text="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}"
                                   Color="{Binding Color, ElementName=CreatorTextColorController}"
                                   FontSize="28" Margin="0,0,5,0" />
                            <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Flyer_CreatorPresents}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                                   Color="{Binding Color, ElementName=CreatorTextColorController}"
                                   FontSize="28" />
                       </StackPanel>
                    </StackPanel>
                </Viewbox>

                <StackPanel Orientation="Horizontal"
                    HorizontalAlignment="Center"
                    DockPanel.Dock="Bottom">
                    <Control Style="{StaticResource A_Style_FlyerClassRestriction}" />
                    <FrameworkElement Style="{StaticResource A_Style_FrameworkElement_CarClassDriveTypeSpacer}" />
                    <Control Style="{StaticResource A_Style_Flyer_EventBonusInformationPill}" />
                </StackPanel>

                <Viewbox HorizontalAlignment="Center" StretchDirection="DownOnly" 
                         Margin="0,17,0,0" DockPanel.Dock="Bottom">
                    <StackPanel Orientation="Horizontal">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding ThreadText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" FontFamily="Horizon_A"
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" FontFamily="Horizon_A"
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" />
                    </StackPanel>
                </Viewbox>

                <Decorator Margin="26,0,0,0">
                    <local:FZTextBlock x:Name="EventNameText" Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                                       Style="{local:LocalizedResource A_Style_FZTextBlock_Flyer_EventNameText}"/>
                    
                    <Decorator.RenderTransform>
                        <TransformGroup>
                            <SkewTransform AngleX="-12" />
                        </TransformGroup>
                    </Decorator.RenderTransform>
                </Decorator>
            </DockPanel>

            <Control Tag="A_DataTemplate_CampaignSetup_Tile_Decade1" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding VariationId}" Value="Dark">
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Light">
                <Setter TargetName="CreatorTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter TargetName="EventNameTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter TargetName="EventInfoTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Contrast">
                <Setter TargetName="EventNameTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Colorful">
                <Setter TargetName="CreatorTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_BrightYellow}" />
                <Setter TargetName="EventNameTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_DarkTurquoise}" />
                <Setter TargetName="EventInfoTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <!-- Countries -->
    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_Country1">
        <DataTemplate.Resources>
            <Style x:Key="A_Style_FZTextBlock_RaceInfo" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="FontSize" Value="24" />
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="" />
            </Style>

            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
                <Setter Property="HorizontalAlignment" Value="Center" />
                <Setter Property="VerticalAlignment" Value="Bottom"/>
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="TextAlignment" Value="Center"/>
                <Setter Property="LineHeight" Value="43"/>
                <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
                <Setter Property="TextWrapping" Value="WrapWithOverflow"/>
                <Setter Property="FontSize" Value="60"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_LangCommon" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText}">
                <Setter Property="LineHeight" Value="60"/>
            </Style>
            
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_MX" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CZ" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CHS" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CHT" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_CHS}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_JP" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_KO" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_TR" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}">
                <Setter Property="LineHeight" Value="64"/>
            </Style>

        </DataTemplate.Resources>
        <Grid>
            <local:FZMaterial 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}" />

            <StackPanel VerticalAlignment="Top" Orientation="Vertical" Margin="22,64,22,0">
                <local:FZTextBlock x:Name="BlueprintRankText" Text="{Binding BlueprintThreadRankText}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}"  
                                   Color="{Binding Color, ElementName=CreatorTextColorController}"
                                   Visibility="{Binding BlueprintThreadRankText, Converter={StaticResource A_StringVisConverter_UseHidden}}"
                                   FontSize="24"
                                   HorizontalAlignment="Center"
                                   Margin="0,0,0,10" />
                <local:FZTextBlock x:Name="CreatorNameText" Text="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}"
                                   HorizontalAlignment="Center"
                                   FontSize="55" Color="{StaticResource A_Color_FlyerText_White}" Margin="0,0,0,9" />
                <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Flyer_CreatorPresents}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}" 
                                   HorizontalAlignment="Center"
                                   FontSize="24" Color="{StaticResource A_Color_FlyerText_White}" />
            </StackPanel>

            <StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom" Orientation="Vertical" Margin="30,0,30,78">
                <Decorator Height="90" Margin="0,0,0,14">
                    <local:FZTextBlock x:Name="EventNameText" Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                                   Style="{local:LocalizedResource A_Style_FZTextBlock_Flyer_EventNameText}" />
                </Decorator>

                <Viewbox HorizontalAlignment="Center" StretchDirection="DownOnly" Margin="3,0,3,-1">
                    <StackPanel Orientation="Horizontal">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding ThreadText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}"
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}"
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" />
                    </StackPanel>
                </Viewbox>

                <StackPanel Orientation="Horizontal"
                    HorizontalAlignment="Center"
                    DockPanel.Dock="Bottom">
                    <Control Style="{StaticResource A_Style_FlyerClassRestriction}" />
                    <FrameworkElement Style="{StaticResource A_Style_FrameworkElement_CarClassDriveTypeSpacer}" />
                    <Control Style="{StaticResource A_Style_Flyer_EventBonusInformationPill}" />
                </StackPanel>
            </StackPanel>
            <Control Tag="A_DataTemplate_CampaignSetup_Tile_Country1" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
    </DataTemplate>

    <local:FZGeometry x:Key="A_FZGeometry_ManufacturerLogoBG" Data="M0,0 137,0 185,83 137,166 0,166 Z" />
    
    <!-- Manufacturers -->
    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_Manufacturer1">
        <DataTemplate.Resources>
            <Style x:Key="A_Style_FZTextBlock_RaceInfo" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="FontSize" Value="24" />
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="" />
            </Style>

            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
                <Setter Property="MaxHeight" Value="150" />
                <Setter Property="MaxWidth" Value="352"/>
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="HorizontalAlignment" Value="Right" />
                <Setter Property="TextAlignment" Value="Right"/>
                <Setter Property="LineHeight" Value="48" />
                <Setter Property="LineStackingStrategy" Value="BlockLineHeight" />
                <Setter Property="Margin" Value="0,0,0,28"/>
                <Setter Property="TextWrapping" Value="WrapWithOverflow" />
                <Setter Property="FontSize" Value="60"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_LangCommon" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText}">
                <Setter Property="LineHeight" Value="64"/>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_MX" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CHS" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CZ" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_CHT" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_CHS}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_JP" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_KO" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_Flyer_EventNameText_TR" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Flyer_EventNameText_LangCommon}"/>
        </DataTemplate.Resources>
        <Grid>
            <local:FZMaterial 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="MfrLogoBG" Color="#40FFFFFF" 
                                Data="{StaticResource A_FZGeometry_ManufacturerLogoBG}"
                                Height="166"
                                Width="185"
                                VerticalAlignment="Bottom" 
                                HorizontalAlignment="Left"
                                Margin="0,0,0,135">
                <Decorator Height="111" Width="133"
                           VerticalAlignment="Center" 
                           HorizontalAlignment="Left"
                           Margin="15,0,0,0">
                    <local:FZMaterial ImageSource="{Binding CarRestrictionImage}"
                                      Stretch="Uniform" StretchDirection="DownOnly"
                                      GreedyMeasure="True" />
                </Decorator>
            </local:FZMaterial>
            
            <Grid Margin="14,68,19,78">
                <StackPanel Orientation="Vertical">
                    <local:FZTextBlock x:Name="BlueprintRankText" Text="{Binding BlueprintThreadRankText}"
                                   Visibility="{Binding BlueprintThreadRankText, Converter={StaticResource A_StringVisConverter_UseHidden}}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}"  
                                   Color="{StaticResource A_Color_FlyerText_White}"
                                   FontSize="26" Margin="8,0,0,8" />
                    <local:FZMaterial x:Name="Banner" Margin="0,0,0,0" 
                                      Width="332" Height="55"
                                      HorizontalAlignment="Left" VerticalAlignment="Top"
                                      Color="#D5152A">
                            <local:FZTextBlock x:Name="CreatorNameText" Text="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}" 
                                    Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Center"
                                    Effect="{StaticResource A_Effect_HighContrastModeDropShadow}"
                                    FontSize="43" Color="{StaticResource A_Color_FlyerText_White}" Margin="9,13,9,13" />
                    </local:FZMaterial>
                    <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Flyer_CreatorPresents}" MaxWidth="370"
                                Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}" HorizontalAlignment="Left"
                                FontSize="26" Color="{StaticResource A_Color_FlyerText_White}" Margin="8,8,0,0" />
                </StackPanel>

                <DockPanel VerticalAlignment="Bottom"
                        HorizontalAlignment="Right"
                        MaxHeight="164"
                        Margin="0,0,0,56">

                    <Viewbox HorizontalAlignment="Right" StretchDirection="DownOnly" Margin="0,0,0,1" MaxWidth="370"
                        DockPanel.Dock="Bottom">
                        <StackPanel Orientation="Horizontal">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                    local:TextBlockInlineMarkup.Markup="{Binding ThreadText, Converter={StaticResource A_StringToUpper}}"
                                    Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}"
                                    Text="/" Margin="6,0,6,0"
                                    Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                    local:TextBlockInlineMarkup.Markup="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}"
                                    Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}"
                                    Text="/" Margin="6,0,6,0"
                                    Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                    local:TextBlockInlineMarkup.Markup="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" />
                        </StackPanel>
                    </Viewbox>

                    <local:FZTextBlock x:Name="EventNameText" Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                            Style="{local:LocalizedResource A_Style_FZTextBlock_Flyer_EventNameText}" />
                </DockPanel>

                <StackPanel Orientation="Horizontal"
                    HorizontalAlignment="Right">
                    <Control Style="{StaticResource A_Style_FlyerClassRestriction}" />
                    <FrameworkElement Style="{StaticResource A_Style_FrameworkElement_CarClassDriveTypeSpacer}" />
                    <Control Style="{StaticResource A_Style_Flyer_EventBonusInformationPill}" />
                </StackPanel>
            </Grid>
            <Control Tag="A_DataTemplate_CampaignSetup_Tile_Manufacturer1" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding VariationId}" Value="Blue">
                <Setter TargetName="Banner" Property="Color" Value="{StaticResource A_Color_FlyerText_Blue}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Yellow">
                <Setter TargetName="Banner" Property="Color" Value="{StaticResource A_Color_FlyerText_Yellow}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding VariationId}" Value="Red">
                <Setter TargetName="Banner" Property="Color" Value="{StaticResource A_Color_FlyerText_Red}" />
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <!-- Horizon Specials -->
    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_HorizonSpecial1">
        <DataTemplate.Resources>
            <Style x:Key="A_Style_FZTextBlock_RaceInfo" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_Yellow}" />
                <Setter Property="FontSize" Value="24" />
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="" />
            </Style>

            <Style x:Key="A_Style_FZTextBlock_EventNameText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="HorizontalAlignment" Value="Right"/>
                <Setter Property="TextAlignment" Value="Right" />
                <Setter Property="LineHeight" Value="43" />
                <Setter Property="LineStackingStrategy" Value="BlockLineHeight" />
                <Setter Property="MaxHeight" Value="130" />
                <Setter Property="MaxWidth" Value="350"/>
                <Setter Property="TextWrapping" Value="WrapWithOverflow" />
                <Setter Property="FontSize" Value="60" />
                <Setter Property="Margin" Value="0,0,0,14"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_EventNameText_LangCommon" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText}">
                <Setter Property="LineHeight" Value="63" />
                <Setter Property="Margin" Value="0,0,0,20"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_EventNameText_CHS" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_CZ" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_MX" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_CHT" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_CHS}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_JP" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_KO" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_TR" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}">
                <Setter Property="LineHeight" Value="64" />
            </Style>
        </DataTemplate.Resources>
        <Grid>
            <local:FZMaterial x:Name="CreatorTextColorController" 
                              Style="{StaticResource A_Style_FZMaterial_ColorController}"
                              Color="{StaticResource A_Color_FlyerText_DarkGrey}" />

            <local:FZMaterial 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}" />

            <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Vertical" Margin="12,74,12,0">
                <local:FZTextBlock x:Name="BlueprintRankText" Text="{Binding BlueprintThreadRankText}"
                                   Visibility="{Binding BlueprintThreadRankText, Converter={StaticResource A_StringVisConverter_UseHidden}}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}"  
                                   Color="{Binding Color, ElementName=CreatorTextColorController}"
                                   FontSize="26" Margin="0,0,0,7" />
                <local:FZTextBlock x:Name="CreatorNameText" Text="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}"  
                                   Color="{Binding Color, ElementName=CreatorTextColorController}"
                                   FontSize="43" Margin="0,0,0,7" />
                <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Flyer_CreatorPresents}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}"
                                   Color="{Binding Color, ElementName=CreatorTextColorController}"
                                   FontSize="26" />
            </StackPanel>

            <StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Vertical" Margin="18,0,18,78">
                <local:FZTextBlock x:Name="EventNameText" Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                                   Style="{local:LocalizedResource A_Style_FZTextBlock_EventNameText}" />

                <Viewbox HorizontalAlignment="Right" StretchDirection="DownOnly">
                    <StackPanel Orientation="Horizontal">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                           local:TextBlockInlineMarkup.Markup="{Binding ThreadText, Converter={StaticResource A_StringToUpper}}" />
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}"
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}"/>
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}"
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" />
                    </StackPanel>
                </Viewbox>

                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                    <Control Style="{StaticResource A_Style_FlyerClassRestriction}"/>
                    <FrameworkElement Style="{StaticResource A_Style_FrameworkElement_CarClassDriveTypeSpacer}" />
                    <Control Style="{StaticResource A_Style_Flyer_EventBonusInformationPill}" />
                </StackPanel>
            </StackPanel>
            <Control Tag="A_DataTemplate_CampaignSetup_Tile_HorizonSpecial1" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding VariationId}" Value="Light">
                <Setter TargetName="CreatorTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_HorizonSpecial2">
        <DataTemplate.Resources>
            <Style x:Key="A_Style_FZTextBlock_RaceInfo" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_Yellow}" />
                <Setter Property="FontSize" Value="28" />
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="" />
            </Style>

            <Style x:Key="A_Style_FZTextBlock_EventNameText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
                <Setter Property="HorizontalAlignment" Value="Center" />
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="TextAlignment" Value="Center"/>
                <Setter Property="LineHeight" Value="43" />
                <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
                <Setter Property="TextWrapping" Value="WrapWithOverflow" />
                <Setter Property="FontSize" Value="60"/>
                <Setter Property="MaxHeight" Value="100"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_EventNameText_LangCommon" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText}">
                <Setter Property="LineHeight" Value="60" />
                <Setter Property="Margin" Value="0,0,0,16"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_EventNameText_MX" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_CZ" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_CHS" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_CHT" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_CHS}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_JP" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_KO" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}"/>
            <Style x:Key="A_Style_FZTextBlock_EventNameText_TR" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_EventNameText_LangCommon}">
                <Setter Property="LineHeight" Value="64" />
            </Style>
        </DataTemplate.Resources>
        <Grid>
            <local:FZMaterial x:Name="CreatorTextColorController" 
                              Style="{StaticResource A_Style_FZMaterial_ColorController}"
                              Color="{StaticResource A_Color_FlyerText_DarkGrey}" />

            <local:FZMaterial 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}" />

            <StackPanel VerticalAlignment="Top" Orientation="Vertical" Margin="22,72,22,0">
                <local:FZTextBlock x:Name="BlueprintRankText" Text="{Binding BlueprintThreadRankText}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}"  
                                   Color="{Binding Color, ElementName=CreatorTextColorController}"
                                   FontSize="26" Margin="0,0,0,8"
                                   HorizontalAlignment="Center"
                                   Visibility="{Binding BlueprintThreadRankText, Converter={StaticResource A_StringVisConverter_UseHidden}}" />
                <local:FZTextBlock x:Name="CreatorNameText" Text="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}"
                                   Color="{Binding Color, ElementName=CreatorTextColorController}"
                                   HorizontalAlignment="Center" 
                                   FontSize="55" Margin="0,0,0,6" />
                <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Flyer_CreatorPresents}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}" 
                                   Color="{Binding Color, ElementName=CreatorTextColorController}"
                                   HorizontalAlignment="Center"
                                   FontSize="26" />
            </StackPanel>

            <StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom" Orientation="Vertical" Margin="30,0,30,78">
                <Decorator Height="130" Margin="0,0,0,-2">
                    <local:FZTextBlock x:Name="EventNameText" Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                                   Style="{local:LocalizedResource A_Style_FZTextBlock_EventNameText}"  />
                </Decorator>

                <Viewbox HorizontalAlignment="Center" StretchDirection="DownOnly" Margin="3,0,3,4">
                    <StackPanel Orientation="Horizontal">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding ThreadText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" FontFamily="Horizon_A"
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" FontFamily="Horizon_A"
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" />
                    </StackPanel>
                </Viewbox>

                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                    <Control Style="{StaticResource A_Style_FlyerClassRestriction}"/>
                    <FrameworkElement Style="{StaticResource A_Style_FrameworkElement_CarClassDriveTypeSpacer}" />
                    <Control Style="{StaticResource A_Style_Flyer_EventBonusInformationPill}" />
                </StackPanel>
            </StackPanel>
            <Control Tag="A_DataTemplate_CampaignSetup_Tile_HorizonSpecial2" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding VariationId}" Value="Light">
                <Setter TargetName="CreatorTextColorController" Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <!-- Custom -->
    <Style x:Key="A_Style_FZMaterial_FlyerStockCarThumbnailImage"
        TargetType="{x:Type local:FZMaterial}">
        <Setter Property="ImageSource" Value="{Binding CarRestrictionImage}"/>
        <Setter Property="Stretch" Value="Uniform"/>
        <Setter Property="StretchDirection" Value="DownOnly"/>
        <Setter Property="GreedyMeasure" Value="True"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="Margin" Value="0,148,0,0"/>
    </Style>

    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_Custom1">
        <DataTemplate.Resources>
            <Style x:Key="A_Style_FZTextBlock_RaceInfo" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="FontSize" Value="24" />
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="" />
            </Style>
            
            <Thickness x:Key="A_Thickness_TitleBlock_LinePadding">0,0,0,5</Thickness>
            <Thickness x:Key="A_Thickness_TitleBlock_LinePadding_MX">0,0,0,12</Thickness>
            <Thickness x:Key="A_Thickness_TitleBlock_LinePadding_CZ">0,0,0,12</Thickness>
            <Thickness x:Key="A_Thickness_TitleBlock_LinePadding_JP">0,0,0,12</Thickness>
            <Thickness x:Key="A_Thickness_TitleBlock_LinePadding_KO">0,0,0,12</Thickness>
            <Thickness x:Key="A_Thickness_TitleBlock_LinePadding_CHS">0,0,0,14</Thickness>
            <Thickness x:Key="A_Thickness_TitleBlock_LinePadding_CHT">0,0,0,14</Thickness>

            <System:Double x:Key="A_Double_EventName_LineHeight">51</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_MX">64</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_CZ">64</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_CHS">64</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_CHT">64</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_JP">64</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_KO">64</System:Double>
        </DataTemplate.Resources>
        <Grid>
            <local:FZMaterial 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 Style="{StaticResource A_Style_FZMaterial_FlyerStockCarThumbnailImage}" />

            <Grid Margin="14,0,19,0">
                <local:FZMaterial VerticalAlignment="Top" HorizontalAlignment="Left"
                                  Color="{StaticResource A_Color_FlyerText_White}" Margin="0,68,0,0"
                                  Width="400">
                    <StackPanel Orientation="Vertical" Margin="12,12,60,12">
                        <local:FZTextBlock x:Name="BlueprintRankText" Text="{Binding BlueprintThreadRankText}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}"  
                                   Color="{StaticResource A_Color_FlyerText_DarkGrey}"
                                   FontSize="26" Margin="{local:LocalizedResource A_Thickness_TitleBlock_LinePadding}"
                                   Visibility="{Binding BlueprintThreadRankText, Converter={StaticResource A_StringVisConverter}}" />
                        <local:FZTextBlock x:Name="CreatorNameText" Text="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                                   FontSize="43" Color="{StaticResource A_Color_FlyerText_DarkGrey}" Margin="{local:LocalizedResource A_Thickness_TitleBlock_LinePadding}" />
                        <local:FZTextBlock Text="{Binding PresentsText, Converter={StaticResource A_StringToUpper}}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}" HorizontalAlignment="Left"
                                   FontSize="26" Color="{StaticResource A_Color_FlyerText_DarkGrey}" />
                    </StackPanel>
                </local:FZMaterial>

                <StackPanel VerticalAlignment="Bottom" Margin="0,0,0,78">
                    <Decorator HorizontalAlignment="Right" Width="453"
                            VerticalAlignment="Bottom" Margin="0,0,0,21">
                        <local:FZMaterial CaptureSubgraph="True" HorizontalAlignment="Right">
                            <local:FZMaterial Color="#FFFFFF" >
                                <local:FZTextBlock x:Name="EventNameText" Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                                Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonC}" VerticalAlignment="Center"
                                Color="White" HorizontalAlignment="Left" TextAlignment="Right"
                                Preset="{StaticResource A_FZMaterialPreset_Cutout}"
                                TextWrapping="WrapWithOverflow" CapHeight="40" 
                                LineHeight="{local:LocalizedResource A_Double_EventName_LineHeight}" LineStackingStrategy="BlockLineHeight"
                                Margin="12" MaxHeight="160"/>
                            </local:FZMaterial>
                        </local:FZMaterial>
                    </Decorator>
                    
                    <Decorator>
                        <Viewbox HorizontalAlignment="Right" VerticalAlignment="Top"
                         StretchDirection="DownOnly" Margin="3,0,3,2">
                            <StackPanel Orientation="Horizontal">
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding ThreadText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" />
                            </StackPanel>
                        </Viewbox>
                    </Decorator>

                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                        <Control Style="{StaticResource A_Style_FlyerClassRestriction}"/>
                        <FrameworkElement Style="{StaticResource A_Style_FrameworkElement_CarClassDriveTypeSpacer}" />
                        <Control Style="{StaticResource A_Style_Flyer_EventBonusInformationPill}" />
                    </StackPanel>
                </StackPanel>
            </Grid>
            <Control Tag="A_DataTemplate_CampaignSetup_Tile_Custom1" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
    </DataTemplate>

    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_Custom2">
        <DataTemplate.Resources>
            <Style x:Key="A_Style_FZTextBlock_RaceInfo" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="FontSize" Value="24" />
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="" />
            </Style>
            
            <System:Double x:Key="A_Double_EventName_LineHeight">48</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_CZ">55</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_KO">55</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_JP">55</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_CHS">55</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_CHT">55</System:Double>
            <System:Double x:Key="A_Double_EventName_LineHeight_TR">55</System:Double>
        </DataTemplate.Resources>
        <Grid>
            <local:FZMaterial 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 Style="{StaticResource A_Style_FZMaterial_FlyerStockCarThumbnailImage}" />

            <StackPanel HorizontalAlignment="Left" Orientation="Vertical" Margin="25,72">
                <local:FZTextBlock Text="{Binding BlueprintThreadRankText}" 
                                   Visibility="{Binding BlueprintThreadRankText, Converter={StaticResource A_StringVisConverter_UseHidden}}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                                   HorizontalAlignment="Left"
                                   FontSize="26"
                                   Color="{StaticResource A_Color_FlyerText_DarkGrey}"
                                   Margin="0,0,0,8" />
                <local:FZTextBlock x:Name="CreatorNameText" Text="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                                   FontSize="43" Color="{StaticResource A_Color_FlyerText_DarkGrey}" Margin="0,0,0,8" />
                <local:FZTextBlock Text="{Binding PresentsText, Converter={StaticResource A_StringToUpper}}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}" 
                                   FontSize="24" Color="{StaticResource A_Color_FlyerText_DarkGrey}" />
            </StackPanel>

            <StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Vertical" Margin="18,0,18,78">
                <local:FZTextBlock x:Name="EventNameText" Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                                   Color="{StaticResource A_Color_FlyerText_White}" HorizontalAlignment="Right" TextAlignment="Right" 
                                   LineHeight="{local:LocalizedResource A_Double_EventName_LineHeight}" LineStackingStrategy="BlockLineHeight" MaxHeight="130"
                                   TextWrapping="WrapWithOverflow" FontSize="60" Margin="0,0,0,22" />

                <Viewbox HorizontalAlignment="Right" StretchDirection="DownOnly" Margin="3,0,3,5">
                    <StackPanel Orientation="Horizontal">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding ThreadText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" />
                    </StackPanel>
                </Viewbox>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                    <Control Style="{StaticResource A_Style_FlyerClassRestriction}"/>
                    <FrameworkElement Style="{StaticResource A_Style_FrameworkElement_CarClassDriveTypeSpacer}" />
                    <Control Style="{StaticResource A_Style_Flyer_EventBonusInformationPill}" />
                </StackPanel>
            </StackPanel>
            <Control Tag="A_DataTemplate_CampaignSetup_Tile_Custom2" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
    </DataTemplate>

    <!-- All Cars - Duplicate of Country1 layout-->
    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_AllCars1">
        <DataTemplate.Resources>
            <Style x:Key="A_Style_FZTextBlock_RaceInfo" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}" />
                <Setter Property="FontSize" Value="24" />
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="" />
            </Style>
        </DataTemplate.Resources>
        <Grid>
            <local:FZMaterial 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}" />

            <StackPanel VerticalAlignment="Top" Orientation="Vertical" Margin="22,64,22,0">
                <local:FZTextBlock x:Name="BlueprintRankText" Text="{Binding BlueprintThreadRankText}"
                                   Visibility="{Binding BlueprintThreadRankText, Converter={StaticResource A_StringVisConverter_UseHidden}}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}"  
                                   Color="{Binding Color, ElementName=CreatorTextColorController}"
                                   FontSize="24"
                                   HorizontalAlignment="Center"
                                   Margin="0,0,0,10" />
                <local:FZTextBlock x:Name="CreatorNameText" Text="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}"
                                   HorizontalAlignment="Center"
                                   FontSize="55" Color="{StaticResource A_Color_FlyerText_White}" Margin="0,0,0,9" />
                <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Flyer_CreatorPresents}" 
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}" 
                                   HorizontalAlignment="Center"
                                   FontSize="24" Color="{StaticResource A_Color_FlyerText_White}" />
            </StackPanel>

            <StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom" Orientation="Vertical" Margin="30,0,30,78">
                <Decorator Height="90" Margin="0,0,0,14">
                    <local:FZTextBlock x:Name="EventNameText" Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                                   Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" 
                                   HorizontalAlignment="Center" VerticalAlignment="Bottom"
                                   Color="{StaticResource A_Color_FlyerText_White}" TextAlignment="Center"
                                   LineHeight="43" LineStackingStrategy="BlockLineHeight"
                                   TextWrapping="WrapWithOverflow" FontSize="60" />
                </Decorator>

                <Viewbox HorizontalAlignment="Center" StretchDirection="DownOnly" Margin="3,0,3,-1">
                    <StackPanel Orientation="Horizontal">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding ThreadText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}"
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding ThreadText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}"
                                       Text="/" Margin="6,0,6,0"
                                       Visibility="{Binding RaceCountText, Converter={StaticResource A_StringVisConverter}}" />

                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RaceInfo}" 
                                       local:TextBlockInlineMarkup.Markup="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" />
                    </StackPanel>
                </Viewbox>

                <StackPanel Orientation="Horizontal"
                    HorizontalAlignment="Center"
                    DockPanel.Dock="Bottom">
                    <Control Style="{StaticResource A_Style_FlyerClassRestriction}" />
                    <FrameworkElement Style="{StaticResource A_Style_FrameworkElement_CarClassDriveTypeSpacer}" />
                    <Control Style="{StaticResource A_Style_Flyer_EventBonusInformationPill}" />
                </StackPanel>
            </StackPanel>
            <Control Tag="A_DataTemplate_CampaignSetup_Tile_AllCars1" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
    </DataTemplate>

    <!-- This is the blueprint option in the flyer select -->
    <ControlTemplate x:Key="A_ControlTemplate_BlueprintFlyer" TargetType="Control">
        <ControlTemplate.Resources>
            <System:Double x:Key="A_Double_BlueprintFlyer_LineHeight">55</System:Double>
            <System:Double x:Key="A_Double_BlueprintFlyer_LineHeight_CHS">68</System:Double>
            <System:Double x:Key="A_Double_BlueprintFlyer_LineHeight_CHT">68</System:Double>
            <System:Double x:Key="A_Double_BlueprintFlyer_LineHeight_JP">58</System:Double>
        </ControlTemplate.Resources>
        <Grid>
            <local:FZMaterial  Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBorder}" 
                               ImageSourceNoPreload="{TemplateBinding local:BindingProxy.A}" />
            <local:FZTextBlock local:TextBlockInlineMarkup.Markup="{TemplateBinding Tag}"
                               local:TextBlockInlineMarkup.ResourceBaseName="A_FZRun_"
                               Style="{StaticResource A_Style_FZTextBlock_HorizonB}" 
                               Color="#FFFFFF" FontSize="60" 
                               LineHeight="{local:LocalizedResource A_Double_BlueprintFlyer_LineHeight}" LineStackingStrategy="BlockLineHeight"
                               VerticalAlignment="Top" HorizontalAlignment="Left" Margin="27" />
        </Grid>
    </ControlTemplate>

    <DataTemplate x:Key="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="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="A_DataTemplate_CampaignSetup_Tile_OnlineAdventure">
        <DataTemplate.Resources>
            <local:MappingConverter x:Key="A_Converter_AdventureSession_To_DriveTrainPillVisibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:AdventureSession.RankedDriftRun}" Value="Visible"/>
                <local:MappingConverterEntry Key="{x:Static local:AdventureSession.UnrankedDriftRun}" Value="Visible"/>
            </local:MappingConverter>

            <Style x:Key="A_Style_Control_Adventure_CarClass_Range" TargetType="Control" BasedOn="{StaticResource A_Style_Control_CarClassBadge_Small_Default}">
                <Style.Resources>
                    <Style x:Key="A_Style_CarClassPIText_Dynamic" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_IconText}">
                        <Setter Property="Text" Value="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}, FallbackValue=?}"/>
                        <Setter Property="FontFamily" Value="Horizon_A"/>
                        <Setter Property="FontSize" Value="28"/>
                        <Setter Property="Color" Value="{StaticResource A_Color_CarClassPIText}"/>
                    </Style>

                </Style.Resources>
                <Setter Property="Height" Value="34"/>
                <Setter Property="Margin" Value="0"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
            </Style>
        </DataTemplate.Resources>
        <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"
                              Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImage}" />
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerBackgroundImageMediaTrackFooter}" />
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerHighContrastUnderlay}" />

            <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top" Orientation="Vertical" Margin="30,0,30,0">
                <local:FZTextBlock x:Name="SeasonText" Style="{StaticResource A_Style_FZTextBlock_SeasonHeader}" 
                                       HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,42,0,0"
                                       Color="{StaticResource A_Color_FlyerText_DarkGrey}" TextAlignment="Center"
                                       LineHeight="55" LineStackingStrategy="BlockLineHeight"
                                       FontSize="50" />
                <local:FZTextBlock x:Name="EventNameText" Text="{Binding Name, Converter={StaticResource A_StringToUpper}}"
                                       Margin="0,10,0,0"
                                       Style="{StaticResource A_Style_FZTextBlock_DisciplineHeader}" 
                                       HorizontalAlignment="Center" VerticalAlignment="Bottom"
                                       Color="{StaticResource A_Color_FlyerText_DarkGrey}" TextAlignment="Center"
                                       LineHeight="55" LineStackingStrategy="BlockLineHeight" TextWrapping="Wrap" MaxHeight="64"
                                       FontSize="62" />
            </StackPanel>

            <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,156,0,0">
                <Control x:Name="AdventureCarClass" Style="{StaticResource A_Style_Control_OnlineFlyerCarClass}" Height="39" Margin="0" VerticalAlignment="Top"/>
                <Control Height="39" Margin="6,0,0,0" VerticalAlignment="Top"
                         Style="{StaticResource A_Style_Control_PrivateAdventureFlyerDriveType}"/>
            </StackPanel>

            <local:FZMaterial x:Name="AdvancedDriftRunCarClassRange" Visibility="Collapsed" Color="#66000000" 
                              HorizontalAlignment="Right" Height="56" VerticalAlignment="Bottom" Margin="0,0,24,98"
                              Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}">
                <DockPanel Margin="10,12,16,12" VerticalAlignment="Center">
                    <StackPanel Orientation="Horizontal" DockPanel.Dock="Right">
                        <Control Style="{StaticResource A_Style_Control_Adventure_CarClass_Range}"
                             local:BindingProxy.A="{Binding XAMLCarRestrictions.CarPIMinRestriction}"
                             local:BindingProxy.B="{Binding XAMLCarRestrictions.CarClassForMinRestriction}"/>
                        <Decorator Margin="8,0" VerticalAlignment="Center">
                            <local:FZTextBlock Text="-" Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" Color="#FFFFFFFF" FontSize="26"/>
                        </Decorator>
                        <Control Style="{StaticResource A_Style_Control_Adventure_CarClass_Range}" 
                             local:BindingProxy.A="{Binding XAMLCarRestrictions.CarPIMaxRestriction}"
                             local:BindingProxy.B="{Binding XAMLCarRestrictions.CarClassForMaxRestriction}"/>
                    </StackPanel>
                    <Decorator Width="8" DockPanel.Dock="Right"/>
                    <local:FZTextBlock Text="{Binding Source={local:Loc Map.IDS_MapPin_CarRestrictions}, Converter={StaticResource A_StringToUpper}}" 
                                       Style="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}" Color="#FFFFFFFF" FontSize="24" Margin="6,0"
                                       VerticalAlignment="Center"/>

                </DockPanel>
            </local:FZMaterial>
            
            <Control Tag="A_DataTemplate_CampaignSetup_Tile_OnlineAdventure" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding XAMLCarRestrictions.ShowCarClassForPIRange}" Value="True">
                <Setter TargetName="AdventureCarClass" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="AdvancedDriftRunCarClassRange" Property="Visibility" Value="Visible"/>
            </DataTrigger>
        </DataTemplate.Triggers>
    </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>
            <Control Tag="A_DataTemplate_CampaignSetup_Tile_OnlineAdventure" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
    </DataTemplate>

    <Color x:Key="A_Color_Street_Race_Title">#FF00FFFF</Color>
    <DataTemplate x:Key="A_DataTemplate_CampaignSetup_Tile_StreetRace">
        <Grid>
            <local:FZMaterial ImageSource="{Binding BackgroundImage}"
                              Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBorder}"
                              VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>

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

            <!--Central text -->
            <Grid  Margin="24,290,24,0">
                <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
                    <StackPanel.LayoutTransform>
                        <TransformGroup>
                            <RotateTransform Angle="-8"/>
                        </TransformGroup>
                    </StackPanel.LayoutTransform>
                    
                    <!-- Gamer presents -->
                    <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,0,0,10">
                        <StackPanel Orientation="Horizontal">
                            <local:FZTextBlock Text="{Binding Creator.FormattedGamertag}" FontFamily="Horizon_B" FontSize="36" Color="{StaticResource A_Color_White}" />
                            <Decorator Width="4"/>
                            <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_Flyer_CreatorPresents}" FontFamily="Horizon_B" FontSize="36" Color="{StaticResource A_Color_White}"/>
                        </StackPanel>
                    </Decorator>

                    <!--Street Race title -->
                    <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center" Margin="70,0,70,10" MaxHeight="120">
                        <local:FZTextBlock Text="{Binding Name, Converter={StaticResource A_StringToUpper}}" FontFamily="Horizon_A" FontSize="96" 
                                           TextAlignment="Center" LineStackingStrategy="BlockLineHeight" LineHeight="70"
                                           TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Bottom"
                                           Color="{StaticResource A_Color_Street_Race_Title}"/>
                    </Decorator>

                    <!-- Event Details -->
                    <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center" Margin="0,0,30,8">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top">
                            <local:FZTextBlock local:TextBlockInlineMarkup.Markup="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}" 
                                               local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_"
                                               FontFamily="Horizon_B" FontSize="36" Color="{StaticResource A_Color_White}"/>
                            <local:FZTextBlock Text="/" FontFamily="Horizon_B" FontSize="36" Color="{StaticResource A_Color_White}" Margin="4,0,3,0" />
                            <local:FZTextBlock local:TextBlockInlineMarkup.Markup="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" 
                                               local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_"
                                               FontFamily="Horizon_B" FontSize="36" Color="{StaticResource A_Color_White}"/>
                        </StackPanel>
                    </Decorator>
                </StackPanel>
            </Grid>

            <Control Style="{StaticResource A_Style_Control_OnlineFlyerCarClass}" 
                     Margin="12" Width="105" Height="39" VerticalAlignment="Bottom" HorizontalAlignment="Left"/>

            <Control Tag="A_DataTemplate_CampaignSetup_Tile_StreetRace" Style="{StaticResource A_Style_Control_EventBlueprint_DebugName}" />
        </Grid>
    </DataTemplate>


    <System:Double x:Key="A_Double_FlyerBack_RaceItemHeight">55</System:Double>
    <System:Double x:Key="A_Double_FlyerBack_RaceItemWidth">518</System:Double>

    <Color x:Key="A_Color_FlyerBackBackground">#F2F2F2</Color>
    <Color x:Key="A_Color_FlyerBack_Border">#474747</Color>
    <Color x:Key="A_Color_FlyerBack_CreatorNameText">#474747</Color>
    <Color x:Key="A_Color_FlyerBack_EventNameText">#FFFFFF</Color>
    <Color x:Key="A_Color_FlyerBack_TimeOfDayText">#474747</Color>
    <Color x:Key="A_Color_FlyerBack_TrackNameText">#FFFFFF</Color>
    <Color x:Key="A_Color_FlyerBack_TrackLengthText">#FF7110</Color>

    <Style x:Key="A_Style_FZMaterial_FestivalSiteColorFromTag" TargetType="local:FZMaterial">
        <!--Default color used for playground games events-->
        <Setter Property="Color" Value="#FA4C07"/>
        <Style.Triggers>
            <Trigger Property="Tag" Value="Online">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_Festival_Online}" />
            </Trigger>
            <Trigger Property="Tag" Value="ByronBay">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_Festival_Byron}" />
            </Trigger>
            <Trigger Property="Tag" Value="SurfersParadise">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_Festival_Surfers}" />
            </Trigger>
            <Trigger Property="Tag" Value="Outback">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_Festival_Outback}" />
            </Trigger>
            <Trigger Property="Tag" Value="YarraValley">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_Festival_Yarra}" />
            </Trigger>
            <Trigger Property="Tag" Value="BlizzardMountain">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_Festival_BlizzardMountain}" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlyerBack_InnerTopBorder"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="16,16,0,0"/>

    <Style x:Key="A_Style_FZMaterial_FlyerBack_InnerTopBorder" TargetType="local:FZMaterial" 
           BasedOn="{StaticResource A_Style_FZMaterial_FestivalSiteColorFromTag}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBack_InnerTopBorder}" />
    </Style>
  
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_FlyerBack_InnerBottomBorder"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="0,0,16,16"/>

    <Style x:Key="A_Style_FZMaterial_FlyerBack_InnerBottomBorder" TargetType="local:FZMaterial" 
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBack_InnerBottomBorder}" />
    </Style>

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

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_RaceMode_Item_OuterRightOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="0,6,6,0"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_RaceMode_Item_InnerRightOnly"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="0,4,4,0"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_RaceMode_Item_OuterAll"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="6,6,6,6"/>
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_RaceMode_Item_InnerAll"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="4,4,4,4"/>


    <local:MappingConverter x:Key="A_Converter_Weather_Severity_To_Icon" Default="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/Dynamic.png">
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Clear}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/Clear.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.ClearPostRain}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/PostRain.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Cloudy}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/Cloudy.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.CloudyPostRain}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/PostRain.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Overcast}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/Overcast.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.LightRain}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/LightRain.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.HeavyRain}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/HeavyRain.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Fog}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/Fog.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.LightSnow}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/LightSnow.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.HeavySnow}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/HeavySnow.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Blizzard}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/Blizzard.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Gale}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/Gale.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Lightning}" Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Weather/FlyerBack_Lightning.png"/>
        <local:MappingConverterEntry Key="{x:Static local:XAMLWeather.Aurora}" Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/Weather/FlyerBack_Aurora.png"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_Weather_TimeOfDay_To_String" Default="{local:Loc EventBlueprint.IDS_WeatherAndTimeOfDayControl_Natural}">
        <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_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.HillClimb}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/HillClimb.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.Descent}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Descent.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.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:MappingConverter>

    <DataTemplate x:Key="A_DataTemplate_FlyerBack_RaceItem">
        <Grid Height="{StaticResource A_Double_FlyerBack_RaceItemHeight}">
            <local:FZMaterial Color="{StaticResource A_Color_FlyerBackBackground}" Margin="-3,-3,-3,-3" />
            <DockPanel>
                <Grid DockPanel.Dock="Left" 
                      Margin="0,-5,-30,0"
                      Panel.ZIndex="10"
                      Width="55"
                      Height="60">
                    <local:FZMaterial ImageSource="{Binding RaceMode, Converter={StaticResource A_Converter_RaceMode_To_FlyerBackRaceIcon}}" />
                </Grid>

                <Grid DockPanel.Dock="Right" Margin="0,0,0,0" Width="188">
                    <local:FZMaterial Width="Auto" Height="{StaticResource A_Double_FlyerBack_RaceItemHeight}" Color="{StaticResource A_Color_FlyerBack_Border}" 
                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_RaceMode_Item_OuterRightOnly}"/>
                    <local:FZMaterial Width="Auto"
                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_RaceMode_Item_InnerRightOnly}"
                                      Color="{StaticResource A_Color_FlyerBackBackground}" Margin="1.5,1.5">
                        <local:FZMaterial x:Name="WeatherIcon"
                              ImageSourceNoPreload="{Binding WeatherMode, Converter={StaticResource A_Converter_Weather_Severity_To_Icon}}"
                              Width="{StaticResource A_Double_FlyerBack_RaceItemHeight}"
                              HorizontalAlignment="Right"
                              Panel.ZIndex="0" />
                    </local:FZMaterial>

                    <Decorator Margin="11,8,40,8">
                        <local:FZTextBlock x:Name="TimeOfDay" Text="{Binding TimeOfDay, Converter={StaticResource A_Converter_Weather_TimeOfDay_To_String}}" 
                                       TextWrapping="WrapWithOverflow"
                                       Style="{StaticResource A_Style_FZTextBlock_HorizonB}"
                                       FontSize="24"
                                       LineHeight="20"
                                       LineStackingStrategy="BlockLineHeight"
                                       Color="{StaticResource A_Color_FlyerBack_TimeOfDayText}"
                                       VerticalAlignment="Center" />
                    </Decorator>
                </Grid>

                <local:FZMaterial Margin="0,0,0,0" Color="{StaticResource A_Color_FlyerBack_Border}">
                    <StackPanel Orientation="Vertical" VerticalAlignment="Center" Margin="38,8,8,8">
                        <local:FZTextBlock Text="{Binding TrackName}" 
                                       Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                       FontSize="22"
                                       Color="{StaticResource A_Color_FlyerBack_TrackNameText}" />
                        <DockPanel Margin="0,7,0,0">
                            <local:FZTextBlock Text="{Binding LapCountText, Converter={StaticResource A_StringToUpper}}" 
                                       Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                       FontSize="19"
                                       DockPanel.Dock="Right"
                                       Color="{StaticResource A_Color_FlyerBack_TrackLengthText}"
                                       Visibility="{Binding LapCountText, Converter={StaticResource A_StringVisConverter}}"/>
                            <local:FZTextBlock Text="{Binding TrackLengthText}" 
                                       Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                       FontSize="19"
                                       Margin="0,0,10,0"
                                       Color="{StaticResource A_Color_FlyerBack_TrackLengthText}" />
                        </DockPanel>
                    </StackPanel>
                </local:FZMaterial>
            </DockPanel>
        </Grid>
        <DataTemplate.Triggers>
            <!--CLEAR SKY (SUN) -->
            <MultiDataTrigger>
                <!--at early nighttime on a clear sky, change the weather -->
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding WeatherMode}" Value="{x:Static local:XAMLWeather.Clear}"/>
                    <Condition Binding="{Binding TimeOfDay}" Value="{x:Static local:XAMLTimeOfDay.Night}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="WeatherIcon" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/Clear_Night.png"/>
            </MultiDataTrigger>

            <!--CLEAR POST RAIN -->
            <MultiDataTrigger>
                <!--at early nighttime on a clear post rain sky, change the weather -->
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding TimeOfDay}" Value="{x:Static local:XAMLTimeOfDay.Night}"/>
                    <Condition Binding="{Binding WeatherMode}" Value="{x:Static local:XAMLWeather.ClearPostRain}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="WeatherIcon" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/Clear_Night.png"/>
            </MultiDataTrigger>

            <!--Cloudy Post Rain -->
            <MultiDataTrigger>
                <!--at early nighttime on a cloudy post rain sky, change the weather -->
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding TimeOfDay}" Value="{x:Static local:XAMLTimeOfDay.Night}"/>
                    <Condition Binding="{Binding WeatherMode}" Value="{x:Static local:XAMLWeather.CloudyPostRain}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="WeatherIcon" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/Clear_Night.png"/>
            </MultiDataTrigger>

            <!-- Cloudy (Has a sun icon)-->
            <MultiDataTrigger>
                <!--at early nighttime on a cloudy post rain sky, change the weather -->
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding TimeOfDay}" Value="{x:Static local:XAMLTimeOfDay.Night}"/>
                    <Condition Binding="{Binding WeatherMode}" Value="{x:Static local:XAMLWeather.Cloudy}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="WeatherIcon" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Icons/Weather/Clear_Night.png"/>
            </MultiDataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <Thickness x:Key="A_Thickness_FlyerBack_RaceItemSpacing">0,0,0,8</Thickness>

    <Style x:Key="A_Style_ContentPresenter_FlyerBack_RaceItemContainer" TargetType="ContentPresenter">
        <Setter Property="Margin" Value="{StaticResource A_Thickness_FlyerBack_RaceItemSpacing}" />
    </Style>
    
    <Style x:Key="A_Style_Control_FlyerBack_RaceEmptyItem" TargetType="Control">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <Grid>
                        <local:FZMaterial Width="Auto" Height="Auto" Color="#FFDBDBDB" Preset="{StaticResource A_FZMaterialPresetRoundtangle_RaceMode_Item_OuterAll}"/>
                        <local:FZMaterial Color="{StaticResource A_Color_FlyerBackBackground}" Preset="{StaticResource A_FZMaterialPresetRoundtangle_RaceMode_Item_InnerAll}"
                                          Margin="2,2" Width="Auto" Height="Auto"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Margin" Value="{StaticResource A_Thickness_FlyerBack_RaceItemSpacing}" />
        <Setter Property="Height" Value="{StaticResource A_Double_FlyerBack_RaceItemHeight}" />
    </Style>

    <ControlTemplate x:Key="A_ControlTemplate_ItemsControl_FlyerBackRaces" TargetType="ItemsControl">
        <Grid>
            <StackPanel>
                <Control Style="{StaticResource A_Style_Control_FlyerBack_RaceEmptyItem}" />
                <Control Style="{StaticResource A_Style_Control_FlyerBack_RaceEmptyItem}" />
                <Control Style="{StaticResource A_Style_Control_FlyerBack_RaceEmptyItem}" />
                <Control Style="{StaticResource A_Style_Control_FlyerBack_RaceEmptyItem}" />
                <Control Style="{StaticResource A_Style_Control_FlyerBack_RaceEmptyItem}" />
                <Control Style="{StaticResource A_Style_Control_FlyerBack_RaceEmptyItem}" />
                <Control Style="{StaticResource A_Style_Control_FlyerBack_RaceEmptyItem}" />
                <Control Style="{StaticResource A_Style_Control_FlyerBack_RaceEmptyItem}" />
                <Control Style="{StaticResource A_Style_Control_FlyerBack_RaceEmptyItem}" />
                <Control Style="{StaticResource A_Style_Control_FlyerBack_RaceEmptyItem}" />
            </StackPanel>
            <StackPanel Orientation="Vertical" VerticalAlignment="Top" IsItemsHost="True" />
        </Grid>
    </ControlTemplate>

    <local:MappingConverter x:Key="A_Converter_AdventureSession_To_FlyerBackingTop" >
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.RankedAnythingGoes}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/AnythingGoes_Top.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.UnrankedAnythingGoes}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/AnythingGoes_Top.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.RankedRacingOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Racing_Top.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.UnrankedRacingOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Racing_Top.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.RankedPlaygroundGamesOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/PlaygroundGames_Top.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.UnrankedPlaygroundGamesOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/PlaygroundGames_Top.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.RankedSoloRacingOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Series9/Adventure/SoloRacing_Top.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.UnrankedSoloRacingOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Series9/Adventure/SoloRacing_Top.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.RankedDriftRun}" Value="/ForzaUI;component/Textures/Data_Bound/Series8/Drift_Run/Flyer_Back/Drift_Top.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.UnrankedDriftRun}" Value="/ForzaUI;component/Textures/Data_Bound/Series8/Drift_Run/Flyer_Back/Drift_Top.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.SoloCustom}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Racing_Top.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.DragStrip}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/DragRace_Top.png"/>
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_AdventureSession_To_FlyerBackingBottom" >
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.RankedAnythingGoes}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/AnythingGoes_Bottom.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.UnrankedAnythingGoes}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/AnythingGoes_Bottom.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.RankedRacingOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Racing_Bottom.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.UnrankedRacingOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Racing_Bottom.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.RankedPlaygroundGamesOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/PlaygroundGames_Bottom.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.UnrankedPlaygroundGamesOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/PlaygroundGames_Bottom.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.RankedSoloRacingOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Series9/Adventure/SoloRacing_Bottom.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.UnrankedSoloRacingOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Series9/Adventure/SoloRacing_Bottom.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.RankedDriftRun}" Value="/ForzaUI;component/Textures/Data_Bound/Series8/Drift_Run/Flyer_Back/Drift_Bottom.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.UnrankedDriftRun}" Value="/ForzaUI;component/Textures/Data_Bound/Series8/Drift_Run/Flyer_Back/Drift_Bottom.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.SoloCustom}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Racing_Bottom.png"/>
        <local:MappingConverterEntry Key="{x:Static local:AdventureSession.DragStrip}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/DragRace_Bottom.png"/>
    </local:MappingConverter>

    <Style x:Key="A_Style_FZTextBlock_SeasonHeader" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}">
        <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_DarkGrey}" />
        <Setter Property="FontSize" Value="50" />
        <Setter Property="Text" Value="{Binding EventSeason, Converter={StaticResource A_Converter_Season_To_String}}"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_DisciplineHeader" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_SeasonHeader}">
        <Setter Property="FontSize" Value="62" />
        <Setter Property="FontFamily" Value="Horizon_A" />
    </Style>

    <!--Styles for constructing the background on the back of the flyer-->
    <Style x:Key="A_Style_FZMaterial_FlyerSeason_FlyerBack_Base" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Color" Value="{Binding EventSeason, Converter={StaticResource A_Converter_Season_To_Color}}"/>
        <Setter Property="Width" Value="8"/>
        <Setter Property="Height" Value="8"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsOnlineAdventure}" Value="True">
                <Setter Property="Color" Value="#FFFFFFFF"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                <Setter Property="Color" Value="#FFFFFFFF"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FlyerBack_Top" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_FlyerSeason_FlyerBack_Base}">
        <Setter Property="Height" Value="102"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBack_InnerTopBorder}"/>
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Blank_Top.png"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsOnlineAdventure}" Value="True">
                <Setter Property="ImageSource" Value="{Binding OnlineAdventureDataContext.AdventureSession, Converter={StaticResource A_Converter_AdventureSession_To_FlyerBackingTop}}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Elite_Top.png"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="A_Style_FZMaterial_FlyerBack_Bottom" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_FlyerSeason_FlyerBack_Base}">
        <Setter Property="Height" Value="84"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlyerBack_InnerBottomBorder}"/>
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Blank_Bottom.png"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsOnlineAdventure}" Value="True">
                <Setter Property="ImageSource" Value="{Binding OnlineAdventureDataContext.AdventureSession, Converter={StaticResource A_Converter_AdventureSession_To_FlyerBackingBottom}}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Elite_Bottom.png"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="A_Style_FZMaterial_FlyerBack_Left" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_FlyerSeason_FlyerBack_Base}">
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Blank_Left.png"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Elite_Left.png"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="A_Style_FZMaterial_FlyerBack_Right" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_FlyerSeason_FlyerBack_Base}">
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Blank_Right.png"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Elite_Right.png"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

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

    <Style x:Key="A_Style_FZTextBlock_FlyerBack_HeaderText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonA}">
        <Setter Property="Color" Value="{StaticResource A_Color_FlyerBack_EventNameText}"/>
        <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_PrivateEvent}"/>
        <Style.Triggers>
            <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="Color" Value="{StaticResource A_Color_FlyerText_DarkGrey}"/>
                <Setter Property="local:TextBlockInlineMarkup.Markup" Value="{Binding RaceCountText, Converter={StaticResource A_StringToUpper}}"/>
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="A_Style_FZRun_"/>
                <Setter Property="Text" Value="{x:Null}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                <Setter Property="Text" Value="{local:Loc EventBlueprint.IDS_SeasonChampionship}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_FlyerBack_SubHeaderText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_FlyerHorizonB}">
        <Setter Property="Text" Value="{Binding Name, Converter={StaticResource A_StringToUpper}}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_FlyerBack_EventNameText}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsOnlineAdventure}" Value="True">
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_DarkGrey}"/>
                <Setter Property="Text" Value="{Binding TotalLengthText, Converter={StaticResource A_StringToUpper}}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_Control_CampaignFlyerBack" TargetType="Control">
        <Setter Property="Height" Value="{StaticResource A_Double_CampaignSetupFlyerHeight}" />
        <Setter Property="Width" Value="{StaticResource A_Double_CampaignSetupFlyerWidth}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <Grid>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerBack_Top}"
                                              VerticalAlignment="Top" Width="Auto" />
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerBack_Bottom}"
                                              VerticalAlignment="Bottom" Width="Auto" />
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerBack_Left}"
                                              HorizontalAlignment="Left" Height="662" Margin="0,18,0,0"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerBack_Right}"
                                              HorizontalAlignment="Right" Height="662" Margin="0,18,0,0"/>

                        <StackPanel Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,30,0,0">
                            <local:FZTextBlock x:Name="CreatorNameText"  
                                                   Style="{StaticResource A_Style_FZTextBlock_FlyerBack_HeaderText}" 
                                                   HorizontalAlignment="Center"
                                                   CapHeight="21"/>
                            <local:FZTextBlock     Style="{StaticResource A_Style_FZTextBlock_FlyerBack_SubHeaderText}" 
                                                   HorizontalAlignment="Center"
                                                   Margin="0,10,0,0"
                                                   CapHeight="21" />
                        </StackPanel>


                        <DockPanel Margin="7,102,7,84" VerticalAlignment="Top">
                            <local:FZMaterial Color="{StaticResource A_Color_FlyerBackBackground}">
                                <Grid>
                                    <DockPanel Margin="19,14">
                                        <ItemsControl Template="{StaticResource A_ControlTemplate_ItemsControl_FlyerBackRaces}"
                                                  ItemsSource="{Binding RaceSetups}"
                                                  ItemContainerStyle="{StaticResource A_Style_ContentPresenter_FlyerBack_RaceItemContainer}"
                                                  ItemTemplate="{StaticResource A_DataTemplate_FlyerBack_RaceItem}"
                                                  Margin="0,3,0,0" VerticalAlignment="Top" />
                                    </DockPanel>
                                </Grid>
                            </local:FZMaterial>
                        </DockPanel>
                        <local:FZMaterial x:Name="LegalText" VerticalAlignment="Bottom" HorizontalAlignment="Center" Color="{StaticResource A_Color_FlyerText_DarkGrey}" 
                                          Width="574" Height="84" ImageSource="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/FlyerBack/Legal_Text_PosterBack.png"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                            <Setter TargetName="LegalText" Property="Color" Value="{StaticResource A_Color_FlyerBack_EventNameText}"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding StartFestivalSiteName}" Value="Online">
                            <Setter TargetName="CreatorNameText" Property="Color" Value="{StaticResource A_Color_FlyerBack_EventNameText}" />
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <local:MappingConverter x:Key="A_Converter_RaceMode_To_FooterIcon">
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.LapsRace}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_Circuit.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.P2P}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_P2P.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.CrossCountry}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_CC.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.CrossCountryCircuit}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_CC_Circuit.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.HillClimb}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/hill_climb.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.Scramble}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_Scramble.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.TrailRace}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_Trail.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.StreetRace}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_Street.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.Drag}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_Drag.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.King}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_PG.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.Infection}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_PG.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.FlagRush}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_PG.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.TeamKing}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_PG.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.TeamInfected}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_PG.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.TeamFlagRush}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_PG.png" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.DriftRun}"
                                     Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/RaceModes/Race_Circuit.png" />
    </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>

    <local:MappingConverter x:Key="A_Converter_Season_To_FooterContainer">
        <local:MappingConverterEntry Key="{x:Static local:Season.Spring}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/Seasons/Container_Spring.png"/>
        <local:MappingConverterEntry Key="{x:Static local:Season.Summer}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/Seasons/Container_Summer.png"/>
        <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/Seasons/Container_Autumn.png"/>
        <local:MappingConverterEntry Key="{x:Static local:Season.Winter}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Footer/Seasons/Container_Winter.png"/>
    </local:MappingConverter>

    <Style x:Key="A_Style_FZMaterial_FooterRaceMode"
        TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Visibility" Value="Collapsed"/>
        <Setter Property="Width" Value="46"/>
        <Setter Property="Height" Value="51"/>
        <Setter Property="Margin" Value="6,0,0,0"/>
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding RaceSetups.Count}" Value="1"/>
                    <Condition Binding="{Binding OnlineAdventureDataContext}" Value="{x:Null}"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility" Value="Visible"/>
                <Setter Property="ImageSource" Value="{Binding RaceSetups[0].RaceMode, Converter={StaticResource A_Converter_RaceMode_To_FooterIcon}}"/>
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FooterSeasonContainer"
        TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Width" Value="136"/>
        <Setter Property="Height" Value="46"/>
        <Setter Property="Margin" Value="6,0,0,0"/>
        <Setter Property="VerticalAlignment" Value="Bottom"/>
        <Setter Property="ImageSource" Value="{Binding EventSeason, Converter={StaticResource A_Converter_Season_To_FooterContainer}}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_FooterSeasonIcon"
        TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Width" Value="46"/>
        <Setter Property="Height" Value="46"/>
        <Setter Property="Margin" Value="-12"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="ImageSource" Value="{Binding EventSeason, Converter={StaticResource A_Converter_Season_To_FooterIcon}}"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_FooterSeasonText"
        TargetType="{x:Type local:FZTextBlock}"
        BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="CapHeight" Value="19"/>
        <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}"/>
        <Setter Property="Text" Value="{Binding EventSeason, Converter={StaticResource A_Converter_Season_To_String}}"/>
    </Style>

    <local:MappingConverter x:Key="A_Converter_RaceMode_To_Thread_Color">
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.LapsRace}"
                                     Value="{StaticResource A_Color_InfluenceThread_asphalt_series}" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.P2P}"
                                     Value="{StaticResource A_Color_InfluenceThread_asphalt_series}" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.CrossCountry}"
                                     Value="{StaticResource A_Color_InfluenceThread_cross_country_series}" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.CrossCountryCircuit}"
                                     Value="{StaticResource A_Color_InfluenceThread_cross_country_series}" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.Scramble}"
                                     Value="{StaticResource A_Color_InfluenceThread_mixed_surface_series}" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.TrailRace}"
                                     Value="{StaticResource A_Color_InfluenceThread_mixed_surface_series}" />
        <local:MappingConverterEntry Key="{x:Static local:RaceMode.StreetRace}"
                                     Value="{StaticResource A_Color_InfluenceThread_street_racing_series}" />
    </local:MappingConverter>
    
    <Style x:Key="A_Style_ContentControl_CampaignFlyerFront" TargetType="ContentControl">
        <Style.Resources>
            <local:MappingConverter x:Key="A_Converter_Season_To_Icon">
                <local:MappingConverterEntry Key="{x:Static local:Season.Spring}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Border_Seasonal_Spring.png"/>
                <local:MappingConverterEntry Key="{x:Static local:Season.Summer}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Border_Seasonal_Summer.png"/>
                <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Border_Seasonal_Autumn.png"/>
                <local:MappingConverterEntry Key="{x:Static local:Season.Winter}" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Border_Seasonal_Winter.png"/>
            </local:MappingConverter>

            <Thickness x:Key="A_Thickness_CornerTextAdjust">0,0,0,0</Thickness>
            <Thickness x:Key="A_Thickness_CornerTextAdjust_JP">0,0,-8,0</Thickness>
            <Thickness x:Key="A_Thickness_CornerTextAdjust_CHS">0,-5,-8,0</Thickness>
            <Thickness x:Key="A_Thickness_CornerTextAdjust_CHT">0,-5,-8,0</Thickness>
            <Thickness x:Key="A_Thickness_CornerTextAdjust_PL">0,-10,-10,0</Thickness>
            <Thickness x:Key="A_Thickness_CornerTextAdjust_KO">0,-12,-4,0</Thickness>
            <Thickness x:Key="A_Thickness_CornerTextAdjust_CZ">0,-8,-8,0</Thickness>
            <Thickness x:Key="A_Thickness_CornerTextAdjust_IT">0,-8,-4,0</Thickness>
            <Thickness x:Key="A_Thickness_CornerTextAdjust_TR">0,-8,-4,0</Thickness>
            <Thickness x:Key="A_Thickness_CornerTextAdjust_BR">0,-8,-4,0</Thickness>

            <System:Double x:Key="A_Double_LikeText_CapHeight">18</System:Double>
            <System:Double x:Key="A_Double_LikeText_CapHeight_JP">16</System:Double>
            <System:Double x:Key="A_Double_LikeText_CapHeight_CHS">16</System:Double>
            <System:Double x:Key="A_Double_LikeText_CapHeight_CHT">16</System:Double>
            <System:Double x:Key="A_Double_LikeText_CapHeight_PL">14</System:Double>
            <System:Double x:Key="A_Double_LikeText_CapHeight_CZ">16</System:Double>

            <System:Double x:Key="A_Double_LikeText_LineHeight">22</System:Double>
            <System:Double x:Key="A_Double_LikeText_LineHeight_PL">20</System:Double>
            <System:Double x:Key="A_Double_LikeText_LineHeight_KO">28</System:Double>

            <Style x:Key="A_Style_FZMaterial_FlyerSeason_OuterBorder_Base" TargetType="local:FZMaterial">
                <Setter Property="Color" Value="{Binding EventSeason, Converter={StaticResource A_Converter_Season_To_Color}}"/>
                <Setter Property="Width" Value="8"/>
                <Setter Property="Height" Value="8"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                        <Setter Property="Color" Value="#FFFFFFFF"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding LikesRank, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="1">
                        <Setter Property="Color" Value="#FFFFFFFF"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsChampionsSeries}" Value="True">
                        <Setter Property="Color" Value="{Binding RaceSetups[0].RaceMode, Converter={StaticResource A_Converter_RaceMode_To_Thread_Color}}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>
            <Style x:Key="A_Style_FZMaterial_FlyerSeason_OuterBorder_Corner" TargetType="local:FZMaterial">
                <Setter Property="Width" Value="141"/>
                <Setter Property="Height" Value="141"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
                <Setter Property="HorizontalAlignment" Value="Right"/>
                <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_White}"/>
                <Setter Property="Opacity" Value="0"/>
                <Setter Property="Visibility" Value="Collapsed"/>
                <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Overlays/Cornerpiece.png"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding VariationId}" Value="Blue">
                        <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_Blue}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding VariationId}" Value="Yellow">
                        <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_Yellow}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding VariationId}" Value="Pink">
                        <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_Pink}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding VariationId}" Value="Turquoise">
                        <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_Turquoise}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding VariationId}" Value="Orange">
                        <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_Orange}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding VariationId}" Value="Green">
                        <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_Green}" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding LikesRank}" Value="2">
                        <Setter Property="Opacity" Value="1"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding LikesRank}" Value="1">
                        <Setter Property="Color" Value="#25000000"/>
                        <Setter Property="Opacity" Value="1"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>
            <Style x:Key="A_Style_FZMaterial_FlyerSeason_Border" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_FlyerSeason_OuterBorder_Base}">
                <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Overlays/Season_Border.png" />
                <Setter Property="Width" Value="574"/>
                <Setter Property="Height" Value="836"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding LikesRank, Converter={StaticResource A_CompareConverter}, ConverterParameter=3}" Value="1">
                        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Overlays/Gold_Border.png" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding LikesRank}" Value="3">
                        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Overlays/Silver_Border.png" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Overlays/Elite_Border.png" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
            <Style x:Key="A_Style_FZTextBlock_CutoutText" TargetType="local:FZTextBlock"
                BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
                <Setter Property="Visibility" Value="Collapsed"/>
                <Setter Property="Margin" Value="{local:LocalizedResource A_Thickness_CornerTextAdjust}"/>
                <Setter Property="local:TextBlockInlineMarkup.Markup" Value=""/>
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="A_Style_FZRun_Popup_"/>
                <Setter Property="LineHeight" Value="{local:LocalizedResource A_Double_LikeText_LineHeight}"/>
                <Setter Property="TextAlignment" Value="Center"/>
                <Setter Property="TextWrapping" Value="NoWrap"/>
                <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
                <Setter Property="CapHeight" Value="{local:LocalizedResource A_Double_LikeText_CapHeight}"/>
                <Setter Property="Color" Value="{StaticResource A_Color_White}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding LikesRank, Converter={StaticResource A_CompareConverter}, ConverterParameter=1}" Value="1">
                        <Setter Property="Color" Value="{StaticResource A_Color_FlyerText_DarkGrey}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding LikesRank, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="1">
                        <Setter Property="local:TextBlockInlineMarkup.Markup" Value="{Binding LikesText}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>
            
            <Style x:Key="A_Style_FlyerBorder_Icon" TargetType="local:FZMaterial">
                <Setter Property="ImageSourceNoPreload" Value="{Binding EventSeason, Converter={StaticResource A_Converter_Season_To_Icon}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Border_Elite_Series.png" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsChampionsSeries}" Value="True">
                        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/EventBorderIcons/Border_Champions_Series.png" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZRun_Plays_BOLD" TargetType="local:FZRun">
                <Setter Property="FontFamily" Value="Horizon_A" />
            </Style>
            <Style x:Key="A_Style_FZRun_Popup_BOLD" TargetType="local:FZRun">
                <Setter Property="FontFamily" Value="Horizon_A" />
                <Setter Property="FontSize" Value="28" />
            </Style>
        </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>
                        <Viewbox x:Name="FlyerContent"
                            Stretch="Fill">
                            <ContentPresenter Width="{StaticResource A_Double_CampaignSetupFlyerWidth}"
                                Height="{StaticResource A_Double_CampaignSetupFlyerHeight}"/>
                        </Viewbox>

                        <Decorator x:Name="FooterContent"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Bottom">
                            <StackPanel Style="{StaticResource A_Style_FrameworkElement_FooterContentContainer}"
                                Orientation="Horizontal">
                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FooterRaceMode}"/>
                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FooterSeasonContainer}">
                                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_HighlightShadow}">
                                        <DockPanel VerticalAlignment="Center"
                                                   HorizontalAlignment="Center"
                                                   Margin="6">
                                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FooterSeasonIcon}"
                                                              DockPanel.Dock="Left" />
                                            <Decorator Width="8"
                                                       DockPanel.Dock="Left" />
                                            <Decorator Width="4"
                                                       DockPanel.Dock="Right" />
                                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FooterSeasonText}"
                                                                   Effect="{StaticResource A_Effect_HighContrastModeDropShadow}" />
                                        </DockPanel>
                                    </local:FZMaterial>
                                </local:FZMaterial>
                            </StackPanel>
                        </Decorator>

                        <!--This is for overlays textures like season border, elite series and gold, silver borders-->
                        <Decorator ClipToBounds="True" Margin="6" x:Name="CornerBorderPositiion">
                            <local:FZMaterial x:Name="OuterBorderCornerOnly"
                                Style="{StaticResource A_Style_FZMaterial_FlyerSeason_OuterBorder_Corner}"/>
                        </Decorator>

                        <Grid x:Name="BorderOverlayComponents" Visibility="Collapsed">
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlyerSeason_Border}"
                                              Width="Auto" />
                        </Grid>

                        <StackPanel Orientation="Horizontal" VerticalAlignment="Top" Margin="17,18,18,18">
                            
                            <local:FZMaterial Style="{StaticResource A_Style_CustomBlueprint_Pill}" Color="{StaticResource A_Color_InfluenceThread_blueprint}" Height="32" HorizontalAlignment="Center" Margin="0,0,6,0">
                                <StackPanel Margin="2.5" Orientation="Horizontal">
                                    <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/Series3/UGC_CustomRoute.png" Width="28" Height="28"/>
                                    <Grid>
                                        <local:FZMaterial Color="#FF000000" Opacity="0.4" Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerInnerRightOnly}"/>
                                        <local:FZTextBlock Text="{local:Loc EventBlueprint.IDS_RouteBlueprint_CustomRoute}" FontFamily="HorizonA"
                                                           VerticalAlignment="Center" Margin="6" MaxWidth="120"
                                                           CapHeight="16" Color="{StaticResource A_Color_White}"/>
                                    </Grid>
                                </StackPanel>
                            </local:FZMaterial>

                            <StackPanel x:Name="PlayedMarker" Orientation="Horizontal"
                            VerticalAlignment="Top"
                            HorizontalAlignment="Left">
                                <local:FZMaterial Color="#40000000"
                                Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
                                Margin="0,0,6,0"
                                Height="32"
                                Visibility="{Binding PlaysText, Converter={StaticResource A_StringVisConverter}}">
                                    <StackPanel Orientation="Horizontal" Margin="5,0">
                                        <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/Series3/UGC_Plays.png" Width="28" Height="28"/>
                                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HorizonB}"
                                        Color="{StaticResource A_Color_White}"
                                        FontSize="22" MaxWidth="90"
                                        VerticalAlignment="Center"
                                        Margin="3,0"
                                        local:TextBlockInlineMarkup.Markup="{Binding PlaysText}"
                                        local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_Plays_"/>
                                    </StackPanel>
                                </local:FZMaterial>
                                <local:FZMaterial Color="#40000000"
                                Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
                                Height="32" Margin="0,0,6,0"
                                Visibility="{Binding LocalPlayerHasPlayed, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
                                    <Decorator Margin="7,0">
                                        <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/Event_Blueprint/Played_Tick.png"
                                        Width="23"
                                        Height="21"
                                        Color="{StaticResource A_Color_White}"
                                        VerticalAlignment="Center"/>
                                    </Decorator>
                                </local:FZMaterial>
                            </StackPanel>

                            <!--Favorite Icon-->
                            <local:FZMaterial Color="#40000000"
                                Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
                                Margin="0,0,6,0"
                                Height="32"
                                Visibility="{Binding IsFavorite, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}">
                                <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/A_Star.png" Width="22" Height="22" Margin="6"/>
                            </local:FZMaterial>

                        </StackPanel>

                        <local:FZMaterial x:Name="BorderIcon" VerticalAlignment="Top" HorizontalAlignment="Right"
                                            Style="{StaticResource A_Style_FlyerBorder_Icon}" 
                                            Width="106" Height="146" Visibility="Collapsed" />

                        <Decorator Margin="10,15,0,0" 
                                   x:Name="FlyerLikeCornerText"
                            VerticalAlignment="Top"
                            HorizontalAlignment="Right">
                            <Decorator.RenderTransform>
                                <TransformGroup>
                                    <RotateTransform Angle="45"/>
                                    <SkewTransform AngleX="-8"/>
                                </TransformGroup>
                            </Decorator.RenderTransform>
                            <local:FZTextBlock x:Name="CutoutText" 
                                Style="{StaticResource A_Style_FZTextBlock_CutoutText}"/>
                        </Decorator>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <DataTrigger Binding="{Binding LikesRank, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="1">
                            <Setter TargetName="FlyerLikeCornerText" Property="Margin" Value="0,10,-6,0"/>
                            <Setter TargetName="CornerBorderPositiion" Property="Margin" Value="0,0,0,0"/>
                            <Setter TargetName="OuterBorderCornerOnly" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="CutoutText" Property="Visibility" Value="Visible"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding LikesRank, Converter={StaticResource A_CompareConverter}, ConverterParameter=1}" Value="1">
                            <Setter TargetName="CutoutText" Property="Color" Value="{StaticResource A_Color_FlyerText_DarkGrey}"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding LikesRank, Converter={StaticResource A_CompareConverter}, ConverterParameter=2}" Value="1">
                            <Setter TargetName="FlyerLikeCornerText" Property="Margin" Value="10,15,0,0"/>
                            <Setter TargetName="FlyerContent" Property="Margin" Value="6"/>
                            <Setter TargetName="FooterContent" Property="Margin" Value="5"/>
                            <Setter TargetName="BorderOverlayComponents" Property="Visibility" Value="Visible"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding SetupType}" Value="{x:Static local:CampaignSetupType.SeasonalEvent}">
                            <Setter TargetName="FlyerContent" Property="Margin" Value="6"/>
                            <Setter TargetName="FooterContent" Property="Margin" Value="5"/>
                            <Setter TargetName="BorderIcon" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="BorderOverlayComponents" Property="Visibility" Value="Visible"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding EventType}" Value="{x:Static local:EventType.Showcase}">
                            <Setter TargetName="FooterContent" Property="Margin" Value="5"/>
                            <Setter TargetName="PlayedMarker" Property="Visibility" Value="Collapsed"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding EventType}" Value="{x:Static local:EventType.Street}">
                            <Setter TargetName="FooterContent" Property="Margin" Value="0,0,0,4"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding IsOnlineAdventure}" Value="True">
                            <Setter TargetName="FooterContent" Property="Margin" Value="0,0,16,16"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding IsEliteChampionship}" Value="True">
                            <Setter TargetName="FlyerContent" Property="Margin" Value="6"/>
                            <Setter TargetName="FooterContent" Property="Margin" Value="5"/>
                            <Setter TargetName="BorderOverlayComponents" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="BorderIcon" Property="Visibility" Value="Visible"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding IsChampionsSeries}" Value="True">
                            <Setter TargetName="FlyerContent" Property="Margin" Value="6"/>
                            <Setter TargetName="FooterContent" Property="Margin" Value="5"/>
                            <Setter TargetName="BorderOverlayComponents" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="BorderIcon" Property="Visibility" Value="Visible"/>
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </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>
            <Style x:Key="A_Style_FZMaterial_FlyerContainer_Dynamic"
                   TargetType="local:FZMaterial">
                <Setter Property="Color" Value="#00FFFFFF" />
            </Style>
            <Thickness x:Key="A_Thickness_FlyerBorderMargin">0</Thickness>
        </ControlTemplate.Resources>
        <local:FZMaterial Style="{DynamicResource A_Style_FZMaterial_FlyerContainer_Dynamic}">
            <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>
                    <Decorator x:Name="BackFace" Visibility="Collapsed" local:ZPanel.Transform="{StaticResource A_RotateTransform3D_FlyerFlip180}">
                        <Control Style="{StaticResource A_Style_Control_CampaignFlyerBack}" />
                    </Decorator>
                </Grid>
            </Grid>
        </local:FZMaterial>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding Angle, ElementName=FlyerRotation, Converter={StaticResource A_CompareConverter}, ConverterParameter=90}" Value="-1">
                <Setter TargetName="FrontFace" Property="Visibility" Value="Visible" />
                <Setter TargetName="BackFace" Property="Visibility" Value="Hidden" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Angle, ElementName=FlyerRotation, Converter={StaticResource A_CompareConverter}, ConverterParameter=90}" Value="1">
                <Setter TargetName="FrontFace" Property="Visibility" Value="Hidden" />
                <Setter TargetName="BackFace" Property="Visibility" Value="Visible" />
            </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>
        <Setter Property="FontSize" Value="0" />
    </Style>

    <Style x:Key="A_Style_Control_CampaignFlyer_Internal_BorderedWithSelectionHighlight" TargetType="Control">
        <Style.Resources>
            <Style x:Key="A_Style_FZMaterial_FlyerContainer_Dynamic"
                   TargetType="local:FZMaterial">
                <Setter Property="Margin" Value="-1" />
                <Setter Property="Preset">
                    <Setter.Value>
                        <local:FZMaterialPresetRoundtangle BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"
                                                           CornerRadius="{StaticResource A_CornerRadius_FlyerOuterBorder}" />
                    </Setter.Value>
                </Setter>
                <Setter Property="Color" Value="#FFFFFFFF" />
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}"
                                       Value="True"/>
                            <Condition Binding="{Binding IsControllerActiveInput, RelativeSource={RelativeSource AncestorType=Page}}"
                                       Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Preset">
                            <Setter.Value>
                                <local:FZMaterialPresetRoundtangle BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight_OuterAll}"
                                                                   CornerRadius="{StaticResource A_CornerRadius_FlyerOuterBorder}" />
                            </Setter.Value>
                        </Setter>
                    </MultiDataTrigger>
                    <DataTrigger Binding="{Binding IsMouseOver, RelativeSource={RelativeSource AncestorType=ListBoxItem}}"
                                 Value="True">
                        <Setter Property="Preset">
                            <Setter.Value>
                                <local:FZMaterialPresetRoundtangle BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight_OuterAll}"
                                                                   CornerRadius="{StaticResource A_CornerRadius_FlyerOuterBorder}" />
                            </Setter.Value>
                        </Setter>
                    </DataTrigger>
                </Style.Triggers>
            </Style>
            <Thickness x:Key="A_Thickness_FlyerBorderMargin">7</Thickness>
        </Style.Resources>
        <Setter Property="Template" Value="{StaticResource A_ControlTemplate_Control_CampaignFlyer_Internal}" />
        <Setter Property="Tag">
            <Setter.Value>
                <System:Double>0</System:Double>
            </Setter.Value>
        </Setter>
        <Setter Property="FontSize" Value="0" />
    </Style>

    <Thickness x:Key="A_Thickness_FlyerShadowOffset">-25,25,25,-25</Thickness>
    
    <Style x:Key="A_Style_Control_FlyerShadowWithOffset" TargetType="Control">
        <Setter Property="Margin" Value="{StaticResource A_Thickness_FlyerShadowOffset}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_ShadowBase}" 
                                  Color="{StaticResource A_Color_DropShadow}">
                        <local:FZMaterial.RenderTransform>
                            <ScaleTransform ScaleX="1.05" ScaleY="1.05" />
                        </local:FZMaterial.RenderTransform>
                        <local:FZMaterial.Preset>
                            <local:FZMaterialPresetRoundtangle Softness="25" Unlit="True" />
                        </local:FZMaterial.Preset>
                    </local:FZMaterial>
                </ControlTemplate>
            </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>

    <!-- Override the scale animation behaviour as the flyers are massive and don't need to scale as much -->
    <Style x:Key="A_Style_FrameworkElement_CarouselSelectionScale_CampaignEventFlyer"
           TargetType="FrameworkElement">
        <Setter Property="RenderTransform">
            <Setter.Value>
                <ScaleTransform />
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <DataTrigger Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}"
                         Value="True">
                <DataTrigger.EnterActions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(ScaleTransform.ScaleX)">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                                        Value="1.03" />
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(ScaleTransform.ScaleY)">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                                        Value="1.03" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </BeginStoryboard>
                </DataTrigger.EnterActions>
                <DataTrigger.ExitActions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(ScaleTransform.ScaleX)">
                                <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                                      Value="1.0"
                                                      EasingFunction="{local:CircleEasing}" />
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(ScaleTransform.ScaleY)">
                                <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                                      Value="1.0"
                                                      EasingFunction="{local:CircleEasing}" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </BeginStoryboard>
                </DataTrigger.ExitActions>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_ContentControl_Carousel_ContainerStyle_CampaignEventFlyer"
           BasedOn="{StaticResource A_Style_ContentControl_Carousel_ContainerStyle}"
           TargetType="ContentControl">
        <Style.Resources>
            <Style x:Key="A_Style_FrameworkElement_CarouselSelectionScale_Dynamic"
                   TargetType="FrameworkElement"
                   BasedOn="{StaticResource A_Style_FrameworkElement_CarouselSelectionScale_CampaignEventFlyer}"/>
        </Style.Resources>
    </Style>

    <Style x:Key="A_Style_ContentControl_Carousel_ContainerStyle_CampaignEventFlyer_SelectOnMouseHover"
           BasedOn="{StaticResource A_Style_ContentControl_Carousel_ContainerStyle_SelectOnMouseHover}"
           TargetType="ContentControl">
        <Style.Resources>
            <Style x:Key="A_Style_FrameworkElement_CarouselSelectionScale_Dynamic"
                   TargetType="FrameworkElement"
                   BasedOn="{StaticResource A_Style_FrameworkElement_CarouselSelectionScale_CampaignEventFlyer}"/>
        </Style.Resources>
    </Style>

    <System:Double x:Key="A_Double_CampaignEventFlyer_Carousel_Tile_Width">488</System:Double>
    <System:Double x:Key="A_Double_CampaignEventFlyer_Carousel_Tile_Offset">1065</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">2928</System:Double>

    <Style TargetType="local:WrapListBox"
           x:Key="A_Style_Carousel_CampaignEventFlyer">
        <Style.Resources>
            <CornerRadius x:Key="A_Dynamic_CornerRadius_Carousel_SelectionStroke">22</CornerRadius>
            <Thickness x:Key="A_Dynamic_Thickness_Carousel_SelectionStroke">6.5</Thickness>
            <CornerRadius x:Key="A_CornerRadius_Dynamic_CarouselTile">16</CornerRadius>
            <System:Double x:Key="A_Double_MouseButtons_MaxWidth_Dynamic">1727</System:Double>
            <Thickness x:Key="A_Thickness_MouseButtons_Offset_Dynamic">-317,0,0,0</Thickness>
            <System:Double x:Key="A_Double_Carousel_ScrollButton_Height_Dynamic">166</System:Double>
            <Style x:Key="A_Style_FZMaterial_MouseRollOverVisual_Dynamic"
                   BasedOn="{StaticResource A_Style_FZMaterial_MouseRollOverVisual_Default}"
                   TargetType="local:FZMaterial">
                <Setter Property="Margin" Value="-0.5"/>
                <Setter Property="Preset">
                    <Setter.Value>
                        <local:FZMaterialPresetRoundtangleStroke BasedOn="{StaticResource A_FZMaterialPresetRoundtangleStroke_Rollover_Outer_All}"
                                                                 CornerRadius="16"/>
                    </Setter.Value>
                </Setter>
            </Style>
            <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="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="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="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="-430,0,0,0"/>
        <Setter Property="AlternationCount"
                Value="10000" />
        <Setter Property="PageSize"
                Value="1" />
    </Style>

</ResourceDictionary>
