<Page x:Class="ForzaUI.Scenes.Anthem.A_FestivalPassScene"
      xmlns:local="clr-namespace:ForzaUI"
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}">

    <Page.Resources>
        <Style x:Key="A_Style_FrameworkElement_CarouselSelectionScale_Dynamic"
           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 HandoffBehavior="SnapshotAndReplace">
                            <BeginStoryboard.Storyboard>
                                <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.Storyboard>
                        </BeginStoryboard>
                    </DataTrigger.EnterActions>
                    <DataTrigger.ExitActions>
                        <BeginStoryboard HandoffBehavior="SnapshotAndReplace">
                            <BeginStoryboard.Storyboard>
                                <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.Storyboard>
                        </BeginStoryboard>
                    </DataTrigger.ExitActions>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZMaterial_RaiseFocusItemBackground_Dynamic"
           BasedOn="{StaticResource A_Style_FZMaterial_RaiseFocusItemBackground}"
           TargetType="local:FZMaterial">
           <Setter Property="Color" Value="#00000000"/>
       </Style>



        <local:MappingConverter x:Key="A_Converter_Visibility_ShowIfItemStateAvailable"
            Default="{x:Static Visibility.Collapsed}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Available}" Value="{x:Static Visibility.Visible}"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_Visibility_ShowIfItemStateComplete"
            Default="{x:Static Visibility.Collapsed}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Complete}" Value="{x:Static Visibility.Visible}"/>
        </local:MappingConverter>

        <Color x:Key="A_Color_FestivalPass_Forzathon_A">#FFF800C0</Color>
        <Color x:Key="A_Color_FestivalPass_Forzathon_B">#FFFF1970</Color>
        <Color x:Key="A_Color_FestivalPass_SeasonEvents_A">#FFFF6214</Color>
        <Color x:Key="A_Color_FestivalPass_SeasonEvents_B">#FFFC0254</Color>
        <Color x:Key="A_Color_FestivalPass_HorizonStories_A">#FFEB9A00</Color>
        <Color x:Key="A_Color_FestivalPass_HorizonStories_B">#FFFFD700</Color>
        <Color x:Key="A_Color_FestivalPass_Series_A">#FF00B084</Color>
        <Color x:Key="A_Color_FestivalPass_Series_B">#FF4ED9C1</Color>
        <Color x:Key="A_Color_FestivalPass_SeriesProgress_A">#FFed1e79</Color>
        <Color x:Key="A_Color_FestivalPass_SeriesProgress_B">#FF93278F</Color>
        <Color x:Key="A_Color_FestivalPass_Complete_Text">#D4332A02</Color>

        <local:MappingConverter x:Key="A_Converter_Color_CompletableTextFromItemState"
            Default="{StaticResource A_Color_Tile_Title_Alternate}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Complete}" Value="{StaticResource A_Color_FestivalPass_Complete_Text}"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_CompletableText"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
            <Setter Property="Color" Value="{Binding ItemState, Converter={StaticResource A_Converter_Color_CompletableTextFromItemState}}"/>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_CompletableText_Progress"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_FestivalPass_CompletableText}">
            <Setter Property="Effect" Value="{StaticResource A_Effect_HighContrastModeDropShadow}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=(local:BindingProxy.A), ElementName=Divider}" Value="Gold">
                    <Setter Property="Color" Value="{StaticResource A_Color_FestivalPass_Complete_Text}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <local:LinearTransformConverter x:Key="A_PercentageToDecimalConverter" Scale="0.01"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Base_FestivalPassGradient"
            BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
            GradientAngle="90"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Summer_FestivalPassGradient"
            BasedOn="{StaticResource A_Preset_FZMaterial_Base_FestivalPassGradient}"
            GradientColorA="{StaticResource A_Color_Season_Summer_GradientA}"
            GradientColorB="{StaticResource A_Color_Season_Summer_GradientB}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Summer_FestivalPassHeader"
            BasedOn="{StaticResource A_Preset_FZMaterial_Summer_FestivalPassGradient}"
            CornerRadius="{StaticResource A_CornerRadius_Outer_Top}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Autumn_FestivalPassGradient"
            BasedOn="{StaticResource A_Preset_FZMaterial_Base_FestivalPassGradient}"
            GradientColorA="{StaticResource A_Color_Season_Autumn_GradientA}"
            GradientColorB="{StaticResource A_Color_Season_Autumn_GradientB}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Autumn_FestivalPassHeader"
            BasedOn="{StaticResource A_Preset_FZMaterial_Autumn_FestivalPassGradient}"
            CornerRadius="{StaticResource A_CornerRadius_Outer_Top}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Winter_FestivalPassGradient"
            BasedOn="{StaticResource A_Preset_FZMaterial_Base_FestivalPassGradient}"
            GradientColorA="{StaticResource A_Color_Season_Winter_GradientA}"
            GradientColorB="{StaticResource A_Color_Season_Winter_GradientB}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Winter_FestivalPassHeader"
            BasedOn="{StaticResource A_Preset_FZMaterial_Winter_FestivalPassGradient}"
            CornerRadius="{StaticResource A_CornerRadius_Outer_Top}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Spring_FestivalPassGradient"
            BasedOn="{StaticResource A_Preset_FZMaterial_Base_FestivalPassGradient}"
            GradientColorA="{StaticResource A_Color_Season_Spring_GradientA}"
            GradientColorB="{StaticResource A_Color_Season_Spring_GradientB}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Spring_FestivalPassHeader"
            BasedOn="{StaticResource A_Preset_FZMaterial_Spring_FestivalPassGradient}"
            CornerRadius="{StaticResource A_CornerRadius_Outer_Top}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_SeriesProgress_FestivalPassGradient"
            BasedOn="{StaticResource A_Preset_FZMaterial_Base_FestivalPassGradient}"
            GradientColorA="{StaticResource A_Color_FestivalPass_SeriesProgress_A}"
            GradientColorB="{StaticResource A_Color_FestivalPass_SeriesProgress_B}"/>
            
        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Series_FestivalPassHeader"
            BasedOn="{StaticResource A_Preset_FZMaterial_SeriesProgress_FestivalPassGradient}"
            CornerRadius="{StaticResource A_CornerRadius_Outer_Top}" />

        <local:MappingConverter x:Key="A_Converter_FZMaterialPreset_GradientFromSeason">
            <local:MappingConverterEntry Key="{x:Static local:Season.Spring}" Value="{StaticResource A_Preset_FZMaterial_Spring_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Summer}" Value="{StaticResource A_Preset_FZMaterial_Summer_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}" Value="{StaticResource A_Preset_FZMaterial_Autumn_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Winter}" Value="{StaticResource A_Preset_FZMaterial_Winter_FestivalPassGradient}"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_FZMaterialPreset_HeaderFromSeason">
            <local:MappingConverterEntry Key="{x:Static local:Season.Spring}" Value="{StaticResource A_Preset_FZMaterial_Spring_FestivalPassHeader}"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Summer}" Value="{StaticResource A_Preset_FZMaterial_Summer_FestivalPassHeader}"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}" Value="{StaticResource A_Preset_FZMaterial_Autumn_FestivalPassHeader}"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Winter}" Value="{StaticResource A_Preset_FZMaterial_Winter_FestivalPassHeader}"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_InfographicIconFromSeason">
            <local:MappingConverterEntry Key="{x:Static local:Season.Spring}"
                                         Value="Game:\Media\UI\Textures\Data_Bound\Infographics\Spring_Progress.png" />
            <local:MappingConverterEntry Key="{x:Static local:Season.Summer}"
                                         Value="Game:\Media\UI\Textures\Data_Bound\Infographics\Summer_Progress.png" />
            <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}"
                                         Value="Game:\Media\UI\Textures\Data_Bound\Infographics\Autumn_Progress.png" />
            <local:MappingConverterEntry Key="{x:Static local:Season.Winter}"
                                         Value="Game:\Media\UI\Textures\Data_Bound\Infographics\Winter_Progress.png" />
        </local:MappingConverter>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Forzathon_FestivalPassGradient"
            BasedOn="{StaticResource A_Preset_FZMaterial_Base_FestivalPassGradient}"
            GradientColorA="{StaticResource A_Color_FestivalPass_Forzathon_A}"
            GradientColorB="{StaticResource A_Color_FestivalPass_Forzathon_B}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_Item_Pill"
            BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientHighlight}"
            CornerRadius="6,6,6,6"
            GradientAngle="90"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Forzathon_FestivalPassGradient_Desaturated"
            BasedOn="{StaticResource A_Preset_FZMaterial_Forzathon_FestivalPassGradient}"
            Saturation="0.0"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient"
            BasedOn="{StaticResource A_Preset_FZMaterial_Base_FestivalPassGradient}"
            GradientColorA="{StaticResource A_Color_FestivalPass_SeasonEvents_A}"
            GradientColorB="{StaticResource A_Color_FestivalPass_SeasonEvents_B}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated"
            BasedOn="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"
            Saturation="0.0"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_HorizonStories_FestivalPassGradient"
            BasedOn="{StaticResource A_Preset_FZMaterial_Base_FestivalPassGradient}"
            GradientColorA="{StaticResource A_Color_FestivalPass_HorizonStories_A}"
            GradientColorB="{StaticResource A_Color_FestivalPass_HorizonStories_B}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_HorizonStories_FestivalPassGradient_Desaturated"
            BasedOn="{StaticResource A_Preset_FZMaterial_HorizonStories_FestivalPassGradient}"
            Saturation="0.0"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Series_FestivalPassGradient"
            BasedOn="{StaticResource A_Preset_FZMaterial_Base_FestivalPassGradient}"
            GradientColorA="{StaticResource A_Color_FestivalPass_Series_A}"
            GradientColorB="{StaticResource A_Color_FestivalPass_Series_B}"/>
            
        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_SeriesProgress_FestivalPassGradient"
            BasedOn="{StaticResource A_Preset_FZMaterial_Base_FestivalPassGradient}"
            GradientColorA="{StaticResource A_Color_FestivalPass_SeriesProgress_A}"
            GradientColorB="{StaticResource A_Color_FestivalPass_SeriesProgress_B}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Series_FestivalPassGradient_Desaturated"
            BasedOn="{StaticResource A_Preset_FZMaterial_Series_FestivalPassGradient}"
            Saturation="0.0"/>

        <local:MappingConverter x:Key="A_Converter_FZMaterialPreset_GradientFromContentType"
            Default="{StaticResource A_Preset_FZMaterial_Series_FestivalPassGradient}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.WeeklyForzathon}" Value="{StaticResource A_Preset_FZMaterial_Forzathon_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.DailyForzathon}" Value="{StaticResource A_Preset_FZMaterial_Forzathon_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}" Value="{StaticResource A_Preset_FZMaterial_HorizonStories_FestivalPassGradient}"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_FZMaterialPreset_DesaturatedGradientFromContentType"
            Default="{StaticResource A_Preset_FZMaterial_Series_FestivalPassGradient_Desaturated}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.WeeklyForzathon}" Value="{StaticResource A_Preset_FZMaterial_Forzathon_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.DailyForzathon}" Value="{StaticResource A_Preset_FZMaterial_Forzathon_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="{StaticResource A_Preset_FZMaterial_SeasonEvents_FestivalPassGradient_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}" Value="{StaticResource A_Preset_FZMaterial_HorizonStories_FestivalPassGradient_Desaturated}"/>
        </local:MappingConverter>



        <System:Double x:Key="A_Double_FestivalPass_MaxCarouselItemHeightWithMargin">684</System:Double>
        <System:Double x:Key="A_Double_FestivalPass_MaxCarouselItemHeight">678</System:Double>
        <System:Double x:Key="A_Double_FestivalPass_MaxCarouselItemHalfHeight">336</System:Double>
        <System:Double x:Key="A_Double_FestivalPass_MaxCarouselItemWidth">404</System:Double>
        <Thickness x:Key="A_Double_FestivalPass_CarouselItemMargin">3,3,3,3</Thickness>

        <local:MappingConverter x:Key="A_Converter_Height_FromItemSize"
            Default="{StaticResource A_Double_FestivalPass_MaxCarouselItemHeight}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemSize.Half}" Value="{StaticResource A_Double_FestivalPass_MaxCarouselItemHalfHeight}"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FrameworkElement_FestivalPass_ItemContainer"
            TargetType="{x:Type FrameworkElement}">
            <Setter Property="Height" Value="{Binding ItemSize, Converter={StaticResource A_Converter_Height_FromItemSize}}"/>
            <Setter Property="Width" Value="{StaticResource A_Double_FestivalPass_MaxCarouselItemWidth}"/>
        </Style>



        <Style x:Key="A_Style_FrameworkElement_FestivalPass_FrameStyle_Container"
            TargetType="{x:Type FrameworkElement}">
            <Setter Property="Height" Value="{StaticResource A_Double_FestivalPass_MaxCarouselItemHeight}"/>
            <Setter Property="Width" Value="{StaticResource A_Double_FestivalPass_MaxCarouselItemWidth}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding FrameStyle, FallbackValue={x:Static FestivalPassFrameStyle.Tall}}"
                    Value="{x:Static FestivalPassFrameStyle.Short}">
                    <Setter Property="Height" Value="{StaticResource A_Double_FestivalPass_MaxCarouselItemHalfHeight}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <local:MappingConverter x:Key="A_Converter_ImageSource_FrameFromFrameStyle"
            Default="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/Frame_LargeA.png">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassFrameStyle.TallWithFooter}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/Frame_LargeB.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassFrameStyle.TallFooterOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/Frame_LargeC.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassFrameStyle.Short}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/Frame_Small.png"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_ImageSource_CompletedFrameFromFrameStyle"
            Default="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/GoldFrame_LargeA.png">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassFrameStyle.TallWithFooter}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/GoldFrame_LargeB.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassFrameStyle.TallFooterOnly}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/GoldFrame_LargeC.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassFrameStyle.Short}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/GoldFrame_Small.png"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_FrameStyle"
            TargetType="{x:Type local:FZMaterial}">
            <Setter Property="ImageSource" Value="{Binding FrameStyle, Converter={StaticResource A_Converter_ImageSource_FrameFromFrameStyle}}"/>
            <Setter Property="Preset" Value="{Binding ContentType, Converter={StaticResource A_Converter_FZMaterialPreset_GradientFromContentType}}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Complete}">
                    <Setter Property="ImageSource" Value="{Binding FrameStyle, Converter={StaticResource A_Converter_ImageSource_CompletedFrameFromFrameStyle}}"/>
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Expired}">
                    <Setter Property="Preset" Value="{Binding ContentType, Converter={StaticResource A_Converter_FZMaterialPreset_DesaturatedGradientFromContentType}}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Locked}">
                    <Setter Property="Preset" Value="{Binding ContentType, Converter={StaticResource A_Converter_FZMaterialPreset_DesaturatedGradientFromContentType}}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>



        <local:MappingConverter x:Key="A_Converter_ImageSource_FallbackBackingImageFromContentType"
            Default="">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.WeeklyForzathon}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/ForzathonWeekly_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/Trial_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalPG_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/Showcase_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/Story_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/Rivals_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/Adventure_Fallback_Active.png"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_ImageSource_CompletedFallbackBackingImageFromContentType"
            Default="">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.WeeklyForzathon}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/ForzathonWeekly_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/Trial_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalPG_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/Showcase_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/Story_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/Rivals_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/Adventure_Fallback_Gold.png"/>
        </local:MappingConverter>

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

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

        <local:MappingConverter x:Key="A_Converter_Preset_BackingImageFromItemState"
            Default="{StaticResource A_FZMaterialPreset_FlatPanel_Base}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Expired}" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Locked}" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_Desaturated}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Upcoming}" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_Desaturated}"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_BackingImage"
            TargetType="{x:Type local:FZMaterial}"
            BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
            <!--Defaults to Non-Completed Imageless Glass Panel, triggers override as needed -->
            <Style.Triggers>
                <!--Completed Imageless Glass Panel -->
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding CompletedBackingImagePath, Converter={StaticResource A_StringVisConverter}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Collapsed}" />
                        <Condition Binding="{Binding ContentType, Converter={StaticResource A_Converter_Visibility_CompletedBackingImageFromContentType}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Collapsed}" />
                        <Condition Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Complete}" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Color" Value="{StaticResource A_Color_GlassPanel_Gold}" />
                </MultiDataTrigger>
                
                <!-- Fallback Non-Completed Backing Image -->
                <DataTrigger Binding="{Binding ContentType, Converter={StaticResource A_Converter_Visibility_BackingImageFromContentType}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Visible}">
                    <Setter Property="ImageSource" Value="{Binding ContentType, Converter={StaticResource A_Converter_ImageSource_FallbackBackingImageFromContentType}}" />
                    <Setter Property="Preset" Value="{Binding ItemState, Converter={StaticResource A_Converter_Preset_BackingImageFromItemState}}"/>
                    <Setter Property="Color" Value="{StaticResource A_Color_WhitePanel}" />
                </DataTrigger>

                <!-- Fallback Completed Backing Image -->
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding ContentType, Converter={StaticResource A_Converter_Visibility_CompletedBackingImageFromContentType}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Visible}" />
                        <Condition Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Complete}" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="ImageSource" Value="{Binding ContentType, Converter={StaticResource A_Converter_ImageSource_CompletedFallbackBackingImageFromContentType}}" />
                    <Setter Property="Preset" Value="{Binding ItemState, Converter={StaticResource A_Converter_Preset_BackingImageFromItemState}}"/>
                    <Setter Property="Color" Value="{StaticResource A_Color_WhitePanel}" />
                </MultiDataTrigger>

                <!-- Custom Non-Completed Backing Image -->
                <DataTrigger Binding="{Binding BackingImagePath, Converter={StaticResource A_StringVisConverter}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Visible}">
                    <Setter Property="ImageSource" Value="{Binding BackingImagePath}" />
                    <Setter Property="Preset" Value="{Binding ItemState, Converter={StaticResource A_Converter_Preset_BackingImageFromItemState}}"/>
                    <Setter Property="Color" Value="{StaticResource A_Color_WhitePanel}" />
                </DataTrigger>

                <!-- Custom Completed Backing Image -->
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding CompletedBackingImagePath, Converter={StaticResource A_StringVisConverter}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Visible}" />
                        <Condition Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Complete}" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="ImageSource" Value="{Binding CompletedBackingImagePath}" />
                    <Setter Property="Preset" Value="{Binding ItemState, Converter={StaticResource A_Converter_Preset_BackingImageFromItemState}}"/>
                    <Setter Property="Color" Value="{StaticResource A_Color_WhitePanel}" />
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>



        <local:MappingConverter x:Key="A_Converter_ImageSource_LogoFromSeason">
            <local:MappingConverterEntry Key="{x:Static local:Season.Spring}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Seasons/Spring_Logo.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Summer}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Seasons/Summer_Logo.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Seasons/Autumn_Logo.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Winter}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Seasons/Winter_Logo.png"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_ImageSource_LogoFromContentType"
            Default="">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.WeeklyForzathon}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/WeeklyForzathon_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.DailyForzathon}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/Forzathon_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/Trial_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonPG_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonPRStunt_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonPRStunt_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonPRStunt_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonPRStunt_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonPRStunt_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonEvent_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonEvent_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonEvent_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonEvent_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonEvent_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonEvent_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonEvent_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/SeasonEvent_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/ShowcaseRemix_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/HorizonStory_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/MonthlyRivals_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Active/OnlineAdventure_Active.png"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_ImageSource_CompletedLogoFromContentType"
            Default="">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.WeeklyForzathon}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/WeeklyForzathon_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.DailyForzathon}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/Forzathon_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/Trial_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonPG_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonPRStunt_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonPRStunt_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonPRStunt_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonPRStunt_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonPRStunt_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonEvent_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonEvent_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonEvent_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonEvent_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonEvent_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonEvent_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonEvent_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/SeasonEvent_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/ShowcaseRemix_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/HorizonStory_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/MonthlyRivals_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Logos/EN/Complete/OnlineAdventure_Complete.png"/>
        </local:MappingConverter>

        <System:Double x:Key="A_Double_Width_LogoFullSize">304</System:Double>
        <System:Double x:Key="A_Double_Height_LogoFullSize">154</System:Double>
        <System:Double x:Key="A_Double_Width_LogoHalfSize">156</System:Double>
        <System:Double x:Key="A_Double_Height_LogoHalfSize">112</System:Double>
        <System:Double x:Key="A_Double_Width_LogoForzathonDaily">323</System:Double>
        <System:Double x:Key="A_Double_Height_LogoForzathonDaily">75</System:Double>

        <Thickness x:Key="A_Thickness_Margin_WeeklyForzathon">20,10,0,0</Thickness>
        <Thickness x:Key="A_Thickness_Margin_DailyForzathon">-10,-37,0,0</Thickness>
        <Thickness x:Key="A_Thickness_Margin_TheTrial">25,-20,0,0</Thickness>
        <Thickness x:Key="A_Thickness_Margin_SeasonalPlaygroundGames">10,-5,0,0</Thickness>
        <Thickness x:Key="A_Thickness_Margin_SeasonalPRStunt">5,-10,0,0</Thickness>
        <Thickness x:Key="A_Thickness_Margin_SeasonEvent">3,-5,0,0</Thickness>
        <Thickness x:Key="A_Thickness_Margin_ShowcaseRemix">3,3,0,0</Thickness>
        <Thickness x:Key="A_Thickness_Margin_HorizonStory">3,3,0,0</Thickness>
        <Thickness x:Key="A_Thickness_Margin_MonthlyRivals">3,-10,0,0</Thickness>
        <Thickness x:Key="A_Thickness_Margin_OnlineAdventure">12,-10,0,0</Thickness>

        <local:MappingConverter x:Key="A_Converter_Margin_LogoFromContentType">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.WeeklyForzathon}" Value="{StaticResource A_Thickness_Margin_WeeklyForzathon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.DailyForzathon}" Value="{StaticResource A_Thickness_Margin_DailyForzathon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="{StaticResource A_Thickness_Margin_TheTrial}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="{StaticResource A_Thickness_Margin_SeasonalPlaygroundGames}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="{StaticResource A_Thickness_Margin_SeasonalPRStunt}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="{StaticResource A_Thickness_Margin_SeasonalPRStunt}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="{StaticResource A_Thickness_Margin_SeasonalPRStunt}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="{StaticResource A_Thickness_Margin_SeasonalPRStunt}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="{StaticResource A_Thickness_Margin_SeasonalPRStunt}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="{StaticResource A_Thickness_Margin_SeasonEvent}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="{StaticResource A_Thickness_Margin_SeasonEvent}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="{StaticResource A_Thickness_Margin_SeasonEvent}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="{StaticResource A_Thickness_Margin_SeasonEvent}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="{StaticResource A_Thickness_Margin_SeasonEvent}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="{StaticResource A_Thickness_Margin_SeasonEvent}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="{StaticResource A_Thickness_Margin_SeasonEvent}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="{StaticResource A_Thickness_Margin_SeasonEvent}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="{StaticResource A_Thickness_Margin_ShowcaseRemix}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}" Value="{StaticResource A_Thickness_Margin_HorizonStory}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}" Value="{StaticResource A_Thickness_Margin_MonthlyRivals}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="{StaticResource A_Thickness_Margin_OnlineAdventure}"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_Logo"
            TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Width" Value="{StaticResource A_Double_Width_LogoFullSize}"/>
            <Setter Property="Height" Value="{StaticResource A_Double_Height_LogoFullSize}"/>
            <Setter Property="Margin" Value="{Binding ContentType, Converter={StaticResource A_Converter_Margin_LogoFromContentType}}"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="ImageSource" Value="{Binding ContentType, Converter={StaticResource A_Converter_ImageSource_LogoFromContentType}}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemSize}" Value="{x:Static FestivalPassItemSize.Half}">
                    <Setter Property="Width" Value="{StaticResource A_Double_Width_LogoHalfSize}"/>
                    <Setter Property="Height" Value="{StaticResource A_Double_Height_LogoHalfSize}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Complete}">
                    <Setter Property="ImageSource" Value="{Binding ContentType, Converter={StaticResource A_Converter_ImageSource_CompletedLogoFromContentType}}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Expired}">
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_Desaturated}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Locked}">
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_Desaturated}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>



        <local:MappingConverter x:Key="A_Converter_ImageSource_FooterIconsFromContentType"
            Default="">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/Trial_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/PlaygroundGames_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/SpeedTrap_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/SpeedZone_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/DangerSign_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/DriftZone_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/Trailblazer_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/Circuit_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/P2P_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/CrossCountryCircuit_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/CrossCountry_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/Scramble_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/DirtP2P_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/DragRace_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/StreetRace_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/Showcase_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/MonthlyRivals_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/OnlineAdventure_Active.png"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_ImageSource_CompletedFooterIconsFromContentType"
            Default="">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/Trial_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/PlaygroundGames_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/SpeedTrap_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/SpeedZone_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/DangerSign_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/DriftZone_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/Trailblazer_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/Circuit_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/P2P_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/CrossCountryCircuit_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/CrossCountry_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/Scramble_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/DirtP2P_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/DragRace_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/StreetRace_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/Showcase_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/MonthlyRivals_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/OnlineAdventure_Complete.png"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_FooterIcon"
            TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Width" Value="188"/>
            <Setter Property="Height" Value="134"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="VerticalAlignment" Value="Bottom"/>
            <Setter Property="ImageSource" Value="{Binding ContentType, Converter={StaticResource A_Converter_ImageSource_FooterIconsFromContentType}}"/>
            <Setter Property="Visibility" Value="{Binding ImageSource, Converter={StaticResource A_FZBooleanToVisibilityConverter}, RelativeSource={RelativeSource Self}}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Complete}">
                    <Setter Property="ImageSource" Value="{Binding ContentType, Converter={StaticResource A_Converter_ImageSource_CompletedFooterIconsFromContentType}}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Expired}">
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_Desaturated}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Locked}">
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_Desaturated}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Upcoming}">
                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/Locked.png"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>



        <Style x:Key="A_Style_FrameworkElement_FestivalPass_FooterContainer"
            TargetType="{x:Type FrameworkElement}">
            <Setter Property="VerticalAlignment" Value="Bottom"/>
            <Setter Property="Margin" Value="13,4"/>
            <Setter Property="Height" Value="28"/>
        </Style>

        <local:MappingConverter x:Key="A_Converter_Visibility_FooterTextFromItemState"
            Default="{x:Static Visibility.Collapsed}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Available}" Value="{x:Static Visibility.Visible}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Complete}" Value="{x:Static Visibility.Visible}"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_FooterText"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_FestivalPass_CompletableText}">
            <Setter Property="Visibility" Value="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_FooterTextFromItemState}}"/>
            <Setter Property="CapHeight" Value="16"/>
        </Style>



        <Style x:Key="A_Style_Control_FestivalPassEmptyItem"
            TargetType="{x:Type Control}"
            BasedOn="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
            <Setter Property="Focusable" Value="False" />
            <Setter Property="Template" Value="{StaticResource A_Template_Control_Carousel_EmptyItemStyle}" />
        </Style>

        <Style x:Key="A_Style_Control_FestivalPassEmptyItem_OutOfCarousel"
            TargetType="{x:Type Control}"
            BasedOn="{StaticResource A_Style_Control_FestivalPassEmptyItem}">
            <Setter Property="Margin" Value="{StaticResource A_Double_FestivalPass_CarouselItemMargin}" />
        </Style>


        <Thickness x:Key="A_Thickness_Margin_TileTitlePadding">20,0</Thickness>

        <local:MappingConverter x:Key="A_Converter_Color_TileTitleFromItemState"
            Default="{StaticResource A_Color_Tile_Title_Locked}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Available}" Value="{StaticResource A_Color_Tile_Title}"/>
        </local:MappingConverter>

        <System:Double x:Key="A_Double_MaxWidth_TileTitleWithShieldIcon">300</System:Double>

        <local:MappingConverter x:Key="A_Converter_MaxWidth_TileTitleFromContentType"
            Default="Infinity">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="{StaticResource A_Double_MaxWidth_TileTitleWithShieldIcon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="{StaticResource A_Double_MaxWidth_TileTitleWithShieldIcon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="{StaticResource A_Double_MaxWidth_TileTitleWithShieldIcon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="{StaticResource A_Double_MaxWidth_TileTitleWithShieldIcon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="{StaticResource A_Double_MaxWidth_TileTitleWithShieldIcon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="{StaticResource A_Double_MaxWidth_TileTitleWithShieldIcon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="{StaticResource A_Double_MaxWidth_TileTitleWithShieldIcon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="{StaticResource A_Double_MaxWidth_TileTitleWithShieldIcon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="{StaticResource A_Double_MaxWidth_TileTitleWithShieldIcon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="{StaticResource A_Double_MaxWidth_TileTitleWithShieldIcon}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="{StaticResource A_Double_MaxWidth_TileTitleWithShieldIcon}"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_TileTitle"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_TileTitle}">
            <Setter Property="Color" Value="{Binding ItemState, Converter={StaticResource A_Converter_Color_TileTitleFromItemState}}"/>
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="local:TextBlockInlineMarkup.Markup" Value="{Binding Title, Converter={StaticResource A_StringToUpper}}"/>
            <Setter Property="MaxWidth" Value="{Binding ContentType, Converter={StaticResource A_Converter_MaxWidth_TileTitleFromContentType}}"/>
        </Style>

        <local:MappingConverter x:Key="A_Converter_String_TileTextFromItemState">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Available}" Value="{local:Loc DestinationMenu.IDS_NotComplete}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Expired}" Value="{local:Loc DestinationMenu.IDS_Expired}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Complete}" Value="{local:Loc DestinationMenu.IDS_Complete}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Locked}" Value="{local:Loc DestinationMenu.IDS_Locked}"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_TileText"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_TileText_ImageTile}">
            <Setter Property="Color" Value="{StaticResource A_Color_Tile_Text}"/>
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="local:TextBlockInlineMarkup.Markup" Value="{Binding ItemState, Converter={StaticResource A_Converter_String_TileTextFromItemState}}"/>
            <Style.Triggers>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding SubText, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                        <Condition Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Available}"/>
                    </MultiDataTrigger.Conditions>
                    <Setter Property="local:TextBlockInlineMarkup.Markup" Value="{Binding SubText}"/>
                </MultiDataTrigger>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding SelectedCategory.ActiveIn, Converter={StaticResource A_StringVisConverter}, RelativeSource={RelativeSource AncestorType=Page}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Visible}"/>
                        <Condition Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Upcoming}"/>
                    </MultiDataTrigger.Conditions>
                    <Setter Property="local:TextBlockInlineMarkup.Markup" Value="{Binding SelectedCategory.ActiveIn, Converter={StaticResource A_Converter_StringFormatConverter}, ConverterParameter={local:Loc DestinationMenu.IDS_ActiveIn}, RelativeSource={RelativeSource AncestorType=Page}}"/>
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>



        <local:MappingConverter x:Key="A_Converter_ImageSource_FallbackBackingImageForzathonDailyFromSeason">
            <local:MappingConverterEntry Key="{x:Static local:Season.Spring}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/ForzathonDailies_Spring_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Summer}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/ForzathonDailies_Summer_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/ForzathonDailies_Autumn_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Winter}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/ForzathonDailies_Winter_Active.png"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_ImageSource_CompletedFallbackBackingImageForzathonDailyFromSeason">
            <local:MappingConverterEntry Key="{x:Static local:Season.Spring}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/ForzathonDailies_Spring_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Summer}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/ForzathonDailies_Summer_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/ForzathonDailies_Autumn_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Winter}" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Fallbacks/ForzathonDailies_Winter_Gold.png"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_BackingImage_ForzathonDaily"
            TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Color" Value="#1a000000"/>
            <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlass_Low}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Locked}">
                    <Setter Property="Color" Value="#FFFFFFFF"/>
                    <Setter Property="ImageSource" Value="{Binding Season, Converter={StaticResource A_Converter_ImageSource_FallbackBackingImageForzathonDailyFromSeason}}" />
                    <Setter Property="Preset" Value="{Binding ItemState, Converter={StaticResource A_Converter_Preset_BackingImageFromItemState}}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_TileText_ForzathonDaily"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_FestivalPass_TileText}">
            <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc DestinationMenu.IDS_ForzathonDaily_ProgressVerbose}"/>
            <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding CurrentComplete, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"/>
            <Setter Property="local:MultiStringFormatter.Param1" Value="{Binding TotalComplete, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"/>
            <Setter Property="local:TextBlockInlineMarkup.Markup" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static local:FestivalPassItemState.Complete}">
                    <Setter Property="local:TextBlockInlineMarkup.Markup" Value="{Binding ItemState, Converter={StaticResource A_Converter_String_TileTextFromItemState}}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static local:FestivalPassItemState.Locked}">
                    <Setter Property="local:TextBlockInlineMarkup.Markup" Value="{local:Loc DestinationMenu.IDS_ForzathonDaily_Progress_Unavailable}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>


        <local:MappingConverter x:Key="A_Converter_Visibility_NotLockedContentItemState" Default="{x:Static Visibility.Visible}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Locked}" Value="{x:Static Visibility.Collapsed}"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_Visibility_FutureOrActiveContentItemState"
            Default="{x:Static Visibility.Collapsed}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Available}" Value="{x:Static Visibility.Visible}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Upcoming}" Value="{x:Static Visibility.Visible}"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_Visibility_NotCompleteContentItemState"
            Default="{x:Static Visibility.Collapsed}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Available}" Value="{x:Static Visibility.Visible}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Upcoming}" Value="{x:Static Visibility.Visible}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Expired}" Value="{x:Static Visibility.Visible}"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_Bool_FutureOrActiveContentItemState"
            Default="{StaticResource A_Boolean_False}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Available}" Value="{StaticResource A_Boolean_True}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Upcoming}" Value="{StaticResource A_Boolean_True}"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_Visibility_ActiveOrCompleteContentItemState"
            Default="{x:Static Visibility.Collapsed}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Available}" Value="{x:Static Visibility.Visible}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Complete}" Value="{x:Static Visibility.Visible}"/>
        </local:MappingConverter>
        
        <Thickness x:Key="A_Thickness_Margin_TintedPanelFullWithFooterIcon">60,23</Thickness>
        <Thickness x:Key="A_Thickness_Margin_TintedPanelHalfWithFooterIcon">60,18</Thickness>
        <Thickness x:Key="A_Thickness_Margin_TintedPanelFull">23,23</Thickness>

        <local:MappingConverter x:Key="A_Converter_Thickness_MarginTintedPanelFromItemSize"
            Default="{StaticResource A_Thickness_Margin_TintedPanelFullWithFooterIcon}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemSize.Half}" Value="{StaticResource A_Thickness_Margin_TintedPanelHalfWithFooterIcon}"/>
        </local:MappingConverter>

        <Thickness x:Key="A_Thickness_Margin_FrameContents">4</Thickness>
        <Thickness x:Key="A_Thickness_Margin_FrameWithFooterContents">4,4,4,32</Thickness>

        <local:MappingConverter x:Key="A_Converter_Thickness_ContentsMarginFromFrameStyle"
            Default="{StaticResource A_Thickness_Margin_FrameContents}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassFrameStyle.TallWithFooter}" Value="{StaticResource A_Thickness_Margin_FrameWithFooterContents}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassFrameStyle.TallFooterOnly}" Value="{StaticResource A_Thickness_Margin_FrameWithFooterContents}"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_TintedPanel"
            TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Color" Value="{StaticResource A_Color_Tile_TintedPanel}"/>
            <Setter Property="VerticalAlignment" Value="Bottom"/>
            <Setter Property="Margin" Value="{Binding FrameStyle, Converter={StaticResource A_Converter_Thickness_ContentsMarginFromFrameStyle}}"/>
            <Setter Property="Visibility" Value="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_FutureOrActiveContentItemState}}"/>
        </Style>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_RewardAndDescriptionPanel"
            TargetType="{x:Type local:FZMaterial}"
            BasedOn="{StaticResource A_Style_FZMaterial_FestivalPass_TintedPanel}">
           <Setter Property="Visibility" Value="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_NotCompleteContentItemState}}"/>
            <Style.Triggers>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding Description, Converter={StaticResource A_StringVisConverter}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Collapsed}"/>
                        <Condition Binding="{Binding TopReward, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Collapsed}"/>
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Visibility" Value="{x:Static Visibility.Collapsed}"/>
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_NextHorizonStoryChapterPanel"
            TargetType="{x:Type local:FZMaterial}"
            BasedOn="{StaticResource A_Style_FZMaterial_FestivalPass_TintedPanel}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding NextChapterName, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Collapsed}">
                    <Setter Property="Visibility" Value="{x:Static Visibility.Collapsed}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_StackPanel_FestivalPass_TintedPanelContainer"
            TargetType="{x:Type StackPanel}">
            <Setter Property="Orientation" Value="Vertical"/>
            <Setter Property="Margin" Value="{Binding ItemSize, Converter={StaticResource A_Converter_Thickness_MarginTintedPanelFromItemSize}}"/>
        </Style>

        <Style x:Key="A_Style_FrameworkElement_FestivalPass_RewardAndDescriptionSeparator"
            TargetType="{x:Type FrameworkElement}">
            <Setter Property="Height" Value="24"/>
            <Setter Property="Visibility" Value="{x:Static Visibility.Collapsed}"/>
            <Style.Triggers>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding Description, Converter={StaticResource A_StringVisConverter}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Visible}"/>
                        <Condition Binding="{Binding TopReward, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Visible}"/>
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Visibility" Value="{x:Static Visibility.Visible}"/>
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>



        <Style x:Key="A_Style_FZTextBlock_FestivalPass_RewardTitle"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
            <Setter Property="Text" Value="{local:Loc DestinationMenu.IDS_Reward}"/>
            <Setter Property="Color" Value="{StaticResource A_Color_Tile_Title_Alternate}"/>
            <Setter Property="CapHeight" Value="20"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="Stretch" Value="Uniform"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="TextAlignment" Value="Center"/>
            <Setter Property="Margin" Value="0"/>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_RewardDescription"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_HorizonC}">
            <Setter Property="Text" Value="{Binding TopReward.Description}"/>
            <Setter Property="Color" Value="{StaticResource A_Color_Tile_Title_Alternate}"/>
            <Setter Property="CapHeight" Value="13"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="Stretch" Value="Uniform"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="TextAlignment" Value="Center"/>
            <Setter Property="Margin" Value="0"/>
        </Style>

        <System:Double x:Key="A_Double_MaxHeight_ItemDescription_Half">37</System:Double>
        <System:Double x:Key="A_Double_MaxHeight_ItemDescription_Full">74</System:Double>

        <local:MappingConverter x:Key="A_Converter_MaxHeight_ItemDescriptionFromItemSize"
            Default="{StaticResource A_Double_MaxHeight_ItemDescription_Half}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemSize.Full}" Value="{StaticResource A_Double_MaxHeight_ItemDescription_Full}"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_ItemDescription"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_HorizonD}">
            <Setter Property="Text" Value="{Binding Description}"/>
            <Setter Property="Visibility" Value="{Binding Description, Converter={StaticResource A_StringVisConverter}}"/>
            <Setter Property="Color" Value="{StaticResource A_Color_Tile_Title_Alternate}"/>
            <Setter Property="CapHeight" Value="13"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="Stretch" Value="Uniform"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="TextAlignment" Value="Center"/>
            <Setter Property="MaxHeight" Value="{Binding ItemSize, Converter={StaticResource A_Converter_MaxHeight_ItemDescriptionFromItemSize}}"/>
            <Setter Property="Margin" Value="0"/>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_ItemPillText" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_FestivalPass_ItemDescription}">
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="FontFamily" Value="Horizon_A"/>
            <Setter Property="Visibility" Value="{Binding PillText, Converter={StaticResource A_StringVisConverter}}"/>
            <Setter Property="Color" Value="{StaticResource A_Color_White}"/>
        </Style>

        <Style x:Key="A_Style_FZMaterial_PillBox" TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Height" Value="30" />
            <Setter Property="MaxWidth" Value="200"/>
            <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_Item_Pill}"/>
            <Setter Property="Visibility" Value="{Binding PillText, Converter={StaticResource A_StringVisConverter}}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static local:FestivalPassItemState.Expired}">
                    <Setter Property="Visibility" Value="Collapsed"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static local:FestivalPassItemState.Locked}">
                    <Setter Property="Visibility" Value="Collapsed"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static local:FestivalPassItemState.Complete}">
                    <Setter Property="Visibility" Value="Collapsed"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_TintedPanel_Header"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
            <Setter Property="Color" Value="{StaticResource A_Color_Tile_Title_Alternate}"/>
            <Setter Property="CapHeight" Value="21"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="Stretch" Value="Uniform"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="TextAlignment" Value="Center"/>
            <Setter Property="Margin" Value="0"/>
        </Style>



        <DataTemplate DataType="{x:Type local:FestivalPassSeparatorItem}">
            <Control Focusable="False"
                Template="{StaticResource A_Template_Separator_CarouselItem}"
                Height="{StaticResource A_Double_FestivalPass_MaxCarouselItemHeight}"
                Width="12"/>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassEmptyItem}">
            <Control Style="{StaticResource A_Style_Control_FestivalPassEmptyItem}"/>
        </DataTemplate>

        <System:Double x:Key="A_Double_Fallback_InvalidComparison">-1</System:Double>
        <System:Double x:Key="A_Double_Fallback_ProgressRatio">0.0</System:Double>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_CompletionProgressHeader_Common"
            TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Height" Value="72" />
            <Setter Property="local:CompareValue.A" Value="{Binding CompletionRatio, FallbackValue={StaticResource A_Double_Fallback_ProgressRatio}}" />
            <Setter Property="local:CompareValue.B" Value="{Binding Rewards[0].Ratio, FallbackValue={StaticResource A_Double_Fallback_ProgressRatio}}" />
            <Style.Triggers>
                <!-- Compare against second reward if there are two rewards -->
                <DataTrigger Binding="{Binding Rewards.Count}" Value="2">
                    <Setter Property="local:CompareValue.B" Value="{Binding Rewards[1].Ratio}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding Path=(local:CompareValue.Result), RelativeSource={RelativeSource Self}, FallbackValue={StaticResource A_Double_Fallback_InvalidComparison}}" Value="1">
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}" />
                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/DescriptionHeader_Gold.png" />
                </DataTrigger>
                <DataTrigger Binding="{Binding Path=(local:CompareValue.Result), RelativeSource={RelativeSource Self}, FallbackValue={StaticResource A_Double_Fallback_InvalidComparison}}" Value="0">
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}" />
                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/DescriptionHeader_Gold.png" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_CompletionProgressHeader"
            TargetType="{x:Type local:FZMaterial}"
               BasedOn="{StaticResource A_Style_FZMaterial_FestivalPass_CompletionProgressHeader_Common}">
            <Setter Property="Preset" Value="{Binding Season, Converter={StaticResource A_Converter_FZMaterialPreset_HeaderFromSeason}}" />
        </Style>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_SeriesCompletionProgressHeader"
               TargetType="{x:Type local:FZMaterial}"
               BasedOn="{StaticResource A_Style_FZMaterial_FestivalPass_CompletionProgressHeader_Common}">
            <Setter Property="Preset" Value="{StaticResource A_Preset_FZMaterial_Series_FestivalPassHeader}" />
        </Style>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_CompletionProgressFooter"
            TargetType="{x:Type local:FZMaterial}"
            BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_Interactive}">
            <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterBottomOnly}"/>
            <Setter Property="Height" Value="223"/>
        </Style>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_CompletionProgressDivider_Common"
               TargetType="{x:Type local:FZMaterial}"
               BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
            <Setter Property="Height" Value="35" />
            <Setter Property="local:CompareValue.A" Value="{Binding CompletionRatio}" />
            <Setter Property="local:CompareValue.B" Value="{Binding Rewards[0].Ratio}" />
            <Style.Triggers>
                <!-- Compare against second reward if there are two rewards -->
                <DataTrigger Binding="{Binding Rewards.Count}" Value="2">
                    <Setter Property="local:CompareValue.B" Value="{Binding Rewards[1].Ratio}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding Path=(local:CompareValue.Result), RelativeSource={RelativeSource Self}}" Value="1">
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}" />
                    <Setter Property="local:BindingProxy.A" Value="Gold" />
                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/DescriptionDivider_Gold.png" />
                </DataTrigger>
                <DataTrigger Binding="{Binding Path=(local:CompareValue.Result), RelativeSource={RelativeSource Self}}" Value="0">
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}" />
                    <Setter Property="local:BindingProxy.A" Value="Gold" />
                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/Frames/DescriptionDivider_Gold.png" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_SeriesCompletionProgressDivider"
               TargetType="{x:Type local:FZMaterial}"
               BasedOn="{StaticResource A_Style_FZMaterial_FestivalPass_CompletionProgressDivider_Common}">
            <Setter Property="Preset" Value="{StaticResource A_Preset_FZMaterial_SeriesProgress_FestivalPassGradient}" />
        </Style>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_CompletionProgressDivider"
               TargetType="{x:Type local:FZMaterial}"
               BasedOn="{StaticResource A_Style_FZMaterial_FestivalPass_CompletionProgressDivider_Common}">
            <Setter Property="Preset" Value="{Binding Season, Converter={StaticResource A_Converter_FZMaterialPreset_GradientFromSeason}}" />
        </Style>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_CompletionProgressSeasonLogo"
            TargetType="{x:Type local:FZMaterial}">
            <Setter Property="ImageSource" Value="{Binding Season, Converter={StaticResource A_Converter_ImageSource_LogoFromSeason}}"/>
            <Setter Property="Width" Value="404"/>
            <Setter Property="Height" Value="158"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
        </Style>

        <ControlTemplate x:Key="A_ControlTemplate_ContentControl_Infographic_Radial_FestivalPass"
                         TargetType="{x:Type Control}">
            <Grid Margin="0,0,0,-0.5">
                <local:FZMaterial x:Name="RadialImage"
                                  Stretch="Uniform"
                                  Width="168"
                                  Height="168"
                                  ImageSource="{Binding Season, Converter={StaticResource A_Converter_InfographicIconFromSeason}, FallbackValue=Game:\Media\UI\Textures\Data_Bound\Infographics\Series_Progress.png}">

                    <local:FZMaterial x:Name="RadialBar"
                                      Width="275"
                                      Height="275"
                                      HorizontalAlignment="Center"
                                      VerticalAlignment="Center"
                                      local:BlendValue.Output="0.87"
                                      local:BlendValue.Input="{Binding CompletionRatio, Converter={StaticResource A_PercentageToDecimalConverter}}"
                                      local:BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_Infographic_BlendValueInputChanged}">
                        <local:FZMaterial.Preset>
                            <local:FZMaterialPresetRadialBar TargetRatio="1.0"
                                                             ShadowIntensity="0"
                                                             TipGlowFade="0.0"
                                                             AngleAmount="0"
                                                             BarWidth="0.140"
                                                             BackgroundColor="#00FFFFFF"
                                                             Ratio="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource FindAncestor, AncestorType=local:FZMaterial}}" />
                        </local:FZMaterial.Preset>
                    </local:FZMaterial>

                </local:FZMaterial>



            </Grid>
        </ControlTemplate>

        <ItemsPanelTemplate x:Key="A_Template_RewardsPanel">
            <UniformGrid IsItemsHost="True"
                         Columns="{Binding Rewards.Count}"
                         HorizontalAlignment="Center" />
        </ItemsPanelTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassReward}">
            <StackPanel Margin="10,0,2,2"
                        VerticalAlignment="Top">
                <local:FZTextBlock Text="{Binding Percentage, Converter={StaticResource A_Converter_StringFormatConverter}, ConverterParameter={local:Loc DestinationMenu.IDS_SeasonProgress_CompleteFormat}}"
                                   CapHeight="14"
                                   Color="#fff"
                                   Margin="0,9,0,9"
                                   HorizontalAlignment="Center" />
                <ContentPresenter Content="{Binding}" x:Name="thing"
                                  ContentTemplate="{StaticResource A_ControlTemplate_RewardPreview}"
                                  local:CompareValue.A="{Binding Ratio}"
                                  local:CompareValue.B="{Binding DataContext.CompletionRatio, RelativeSource={RelativeSource AncestorType=local:TickerItemsControl}}"/>
            </StackPanel>
            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding DataContext.ItemState, RelativeSource={RelativeSource AncestorType=local:TickerItemsControl}}"
                             Value="{x:Static local:FestivalPassItemState.Expired}">
                    <Setter TargetName="thing"
                            Property="local:BindingProxy.A"
                            Value="Grey" />
                </DataTrigger>
                <DataTrigger Binding="{Binding Path=(local:CompareValue.Result), ElementName=thing}"
                             Value="0">
                    <Setter TargetName="thing"
                            Property="local:BindingProxy.A"
                            Value="Gold" />
                </DataTrigger>
                <DataTrigger Binding="{Binding Path=(local:CompareValue.Result), ElementName=thing}"
                             Value="-1">
                    <Setter TargetName="thing"
                            Property="local:BindingProxy.A"
                            Value="Gold" />
                </DataTrigger>
            </DataTemplate.Triggers>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassSeriesCompletionProgressItem}">
            <Grid Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
                <DockPanel>
                    <local:FZMaterial DockPanel.Dock="Top"
                                      Style="{StaticResource A_Style_FZMaterial_FestivalPass_SeriesCompletionProgressHeader}" />
                    <local:FZMaterial DockPanel.Dock="Bottom"
                                      Style="{StaticResource A_Style_FZMaterial_FestivalPass_CompletionProgressFooter}">
                        <local:TickerItemsControl ItemsPanel="{StaticResource A_Template_RewardsPanel}"
                                                  HorizontalAlignment="Center"
                                                  ItemsSource="{Binding Rewards}" />
                    </local:FZMaterial>
                    <local:FZMaterial DockPanel.Dock="Bottom"
                                      x:Name="Divider"
                                      Style="{StaticResource A_Style_FZMaterial_FestivalPass_SeriesCompletionProgressDivider}">
                        <local:FZTextBlock Text="{local:Loc DestinationMenu.IDS_SeriesProgress_CompletionBonus}"
                                           Style="{StaticResource A_Style_FZTextBlock_FestivalPass_CompletableText_Progress}"
                                           CapHeight="14"
                                           HorizontalAlignment="Center"
                                           VerticalAlignment="Center" />
                    </local:FZMaterial>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_GlassPanel_Interactive}">

                        <Grid>
                            <StackPanel VerticalAlignment="Top">
                                <Decorator Height="66" />
                                <Control Template="{StaticResource A_ControlTemplate_ContentControl_Infographic_Radial_FestivalPass}"
                                         VerticalAlignment="Top" />
                                <Decorator Height="34" />
                                <local:FZTextBlock x:Name="StateText"
                                                   Text="{local:Loc DestinationMenu.IDS_SeriesProgress}"
                                                   CapHeight="15"
                                                   Color="#fff"
                                                   HorizontalAlignment="Center" />
                                <Decorator Height="7" />
                                <local:FZTextBlock local:TextBlockInlineMarkup.ResourceBaseName="A_Style_Markup_SeasonState_"
                                                   local:TextBlockInlineMarkup.Markup="{Binding CompletionString, Converter={StaticResource A_Converter_StringFormatConverter}, ConverterParameter={local:Loc DestinationMenu.IDS_SeasonProgress_CompleteFormat}}"
                                                   CapHeight="24"
                                                   Color="{StaticResource A_Color_FestivalPass_SeriesProgress_Text}"
                                                   HorizontalAlignment="Center" />
                            </StackPanel>
                        </Grid>

                    </local:FZMaterial>
                </DockPanel>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_CompletionProgressSeasonLogo}" 
                                  ImageSource="game:\Media\UI\Textures\Data_Bound\Series7\FestivalPass\Description_Header\EN\FestivalPlaylist_Logo.png"/>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassCompletionProgressItem}">
            <Grid Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
                <DockPanel>
                    <local:FZMaterial DockPanel.Dock="Top"
                                      Style="{StaticResource A_Style_FZMaterial_FestivalPass_CompletionProgressHeader}" />
                    <local:FZMaterial DockPanel.Dock="Bottom"
                                      Style="{StaticResource A_Style_FZMaterial_FestivalPass_CompletionProgressFooter}">
                        <local:TickerItemsControl ItemsPanel="{StaticResource A_Template_RewardsPanel}"
                                                  HorizontalAlignment="Center"
                                                  ItemsSource="{Binding Rewards}" />
                    </local:FZMaterial>
                    <local:FZMaterial DockPanel.Dock="Bottom"
                                      x:Name="Divider"
                                      Style="{StaticResource A_Style_FZMaterial_FestivalPass_CompletionProgressDivider}">
                        <local:FZTextBlock Text="{local:Loc DestinationMenu.IDS_SeasonProgress_CompletionBonus}"
                                           Style="{StaticResource A_Style_FZTextBlock_FestivalPass_CompletableText_Progress}"
                                           CapHeight="14"
                                           HorizontalAlignment="Center"
                                           VerticalAlignment="Center"/>
                    </local:FZMaterial>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_GlassPanel_Interactive}">

                        <Grid>
                            <StackPanel VerticalAlignment="Top">
                                <Decorator Height="66" />
                                <Control Template="{StaticResource A_ControlTemplate_ContentControl_Infographic_Radial_FestivalPass}"
                                         VerticalAlignment="Top" />
                                <Decorator Height="34" />
                                <local:FZTextBlock x:Name="StateText"
                                               local:TextBlockInlineMarkup.ResourceBaseName="A_Style_Markup_SeasonState_"
                                               local:TextBlockInlineMarkup.Markup="{Binding SelectedCategory.ActiveIn, Converter={StaticResource A_Converter_StringFormatConverter}, ConverterParameter={local:Loc DestinationMenu.IDS_SeasonProgress_ActiveIn}, RelativeSource={RelativeSource AncestorType=Page}}"
                                               CapHeight="15"
                                               Color="#fff"
                                               HorizontalAlignment="Center" />
                                <Decorator Height="7" />
                                <local:FZTextBlock x:Name="ProgressText"
                                                   local:TextBlockInlineMarkup.ResourceBaseName="A_Style_Markup_SeasonState_"
                                                   local:TextBlockInlineMarkup.Markup="{Binding CompletionString, Converter={StaticResource A_Converter_StringFormatConverter}, ConverterParameter={local:Loc DestinationMenu.IDS_SeasonProgress_CompleteFormat}}"
                                                   CapHeight="24"
                                                   Color="{Binding Season, Converter={StaticResource A_Converter_Season_To_Color}}"
                                                   HorizontalAlignment="Center" />
                            </StackPanel>
                        </Grid>

                    </local:FZMaterial>
                </DockPanel>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_CompletionProgressSeasonLogo}" />
            </Grid>
            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static FestivalPassItemState.Complete}">
                    <Setter TargetName="StateText"
                            Property="local:TextBlockInlineMarkup.Markup"
                            Value="{local:Loc DestinationMenu.IDS_SeasonProgress}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static FestivalPassItemState.Expired}">
                    <Setter TargetName="StateText"
                            Property="local:TextBlockInlineMarkup.Markup"
                            Value="{local:Loc DestinationMenu.IDS_SeasonProgress_Ended}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static FestivalPassItemState.Available}">
                    <Setter TargetName="StateText"
                            Property="local:TextBlockInlineMarkup.Markup"
                            Value="{local:Loc DestinationMenu.IDS_SeasonProgress}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding Source={StaticResource A_Visibility_ShowForHighContrastOnly}}" Value="{x:Static Visibility.Visible}">
                    <Setter TargetName="ProgressText"
                            Property="Color"
                            Value="#FFFFFFFF" />
                </DataTrigger>
            </DataTemplate.Triggers>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassForzathonWeeklyItem}">
            <Grid Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
                <Grid Margin="{StaticResource A_Thickness_TileBorderedBackground}">
                    <local:FZMaterial x:Name="BackingImage" Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage}">
                        <Grid Visibility="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_FutureOrActiveContentItemState}}">
                            <local:FZMaterial Height="246" Color="{StaticResource A_Color_ForzathonWeeklyDescriptionPanelBacking}" Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterBottomOnly}" VerticalAlignment="Bottom"/>
                            <DockPanel VerticalAlignment="Bottom" Margin="6,0,6,40" HorizontalAlignment="Center" Height="206">
                                <local:ItemsSelector x:Name="DotSelector" DockPanel.Dock="Bottom" DataContext="{Binding CurrentWeeklyChallenge}"
                                                     SelectedIndex="{Binding CurrentChallengeIndex}"
                                                     ItemsSource="{Binding ChildChallenges}"
                                                     Style="{StaticResource A_Style_ItemsSelector_SelectionDots_Large_Forzathon}"/>
                                <ContentControl Style="{StaticResource A_Style_ContentControl_ForzathonChallengeSelector}"
                                    Content="{Binding SelectedItem, ElementName=DotSelector}"
                                    Tag="{Binding SelectedIndex, ElementName=DotSelector}" />
                            </DockPanel>
                        </Grid>
                    </local:FZMaterial>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_FrameStyle}">
                        <Grid>
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_Logo}"/>
                        </Grid>
                    </local:FZMaterial>
                    <DockPanel VerticalAlignment="Bottom" Margin="12,2" LastChildFill="True" Visibility="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_ActiveOrCompleteContentItemState}}">
                        <StackPanel HorizontalAlignment="Right" DockPanel.Dock="Right" VerticalAlignment="Center">
                            <local:FZTextBlock Color="{StaticResource A_Color_White}" FontFamily="Horzion_A" CapHeight="16"
                                               local:MultiStringFormatter.Format="{local:Loc ForzaEvents.IDS_ForzaEvents_Challenge_ChapterX_Of_Y}"
                                               local:MultiStringFormatter.Param0="{Binding CurrentChapterNumber, FallbackValue=1}"
                                               local:MultiStringFormatter.Param1="{Binding CurrentWeeklyChallenge.ChildChallenges.Count}"
                                               Text="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>

                        </StackPanel>
                        <Decorator Width="16" DockPanel.Dock="Right"/>
                        <Control Template="{StaticResource A_ControlTemplate_ForzathonPoint_Badge}" DataContext="{Binding CurrentWeeklyChallenge}" />
                    </DockPanel>
                </Grid>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TileBackground_NoAlternate}"
                    Preset="{StaticResource A_FZMaterialPresetRoundtangleStroke_TileBackground_BorderedImage}">
                    <Grid>
                        <Decorator VerticalAlignment="Bottom"
                            Height="{StaticResource A_Double_Size_Tile_TitlePanel}"
                            Margin="{StaticResource A_Thickness_Margin_TileTitlePadding}">
                            <StackPanel Orientation="Vertical"
                            VerticalAlignment="Center">
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TileTitle}"/>
                                <Decorator Height="{local:LocalizedResource A_Double_TileTextSpacer}"/>
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TileText}"/>
                            </StackPanel>
                        </Decorator>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_FooterIcon}"/>
                    </Grid>
                </local:FZMaterial>
            </Grid>
        </DataTemplate>

        <ItemsPanelTemplate x:Key="A_Template_DailiesPanel">
            <StackPanel IsItemsHost="true" />
        </ItemsPanelTemplate>

        <Style TargetType="local:FZMaterial"
               x:Key="A_Style_FZMaterial_Daily_Icon"
               BasedOn="{StaticResource A_Style_FZMaterial_ForzaEventIcon}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Complete}">
                    <Setter Property="Color"
                            Value="{StaticResource A_Color_FestivalPass_Complete_Text}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <local:MappingConverter x:Key="A_Converter_HeaderColour">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}"
                                         Value="#e0e0e0" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="#e0e0e0" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="#ffff" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="#33ffffff" />
        </local:MappingConverter>

        <Style TargetType="local:FZMaterial"
               x:Key="A_Style_FZMaterial_Daily_Header">
            <Setter Property="ImageSource"
                    Value="game:\Media\UI\Textures\Data_Bound\Series6\FestivalPass\Frames\Daily_Header.png" />
            <Setter Property="Stretch"
                    Value="Uniform" />
            <Setter Property="GreedyMeasure"
                    Value="True" />
            <Setter Property="VerticalAlignment"
                    Value="Top" />
            <Setter Property="Color"
                    Value="{Binding State, Converter={StaticResource A_Converter_HeaderColour}}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Complete}">
                    <Setter Property="ImageSource"
                            Value="game:\Media\UI\Textures\Data_Bound\Series6\FestivalPass\Frames\Daily_Header_Gold.png" />
                </DataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Active}">
                    <Setter Property="Preset"
                            Value="{StaticResource A_Preset_FZMaterial_Forzathon_FestivalPassGradient}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.NotStarted}">
                    <Setter Property="Preset"
                            Value="{StaticResource A_Preset_FZMaterial_Forzathon_FestivalPassGradient}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <local:MappingConverter x:Key="A_Converter_FooterImage"
                                Default="game:\Media\UI\Textures\Data_Bound\Series6\FestivalPass\Frames\Daily_Footer.png">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="game:\Media\UI\Textures\Data_Bound\Series6\FestivalPass\Frames\Daily_Footer_Gold.png" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_FooterColour">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}"
                                         Value="{StaticResource A_Color_FestivalPass_DailyForzathonFooter}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="{StaticResource A_Color_FestivalPass_DailyForzathonFooter}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="#ffff" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="#33ffffff" />
        </local:MappingConverter>

        <Style TargetType="local:FZMaterial"
               x:Key="A_Style_FZMaterial_Daily_Footer">
            <Setter Property="ImageSource"
                    Value="game:\Media\UI\Textures\Data_Bound\Series6\FestivalPass\Frames\Daily_Footer.png" />
            <Setter Property="Stretch"
                    Value="Uniform" />
            <Setter Property="GreedyMeasure"
                    Value="True" />
            <Setter Property="VerticalAlignment"
                    Value="Bottom" />
            <Setter Property="Color"
                    Value="{Binding State, Converter={StaticResource A_Converter_FooterColour}}" />
            <Setter Property="ImageSource"
                    Value="{Binding State, Converter={StaticResource A_Converter_FooterImage}}" />
        </Style>

        <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_Daily_Border_Current"
                                                      Thickness="5"
                                                      CornerRadius="{StaticResource A_CornerRadius_Outer_All}" />

        <local:MappingConverter x:Key="A_Converter_BorderPreset">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangleStroke_Daily_Border_Current}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangleStroke_Daily_Border_Current}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangleStroke_Daily_Border_Current}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_InnerAll}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_BorderColour">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}"
                                         Value="#ffff" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="#ffff" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="#ffff" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="#4D969696" />
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_DailyBorder"
               TargetType="{x:Type local:FZMaterial}"
               BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
            <Setter Property="Preset"
                    Value="{Binding State, Converter={StaticResource A_Converter_BorderPreset}}" />
            <Setter Property="Color"
                    Value="{Binding State, Converter={StaticResource A_Converter_BorderColour}}" />
        </Style>

        <local:MappingConverter x:Key="A_Converter_BackingPreset">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}"
                                         Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_InnerAll}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_BackingColour">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}"
                                         Value="#ffff" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="#ffff" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="#ffff" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="#4D969696" />
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_DailyBacking"
               TargetType="{x:Type local:FZMaterial}"
               BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
            <Setter Property="Preset"
                    Value="{Binding State, Converter={StaticResource A_Converter_BackingPreset}}" />
            <Setter Property="Color"
                    Value="{Binding State, Converter={StaticResource A_Converter_BackingColour}}" />
        </Style>

        <local:MappingConverter x:Key="A_Converter_Description">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}"
                                         Value="{StaticResource A_Color_Tile_Text}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="{StaticResource A_Color_Tile_Text}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="{StaticResource A_Color_Tile_Text}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="#ffff" />
        </local:MappingConverter>
        
        <local:MappingConverter x:Key="A_Converter_HeaderTextColor">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}"
                                         Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_TitleText}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_TitleText}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="{StaticResource A_Color_FestivalPass_Complete_Text}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_TitleText}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_IsNotNull"
                                Default="{StaticResource A_Boolean_True}">
            <local:MappingConverterEntry Key="{x:Null}"
                                         Value="{StaticResource A_Boolean_False}" />
        </local:MappingConverter>

        <Style x:Key="A_Style_FZRun_Daily_NUM"
               TargetType="local:FZRun">
            <Setter Property="FontFamily"
                    Value="Horizon_A" />
        </Style>
        
        <!-- Daily Challenge Template -->
        <DataTemplate x:Key="A_DataTemplate_Daily">
            <local:FZMaterial x:Name="Border"
                              Width="358"
                              Height="157"
                              Margin="6,3"
                              Style="{StaticResource A_Style_FZMaterial_DailyBorder}">
                <local:FZMaterial x:Name="Background"
                                  Margin="4.5"
                                  Style="{StaticResource A_Style_FZMaterial_DailyBacking}">
                    <Grid>

                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Daily_Header}"
                                          x:Name="DailyHeader" />
                        
                        <!-- Icon -->
                        <local:FZMaterial Width="96"
                                          Height="96"
                                          VerticalAlignment="Top"
                                          HorizontalAlignment="Left"
                                          Margin="7,10,0,0"
                                          Style="{StaticResource A_Style_FZMaterial_Daily_Icon}" />

                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Daily_Footer}"
                                              Stretch="Uniform"
                                              VerticalAlignment="Bottom" />
                        
                        <DockPanel Margin="12,12">
                            
                            <Decorator Width="96"
                                       DockPanel.Dock="Left"
                                       Margin="7,10,0,0" />
                            <!-- Title -->
                            <Decorator Height="19"
                                       DockPanel.Dock="Top">
                                <local:FZTextBlock HorizontalAlignment="Left"
                                                   Text="{Binding Title, Converter={StaticResource A_StringToUpper}}"
                                                   CapHeight="19"
                                                   Color="{Binding State, Converter={StaticResource A_Converter_HeaderTextColor}}"
                                                   VerticalAlignment="Center"
                                                   Effect="{StaticResource A_Effect_HighContrastModeDropShadow}" />
                            </Decorator>
                            <Decorator Height="20"
                                       DockPanel.Dock="Top" />
                            <local:FZTextBlock HorizontalAlignment="Left"
                                               TextAlignment="Left"
                                               local:TextBlockInlineMarkup.Markup="{Binding Description}"
                                               local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_ForzaEvents_Challenge_"
                                               CapHeight="13"
                                               MaxHeight="60"
                                               VerticalAlignment="Top"
                                               StretchDirection="DownOnly"
                                               TextWrapping="Wrap"
                                               Color="{Binding State, Converter={StaticResource A_Converter_Description}}"
                                               FontFamily="Horizon_D" />

                        </DockPanel>


                        <!-- Time -->
                        <Grid VerticalAlignment="Bottom"
                              Margin="0,0,0,0">
                            <!--local:FZTextBlock HorizontalAlignment="Left"
                                               Text="{Binding State, Converter={StaticResource A_MappingConverter_ForzaEvents_DailyChallenge_StateTimeString}}"
                                               CapHeight="16"
                                               FontFamily="Horizon_A"
                                               Color="{StaticResource A_Color_ForzaEvents_DailyChallenge_Text}" />
                            <local:FZTextBlock HorizontalAlignment="Right"
                                               local:TextBlockInlineMarkup.Markup="{Binding Time}"
                                               local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_ForzaEvents_Challenge_"
                                               CapHeight="16"
                                               FontFamily="Horizon_B"
                                               Color="{StaticResource A_Color_ForzaEvents_DailyChallenge_Text}" /-->
                            <local:FZTextBlock HorizontalAlignment="Right"
                                               VerticalAlignment="Center"
                                               Margin="8"
                                               Text="{local:Loc DestinationMenu.IDS_ForzathonDaily_Completed}"
                                               Visibility="Hidden"
                                               x:Name="CompletedText"
                                               CapHeight="16"
                                               Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                               Color="{StaticResource A_Color_FestivalPass_Complete_Text}" />
                            <local:FZTextBlock HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               Margin="8"
                                               Text="{local:Loc DestinationMenu.IDS_Expired_Upper}"
                                               Visibility="Hidden"
                                               x:Name="ExpiredText"
                                               CapHeight="16"
                                               Style="{StaticResource A_Style_FZTextBlock_HorizonB}"
                                               Color="{StaticResource A_Color_ForzaEvents_DailyChallenge_Text}" />
                            
                            <local:FZTextBlock HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               Margin="8"
                                               local:TextBlockInlineMarkup.Markup="{Binding Time, Converter={StaticResource A_Converter_StringFormatConverter}, ConverterParameter={local:Loc DestinationMenu.IDS_ActiveIn}}"
                                               local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_Daily_"
                                               Visibility="Hidden"
                                               x:Name="TimeText"
                                               CapHeight="16"
                                               Style="{StaticResource A_Style_FZTextBlock_HorizonB}"
                                               Color="{StaticResource A_Color_ForzaEvents_DailyChallenge_Text}" />
                            <Grid Background="Red" Visibility="Hidden">
                            <local:FZTextBlock HorizontalAlignment="Left"
                                               VerticalAlignment="Center"
                                               Margin="8"
                                               local:TextBlockInlineMarkup.Markup="{Binding Time, Converter={StaticResource A_Converter_StringFormatConverter}, ConverterParameter={local:Loc DestinationMenu.IDS_ActiveIn}}"
                                               local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_Daily_"
                                               x:Name="TimeText2"
                                               CapHeight="16"
                                               Style="{StaticResource A_Style_FZTextBlock_HorizonB}"
                                               Color="{StaticResource A_Color_ForzaEvents_DailyChallenge_Text}" />
                            </Grid>

                            <local:FZTextBlock x:Name="Progress"
                                               HorizontalAlignment="Right"
                                               VerticalAlignment="Center"
                                               Margin="8"
                                               Text="{Binding ProgressString}"
                                               Style="{StaticResource A_Style_FZTextBlock_ForzaEvents_DailyChallenge_ProgressText}"
                                               Color="#666"
                                               Visibility="Hidden" />
                            
                            <Control Template="{StaticResource A_ControlTemplate_ForzathonPoint_Badge}"
                                     Focusable="False"
                                     x:Name="Points"
                                     HorizontalAlignment="Left"
                                     Margin="8,-4">
                                <FrameworkElement.Resources>
                                    <Color x:Key="A_Colour_Dynamic_ForzathonPoints">#666</Color>
                                    <Color x:Key="A_Colour_Dynamic_ForzathonPointsComplete">#D4332A02</Color>
                                </FrameworkElement.Resources>
                            </Control>
                        </Grid>

                    </Grid>
                </local:FZMaterial>
            </local:FZMaterial>
            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Complete}">
                    <Setter TargetName="CompletedText"
                            Property="Visibility"
                            Value="Visible" />
                </DataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Active}">
                    <Setter TargetName="Progress"
                            Property="Visibility"
                            Value="Visible" />
                    <Setter TargetName="Points"
                            Property="Visibility"
                            Value="Visible" />
                </DataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Expired}">
                    <Setter TargetName="Points"
                            Property="Visibility"
                            Value="Hidden" />
                </DataTrigger>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition  Binding="{Binding State}"
                                    Value="{x:Static local:ForzaEventChallengeState.Expired}" />
                        <Condition  Binding="{Binding Time}"
                                    Value="{x:Null}" />
                    </MultiDataTrigger.Conditions>
                    <Setter TargetName="ExpiredText"
                            Property="Visibility"
                            Value="Visible" />
                </MultiDataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.NotStarted}">
                    <Setter TargetName="Progress"
                            Property="Visibility"
                            Value="Visible" />
                </DataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Expired}">
                    <Setter TargetName="TimeText"
                            Property="Visibility"
                            Value="Visible" />
                </DataTrigger>
            </DataTemplate.Triggers>
        </DataTemplate>

        <local:LinearTransformConverter Scale="163"
                                        x:Key="A_Converter_DailyScrollOffset" />

        <System:Double x:Key="A_Double_MaxDailyScroll">4</System:Double>
        
        <local:LinearTransformConverter x:Key="A_Converter_Identity" />

        <DataTemplate DataType="{x:Type local:FestivalPassForzathonDailyItem}">
            <Grid Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
                <Grid Margin="{StaticResource A_Thickness_TileBorderedBackground}">
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage_ForzathonDaily}"/>
                    <Grid ClipToBounds="True" Visibility="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_NotLockedContentItemState}, FallbackValue=Visible}"
                          x:Name="WrapperGrid">
                        <StackPanel VerticalAlignment="Bottom"
                                    Margin="5,0,0,-7">
                            <Canvas>
                                <ItemsControl ItemTemplate="{StaticResource A_DataTemplate_Daily}"
                                              ItemsSource="{Binding Challenges}"
                                              ItemsPanel="{StaticResource A_Template_DailiesPanel}"
                                              HorizontalAlignment="Left" />
                            </Canvas>
                            <Decorator Height="{Binding ActualHeight, ElementName=WrapperGrid}" />
                            <Decorator Height="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_DailyScrollOffset}}"
                                       x:Name="ScrollPusher"
                                       local:BlendValue.Input="{Binding ScrollIndex}"
                                       local:BlendValue.BlendFromPreviousOutput="True"
                                       local:BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_Carousel_SmoothScroll}" />
                        </StackPanel>

                        <ScrollBar Style="{StaticResource A_Style_ScrollBar_Default}"
                                   Margin="8,12,13,45"
                                   Width="6"
                                   HorizontalAlignment="Right"
                                   Minimum="0"
                                   Maximum="{Binding Source={StaticResource A_Double_MaxDailyScroll}, Converter={StaticResource A_Converter_DailyScrollOffset}}"
                                   Value="{Binding Path=(local:BlendValue.Output), ElementName=ScrollPusher, Converter={StaticResource A_Converter_DailyScrollOffset}}"
                                   ViewportSize="{Binding Source={StaticResource A_Double_MaxDailyScroll}, Converter={StaticResource A_Converter_DailyScrollOffset}}">
                            <FrameworkElement.Resources>
                                <CornerRadius x:Key="A_CornerRadius_Scrollbar">3</CornerRadius>
                            </FrameworkElement.Resources>
                        </ScrollBar>
                    </Grid>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_FrameStyle}">
                    </local:FZMaterial>
                    
                </Grid>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TileBackground_NoAlternate}"
                    Preset="{StaticResource A_FZMaterialPresetRoundtangleStroke_TileBackground_BorderedImage}">
                    <Grid VerticalAlignment="Bottom"
                        Height="{StaticResource A_Double_Size_Tile_TitlePanel}"
                        Margin="{StaticResource A_Thickness_Margin_TileTitlePadding}">
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_Logo}"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Top"
                            Width="{StaticResource A_Double_Width_LogoForzathonDaily}"
                            Height="{StaticResource A_Double_Height_LogoForzathonDaily}"/>
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TileText_ForzathonDaily}"
                            VerticalAlignment="Bottom"
                            Margin="0,0,0,22"/>
                    </Grid>
                </local:FZMaterial>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassHorizonStoryItem}">
            <Grid Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
                <Grid Margin="{StaticResource A_Thickness_TileBorderedBackground}">
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage}"/>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_NextHorizonStoryChapterPanel}">
                        <StackPanel Style="{StaticResource A_Style_StackPanel_FestivalPass_TintedPanelContainer}"
                            Margin="{StaticResource A_Thickness_Margin_TintedPanelFull}">
                            <local:FZTextBlock Text="{local:Loc DestinationMenu.IDS_HorizonStory_NextChapter}"
                                Color="{StaticResource A_Color_InfluenceThread_horizon_stories}"
                                Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TintedPanel_Header}"/>
                            <Decorator Height="6"/>
                            <local:FZTextBlock Text="{Binding NextChapterName, Converter={StaticResource A_StringToUpper}}"
                                Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TintedPanel_Header}"/>
                        </StackPanel>
                    </local:FZMaterial>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_FrameStyle}">
                        <Grid>
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_Logo}"/>
                            <Decorator Style="{StaticResource A_Style_FrameworkElement_FestivalPass_FooterContainer}">
                                <DockPanel VerticalAlignment="Center">
                                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_FooterText}"
                                        Visibility="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_ShowIfItemStateAvailable}}"
                                        local:MultiStringFormatter.Format="{local:Loc DestinationMenu.IDS_HorizonStory_StarsEarnedFormat}"
                                        local:MultiStringFormatter.Param0="{Binding CurrentStars, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                        local:MultiStringFormatter.Param1="{Binding TotalStars, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                        Text="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"
                                        DockPanel.Dock="Right"/>
                                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_FooterText}"
                                        Visibility="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_ShowIfItemStateComplete}}"
                                        Text="{local:Loc DestinationMenu.IDS_ForzathonDaily_Completed}"
                                        DockPanel.Dock="Right"/>
                                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_FooterText}"
                                        Visibility="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_ShowIfItemStateAvailable}}"
                                        Text="{local:Loc DestinationMenu.IDS_HorizonStory_TotalStarsEarned}"
                                        DockPanel.Dock="Left"/>
                                </DockPanel>
                            </Decorator>
                        </Grid>
                    </local:FZMaterial>
                </Grid>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TileBackground_NoAlternate}"
                    Preset="{StaticResource A_FZMaterialPresetRoundtangleStroke_TileBackground_BorderedImage}">
                    <Decorator VerticalAlignment="Bottom"
                        Height="{StaticResource A_Double_Size_Tile_TitlePanel}"
                        Margin="{StaticResource A_Thickness_Margin_TileTitlePadding}">
                        <StackPanel Orientation="Vertical"
                        VerticalAlignment="Center">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TileTitle}"/>
                            <Decorator Height="{local:LocalizedResource A_Double_TileTextSpacer}"/>
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TileText}"/>
                        </StackPanel>
                    </Decorator>
                </local:FZMaterial>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassContentItem}">
            <Grid Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
                <Grid Margin="{StaticResource A_Thickness_TileBorderedBackground}">
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage}"/>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_RewardAndDescriptionPanel}">
                        <StackPanel Style="{StaticResource A_Style_StackPanel_FestivalPass_TintedPanelContainer}">
                            <StackPanel Orientation="Vertical"
                                Visibility="{Binding TopReward, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_RewardTitle}"/>
                                <Decorator Height="9"/>
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_RewardDescription}"/>
                            </StackPanel>
                            <Decorator Style="{StaticResource A_Style_FrameworkElement_FestivalPass_RewardAndDescriptionSeparator}"/>
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_ItemDescription}"/>
                        </StackPanel>
                    </local:FZMaterial>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_FrameStyle}">
                        <Grid>
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_Logo}"/>
                        </Grid>
                    </local:FZMaterial>
                </Grid>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TileBackground_NoAlternate}"
                    Preset="{StaticResource A_FZMaterialPresetRoundtangleStroke_TileBackground_BorderedImage}">
                    <Grid>
                        <local:FZMaterial x:Name="PillBox"  
                                          Margin="0,0,16,74" 
                                          HorizontalAlignment="Right" VerticalAlignment="Bottom" 
                                          Style="{StaticResource A_Style_FZMaterial_PillBox}">
                            <local:FZTextBlock Text="{Binding PillText}" Style="{StaticResource A_Style_FZTextBlock_FestivalPass_ItemPillText}" Margin="8"/>
                        </local:FZMaterial>
                        <Decorator VerticalAlignment="Bottom"
                            Height="{StaticResource A_Double_Size_Tile_TitlePanel}"
                            Margin="{StaticResource A_Thickness_Margin_TileTitlePadding}">
                            <StackPanel Orientation="Vertical"
                            VerticalAlignment="Center">
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TileTitle}"/>
                                <Decorator Height="{local:LocalizedResource A_Double_TileTextSpacer}"/>
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TileText}"/>
                            </StackPanel>
                        </Decorator>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_FooterIcon}"/>
                    </Grid>
                </local:FZMaterial>
            </Grid>
        </DataTemplate>



        <Style x:Key="A_Style_ListBoxItem_FestivalPass"
               TargetType="{x:Type ListBoxItem}"
               BasedOn="{StaticResource A_Style_ContentControl_Carousel_ContainerStyle}">
            <Style.Resources>
                <Style x:Key="A_Style_FZMaterial_ShadowBase_Dynamic"
                        TargetType="local:FZMaterial"
                        BasedOn="{StaticResource A_Style_FZMaterial_ShadowBase_Dynamic}">
                    <Setter Property="Margin" Value="-5" />
                </Style>
            </Style.Resources>
            <Setter Property="Margin"
                    Value="{StaticResource A_Double_FestivalPass_CarouselItemMargin}" />
            <Setter Property="IsEnabled"
                    Value="{Binding Enabled}"/>

            <Style.Triggers>
                <DataTrigger Binding="{Binding CurrentWeeklyChallenge, Converter={StaticResource A_Converter_IsNotNull}}" Value="{StaticResource A_Boolean_True}" >
                    <Setter Property="local:AttachedRoutedEventCommand.Command" Value="{Binding KeydownCustomCommand}"/>
                    <Setter Property="local:AttachedRoutedEventCommand.ProvideCommandArgsInsteadOfSender" Value="True"/>
                    <Setter Property="local:AttachedRoutedEventCommand.RoutedEvent" Value="KeyDown"/>
                    <Setter Property="local:AttachedRoutedEventCommand.Enabled" Value="{Binding ItemState, Converter={StaticResource A_Converter_Bool_FutureOrActiveContentItemState},FallbackValue=False}"/>

                    <Setter Property="local:AttachedRoutedEventCommand2.Command" Value="{Binding ScrollCommand}"/>
                    <Setter Property="local:AttachedRoutedEventCommand2.ProvideCommandArgsInsteadOfSender" Value="True"/>
                    <Setter Property="local:AttachedRoutedEventCommand2.RoutedEvent" Value="MouseWheel"/>
                    <Setter Property="local:AttachedRoutedEventCommand2.ConsumeEvent" Value="True"/>
                    <Setter Property="local:AttachedRoutedEventCommand2.Enabled" Value="{Binding ItemState, Converter={StaticResource A_Converter_Bool_FutureOrActiveContentItemState},FallbackValue=False}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding Challenges, Converter={StaticResource A_Converter_IsNotNull}}" Value="{StaticResource A_Boolean_True}" >
                    <Setter Property="local:AttachedRoutedEventCommand.Command" Value="{Binding KeydownCustomCommand}"/>
                    <Setter Property="local:AttachedRoutedEventCommand.ProvideCommandArgsInsteadOfSender" Value="True"/>
                    <Setter Property="local:AttachedRoutedEventCommand.RoutedEvent" Value="KeyDown"/>
                    <Setter Property="local:AttachedRoutedEventCommand.Enabled" Value="True"/>

                    <Setter Property="local:AttachedRoutedEventCommand2.Command" Value="{Binding ScrollCommand}"/>
                    <Setter Property="local:AttachedRoutedEventCommand2.ProvideCommandArgsInsteadOfSender" Value="True"/>
                    <Setter Property="local:AttachedRoutedEventCommand2.RoutedEvent" Value="MouseWheel"/>
                    <Setter Property="local:AttachedRoutedEventCommand2.ConsumeEvent" Value="True"/>
                    <Setter Property="local:AttachedRoutedEventCommand2.Enabled" Value="True"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <ControlTemplate x:Key="A_ControlTemplate_CommonListBox_Carousel_FestivalPass"
                         TargetType="{x:Type local:CommonListBox}">
            <DockPanel>
                <Control DockPanel.Dock="Left"
                    Style="{StaticResource A_Style_Control_FestivalPassEmptyItem_OutOfCarousel}"/>
                <Control DockPanel.Dock="Left"
                    Style="{StaticResource A_Style_Control_FestivalPassEmptyItem_OutOfCarousel}"/>
                <Control DockPanel.Dock="Right"
                    Style="{StaticResource A_Style_Control_FestivalPassEmptyItem_OutOfCarousel}"/>
                <Control DockPanel.Dock="Right"
                    Style="{StaticResource A_Style_Control_FestivalPassEmptyItem_OutOfCarousel}"/>
                <Control DockPanel.Dock="Right"
                    Style="{StaticResource A_Style_Control_FestivalPassEmptyItem_OutOfCarousel}"/>
                <WrapPanel IsItemsHost="True"
                    KeyboardNavigation.DirectionalNavigation="Contained"
                    Orientation="Vertical"/>
            </DockPanel>
        </ControlTemplate>

        <local:LinearTransformConverter x:Key="A_Converter_ScrollOffsetAdjustment" Scale="-1" Add="-314" />
        <Storyboard x:Key="A_Storyboard_SmoothScrollWithMotionBlur" >
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:BlendValue.Blend)"
                                           Storyboard.TargetName="{x:Null}"
                                           FillBehavior="Stop">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="0" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.267"
                                      Value="1"
                                      EasingFunction="{local:QuarticEasing EasingMode=EaseOut}" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>

    <local:UIPageTransitionManager.TransitionManager>
        <local:UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_Menu}"/>
    </local:UIPageTransitionManager.TransitionManager>

    <Grid>
       <Control Style="{StaticResource A_Style_Control_ScreenBackground}" />

        <!-- Bars -->
        <local:PlayerBarControl Style="{StaticResource A_Style_PlayerBarControl_WithTokens}"
                                x:Name="TopBar" />

        <ContentControl Style="{StaticResource A_Style_ButtonBar}"
                        x:Name="BottomBar">
            <local:ControllerButtonPanel x:Name="HelpPanel"
                                         Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
                <local:ControllerButtonControl Button="A"
                                            Description="{Binding DescriptionA}" />
                <local:ControllerButtonControl Button="B"
                                            Description="{local:Loc HelpButtons.IDS_Back}" />
                <local:ControllerButtonControl Button="Back"
                                            Description="{Binding DescriptionBack}" />
                <local:ControllerButtonControl Button="Start"
                                            Description="{Binding DescriptionStart}" />
            </local:ControllerButtonPanel>
        </ContentControl>

        <Border Style="{StaticResource A_Style_Border_ScenePadding_Opus}">
            <StackPanel Orientation="Vertical"
                        Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}"
                        VerticalAlignment="Top">
                <ContentControl Content="{local:Loc ScreenTitles.IDS_FestivalPass}"
                                local:BindingProxy.A="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FestivalPass_Title.png"
                                Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock}"
                                HorizontalAlignment="Left" />

                <local:ItemsSelector x:Name="PART_Categories"
                    SelectedItem="{Binding SelectedCategory}"
                    ItemsSource="{Binding Categories}"
                    Style="{StaticResource A_Style_ItemsSelector_TabTitle}"
                    Focusable="False" />

                <Decorator Height="9"/>

                <Grid>
                    <StackPanel Orientation="Horizontal"
                        local:BlendValue.SkipInitialInputChanges="2"
                        local:BlendValue.Input="{Binding (local:FindVisualOffset.VisualOffset).X, ElementName=PART_List}"
                        local:BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_SmoothScrollWithMotionBlur}"
                        Margin="-78,0">
                        <StackPanel.RenderTransform>
                            <TranslateTransform X="{Binding (local:BlendValue.Output), RelativeSource={RelativeSource AncestorType=StackPanel}, Converter={StaticResource A_Converter_ScrollOffsetAdjustment}}" />
                        </StackPanel.RenderTransform>
                        <local:CommonListBox x:Name="PART_List"
                            local:FindVisualOffset.SelectedItem="{Binding SelectedItem, RelativeSource={RelativeSource AncestorType=Page}}"
                            Template="{StaticResource A_ControlTemplate_CommonListBox_Carousel_FestivalPass}"
                            ItemContainerStyle="{StaticResource A_Style_ListBoxItem_FestivalPass}"
                            SelectedItem="{Binding SelectedItem}"
                            ItemsSource="{Binding SelectedCategory.Items}"
                            local:FocusOnPageFocusGained.SelectorSelectedItem="True"
                            Height="{StaticResource A_Double_FestivalPass_MaxCarouselItemHeightWithMargin}"
                            AllowSelectionOfDisabledItems="False"
                            MaxSkipOverDisabledItemsCount="2"
                            PageSize="1"/>
                    </StackPanel>
                    <local:NavigationArrows Style="{StaticResource A_Style_Control_NavigationArrows}"
                        Margin="-40,0,-20,0"
                        CanSelectPrev="{Binding CanSelectPrev, ElementName=PART_List}"
                        CanSelectNext="{Binding CanSelectNext, ElementName=PART_List}"
                        ScrollPagePrevCommand="{Binding ScrollPagePrevCommand, ElementName=PART_List}"
                        ScrollPageNextCommand="{Binding ScrollPageNextCommand, ElementName=PART_List}"/>
                </Grid>
            </StackPanel>
        </Border>
    </Grid>
</Page>
