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

    <Page.Resources>
        <Color x:Key="A_Color_FestivalPass_Season_Summer">#FFFFB000</Color>
        <Color x:Key="A_Color_FestivalPass_Season_Autumn">#FFCC3333</Color>
        <Color x:Key="A_Color_FestivalPass_Season_Spring">#FFFDABFF</Color>
        <Color x:Key="A_Color_FestivalPass_Season_Winter">#FF2ACCFF</Color>
        <Color x:Key="A_Color_FestivalPass_SeriesHistory">#FF2ACCFF</Color>

        <ImageSource x:Key="A_BitmapImage_ChallengeTick_Circle">/ForzaUI;component/Textures/Data_Bound/FestivalPass/Challenge_Tick_Circle.png</ImageSource>
        <ImageSource x:Key="A_BitmapImage_FPPill_LockIcon">/ForzaUI;component/Textures/Data_Bound/FestivalPass/FP_Locked_Icon.png</ImageSource>
        
        <local:MappingConverter x:Key="A_Converter_Season_To_Color">
            <local:MappingConverterEntry Key="{x:Static local:Season.Spring}"
                                         Value="{StaticResource A_Color_FestivalPass_Season_Spring}" />
            <local:MappingConverterEntry Key="{x:Static local:Season.Summer}"
                                         Value="{StaticResource A_Color_FestivalPass_Season_Summer}" />
            <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}"
                                         Value="{StaticResource A_Color_FestivalPass_Season_Autumn}" />
            <local:MappingConverterEntry Key="{x:Static local:Season.Winter}"
                                         Value="{StaticResource A_Color_FestivalPass_Season_Winter}" />
        </local:MappingConverter>

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

        <AutoScrollSettings x:Key="H_AutoScrollSettings_Festival_Description"
            ScrollSeparation="50"
            ScrollOrientation="Vertical"
            Speed="20"
            InitialPause="0:0:0.5"/>


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


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

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

        <MappingConverter x:Key="A_LangStrToOverviewTitleLineAdjust" Default="-0.65">
            <MappingConverterEntry Key="KO" Value="-0.3"/>
            <MappingConverterEntry Key="FR" Value="-0.4"/>
            <MappingConverterEntry Key="HU" Value="-0.3"/>
            <MappingConverterEntry Key="JP" Value="-0.2"/>
            <MappingConverterEntry Key="RU" Value="-0.3"/>
            <MappingConverterEntry Key="TR" Value="-0.3"/>
            <MappingConverterEntry Key="CHT" Value="-0.3"/>
            <MappingConverterEntry Key="CHS" Value="-0.3"/>
            <MappingConverterEntry Key="DE" Value="-0.4"/>
            <MappingConverterEntry Key="PL" Value="-0.3"/>
            <MappingConverterEntry Key="IT" Value="-0.3"/>
            <MappingConverterEntry Key="ES" Value="-0.3"/>
            <MappingConverterEntry Key="MX" Value="-0.3"/>
            <MappingConverterEntry Key="BR" Value="-0.3"/>
            <MappingConverterEntry Key="SV" Value="-0.4"/>
        </MappingConverter>
	
        <Color x:Key="A_Color_FestivalPass_Complete_Text">#D4332A02</Color>
        <Color x:Key="A_Color_FestivalPass_Locked">#FF808080</Color>
        <Color x:Key="A_Color_FestivalPass_ItemSeparator">#FFFFFFFF</Color>
        
        <ColorAlias x:Key="A_Color_FestivalPass_WeeklyChallengeTitle" Color="{StaticResource H_Color_Primary_White}" />

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

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

        <MappingConverter x:Key="A_MarkupConverter_TreasureChestText">
            <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_TreasureChest_HIGHLIGHT}" />
        </MappingConverter>
        
        <Style x:Key="A_Style_FZTextBlock_TreasureChestChallengeTitle"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Green}"/>
            <Setter Property="CapHeight" Value="18"/>
            <Setter Property="LineAdjust" Value="-0.2"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="TextAlignment" Value="Left"/>
            <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_TreasureChestChallengeSubTitle"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeTitle}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
            <Setter Property="FontFamily" Value="Horizon_B"/>
        </Style>
        
        <Style x:Key="A_Style_FZRun_FestivalPassClue_HIGHLIGHT" TargetType="{x:Type local:FZRun}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
            <Setter Property="FontFamily" Value="Horizon_A"/>
        </Style>

        <MappingConverter x:Key="A_MappingConverter_FestivalPass_ClueText_Highlight">
            <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_FestivalPassClue_HIGHLIGHT}" />
            <MappingConverterEntry Key="{NoCase NUM}" Value="{StaticResource A_Style_FZRun_FestivalPass_Default}" />
        </MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_TreasureChestChallengeDesc"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeTitle}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
            <Setter Property="FontFamily" Value="Horizon_B"/>
            <Setter Property="CapHeight" Value="15"/>
            <Setter Property="LineHeight" Value="28"/>
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_FestivalPass_ClueText_Highlight}"/>
        </Style>

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Reward_BackgroundGradient"
            BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
            GradientColorA="#00000000"
            GradientColorB="{StaticResource H_Color_Glass_Purple_40pc}"
            GradientAngle="90"/>
        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Reward_BackgroundGradient_OverviewReward"
                                           BasedOn="{StaticResource A_Preset_FZMaterial_Reward_BackgroundGradient}"
                                           GradientColorB="{StaticResource H_Color_Glass_Purple_60pc}"
                                           GradientAngle="180" />

        <local:FZMaterialPresetRoundtangle x:Key="A_Preset_FZMaterial_Reward_BackgroundGradient_OverviewReward_RaceOff"
                                           BasedOn="{StaticResource A_Preset_FZMaterial_Reward_BackgroundGradient}"
                                           GradientColorB="{StaticResource H_Color_Glass_Purple_20pc}"
                                           GradientAngle="180" />

        <local:MappingConverter x:Key="A_Converter_ActiveSeriesBool_To_ForegroundColor"
                                Default="{StaticResource H_Color_Primary_White}">
            <local:MappingConverterEntry Key="False"
                                         Value="{StaticResource H_Color_Primary_Black}" />
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_ActiveSeries_Background_Colour" TargetType="local:FZMaterial">
            <Setter Property="Color"
                    Value="{StaticResource H_Color_Glass_Purple_40pc}" />
            <Setter Property="Visibility"
                    Value="{Binding SelectedCategory.CategoryStateStringDefinition, Converter={StaticResource A_StringVisConverter_UseHidden}}"/>
        </Style>
        <Style x:Key="A_Style_FZMaterial_ActiveSeries_Foreground_Colour"
               TargetType="local:FZMaterial">
            <Setter Property="Color"
                    Value="{Binding IsActiveSeries, Converter={StaticResource A_Converter_ActiveSeriesBool_To_ForegroundColor}}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding SelectedCategory.SeasonCategoryState}"
                             Value="{x:Static local:FestivalPassSeasonCategoryState.Expired}">
                    <Setter Property="Color"
                            Value="{StaticResource H_Color_Primary_White}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_BottomBar"
                                           BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
            CornerRadius="1,1,2,2"
            GradientAngle="90"/>  
        
        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_BottomBar_Pill"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_BottomBar}"
                                           CornerRadius="14"/> 
        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_BottomBar_Pill_Desaturated"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_BottomBar_Pill}"
                                           Saturation="0"/>
               
        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Desaturated"
                                           Saturation="0"
                                           CornerRadius="0"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Details_GradientHighlight"
                                           BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                           GradientColorA="{StaticResource A_Color_Transparent}"
                                           GradientColorB="{StaticResource H_Color_Primary_Purple}"
                                           GradientAngle="90" />

        <System:Double x:Key="A_Double_FestivalPass_MaxCarouselItemHeightWithMargin">716</System:Double>
        <System:Double x:Key="A_Double_FestivalPass_MaxCarouselItemHeight">708</System:Double>
        <System:Double x:Key="A_Double_FestivalPass_MaxCarouselItemWidth">884</System:Double>
        <System:Double x:Key="A_Double_FestivalPass_MaxCarouselItemHalfHeight">349</System:Double>
        <System:Double x:Key="A_Double_FestivalPass_MaxCarouselItemHalfWidth">442</System:Double>
        <System:Double x:Key="A_Double_FestivalPass_OverviewItemWidth">698</System:Double>
        <System:Double x:Key="A_Double_FestivalPass_ProgessBarWidth">568</System:Double>
        <System:Double x:Key="A_Double_FestivalPass_ProgressItemHeight">708</System:Double>
        <Thickness x:Key="A_Double_FestivalPass_CarouselItemMargin">4,4,4,4</Thickness>

        
        <!-- These are the actual layout sizes, factor in all margins and anything that change layout-->
        <ArrayList x:Key="H_Data_TileSizes">
            <Size>894,714</Size> <!-- Large -->
            <Size>450,714</Size> <!-- Medium -->
            <Size>450,357</Size> <!-- Small -->
            <Size>38,716</Size> <!-- Separator -->
            <Size>706,716</Size><!-- Progress Tile-->
        </ArrayList>
        
        <local:MappingConverter x:Key="A_Converter_Height_FromItemSize"
            Default="{StaticResource A_Double_FestivalPass_MaxCarouselItemHeight}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemSize.Small}" Value="{StaticResource A_Double_FestivalPass_MaxCarouselItemHalfHeight}"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_Width_FromItemSize"
            Default="{StaticResource A_Double_FestivalPass_MaxCarouselItemHalfWidth}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemSize.Large}" Value="{StaticResource A_Double_FestivalPass_MaxCarouselItemWidth}"/>
        </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_MaxCarouselItemHalfWidth}" />
        </Style>

        <Style TargetType="ContentControl"
               x:Key="H_Style_TemplatedWrapper_RewardGoalDisplay_WithFZRun">
            <Setter
            Property="Focusable"
            Value="False" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ContentControl">
                        <Decorator>
                            <FZTextBlock FontFamily="Horizon_B"
                                         Color ="{StaticResource H_Color_Primary_White}"
                                         FontSize="25"
                                         Text="{TemplateBinding Content}" 
                                         MarkupConverter="{StaticResource A_Style_FZRun_RewardGoalStyle_Score}"/>
                        </Decorator>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="A_Style_FZRun_RewardGoalStyle_Score"
               TargetType="{x:Type local:FZRun}">
            <Setter Property="FontSize"
                    Value="25"/>
            <Setter Property="FontFamily"
                    Value="Horizon_A" />
        </Style>

        <MarkupConverter x:Key="A_MarkupConverter_RewardGoalScore">
            <MappingConverterEntry Key="{NoCase SCORE}" Value="{StaticResource A_Style_FZRun_RewardGoalStyle_Score}" />
        </MarkupConverter>

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

        <Style x:Key="A_Style_FZRun_CategoryTimer_NUM"
               TargetType="{x:Type local:FZRun}">
            <Setter Property="FontFamily"
                    Value="Horizon_A_tf" />
        </Style>
        <Style x:Key="A_Style_FZRun_CategoryTimer_HIGHLIGHT"
               TargetType="{x:Type local:FZRun}">
            <Setter Property="FontFamily"
                    Value="Horizon_A_tf" />
        </Style>

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

        <Style x:Key="A_Style_FZRun_RaceOff_Description_HEADING"
               TargetType="{x:Type local:FZRun}">
            <Setter Property="CapHeight"
                    Value="20" />
        </Style>

        <MappingConverter x:Key="A_MarkupConverter_RaceOff_Description">
            <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_RaceOff_Description_HIGHLIGHT}" />
            <MappingConverterEntry Key="{NoCase HEADING}" Value="{StaticResource A_Style_FZRun_RaceOff_Description_HEADING}" />
        </MappingConverter>

        <MappingConverter x:Key="A_MarkupConverter_CategoryTextTimer">
            <MappingConverterEntry Key="{NoCase NUM}" Value="{StaticResource A_Style_FZRun_CategoryTimer_NUM}" />
            <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_CategoryTimer_HIGHLIGHT}" />
        </MappingConverter>

        <local:MappingConverter x:Key="A_Converter_ImageSource_FallbackBackingImageFromContentType"
            Default="">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.WeeklyForzathon}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/ForzathonWeekly_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Trial_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.EventLabEvent}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/EventLab_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalPG_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Showcase_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Story_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Rivals_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ForzaEV}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Rivals_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Adventure_Fallback_Active.png"/>
	    <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HideSeek}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/HideSeek_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.PhotoChallenge}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Series0/Autumn_Storm/Series0_Fallback_Storm_PhotoChallenge_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TreasureChest}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/EventLab_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.StuntParty}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/StuntParty_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.Eliminator}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Eliminator_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonTour}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/HorizonTour_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.Collectibles}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Collectibles_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.EvolvingWorldFloatRace}" Value="/ForzaUI;component/Textures/Data_Bound/Series5/FestivalPass/Fallbacks/FloatRace_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalExtremeCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalExtremeP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalJob}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTouge}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftRun}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.RaceRemix}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.RushRemix}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TreasureCar}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonLifeTimeAttack}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonLifeDragMeet}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_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/FestivalPass/Fallbacks/ForzathonWeekly_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Trial_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.EventLabEvent}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/EventLab_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalPG_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonalStunt_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Showcase_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Story_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Rivals_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ForzaEV}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Rivals_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Adventure_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HideSeek}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/HideSeek_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.PhotoChallenge}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Series0/Autumn_Storm/Series0_Fallback_Storm_PhotoChallenge_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TreasureChest}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/TreasureChest_Fallback_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.StuntParty}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/StuntParty_Fallback_Complete.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.Eliminator}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Eliminator_Fallback_Complete.png" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonTour}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/HorizonTour_Fallback_Complete.png" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.Collectibles}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/Collectibles_Fallback_Complete.png" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.EvolvingWorldFloatRace}" Value="/ForzaUI;component/Textures/Data_Bound/Series5/FestivalPass/Fallbacks/FloatRace_Fallback_Gold.png" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalExtremeCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalExtremeP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalJob}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTouge}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftRun}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.RaceRemix}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.RushRemix}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TreasureCar}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonLifeTimeAttack}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_Fallback_Gold.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonLifeDragMeet}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/SeasonEvent_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>

        <local:MappingConverter x:Key="A_Converter_Preset_BackingImageFromVoteItemState"
            Default="{StaticResource A_FZMaterialPreset_FlatPanel_Base}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassVoteItemState.Locked}" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_Desaturated}"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_BackingImage"
            TargetType="{x:Type local:FZMaterial}">
            <!--Defaults to Non-Completed Imageless Glass Panel, triggers override as needed -->
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Purple}"/>
            <Setter Property="Visibility" Value="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter UseHidden=True}}"/>
            <Setter Property="Preset" Value="{Roundtangle CornerRadius=2}"/>
            <Style.Triggers>
                <!--Completed Imageless Glass Panel -->
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding CompletedBackingImage, Converter={StaticResource H_TrueIfNotNull}}" Value="True" />
                        <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 BackingImage, Converter={StaticResource H_TrueIfNotNull}}" Value="True">
                    <Setter Property="ImageSource" Value="{Binding BackingImage}" />
                    <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 CompletedBackingImage, Converter={StaticResource H_TrueIfNotNull}}" Value="True" />
                        <Condition Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Complete}" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="ImageSource" Value="{Binding CompletedBackingImage}" />
                    <Setter Property="Preset" Value="{Binding ItemState, Converter={StaticResource A_Converter_Preset_BackingImageFromItemState}}"/>
                    <Setter Property="Color" Value="{StaticResource A_Color_WhitePanel}" />
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_ItemInnerBorder" TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
            <Setter Property="Preset" Value="{RoundtangleStroke CornerRadius=2, Thickness=4}"/>
        </Style>

        <local:MappingConverter x:Key="A_Converter_ShouldDesaturateLogoFromItemState"
            Default="{StaticResource A_Boolean_False}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Expired}" Value="{StaticResource A_Boolean_True}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Locked}" Value="{StaticResource A_Boolean_True}"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_ImageSource_FooterIconsFromContentType"
            Default="">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.EventLabEvent}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/EventLab.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/Trial_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/PlaygroundGames_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/SpeedTrap_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/SpeedZone_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/DangerSign_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/DriftZone_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/Trailblazer_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/Circuit_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/P2P_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/CrossCountryCircuit_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/CrossCountry_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/Scramble_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/DirtP2P_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/DragRace_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/StreetRace_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/Showcase_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/FestivalPlaylist_MonthlyRivals.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ForzaEV}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/ElectricVehicle.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/OnlineAdventure_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HideSeek}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/HideSeek.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TreasureChest}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/TreasureHunt.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.PhotoChallenge}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/FestivalPlaylist_PhotoChallenge.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/FestivalPlaylist_SeasonEvent.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.Collectibles}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/Collectibles.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.Eliminator}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/Eliminator.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.StuntParty}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/StuntParty.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonTour}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/HorizonTour.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.EvolvingWorldFloatRace}" Value="/ForzaUI;component/Textures/Data_Bound/Series5/FestivalPass/FooterIcons/ParadeFloat.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/FestivalPass/FooterIcons/Seasonal_Speed_Circuit.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedP2P}" Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/FestivalPass/FooterIcons/Seasonal_Speed_P2P.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalExtremeCircuit}" Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/FestivalPass/FooterIcons/Seasonal_Extreme_Circuit.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalExtremeP2P}" Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/FestivalPass/FooterIcons/Seasonal_Extreme_P2P.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtRally}" Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/FestivalPass/FooterIcons/Dirt.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalMixedRally}" Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/FestivalPass/FooterIcons/Mixed.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalRoadRally}" Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/FestivalPass/FooterIcons/Road.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTouge}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/Touge.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftRun}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/DriftRun.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.RaceRemix}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/RaceRemix.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.RushRemix}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/HorizonRushRemix.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TreasureCar}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/TreasureCar.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonLifeTimeAttack}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/HorizonLifeTimeAttack.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonLifeDragMeet}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/HorizonLifeDragMeet.png"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalJob}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/SeasonalJob.png"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_ImageSource_FooterIconsFromStoryId"
            Default="">
            <local:MappingConverterEntry Key="402" Value="/ForzaUI;component/Textures/Data_Bound/Series6/FestivalPass/FooterIcons/story_drift_club.png"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_Text_EventTitleFromContentType">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TheTrial}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_TheTrial }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.EventLabEvent}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_EventLab }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalPlaygroundGames}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalPlaygroundGames }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedTrap}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SpeedTrap}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedZone}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SpeedZone}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDangerSign}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_DangerSign}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftZone}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_DriftZone}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTrailblazer}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_TrailBlazer}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCircuit}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalP2P}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryCircuit}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalCrossCountryP2P}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtCircuit}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDirtP2P}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDrag}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalStreetRace}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ShowcaseRemix}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_ShowcaseRemix }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_MonthlyRivals }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ForzaEV}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_ForzaEV }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_HorizonStory }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.PhotoChallenge}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_PhotoChallenge }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.Eliminator}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_Eliminator }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.StuntParty}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_StuntParty }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonTour}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_HorizonTour }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.Collectibles}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_Collectibles }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TreasureChest}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_TreasureChest }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_OnlineAdventure }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HideSeek}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_HideSeek }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.EvolvingWorldFloatRace}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalSpecial }"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedCircuit}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalSpeedP2P}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalExtremeCircuit}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalExtremeP2P}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalChampionship}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalJob}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalJob}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalTouge}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalTouge}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalDriftRun}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_SeasonalDriftRun}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.RaceRemix}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_RaceRemix}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.RushRemix}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_RushRemix}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TreasureCar}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_TreasureCar}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonLifeTimeAttack}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_HorizonLifeTimeAttack}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonLifeDragMeet}" Value="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_HorizonLifeDragMeet}"/>
        </local:MappingConverter>


        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Series"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_BottomBar}"
                                           GradientColorA="#FF7AC943"
                                           GradientColorB="#FF3AB54A" />

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Series_Pill"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Series}"
                                           CornerRadius="15" 
                                           GradientColorA="{StaticResource H_Color_Primary_Black}"
                                           GradientColorB="{StaticResource H_Color_Primary_Black}"/> 

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_PhotoChallenge"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_BottomBar}"
                                           GradientColorA="{StaticResource A_Color_HighlightGradientA}"
                                           GradientColorB="{StaticResource A_Color_HighlightGradientB}" />

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_PhotoChallenge_Pill"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_PhotoChallenge}"
                                           CornerRadius="15"
                                           GradientColorA="{StaticResource H_Color_Primary_Black}"
                                           GradientColorB="{StaticResource H_Color_Primary_Black}" />

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Monthly"
                                           GradientColorA="{StaticResource A_Color_HighlightGradientA}"
                                           GradientColorB="{StaticResource A_Color_HighlightGradientB}" />

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Monthly_Pill"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Monthly}"
                                           CornerRadius="15"
                                           GradientColorA="{StaticResource H_Color_Primary_Black}"
                                           GradientColorB="{StaticResource H_Color_Primary_Black}"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Seasonal"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_BottomBar}"
                                           GradientColorA="{StaticResource A_Color_HighlightGradientA}"
                                           GradientColorB="{StaticResource A_Color_HighlightGradientB}"/>  
        
        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Seasonal_Pill"
                                           CornerRadius="15"
                                           GradientColorA="{StaticResource H_Color_Primary_Black}"
                                           GradientColorB="{StaticResource H_Color_Primary_Black}"/>  

        <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Seasonal_Pill_Stroke"
                                           CornerRadius="17"
                                           Thickness="3"
                                           GradientColorA="{StaticResource H_Color_Primary_White}"
                                           GradientColorB="{StaticResource H_Color_Primary_White}"/>  

        
        <Style
            x:Key="A_Style_FZMaterial_RaceOff_Description_Area"
            TargetType="{Type local:FZMaterial}"
            BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
            <Setter
                Property="Preset"
                Value="{StaticResource H_Roundtangle_Outer_1px}" />
            <Setter
                Property="Color"
                Value="{StaticResource A_Color_Tint_ScreenBackground}" />
            <Setter
                Property="Opacity"
                Value="1" />
        </Style>

        <Double x:Key="A_Double_FloatingPinDefaultHeight_RaceOff">35</Double>
        <Thickness x:Key="A_Thickness_FloatingPinDefaultMargin_RaceOff">0,6,0,6</Thickness>

        <Style x:Key="A_Style_ExclusivityFloatingPin_RaceOff"
               TargetType="Control"
               BasedOn="{StaticResource A_Style_ExclusivityFloatingPin}">
            <Setter Property="Height"
                    Value="{StaticResource A_Double_FloatingPinDefaultHeight_RaceOff}" />
            <Setter Property="Margin"
                    Value="{StaticResource A_Thickness_FloatingPinDefaultMargin_RaceOff}" />
        </Style>
        
        <local:MappingConverter x:Key="A_Converter_ContentType_ApplyCustomFooterVisibility" Default="False">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.StuntParty}" Value="True"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.Eliminator}" Value="True"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HideSeek}" Value="True"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.SeasonalJob}" Value="True"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.OnlineAdventure}" Value="True"/>
        </local:MappingConverter>
        
        <local:MappingConverter x:Key="A_Converter_ItemState_IsCustomFooterIconVisible" Default="False">
            <local:MappingConverterEntry Key="{x:Static FestivalPassItemState.Upcoming}" Value="True"/>
            <local:MappingConverterEntry Key="{x:Static FestivalPassItemState.Expired}" Value="True"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_FooterIcon"
            TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Width" Value="63"/>
            <Setter Property="Height" Value="63"/>
            <Setter Property="HorizontalAlignment" Value="Right"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="Margin" Value="0,17,17,0"/>
            <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>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding ContentType, Converter={StaticResource A_Converter_ContentType_ApplyCustomFooterVisibility}}" Value="True" />
                        <Condition Binding="{Binding ItemState, Converter={StaticResource A_Converter_ItemState_IsCustomFooterIconVisible}}" Value="False" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Visibility" Value="Collapsed"/>
                </MultiDataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Expired}">
                    <Setter Property="ImageSource"
                            Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/Locked.png" />
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Locked}">
                    <Setter Property="ImageSource"
                            Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/Locked.png" />
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static FestivalPassItemState.Upcoming}">
                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FooterIcons/Locked.png"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ContentType}" Value="{x:Static local:FestivalPassContentType.HorizonStory}">
                    <Setter Property="ImageSource" Value="{Binding StoryId, Converter={StaticResource A_Converter_ImageSource_FooterIconsFromStoryId}}"/>
                </DataTrigger>

            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_Control_FestivalPassEmptyItem"
            TargetType="{x:Type Control}"
            BasedOn="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
            <Style.Resources>
                <CornerRadius x:Key="A_CornerRadius_Dynamic_CarouselTile">3,3,3,3</CornerRadius>
            </Style.Resources>
            <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,20,20,18</Thickness>
        <Thickness x:Key="A_Thickness_Margin_TileTitlePaddingLarge">30</Thickness>
        <local:MappingConverter x:Key="A_Converter_Thickness_MarginFromItemSize"
                                Default="{StaticResource A_Thickness_Margin_TileTitlePadding}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemSize.Large}" Value="{StaticResource A_Thickness_Margin_TileTitlePaddingLarge}"/>
        </local:MappingConverter>
        
        <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 H_Color_Primary_Green}"/>
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Complete}" Value="{StaticResource H_Color_Primary_Green}"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_Color_RewardTextFromItemState"
                                Default="{StaticResource H_Color_Primary_Black}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Available}"
                                         Value="{StaticResource H_Color_Primary_Black}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Complete}"
                                         Value="{StaticResource H_Color_Primary_Black}" />
        </local:MappingConverter>

        <System:Double x:Key="A_Double_MaxWidth_Small_TileTitleWithShieldIcon">270</System:Double>
        <System:Double x:Key="A_Double_MaxWidth_Large_TileTitleWithShieldIcon">480</System:Double>

        <local:MappingConverter x:Key="A_Converter_MaxWidth_TileTitleFromContentType"
                                Default="{StaticResource A_Double_MaxWidth_Small_TileTitleWithShieldIcon}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.WeeklyForzathon}" Value="320" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.DailyForzathon}" Value="320" />
        </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="Left" />
            <Setter Property="Text"
                    Value="{Binding ContentType}" />
            <Setter Property="MaxWidth"
                    Value="{Binding ContentType, Converter={StaticResource A_Converter_MaxWidth_TileTitleFromContentType}}" />
            <Setter Property="CapHeight"
                    Value="24" />
            <Setter Property="TextWrapping" 
                    Value="NoWrap" />
            <Setter Property="FontFamily"
                    Value="Horizon_A"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemSize}"
                             Value="{x:Static FestivalPassItemSize.Large}">
                    <Setter Property="MaxWidth"
                            Value="{StaticResource A_Double_MaxWidth_Large_TileTitleWithShieldIcon}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_WeeklyChallengeTitle"
               TargetType="{x:Type local:FZTextBlock}"
               BasedOn="{StaticResource A_Style_FZTextBlock_TileTitle}">
            <Setter Property="MaxWidth"
                    Value="{Binding ContentType, Converter={StaticResource A_Converter_MaxWidth_TileTitleFromContentType}}" />
            <Setter Property="FontFamily"
                    Value="Horizon_B" />
            <Setter Property="CapHeight"
                    Value="19" />
            <Setter Property="Color"
                    Value="{StaticResource A_Color_FestivalPass_WeeklyChallengeTitle}" />
            <Setter Property="Text"
                    Value="{Binding Title}" />
            <Setter Property="TextWrapping"
                    Value="NoWrap" />
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_EventTileTitle"
            TargetType="{x:Type local:FZTextBlock}"
               BasedOn="{StaticResource A_Style_FZTextBlock_TileTitle}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Green}"/>
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="TextAlignment" Value="Left" />
            <Setter Property="LineAdjust" Value="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource  A_LangStrToHeadingTextLineAdjust}}" />
            <Setter Property="Text" Value="{Binding ContentType, Converter={StaticResource A_Converter_Text_EventTitleFromContentType}}"/>
            <Setter Property="MaxHeight" Value="68" />
            <Setter Property="FontFamily" Value="Horizon_A"/>
            <Setter Property="MaxWidth"
                    Value="{Binding ContentType, Converter={StaticResource A_Converter_MaxWidth_TileTitleFromContentType}}" />
            <Setter Property="CapHeight"
                    Value="24" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static local:FestivalPassItemState.Locked}">
                    <Setter Property="Color"
                            Value="{StaticResource A_Color_Tile_Text_NonInteractive}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemSize}"
                             Value="{x:Static FestivalPassItemSize.Large}">
                    <Setter Property="MaxWidth"
                            Value="{StaticResource A_Double_MaxWidth_Large_TileTitleWithShieldIcon}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

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

        <MappingConverter x:Key="A_MarkupConverter_EventTileTitle">
            <MappingConverterEntry Key="{NoCase BOLD}" Value="{StaticResource A_Style_FZRun_TileTitle_Bold}" />
        </MappingConverter>
        
        <Style x:Key="A_Style_FZTextBlock_FestivalPass_EventTileText"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_FestivalPass_TileTitle}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="Text" Value="{Binding Title}"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="MaxWidth" Value="260"/>
            <Setter Property="MaxHeight" Value="55"/>
            <Setter Property="TextAlignment" Value="Left"/>
            <Setter Property="CapHeight" Value="19"/>
            <Setter Property="FontFamily" Value="Horizon_B"/>
            <Setter Property="LineAdjust" Value="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToHeadingTextLineAdjust}}" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MarkupConverter_EventTileTitle}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemSize}"
                             Value="{x:Static FestivalPassItemSize.Large}">
                    <Setter Property="MaxWidth"
                            Value="520" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
        
        <Style x:Key="A_Style_FZTextBlock_FestivalPass_EventTileDescriptionText"
               TargetType="{x:Type local:FZTextBlock}"
               BasedOn="{StaticResource A_Style_FZTextBlock_TileTitle}">
            <Setter Property="Color"
                    Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="HorizontalAlignment"
                    Value="Left" />
            <Setter Property="Text"
                    Value="{Binding Description}" />
            <Setter Property="TextWrapping"
                    Value="Wrap" />
            <Setter Property="CapHeight"
                    Value="14" />
            <Setter Property="FontFamily"
                    Value="Horizon_D" />
            <Setter Property="TextAlignment"
                    Value="Left" />
            <Setter Property="LineAdjust"
                    Value="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToSubHeadingTextLineAdjust}}" />
            <Setter Property="Visibility"
                    Value="Collapsed" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemSize}"
                             Value="{x:Static FestivalPassItemSize.Large}">
                    <Setter Property="MaxWidth"
                            Value="520" />
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}" 
                             Value="{x:Static FestivalPassItemState.Available}">
                    <Setter Property="Visibility"
                            Value="Visible" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_BottomBar"
               TargetType="{x:Type local:FZTextBlock}">
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="FontFamily" Value="Horizon_B"/>
            <Setter Property="CapHeight" Value="24"/>
            <Setter Property="Color" Value="White"/>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_TopBar_Currency"
               TargetType="{x:Type local:FZTextBlock}"
               BasedOn="{StaticResource A_Style_FZTextBlock_FestivalPass_BottomBar}">
            <Setter Property="FontFamily" Value="Horizon_C"/>
            <Setter Property="CapHeight" Value="18"/>
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalReward" 
               TargetType="{x:Type local:FZTextBlock}"
               BasedOn="{StaticResource A_Style_FZTextBlock_FestivalPass_BottomBar}">
            <Setter Property="FontFamily" Value="Horizon_A"/>
            <Setter Property="Margin" Value="12,4"/>
            <Setter Property="TextAlignment" Value="Center"/>
            <Setter Property="FontSize" Value="16"/>
            <Setter Property="Color"
                    Value="{Binding ItemState, Converter={StaticResource A_Converter_Color_RewardTextFromItemState}}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemSize}"
                             Value="{x:Static FestivalPassItemSize.Medium}">
                    <Setter Property="Margin" Value="16,5"/>
                    <Setter Property="FontSize" Value="18"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalRestriction" 
               TargetType="{x:Type local:FZTextBlock}"
               BasedOn="{StaticResource A_Style_FZTextBlock_FestivalReward}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}" />
            <Setter Property="Margin" Value="7,5"/>
        </Style>

        <local:MappingConverter x:Key="A_Converter_TileTextColorFromItemState"
                                Default="{StaticResource H_Color_Primary_White}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Complete}"
                                         Value="{StaticResource H_Color_Primary_Black}" />
        </local:MappingConverter>

        <local:MultiConverter x:Key="A_Converter_PointsUnit">
            <local:MultiConverterEntry Converter="{StaticResource A_NumUnitConverter_ShowUnit_0dp_InsertMarkup}"
                                       Parameter="points" />
            <local:MultiConverterEntry Converter="{StaticResource A_StringToUpper}" />
        </local:MultiConverter>

        <local:MultiConverter x:Key="A_Converter_Unitless">
            <local:MultiConverterEntry Converter="{StaticResource A_NumUnitConverter_NoUnit_0dp_InsertMarkup}"/>
            <local:MultiConverterEntry Converter="{StaticResource A_StringToUpper}"/>
        </local:MultiConverter>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_ItemStateText"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_TileText_ImageTile}">
            <Setter Property="Color"
                    Value="{Binding ItemState, Converter={StaticResource A_Converter_TileTextColorFromItemState}}"/>
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="Text" Value="{Binding Points, Converter={StaticResource A_Converter_Unitless}}"/>
            <Setter Property="FontFamily"
                    Value="Horizon_C_tf"/>
            <Style.Triggers>
                <!-- Expired state with no timer -->
                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static local:FestivalPassItemState.Expired}">
                    <Setter Property="Text"
                            Value="{Binding Source={local:Loc DestinationMenu.IDS_Expired_Upper}, Converter={StaticResource A_StringToUpper}}" />
                    <Setter Property="FontFamily"
                            Value="Horizon_A"/>
                </DataTrigger>
                
                <!-- Locked state -->
                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static local:FestivalPassItemState.Locked}">
                    <Setter Property="Text"
                            Value="{local:Loc DestinationMenu.IDS_Locked_Upper}" />
                    <Setter Property="FontFamily"
                            Value="Horizon_A"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static local:FestivalPassItemState.Upcoming}">
                    <Setter Property="FontFamily"
                            Value="Horizon_A_tf"/>
                </DataTrigger>
                <!-- Locked state - Custom -->
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding ItemState}"
                             Value="{x:Static local:FestivalPassItemState.Locked}"/>
                        <Condition Binding="{Binding LockedReason, Converter={StringVisConverter}}"
                                   Value="{x:Static Visibility.Visible}" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Text"
                            Value="{Binding LockedReason}" />
                    <Setter Property="FontFamily"
                            Value="Horizon_A"/>
                </MultiDataTrigger>
                
                <!-- Available state -->
                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static local:FestivalPassItemState.Available}">
                    <Setter Property="Text"
                            Value="{Binding Points, Converter={StaticResource A_Converter_Unitless}}" />
                    <Setter Property="MaxWidth"
                            Value="82"/>
                </DataTrigger>
                
                <!-- redeem state -->
                <DataTrigger Binding="{Binding TopReward.RewardState}"
                             Value="{x:Static local:FestivalPassRewardState.Activatable}">
                    <Setter Property="Text"
                            Value="{local:Loc DestinationMenu.IDS_FestivalPass_RewardState_RedeemPrize}" />
                </DataTrigger>

                <!--expired challenge-->
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Expired}">
                    <Setter Property="Text"
                            Value="{Binding Source={local:Loc DestinationMenu.IDS_Expired_Upper}, Converter={StaticResource A_StringToUpper}}" />
                    <Setter Property="FontFamily"
                            Value="Horizon_A"/>
                </DataTrigger>

                <!-- expired time -->
                <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="Text" 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/FestivalPass/Fallbacks/ForzathonDailies_Spring_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Summer}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/ForzathonDailies_Summer_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/ForzathonDailies_Autumn_Active.png"/>
            <local:MappingConverterEntry Key="{x:Static local:Season.Winter}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Fallbacks/ForzathonDailies_Winter_Active.png"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZMaterial_FestivalPass_BackingImage_ForzathonDaily"
            TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Color" Value="#80000000"/>
            <Setter Property="Preset" Value="{StaticResource H_GlassRoundtangle_Low_2px}"/>
            <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_ItemStateText_ForzathonDaily_Definition"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_TileText_ImageTile}">
            <Setter Property="CapHeight" Value="19"/>
            <Setter Property="FontFamily" Value="Horizon_B"/>
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="TextWrapping" Value="NoWrap" />
            <Setter Property="Text" Value="{local:Loc DestinationMenu.IDS_ForzathonDaily_Completed}"/>
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_FestivalPass_Text_Highlight}"/>
            <Setter Property="Margin" Value="0"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static local:FestivalPassItemState.Complete}">
                    <Setter Property="Text"
                            Value="{local:Loc DestinationMenu.IDS_Complete}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static local:FestivalPassItemState.Locked}">
                    <Setter Property="Text"
                            Value="{local:Loc DestinationMenu.IDS_ForzathonDaily_Progress_Unavailable}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_ItemStateText_ForzathonDaily_Value"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_TileText_ImageTile}">
            <Setter Property="CapHeight" Value="19"/>
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="TextWrapping" Value="NoWrap" />
            <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc DestinationMenu.IDS_ForzathonDaily_ChallengeProgress}"/>
            <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="Text" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_FestivalPass_Text_Highlight}"/>
            <Setter Property="Margin" Value="0"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static local:FestivalPassItemState.Complete}">
                    <Setter Property="Text"
                            Value=""/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static local:FestivalPassItemState.Locked}">
                    <Setter Property="Text"
                            Value="" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <local:MappingConverter x:Key="A_Converter_Bool_ChallengeStateToShouldDisplayRestriction" CheckEnumKey="ForzaEventChallengeState">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}"
                                         Value="{StaticResource A_Boolean_True}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="{StaticResource A_Boolean_True}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="{StaticResource A_Boolean_False}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="{StaticResource A_Boolean_False}" />
        </local:MappingConverter>

        <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_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_Bool_IsExpiredOrUpcomingForzathonItemState"
                                Default="{StaticResource A_Boolean_False}">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="{StaticResource A_Boolean_True}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="{StaticResource A_Boolean_True}" />
        </local:MappingConverter>
        <local:MappingConverter x:Key="A_Converter_Bool_ActiveOrCompleteContentItemState"
                                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.Complete}"
                                         Value="{StaticResource A_Boolean_True}" />
        </local:MappingConverter>
        <local:MappingConverter x:Key="A_Converter_Visibility_ActiveOrCompleteContentItemState"
            Default="{x:Static Visibility.Hidden}">
            <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>
        <local:MappingConverter x:Key="A_Converter_Visibility_ActiveContentItemState"
                                Default="{x:Static Visibility.Collapsed}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Available}"
                                         Value="{x:Static Visibility.Visible}" />
        </local:MappingConverter>

        <Thickness x:Key="A_Thickness_Margin_TintedPanelFullWithFooterIcon">0,0,20,0</Thickness>
        <Thickness x:Key="A_Thickness_Margin_TintedPanelHalfWithFooterIcon">0,0,10,0</Thickness>
        <Thickness x:Key="A_Thickness_Margin_TintedPanelFull">23,23</Thickness>

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

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

    
        <Style x:Key="A_Style_FZTextBlock_FestivalPass_OverviewTitle"
            TargetType="{x:Type local:FZTextBlock}"
            BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
            <Setter Property="FontFamily" Value="Horizon_A"/>
            <Setter Property="FontSize" Value="120"/>
            <Setter Property="LineAdjust" Value="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToOverviewTitleLineAdjust}}"/>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_RewardTitle"
            TargetType="{x:Type local:FZTextBlock}"
               BasedOn="{StaticResource A_Style_FZTextBlock_RewardTopLine}">
            <Setter Property="Color" Value="{StaticResource A_Color_Tile_Title_Alternate}"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="Stretch" Value="Uniform"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Right"/>
            <Setter Property="TextAlignment" Value="Right"/>
            <Setter Property="Margin" Value="0"/>
            <Setter Property="CapHeight" Value="24"/>
            <Setter Property="Visibility" Value="Visible" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding RewardType}" 
                             Value="{Static UIRewardType.Car}">
                    <Setter Property="Text"
                        Value="{Binding RewardId, Converter={StaticResource A_Converter_CarNameShort}}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem, AncestorLevel=2}}"
                             Value="False">
                    <Setter Property="MaxWidth" Value="349"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding RewardType}"
                         Value="{Static UIRewardType.Currency}">
                    <Setter Property="Text" Value="" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="H_Style_Control_Markup_CreditsIcon" TargetType="Control"
            BasedOn="{StaticResource H_Style_Control_CreditsIcon}">
            <Setter Property="Height" Value="30"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="2,0"/>
        </Style>

        <MappingConverter x:Key="H_Markup_Credits_Icon">
            <MappingConverterEntry Key="{NoCase CREDITS}" Value="{StaticResource H_Style_Control_Markup_CreditsIcon}"/>
        </MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_RewardName"
               TargetType="{x:Type local:FZTextBlock}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
            <Setter Property="Text" Value="{Binding Description}"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="Stretch" Value="None"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Right"/>
            <Setter Property="TextAlignment" Value="Left"/>
            <Setter Property="Margin" Value="0"/>
            <Setter Property="CapHeight" Value="19"/>
            <Setter Property="FontFamily" Value="Horizon_A" />
            <Setter Property="LineAdjust" Value="-0.6" />
            <Setter Property="TextTrimming" Value="CharacterEllipsis" />
            <Setter Property="AutoScroll.AllowScrolling" Value="False" />
            <Setter Property="AutoScroll" Value="{StaticResource H_AutoScrollSettings_Festival_Title}" />
            <Setter Property="MarkupConverter" Value="{StaticResource H_Markup_Credits_Icon}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=(Selector.IsSelected), RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="True">
                    <Setter Property="AutoScroll.AllowScrolling" Value="True"/>
                    <Setter Property="TextTrimming" Value="None" />
                </DataTrigger>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding SeasonalDetailsToggle, RelativeSource={RelativeSource AncestorType=Page}}" Value="True"/>
                        <Condition Binding="{Binding DataContext.ShouldDisplayRestrictions, RelativeSource={RelativeSource TemplatedParent}}" Value="True"/>
                        <Condition Binding="{Binding DataContext.ItemState, Converter={StaticResource A_Converter_Bool_ChallengeStateToShouldDisplayRestriction}, RelativeSource={RelativeSource TemplatedParent}}" Value="{StaticResource A_Boolean_True}" />
                        <Condition Binding="{Binding DataContext.RestrictionsTagline, Converter={StaticResource A_StringVisConverter}, RelativeSource={RelativeSource TemplatedParent}}" Value="{x:Static Visibility.Visible}" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Text" Value="{Binding DataContext.RestrictionsTagline, RelativeSource={RelativeSource TemplatedParent}}" />
                    <Setter Property="Text" Value="{Binding DataContext.RestrictionsTagline, RelativeSource={RelativeSource TemplatedParent}}" />
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZMaterial_TopBarBase"
               TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Height"
                    Value="40" />
            <Setter Property="Margin"
                    Value="0,0,0,0" />
            <Setter Property="HorizontalAlignment"
                    Value="Stretch" />
            <Setter Property="VerticalAlignment"
                    Value="Top" />
        </Style>

        <local:MappingConverter x:Key="A_Converter_ContentType_to_Preset"
                                Default="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Seasonal}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}"
                                        Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Monthly}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ForzaEV}"
                                        Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Monthly}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Monthly}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.PhotoChallenge}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_PhotoChallenge}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.EventLabEvent}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_PhotoChallenge}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.Collectibles}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_PhotoChallenge}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TreasureChest}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_PhotoChallenge}" />  
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_ContentType_to_Preset_RewardPill"
                                Default="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Seasonal_Pill}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.MonthlyRivals}"
                                        Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Monthly_Pill}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.ForzaEV}"
                                        Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Monthly_Pill}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.HorizonStory}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Monthly_Pill}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.PhotoChallenge}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_PhotoChallenge_Pill}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.EventLabEvent}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_PhotoChallenge_Pill}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.Collectibles}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_PhotoChallenge_Pill}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassContentType.TreasureChest}"
                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_PhotoChallenge_Pill}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_RewardState_ShowCompletion"
                                Default="False">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardState.Activatable}"
                                         Value="True" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardState.Claimed}"
                                         Value="True" />
        </local:MappingConverter>
        <Style x:Key="A_Style_FZMaterial_Item_BottomBarBase"
               TargetType="{x:Type local:FZMaterial}"
               BasedOn="{StaticResource A_Style_FZMaterial_TopBarBase}">
            <Setter Property="Height"
                    Value="55" />
            <Setter Property="Color"
                    Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="Preset"
                    Value="{Roundtangle CornerRadius={CornerRadius BottomLeft=2, BottomRight=2}}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding TopReward.RewardState}"
                             Value="{x:Static local:FestivalPassRewardState.Activatable}">
                    <Setter Property="Color"
                            Value="{StaticResource H_Color_Primary_Yellow}" />
                    <Setter Property="Preset"
                            Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_BottomBar}" />
                    <Setter Property="ImageSource"
                            Value="{x:Null}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState, Converter={StaticResource A_Converter_Bool_ActiveOrCompleteContentItemState}}"
                             Value="False">
                    <Setter Property="ImageSource"
                            Value="{x:Null}" />
                    <Setter Property="Preset"
                            Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_BottomBar}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>        
        <Style x:Key="A_Style_FZMaterial_Item_BottomBarBase_Complete"
               TargetType="{x:Type local:FZMaterial}"
               BasedOn="{StaticResource A_Style_FZMaterial_TopBarBase}">
            <Setter Property="Preset"
                    Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_BottomBar}" />
            <Setter Property="Visibility"
                    Value="Collapsed" />
            <Setter Property="Height"
                    Value="55" />
            <Style.Triggers>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding TopReward}"
                                   Value="{x:Null}" />
                        <Condition Binding="{Binding ItemState}"
                                   Value="{x:Static local:FestivalPassItemState.Complete}" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Visibility"
                            Value="Visible" />
                </MultiDataTrigger>
                
                <DataTrigger Binding="{Binding TopReward.RewardState, Converter={StaticResource A_Converter_RewardState_ShowCompletion}, FallbackValue=False}"
                             Value="True">
                    <Setter Property="Visibility"
                            Value="Visible" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
        


        <FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientSeasonalContent_Vertical"
                                     BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_GradientSeasonalContent}"
                                     GradientAngle="0" />
        <FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_GradientSeriesContent_Vertical"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_BottomBar}"
                                           GradientColorA="#FF000000"
                                           GradientColorB="#FF000000"
                                           GradientAngle="0"/>
        <DataTemplate DataType="{x:Type local:FestivalPassSeparatorItem}">
            <DataTemplate.Resources>
                <local:MappingConverter x:Key="A_Converter_Separator_To_Color" CheckEnumKey="FestivalPassSeparatorStyle">
                    <local:MappingConverterEntry Key="{x:Static local:FestivalPassSeparatorStyle.Normal}"
                                                 Value="{StaticResource H_Color_Primary_Black}" />
                    <local:MappingConverterEntry Key="{x:Static local:FestivalPassSeparatorStyle.Seasonal}"
                                                 Value="{StaticResource H_Color_Primary_Black}" />
                    <local:MappingConverterEntry Key="{x:Static local:FestivalPassSeparatorStyle.Challenges}"
                                                 Value="{StaticResource H_Color_Primary_Black}" />
                    <local:MappingConverterEntry Key="{x:Static local:FestivalPassSeparatorStyle.Series}"
                                                 Value="{StaticResource H_Color_Primary_Black}" />
                    <local:MappingConverterEntry Key="{x:Static local:FestivalPassSeparatorStyle.ExpansionOne}"
                                                 Value="{StaticResource H_Color_Primary_Black}" />
                    <local:MappingConverterEntry Key="{x:Static local:FestivalPassSeparatorStyle.ExpansionTwo}"
                                                 Value="{StaticResource H_Color_Primary_Black}" />
                </local:MappingConverter>
                <local:MappingConverter x:Key="A_Converter_Separator_To_Preset"
                                        Default="{StaticResource A_FZMaterialPreset_FlatPanel_Base}">
                    <local:MappingConverterEntry Key="{x:Static local:FestivalPassSeparatorStyle.Seasonal}"
                                                 Value="{StaticResource A_FZMaterialPresetRoundtangle_GradientSeasonalContent_Vertical}" />
                    <local:MappingConverterEntry Key="{x:Static local:FestivalPassSeparatorStyle.Series}"
                                                 Value="{StaticResource A_FZMaterialPresetRoundtangle_GradientSeriesContent_Vertical}" />
                </local:MappingConverter>

                <Style x:Key="A_Style_Separator" TargetType="local:FZMaterial">
                    <Setter Property="Color" Value="{Binding SeparatorStyle, Converter={StaticResource A_Converter_Separator_To_Color}}"/>
                    <Setter Property="Preset" Value="{Binding SeparatorStyle, Converter={StaticResource A_Converter_Separator_To_Preset}}"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding SeparatorStyle}" Value="{x:Static local:FestivalPassSeparatorStyle.ExpansionOne}">
                            <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/PDLC1/FestivalPass/Hot_Wheels_Divider.png" />
                            <Setter Property="Color" Value="#FFFFFF" />
                            <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}" />
                        </DataTrigger>
                        <DataTrigger Binding="{Binding SeparatorStyle}" Value="{x:Static local:FestivalPassSeparatorStyle.ExpansionTwo}">
                            <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/PDLC2/FestivalPass/Astra_Divider.png" />
                            <Setter Property="Color" Value="#FFFFFF" />
                            <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </DataTemplate.Resources>
            <Grid>
                <local:FZMaterial Style="{StaticResource A_Style_Separator}"
                                  Focusable="False"
                                  Width="32"
                                  Height="708">
                    <Decorator HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,16">
                        <Decorator.LayoutTransform>
                            <TransformGroup>
                                <SkewTransform AngleX="-8" />
                                <RotateTransform Angle="-90" />
                            </TransformGroup>
                        </Decorator.LayoutTransform>
                        <local:FZTextBlock Text="{Binding Name}"
                                           Color="{StaticResource H_Color_Primary_White}"
                                           CapHeight="18" />
                    </Decorator>
                </local:FZMaterial>
            </Grid>
        </DataTemplate>

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

        <Thickness x:Key="A_Thickness_TileUnborderedBackground">3,3,3,3</Thickness>
        <System:Double x:Key="A_Double_RewardStackItemNameDividerHeight">10</System:Double>

        <Style x:Key="A_Style_ProgressReward_CheckBox" TargetType="local:FZMaterial"
            BasedOn="{StaticResource A_Style_FZMaterial_FestivalPass_CheckBox_Base}">
            <Setter Property="Color"
                    Value="{StaticResource H_Color_Primary_Black}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding RewardState}"
                             Value="{x:Static local:FestivalPassRewardState.Activatable}">
                    <Setter Property="Preset"
                            Value="{Roundtangle}" />
                </DataTrigger>                
                <DataTrigger Binding="{Binding RewardState}"
                             Value="{x:Static local:FestivalPassRewardState.Claimed}">
                    <Setter Property="Preset"
                            Value="{Roundtangle}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static local:FestivalPassItemState.Complete}">
                    <Setter Property="Preset"
                            Value="{Roundtangle}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        
        <ControlTemplate x:Key="A_ControlTemplate_FestivalPassItem_CheckBox">
            <Grid>
                <local:FZMaterial x:Name="CheckBox"
                                Style="{StaticResource A_Style_ProgressReward_CheckBox}"/>

                <local:FZMaterial x:Name="StateIcon"
                                  Style="{StaticResource A_Style_FZMaterial_FestivalPass_CheckBox_Tick}">
                    <local:FZMaterial.Style>
                        <Style TargetType="{x:Type local:FZMaterial}">
                            <Setter Property="Visibility" Value="Collapsed"/>
                            <Setter Property="Width" Value="24"/>
                            <Setter Property="Height" Value="24"/>
                            <Setter Property="VerticalAlignment" Value="Center"/>
                            <Setter Property="HorizontalAlignment" Value="Center"/>
                            <Setter Property="ImageSource" Value="{StaticResource A_BitmapImage_FPPill_CheckmarkIcon}"/>
                            <Style.Triggers>
                                <!-- content item -->
                                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static local:FestivalPassItemState.Complete}">
                                    <Setter Property="Visibility" Value="Visible" />
                                </DataTrigger>

                                <!-- forzathon item -->
                                <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Complete}">
                                    <Setter Property="Visibility" Value="Visible"/>
                                </DataTrigger>
                                <!-- Progress reward items -->
                                <DataTrigger Binding="{Binding RewardState}"
                                             Value="{x:Static local:FestivalPassRewardState.Activatable}">
                                    <Setter Property="Visibility" Value="Visible" />
                                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
                                </DataTrigger>
                                <DataTrigger Binding="{Binding RewardState}"
                                             Value="{x:Static local:FestivalPassRewardState.Claimed}">
                                    <Setter Property="Visibility" Value="Visible" />
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </local:FZMaterial.Style>
                </local:FZMaterial>
            </Grid>

            <ControlTemplate.Triggers>
                <DataTrigger Binding="{Binding ItemState, Converter={StaticResource A_Converter_Bool_ActiveOrCompleteContentItemState}}"
                             Value="False">
                    <Setter Property="Visibility"
                            Value="Hidden"
                            TargetName="StateIcon" />
                    <Setter Property="ImageSource"
                            Value="/ForzaUI;component/Textures/Anthem/Icons/Pad_Lock.png"
                            TargetName="CheckBox" />
                    <Setter Property="Preset"
                            Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                            TargetName="CheckBox" />
                </DataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Complete}">
                    <Setter Property="Color"
                            TargetName="CheckBox"
                            Value="{StaticResource H_Color_Primary_Black}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding State, Converter={StaticResource A_Converter_Bool_IsExpiredOrUpcomingForzathonItemState}}"
                             Value="True">
                    <Setter Property="Visibility"
                            Value="Hidden"
                            TargetName="StateIcon" />
                    <Setter Property="ImageSource"
                            Value="/ForzaUI;component/Textures/Anthem/Icons/Pad_Lock.png"
                            TargetName="CheckBox" />
                    <Setter Property="Preset"
                            Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                            TargetName="CheckBox" />
                </DataTrigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <Color x:Key="A_Color_FPPill_Active">#FFFFFFFF</Color>
        

        <local:MappingConverter x:Key="A_Converter_Bool_IsFPIconVisible_Forzathon"
                                Default="{StaticResource A_Boolean_True}">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="{StaticResource A_Boolean_False}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="{StaticResource A_Boolean_False}" />
        </local:MappingConverter>
        <local:MappingConverter x:Key="A_Converter_Bool_IsFPIconVisible_ContentItem"
                                Default="{StaticResource A_Boolean_True}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Expired}"
                                         Value="{StaticResource A_Boolean_False}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Complete}"
                                         Value="{StaticResource A_Boolean_False}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Upcoming}"
                                         Value="{StaticResource A_Boolean_False}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassItemState.Locked}"
                                         Value="{StaticResource A_Boolean_False}" />
        </local:MappingConverter>
        
        <ControlTemplate x:Key="A_ControlTemplate_FestivalPassItem_FPRewardPill" TargetType="{x:Type Control}">
                <local:FZMaterial x:Name="Stroke"
                                  Preset="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Seasonal_Pill_Stroke}"
                                  Height="34">
            <local:FZMaterial x:Name="Pill"
                              Preset="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}}"
                              Margin="2">
                    <DockPanel HorizontalAlignment="Center"
                               VerticalAlignment="Center">
                        <local:FZMaterial x:Name="CheckCircle"
                                          HorizontalAlignment="Center"
                                          VerticalAlignment="Center"
                                          Height="20"
                                          Width="20"
                                          Color="{StaticResource A_Color_FPPill_Active}"
                                          Preset="{Roundtangle CornerRadius=10}"
                                          Margin="5,0,0,0"
                                          DockPanel.Dock="Left" >
                            <local:FZMaterial x:Name="CheckCircleIcon"
                                              Height="18"
                                              Width="18"
                                              HorizontalAlignment="Center"
                                              VerticalAlignment="Center"
                                              Visibility="Collapsed"/>
                        </local:FZMaterial>

                        <Control x:Name="FPIcon"
                                 Style="{StaticResource H_Style_Control_PlaylistIcon}"
                                 HorizontalAlignment="Center"
                                 VerticalAlignment="Center"
                                 Height="26"
                                 Width="26"
                                 Margin="2,0,2,0"
                                 DockPanel.Dock="Right" />

                        <local:FZTextBlock x:Name="FPRewardText"
                                           CapHeight="17"
                                           Style="{StaticResource A_Style_FZTextBlock_FestivalPass_ItemStateText}"
                                           Color="{StaticResource H_Color_Primary_White}"
                                           VerticalAlignment="Center"
                                           MinWidth="28"
                                           TextAlignment="Right"
                                           Margin="5,0,0,0"/>
                    </DockPanel>
                </local:FZMaterial>
            </local:FZMaterial>
            <ControlTemplate.Triggers>
                <DataTrigger Binding="{Binding ItemState, Converter={StaticResource A_Converter_Bool_ActiveOrCompleteContentItemState}}"
                             Value="False">
                    <Setter Property="Tag"
                            Value="Locked"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding State, Converter={StaticResource A_Converter_Bool_IsExpiredOrUpcomingForzathonItemState}}"
                             Value="True">
                    <Setter Property="Tag"
                            Value="Locked"/>
                </DataTrigger>
                <Trigger Property="Tag"
                         Value="Locked">
                    <Setter Property="ImageSource"
                            Value="{StaticResource A_BitmapImage_FPPill_LockIcon}"
                            TargetName="CheckCircleIcon" />
                    <Setter Property="Color"
                            Value="{StaticResource H_Color_Primary_Black}"
                            TargetName="CheckCircleIcon" />
                    <Setter Property="Visibility"
                            Value="Visible"
                            TargetName="CheckCircleIcon" />
                    <Setter Property="BindingProxy.B"
                            Value="{StaticResource A_FZMaterialPresetRoundtangle_Desaturated}"
                            TargetName="FPIcon"/>
                </Trigger>

                <DataTrigger Binding="{Binding ItemState}"
                             Value="{x:Static local:FestivalPassItemState.Complete}">
                    <Setter Property="Tag"
                            Value="Complete"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Complete}">
                    <Setter Property="Tag"
                            Value="Complete"/>
                </DataTrigger>
                <Trigger Property="Tag"
                         Value="Complete">
                    <Setter Property="Color"
                            TargetName="CheckCircle"
                            Value="{StaticResource H_Color_Primary_Black}" />
                    <Setter Property="ImageSource"
                            Value="{StaticResource A_BitmapImage_FPPill_CheckmarkIcon}"
                            TargetName="CheckCircleIcon" />
                    <Setter Property="Visibility"
                            Value="Visible"
                            TargetName="CheckCircleIcon" />
                    <Setter Property="Text"
                            Value="{Binding Source={local:Loc Festival.IDS_Content_Complete}, Converter={StaticResource A_StringToUpper}}"
                            TargetName="FPRewardText"/>
                    <Setter Property="Margin"
                            Value="5,0,14,0"
                            TargetName="FPRewardText"/>
                    <Setter Property="Color"
                            Value="{StaticResource H_Color_Primary_Black}"
                            TargetName="FPRewardText"/>
                    <Setter Property="FontFamily"
                            Value="Horizon_A"
                            TargetName="FPRewardText"/>
                    <Setter Property="Preset"
                            Value="{Roundtangle CornerRadius=14}"
                            TargetName="Pill"/>
                    <Setter Property="ImageSource"
                            Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Prize_Box_Completed.png"
                            TargetName="Pill"/>
                </Trigger>
                <DataTrigger Binding="{Binding State, Converter={StaticResource A_Converter_Bool_IsFPIconVisible_Forzathon}}"
                             Value="False">
                    <Setter Property="Visibility"
                            Value="Collapsed"
                            TargetName="FPIcon"/>  
                    <Setter Property="Margin"
                            Value="5,0,10,0"
                            TargetName="FPRewardText"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ItemState, Converter={StaticResource A_Converter_Bool_IsFPIconVisible_ContentItem}}"
                             Value="False">
                    <Setter Property="Visibility"
                            Value="Collapsed"
                            TargetName="FPIcon"/> 
                    <Setter Property="Margin"
                            Value="5,0,10,0"
                            TargetName="FPRewardText"/>
                </DataTrigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_FestivalPassItem_RewardLabel">
            <Decorator ClipToBounds="True">
                <Decorator x:Name="ClipSpace" Margin="0,0,0,0"
                       Visibility="{Binding DataContext.PillText, RelativeSource={RelativeSource AncestorType=ListBoxItem}, Converter={StaticResource A_StringVisConverter_UseHidden}, FallbackValue=Hidden}">
                    <local:FZMaterial x:Name="RewardLabel"
                                      MinHeight="24"
                                      Color="{StaticResource H_Color_Primary_Yellow}"
                                      HorizontalAlignment="Right">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalReward}"
                                       Text="{Binding DataContext.PillText, RelativeSource={RelativeSource AncestorType=ListBoxItem}}"
                                       x:Name="LabelText"
                                       CapHeight="14" />
                    </local:FZMaterial>
                </Decorator>
            </Decorator>
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_FestivalPassItem_ImageCreatorLabel">
            <Decorator ClipToBounds="True">
                <Decorator x:Name="ClipSpace" Margin="8,0,-2,0">
                        <StackPanel Orientation="Horizontal">
                            <local:FZMaterial Width="20"
                                        Height="15"
                                        ImageSource="/ForzaUI;component/Textures/Data_Bound/FestivalPass/User_Photo_Icon.png" />
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalReward}"
                                Text="{Binding DataContext.ImageCreatorGamertag, RelativeSource={RelativeSource AncestorType=ListBoxItem}}"
                                x:Name="LabelText"
                                CapHeight="14"
                                Color="{StaticResource H_Color_Primary_White}"
                                Margin="3,4,12,4"/>
                        </StackPanel>
                </Decorator>
            </Decorator>
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_FestivalPassItem_RestrictionLabel">
            <Decorator ClipToBounds="True">
                <local:FZMaterial x:Name="RestrictionLabel"
                                  MinHeight="24"
                                  Color="{StaticResource H_Color_Primary_Yellow}"
                                  HorizontalAlignment="Right">
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalRestriction}"
                                       Text="{Binding Source={local:Loc DestinationMenu.IDS_FestivalPass_CarRestriction}, Converter={StaticResource A_StringToUpper}}"
                                       x:Name="LabelText"
                                       CapHeight="14"
                                       Margin="8,5"/>
                </local:FZMaterial>
            </Decorator>
        </ControlTemplate>


        <System:Double x:Key="A_Double_FestivalPass_RewardAndDescriptionPanelHalfHeight">106</System:Double>

        <local:MappingConverter x:Key="A_Converter_Bool_IsAnimatingToComplete"
            Default="False">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardState.Claimed}" Value="True"/>
        </local:MappingConverter>



        <local:MappingConverter x:Key="A_Converter_RewardTypeToIcon_FestivalPass">
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Credits}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/RewardIcons/Credit.png" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Currency}" Value="" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Car}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/RewardIcons/Car.png" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Clothing}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/RewardIcons/Clothing.png" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Horn}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/RewardIcons/Horn.png" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Music}" Value="" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.QuickChatPhrase}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/RewardIcons/Chat.png" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Emote}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/RewardIcons/Emote.png" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.SuperWheelspin}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/RewardIcons/SuperWheelspin.png" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Wheelspin}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/RewardIcons/Wheelspin.png" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.BarnFindRumour}" Value="" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.SkillPoints}" Value="" />
            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.LiveryDecals}" Value="" />
        </local:MappingConverter>
        
        <Style x:Key="A_Style_RewardTypeBox"
           TargetType="Control">
            <Setter Property="MinWidth"
                Value="56" />
            <Setter Property="Height"
                Value="26" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_RewardBacking}"
                                          Height="26"
                                          Width="60">
                            <local:FZMaterial Width="60"
                                              Height="48"
                                              Margin="0,0,0,0"
                                              VerticalAlignment="Bottom"
                                              ImageSource="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeToIcon_FestivalPass}}"/>
                        </local:FZMaterial>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <ControlTemplate x:Key="A_ControlTemplate_FestivalPassItem_RewardInformation">
            <Grid Height="{StaticResource A_Double_FestivalPass_RewardAndDescriptionPanelHalfHeight}"
                  Visibility="{Binding TopReward, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Visible}">
                <Grid.Style>
                    <Style TargetType="Grid">
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding TopReward, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}" Value="{x:Static Visibility.Collapsed}" >
                                <Setter Property="Visibility" Value="{x:Static Visibility.Collapsed}" />
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </Grid.Style>

                <local:FZMaterial Height="10"
                                  VerticalAlignment="Bottom">
                    <local:FZMaterial.Style>
                        <Style TargetType="local:FZMaterial">
                            <Setter Property="Preset" Value="{Binding ContentType, Converter={StaticResource A_Converter_ContentType_to_Preset}}"/>
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding ItemState, Converter={StaticResource A_Converter_Bool_ActiveOrCompleteContentItemState}}"
                                             Value="False">
                                    <Setter Property="Preset"
                                            Value="{Roundtangle}"/>
                                    <Setter Property="Color"
                                            Value="{StaticResource H_Color_Primary_Grey_60pc}"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </local:FZMaterial.Style>
                </local:FZMaterial>

                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Bottom"
                            Margin="0,0,4,-8">
                    <Control HorizontalAlignment="Right" 
                             VerticalAlignment="Bottom"
                             x:Name="RewardLabel"
                             Margin="2,0"
                             Height="26"
                             Template="{StaticResource A_ControlTemplate_FestivalPassItem_RewardLabel}" />

                    <Control Style="{StaticResource A_Style_RarityFloatingPin_Mini}"
                             DataContext="{Binding TopReward}"
                             VerticalAlignment="Bottom"
                             x:Name="RarityPill"
                             Margin="2,0"/>

                    <Control DataContext="{Binding TopReward}"
                             Style="{StaticResource A_Style_RewardTypeBox}"
                             Margin="2,0"/>
                </StackPanel>
            </Grid>
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_ForzathonPointReward" TargetType="{x:Type Control}">
            <DockPanel HorizontalAlignment="Left">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_ForzaEventPoints_Small}"
                                Color="{DynamicResource A_Colour_Dynamic_ForzathonPoints}"
                                x:Name="RewardIcon"
                                Margin="3,0,0,0"
                                DockPanel.Dock="Right" />
                <local:FZTextBlock Text="{Binding TopReward.Amount}"
                                Style="{StaticResource A_Style_FZTextBlock_ForzaEvents_DailyChallenge_RewardText}"
                                Color="{DynamicResource A_Colour_Dynamic_ForzathonPoints}"
                                VerticalAlignment="Center"
                                x:Name="RewardText" />
            </DockPanel>
            <ControlTemplate.Triggers>
                <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Complete}">
                    <Setter TargetName="RewardIcon"
                            Property="Color"
                            Value="{DynamicResource A_Colour_Dynamic_ForzathonPointsComplete}" />
                    <Setter TargetName="RewardText"
                            Property="Color"
                            Value="{DynamicResource A_Colour_Dynamic_ForzathonPointsComplete}" />
                </DataTrigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_FestivalPassItem_RewardInformation_ForzathonPoints">
            <local:FZMaterial VerticalAlignment="Bottom"
                    HorizontalAlignment="Right"
                    Margin="0,0,18,24"
                    Visibility="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_ActiveContentItemState}}"
                    Color="{StaticResource H_Color_Primary_Pink}">
                <local:FZMaterial.Preset>
                    <local:FZMaterialPresetRoundtangle CornerRadius="17" />
                </local:FZMaterial.Preset>
                <local:FZMaterial Color="{StaticResource H_Color_Primary_Purple}"
                                    DockPanel.Dock="Right"
                                    Height="30"
                                    Margin="4">
                    <local:FZMaterial.Preset>
                        <local:FZMaterialPresetRoundtangle CornerRadius="15" />
                    </local:FZMaterial.Preset>
                    <Control Template="{StaticResource A_ControlTemplate_ForzathonPointReward}"
                                Margin="5,0" />
                </local:FZMaterial>
            </local:FZMaterial>
        </ControlTemplate>

        <local:MappingConverter x:Key="A_MappingConverter_Control_ControlTemplate_FromRewardType"
            Default="{StaticResource A_ControlTemplate_FestivalPassItem_RewardInformation}">
            <local:MappingConverterEntry Key="{Static UIRewardType.Currency}" Value="{StaticResource A_ControlTemplate_FestivalPassItem_RewardInformation_ForzathonPoints}"/>
        </local:MappingConverter>

        <ControlTemplate x:Key="A_ControlTemplate_FestivalPassItem_RestrictionInformation">
            <Grid Height="{StaticResource A_Double_FestivalPass_RewardAndDescriptionPanelHalfHeight}">

                <local:FZMaterial Height="10" VerticalAlignment="Bottom">
                    <local:FZMaterial.Style>
                        <Style TargetType="local:FZMaterial">
                            <Setter Property="Preset" Value="{Binding ContentType, Converter={StaticResource A_Converter_ContentType_to_Preset}}"/>
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding ItemState, Converter={StaticResource A_Converter_Bool_ActiveOrCompleteContentItemState}}" Value="False">
                                    <Setter Property="Preset" Value="{Roundtangle}"/>
                                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Grey_60pc}"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </local:FZMaterial.Style>
                </local:FZMaterial>

                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Bottom"
                            Margin="0,0,5,-6">
                    <Control HorizontalAlignment="Right" 
                             VerticalAlignment="Bottom"
                             x:Name="RestrictionLabel"
                             Margin="0,0,0,0"
                             Template="{StaticResource A_ControlTemplate_FestivalPassItem_RestrictionLabel}"/>

                    <Control Style="{StaticResource A_Style_Control_OnlineFlyerCarClass}"
                             Tag="{TemplateBinding Tag}"
                             HorizontalAlignment="Right"
                             VerticalAlignment="Bottom"
                             Height="45"
                             Margin="5,0,0,0"/>
                </StackPanel>
            </Grid>
        </ControlTemplate>

        <Style x:Key="A_Style_Control_DetailStack"
               TargetType="Control">
            <Setter Property="Template" Value="{StaticResource A_ControlTemplate_FestivalPassItem_RewardInformation}" />
            <Style.Triggers>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding SeasonalDetailsToggle, RelativeSource={RelativeSource AncestorType=Page}}" Value="True"/>
                        <Condition Binding="{Binding ShouldDisplayRestrictions}" Value="True"/>
                        <Condition Binding="{Binding ItemState, Converter={StaticResource A_Converter_Bool_ChallengeStateToShouldDisplayRestriction}}" Value="{StaticResource A_Boolean_True}" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Template" Value="{StaticResource A_ControlTemplate_FestivalPassItem_RestrictionInformation}" />
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>



        <local:MappingConverter x:Key="A_MappingConverter_RewardSource_To_Color"
                                Default="{StaticResource H_Color_Primary_Pink}"
                                CheckEnumKey="FestivalPassRewardSource">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.Series}"
                                         Value="{StaticResource H_Color_Primary_Pink}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.Season}"
                                         Value="{StaticResource H_Color_Primary_Blue}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.Event}"
                                         Value="#39B54A" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.SeriesHistory}"
                                         Value="{StaticResource H_Color_Primary_Yellow}" />
        </local:MappingConverter>
        
        <local:MappingConverter x:Key="A_MappingConverter_RewardSource_To_HeaderColor"
                                Default="{StaticResource H_Color_Primary_Pink}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.Series}"
                                         Value="{StaticResource H_Color_Primary_Yellow}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.Season}"
                                         Value="{StaticResource H_Color_Primary_Yellow}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.Event}"
                                         Value="#39B54A" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.SeriesHistory}"
                                         Value="{StaticResource H_Color_Primary_Yellow}" />
        </local:MappingConverter>

        <Style x:Key="A_Style_ProgressBar_SeriesProgress"
               TargetType="{x:Type ProgressBar}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ProgressBar}">
                        <local:FZMaterial x:Name="PART_Track"
                                          Height="18"
                                          Color="{StaticResource H_Color_Primary_Black}"
                                          Preset="{Roundtangle CornerRadius=9}">
                            <Decorator x:Name="PART_Indicator"
                                              ClipToBounds="True"
                                              Height="18"
                                              HorizontalAlignment="Left">
                                <local:FZMaterial Color="{Binding Rewards[0].RewardSource, Converter={StaticResource A_MappingConverter_RewardSource_To_Color}, FallbackValue={StaticResource H_Color_Primary_Pink}}"
                                                  ClipToBounds="True"
                                                  Height="18"
                                                  Width="{Binding ActualWidth, ElementName=PART_Track}"
                                                  Preset="{Roundtangle CornerRadius=9}"
                                                  HorizontalAlignment="Left"/>
                            </Decorator>
                        </local:FZMaterial>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="A_Style_ProgressBar_SeasonProgress"
               TargetType="{x:Type ProgressBar}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ProgressBar}">
                        <local:FZMaterial x:Name="PART_Track"
                                          Height="18"
                                          Color="{StaticResource H_Color_Primary_Black}"
                                          Preset="{Roundtangle CornerRadius=9}">
                            <Decorator x:Name="PART_Indicator"
                                              ClipToBounds="True"
                                              Height="18"
                                              HorizontalAlignment="Left">
                                <local:FZMaterial Color="{Binding Season, Converter={StaticResource A_Converter_Season_To_Color}, FallbackValue={StaticResource H_Color_Primary_Pink}}"
                                                  ClipToBounds="True"
                                                  Height="18"
                                                  Width="{Binding ActualWidth, ElementName=PART_Track}"
                                                  Preset="{Roundtangle CornerRadius=9}"
                                                  HorizontalAlignment="Left"/>
                            </Decorator>
                        </local:FZMaterial>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="A_Style_ProgressBarCap"
            TargetType="local:FZMaterial">
            <Style.Triggers>
                <DataTrigger Binding="{Binding CurrentProgress}" Value="0">
                    <Setter Property="Visibility"
                            Value="Collapsed" />
                </DataTrigger>
                <DataTrigger Binding="{Binding CurrentProgress}" Value="1">
                    <Setter Property="Visibility"
                            Value="Collapsed" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="A_Style_ProgressBar_CommunityGiftEvent"
               TargetType="{x:Type ProgressBar}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ProgressBar}">
                        <DockPanel x:Name="PART_Track"
                                   Height="57"
                                   Margin="0,0,28,0">
                            <local:FZMaterial x:Name="PART_Indicator"
                                              ImageSource="/ForzaUI;component/Textures/Data_Bound/CommunityGiftEvents/Bar_Fill.png"
                                              MaxWidth="684"
                                              Margin="13,0,0,15"
                                              ClipToBounds="True"
                                              HorizontalAlignment="Left"
                                              DockPanel.Dock="Left"
                                              Stretch="Uniform"
                                              StretchDirection="UpOnly"/>
                        
                    <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/CommunityGiftEvents/Bar_Cap.png"
                                              Style="{StaticResource A_Style_ProgressBarCap}"
                                              Height="36"
                                              Width="7"
                                              Margin="-7,0,0,15"
                                              ClipToBounds="True"
                                              HorizontalAlignment="Left"
                                              DockPanel.Dock="Right"/>
                        </DockPanel>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>        

        <ExponentialEase x:Key="A_EasingFunction_ExponentialEaseOut"
                         EasingMode="EaseOut" />
        <local:UIStoryboard FillBehavior="HoldEnd"
                            x:Key="A_Storyboard_ProgressReward_ShineAppear">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <EasingDoubleKeyFrame KeyTime="0:0:1.5"
                                      Value="0.9"
                                      EasingFunction="{StaticResource A_EasingFunction_ExponentialEaseOut}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <EasingDoubleKeyFrame KeyTime="0:0:1.5"
                                      Value="0.9"
                                      EasingFunction="{StaticResource A_EasingFunction_ExponentialEaseOut}" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>
        <local:UIStoryboard FillBehavior="HoldEnd"
                            RepeatBehavior="Forever"
                            x:Key="A_Storyboard_ProgressReward_ShineLooping">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(RotateTransform.Angle)">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                        Value="0" />
                <LinearDoubleKeyFrame KeyTime="0:0:3.0"
                                      Value="360" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>
        <Style TargetType="local:FZMaterial"
               x:Key="A_Style_FZMaterial_RewardSparkle">
            <Setter Property="ImageSource"
                    Value="/ForzaUI;component/Textures/Data_Bound/Reward/sparkle.png" />
            <Setter Property="Width"
                    Value="98" />
            <Setter Property="Height"
                    Value="98" />
            <Setter Property="RenderTransformOrigin"
                    Value="0.5,0.5" />
            <Setter Property="VerticalAlignment"
                    Value="Center" />
            <Setter Property="HorizontalAlignment"
                    Value="Center" />
            <Setter Property="Visibility"
                    Value="Hidden" />
            <Setter Property="RenderTransform">
                <Setter.Value>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0"
                                        ScaleY="0" />
                        <RotateTransform />
                    </TransformGroup>
                </Setter.Value>
            </Setter>
            <Style.Triggers>
                <EventTrigger RoutedEvent="FrameworkElement.Loaded">
                    <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_ProgressReward_ShineLooping}" />
                </EventTrigger>
                <DataTrigger Binding="{Binding RewardState}"
                             Value="{x:Static local:FestivalPassRewardState.Activatable}">
                    <Setter Property="Visibility"
                            Value="Visible" />
                    <DataTrigger.EnterActions>
                        <local:BeginUIStoryboard Name="BeginStoryboard_ShowProgressRewardShine"
                                                 Storyboard="{StaticResource A_Storyboard_ProgressReward_ShineAppear}" />
                    </DataTrigger.EnterActions>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_Thumb_FP"
               TargetType="{x:Type Thumb}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Thumb}">
                        <Grid HorizontalAlignment="Center">
                            <Grid VerticalAlignment="Center"
                                  HorizontalAlignment="Center">
                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_RewardSparkle}"
                                                  VerticalAlignment="Top" 
                                                  HorizontalAlignment="Center" 
                                                  Margin="0,-35,0,0"/>
                                <local:FZMaterial ImageSource="{Binding RewardType, Converter={StaticResource A_Converter_PrizeTypeToImageSource_Badge}}"
                                                  VerticalAlignment="Center" HorizontalAlignment="Center"
                                                  Width="54"
                                                  Height="54" />

                            </Grid>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <DataTemplate x:Key="A_DataTemplate_RewardMarkers">
            <Track Maximum="{Binding DataContext.MaxPoints, RelativeSource={RelativeSource AncestorType=ListBoxItem}, FallbackValue=100}"
                   Minimum="0"
                   Value="{Binding Ratio}">
                <Track.Thumb>
                    <Thumb x:Name="Thumb" Width="25" Height="25"
                           Style="{StaticResource A_Style_Thumb_FP}" />
                </Track.Thumb>
            </Track>
        </DataTemplate>
        
        <Style x:Key="A_Style_Thumb_CommunityGiftEvent"
               TargetType="{x:Type Thumb}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Thumb}">
                        <Grid HorizontalAlignment="Center">
                            <local:FZMaterial HorizontalAlignment="Right"
                                              Width="20"
                                              Height="52"
                                              ImageSource="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Prize_Marker.png" />
                            <Grid Margin="0,-34,-8,0"
                                  VerticalAlignment="Top"
                                  HorizontalAlignment="Center">
                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_RewardSparkle}"
                                                  VerticalAlignment="Top" 
                                                  HorizontalAlignment="Center" 
                                                  Margin="0,-20,0,0"/>
                                <local:FZMaterial ImageSource="{Binding RewardType, Converter={StaticResource A_Converter_PrizeTypeToImageSource_Badge}}"
                                                  VerticalAlignment="Top" HorizontalAlignment="Center"
                                                  Width="54"
                                                  Height="54" />

                            </Grid>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <DataTemplate x:Key="A_DataTemplate_RewardMarkers_CommunityGiftEvent">
            <Track Maximum="{Binding DataContext.MaxPoints, RelativeSource={RelativeSource AncestorType=ListBoxItem}, FallbackValue=100}"
                   Minimum="0"
                   Value="{Binding Ratio}">
                <Track.Thumb>
                    <Thumb x:Name="Thumb" Width="20"
                           Style="{StaticResource A_Style_Thumb_CommunityGiftEvent}" />
                </Track.Thumb>
            </Track>
        </DataTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_ProgressBar_FP">
            <Grid>
                    <local:FZMaterial x:Name="SeriesProgressBarBack"
                                      DockPanel.Dock="Right"
                                      Width="{TemplateBinding Width}"
                                  Height="28"
                                  Color="{StaticResource H_Color_Primary_White}"
                                  Preset="{Roundtangle CornerRadius=14}">
                        <ProgressBar x:Name="SeriesProgressBar"
                                     Focusable="False"
                                     Style="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}, Converter={CompareConverter Value={x:Null}, Equal={StaticResource A_Style_ProgressBar_SeriesProgress}, NotEqual={StaticResource A_Style_ProgressBar_SeasonProgress}}}"
                                     Minimum="0"
                                     Maximum="{Binding MaxPoints, FallbackValue=100}"
                                 Value="{Binding CurrentPoints}"
                                 Margin="5,0"/>
                    </local:FZMaterial>
                
                <Decorator MinWidth="{TemplateBinding Width}">
                    <ItemsControl ItemTemplate="{StaticResource A_DataTemplate_RewardMarkers}"
                                  ItemsSource="{Binding Rewards}">
                        <ItemsControl.ItemsPanel>
                            <ItemsPanelTemplate>
                                <Grid IsItemsHost="True"
                                      Focusable="False" />
                            </ItemsPanelTemplate>
                        </ItemsControl.ItemsPanel>
                    </ItemsControl>
                </Decorator>
            </Grid>
        </ControlTemplate>
        
        <ControlTemplate x:Key="A_ControlTemplate_ProgressBar_CommunityGiftEvent">
            <Grid>
                <Decorator>
                    <local:FZMaterial x:Name="ProgressBarBack"
                                      DockPanel.Dock="Right"
                                      Width="{TemplateBinding Width}"
                                      Height="82"
                                      ImageSource="/ForzaUI;component/Textures/Data_Bound/CommunityGiftEvents/Bar_Background.png"
                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll1px}">
                        <ProgressBar x:Name="ProgressBar"
                                     Focusable="False"
                                     Style="{StaticResource A_Style_ProgressBar_CommunityGiftEvent}"
                                     Minimum="0"
                                     Maximum="1"
                                     Value="{Binding CurrentProgress}" />
                    </local:FZMaterial>
                </Decorator>

                <Decorator Margin="0,0,6,16" Width="680">
                    <ItemsControl ItemTemplate="{StaticResource A_DataTemplate_RewardMarkers_CommunityGiftEvent}"
                                  ItemsSource="{Binding Rewards}">
                        <ItemsControl.ItemsPanel>
                            <ItemsPanelTemplate>
                                <Grid IsItemsHost="True"
                                      Focusable="False" />
                            </ItemsPanelTemplate>
                        </ItemsControl.ItemsPanel>
                    </ItemsControl>
                </Decorator>

                <!-- text overlay -->
                <Decorator RenderTransformOrigin="0.5,0.5" RenderTransform="{StaticResource A_Transform_Italic}"
                           HorizontalAlignment="Right" Margin="0,0,18,4">
                    <Grid>
                        <local:FZTextBlock Text="{Binding ProgressBarText}"
                                           Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                           FontSize="27.7"
                                           Margin="0,0,36,12"
                                           Color="{StaticResource H_Color_Primary_Purple}"
                                           HorizontalAlignment="Center"
                                           VerticalAlignment="Center"
                                           Effect="{StaticResource A_Effect_HighContrastModeDropShadow}">
                        </local:FZTextBlock>
                    </Grid>
                </Decorator>
            </Grid>
        </ControlTemplate>

        <Style TargetType="FrameworkElement"
               x:Key="A_Style_DefaultReward_Layout">
            <Setter Property="VerticalAlignment"
                    Value="Stretch" />
            <Setter Property="HorizontalAlignment"
                    Value="Stretch" />
            <Setter Property="MaxHeight"
                    Value="240" />
        </Style>
        
        <Style TargetType="FrameworkElement"
               x:Key="A_Style_CarReward_Layout">
            <Setter Property="VerticalAlignment"
                    Value="Top" />
            <Setter Property="HorizontalAlignment"
                    Value="Left" />
            <Setter Property="Margin"
                    Value="0,0,0,0" />
        </Style>
        <Style TargetType="FrameworkElement"
               x:Key="A_Style_WheelspinReward_Layout">
            <Setter Property="Margin" Value="24" />
        </Style>
        <!--Different item types have some custom positional corrections-->
        <local:MappingConverter x:Key="A_Converter_RewardType_To_Style"
                          Default="{StaticResource A_Style_DefaultReward_Layout}">
            <local:MappingConverterEntry Key="{Static UIRewardType.Car}"
                                   Value="{StaticResource A_Style_CarReward_Layout}" />
            <local:MappingConverterEntry Key="{Static UIRewardType.SuperWheelspin}"
                                   Value="{StaticResource A_Style_WheelspinReward_Layout}" />
            <local:MappingConverterEntry Key="{Static UIRewardType.Wheelspin}"
                                   Value="{StaticResource A_Style_WheelspinReward_Layout}" />
        </local:MappingConverter>


        <Style x:Key="A_Style_ProgressReward_TopBar"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_TopBarBase}">
            <Setter Property="Color"
                    Value="{Binding RewardSource, Converter={StaticResource A_MappingConverter_RewardSource_To_HeaderColor}}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding RewardState}"
                             Value="{x:Static local:FestivalPassRewardState.Activatable}">
                    <Setter Property="Color"
                            Value="{StaticResource H_Color_Primary_Yellow}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding IsNextReward}"
                             Value="True">
                    <Setter Property="Color"
                            Value="{StaticResource H_Color_Primary_Green}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="A_Style_ProgressReward_TopBar_Complete"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_TopBarBase}">
            <Setter Property="Color"
                    Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="Preset"
                    Value="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_BottomBar}" />
            <Setter Property="ImageSource"
                    Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Prize_Box_Completed.png" />
        </Style>

        <local:MappingConverter x:Key="A_Converter_RewardState_To_Text">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardState.Activatable}"
                                         Value="{local:Loc DestinationMenu.IDS_FestivalPass_RewardState_RedeemPrize}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardState.Claimed}"
                                         Value="{local:Loc DestinationMenu.IDS_FestivalPass_RewardState_Completed}" />
        </local:MappingConverter>
        <local:MappingConverter x:Key="A_Converter_RewardSource_To_Text" CheckEnumKey="FestivalPassRewardSource">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.Series}"
                                         Value="{local:Loc DestinationMenu.IDS_FestivalPass_RewardSource_Series}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.Season}"
                                         Value="{local:Loc DestinationMenu.IDS_FestivalPass_RewardSource_Season}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.Event}"
                                         Value="{local:Loc DestinationMenu.IDS_FestivalPass_RewardSource_Event}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassRewardSource.SeriesHistory}"
                                         Value="{local:Loc DestinationMenu.IDS_FestivalPass_RewardSource_SeriesHistory}" />
        </local:MappingConverter>
        <Style x:Key="A_Style_FZTextblock_ProgressReward_TopBar_Text"
               BasedOn="{StaticResource A_Style_FZTextBlock_FestivalPass_ItemStateText}"
               TargetType="local:FZTextBlock">
            <Setter Property="Color"
                    Value="{StaticResource H_Color_Primary_Black}" />
            <Setter Property="Text"
                    Value="{Binding RewardState, Converter={StaticResource A_Converter_RewardState_To_Text}}" />
        </Style>
        <Style x:Key="A_Style_FZTextblock_ProgressReward_BottomBar_Text_Base"
               BasedOn="{StaticResource A_Style_FZTextBlock_FestivalPass_ItemStateText}"
               TargetType="local:FZTextBlock">
            <Setter Property="Color"
                    Value="{StaticResource H_Color_Primary_Black}" />
            <Setter Property="Text"
                    Value="{Binding RewardState, Converter={StaticResource A_Converter_RewardState_To_Text}}" />
        </Style>
        <Style x:Key="A_Style_FZTextblock_ProgressReward_BottomBar_Text"
               BasedOn="{StaticResource A_Style_FZTextblock_ProgressReward_BottomBar_Text_Base}"
               TargetType="local:FZTextBlock">
            <Style.Triggers>
                <DataTrigger Binding="{Binding RewardState}"
                             Value="{x:Static local:FestivalPassRewardState.Pending}">
                    <Setter Property="Color"
                            Value="{StaticResource H_Color_Primary_Black}" />
                    <Setter Property="Text"
                            Value="{Binding RewardSource, Converter={StaticResource A_Converter_RewardSource_To_Text}}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding IsNextReward}"
                             Value="True">
                    <Setter Property="Text"
                            Value="{local:Loc DestinationMenu.IDS_FestivalPass_RewardSource_SeriesHistory_Next}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
        <CircleEase x:Key="A_EasingFunction_EaseInCircle"
                   EasingMode="EaseIn" />
        <CircleEase x:Key="A_EasingFunction_EaseOutCircle"
                    EasingMode="EaseOut" />
        <KeyTime x:Key="A_KeyTime_PendingActivation_AnimationStart">0:0:0.15</KeyTime>
        <KeyTime x:Key="A_KeyTime_PendingActivation_AnimationEnd">0:0:1.5</KeyTime>
        <local:OffsetKeyTime x:Key="A_KeyTime_PendingActivation_SlideHitch"
                             KeyTime="{StaticResource A_KeyTime_PendingActivation_AnimationStart}" 
                             Offset="0:0:0.35"/>
        <local:OffsetKeyTime x:Key="A_KeyTime_PendingActivation_SlideSpeedUp"
                             KeyTime="{StaticResource A_KeyTime_PendingActivation_SlideHitch}"
                             Offset="0:0:0.35" />

        <DoubleAnimationUsingKeyFrames x:Key="A_AnimationUsingKeyFrames_Sheen_Movement_Initial_Delay"
                                       Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
                                       Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                    Value="-60" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_PendingActivation_SlideHitch}"
                                  EasingFunction="{StaticResource A_EasingFunction_EaseInCircle}"
                                  Value="60" />
            <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_PendingActivation_AnimationEnd}"
                                  Value="580" />
        </DoubleAnimationUsingKeyFrames>

        <local:UIStoryboard x:Key="A_Storyboard_ProgressReward_AnimateRewardPending"
                            FillBehavior="HoldEnd"
                            RepeatBehavior="Forever"
                            Storyboard.TargetName="Sheen">
            <StaticResourceExtension ResourceKey="A_AnimationUsingKeyFrames_Sheen_Movement_Initial_Delay" />
        </local:UIStoryboard>

        <KeyTime x:Key="A_KeyTime_Claimed_AnimationStart">0:0:0.0</KeyTime>
        <local:OffsetKeyTime x:Key="A_KeyTime_Claimed_SwitchTransition_Start"
                             KeyTime="{StaticResource A_KeyTime_Claimed_AnimationStart}"
                             Offset="0:0:0.0" />
        <local:OffsetKeyTime x:Key="A_KeyTime_Claimed_SwitchTransition_Mid"
                             KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_Start}"
                             Offset="0:0:0.25" />
        <local:OffsetKeyTime x:Key="A_KeyTime_Claimed_SwitchTransition_End"
                             KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_Mid}"
                             Offset="0:0:0.25" />
        <local:OffsetKeyTime x:Key="A_KeyTime_Claimed_FlashEnd"
                             KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_End}"
                             Offset="0:0:0.00" />

        <local:OffsetKeyTime x:Key="A_KeyTime_Claimed_Complete_Sheen_Start"
                             KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_End}"
                             Offset="0:0:0.25" />
        <local:OffsetKeyTime x:Key="A_KeyTime_Claimed_Complete_Sheen_End"
                             KeyTime="{StaticResource A_KeyTime_Claimed_Complete_Sheen_Start}"
                             Offset="0:0:0.40" />

        <local:OffsetKeyTime x:Key="A_KeyTime_Claimed_AnimationEnd"
                             KeyTime="{StaticResource A_KeyTime_Claimed_Complete_Sheen_End}"
                             Offset="0:0:0.05"/>

        <local:UIStoryboard x:Key="A_Storyboard_Claimed_Sheen"
                            FillBehavior="Stop"
                            Storyboard.TargetName="Sheen_Complete">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="{x:Null}">
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_Complete_Sheen_Start}"
                                        Value="1.0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
                                           Storyboard.TargetName="{x:Null}">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                        Value="-60" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_Complete_Sheen_Start}"
                                        Value="-60" />
                <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_Complete_Sheen_End}"
                                      Value="580" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_Progress_AnimateRewardComplete"
                            FillBehavior="HoldEnd">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="Flash">
                <LinearDoubleKeyFrame KeyTime="0:0:0.0"
                                      Value="0" />
                <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_Mid}"
                                      Value="1.0" />
                <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_FlashEnd}"
                                      Value="0.0" />
            </DoubleAnimationUsingKeyFrames>
                       
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="ItemBar_Complete">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                        Value="0" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_Mid}"
                                        Value="1" />
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="AvailabilityGlow">
                <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_Mid}"
                                        Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent EventName="RewardAnimationComplete"
                                    local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Claimed_AnimationEnd}" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>


        <Style x:Key="A_Style_FZMaterial_BaseEffect"
               TargetType="local:FZMaterial">
            <Setter Property="Color"
                    Value="#FFFFFFFF" />
            <Setter Property="RenderTransformOrigin"
                    Value="0.5,0.5" />
            <Setter Property="Opacity"
                    Value="1.0" />
            <Setter Property="Visibility"
                    Value="Collapsed" />
            <Setter Property="Preset">
                <Setter.Value>
                    <local:FZMaterialPresetRoundtangle AlphaMode="Additive"
                                                       Unlit="True" />
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="A_Style_FZMaterial_SheenEffect_Base"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_BaseEffect}">
            <Setter Property="OpacityMask">
                <Setter.Value>
                    <LinearGradientBrush StartPoint="0,0.5"
                                         EndPoint="1,0.5">
                        <GradientStop Color="#00FFFFFF"
                                      Offset="0.25" />
                        <GradientStop Color="#FFFFFFFF"
                                      Offset="0.45" />
                        <GradientStop Color="#FFFFFFFF"
                                      Offset="0.55" />
                        <GradientStop Color="#00FFFFFF"
                                      Offset="0.75" />
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="A_Style_FZMaterial_SheenEffect_ProgressItem"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_SheenEffect_Base}">
            <Setter Property="RenderTransform">
                <Setter.Value>
                    <TransformGroup>
                        <SkewTransform AngleX="-26" />
                        <TranslateTransform X="0" />
                    </TransformGroup>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="A_Style_FZMaterial_FlashEffect"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_BaseEffect}">
            <Setter Property="Visibility"
                    Value="Visible" />
            <Setter Property="RenderTransform">
                <Setter.Value>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1" />
                    </TransformGroup>
                </Setter.Value>
            </Setter>
        </Style>
        <local:FZMaterialUVMap x:Key="A_FZMaterialUVMap_ClaimBtn_Glow"
                               StretchRegion="13,0,13,0"
                               UnstretchedSize="27,40" />

        <Style x:Key="A_Style_RarityFloatingPin_Small_FP"
           BasedOn="{StaticResource A_Style_RarityFloatingPin_Small}"
           TargetType="Control">
            <Setter Property="DynamicData.Data">
                <Setter.Value>
                    <DynamicDataSource>
                        <DynamicDataItem Name="RarityTextCapHeight"
                                     DataType="Double"
                                     Value="18" />
                    </DynamicDataSource>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="A_Style_RarityFloatingPin_Small_RaceOff"
           BasedOn="{StaticResource A_Style_RartiyFloatingPin_Base}"
           TargetType="Control">
        <Setter Property="DynamicData.Data">
            <Setter.Value>
                <DynamicDataSource>
                    <DynamicDataItem Name="RarityTextCapHeight"
                                     DataType="Double"
                                     Value="16" />
                </DynamicDataSource>
            </Setter.Value>
        </Setter>
        <Setter Property="MinWidth"
                Value="101.25" />
        <Setter Property="Height"
                Value="27" />
    </Style>
        <ControlTemplate x:Key="A_ControlTemplate_ExclusivityFloatingPin_FP">
            <Grid Height="{TemplateBinding Height}">
                <FZMaterial Style="{StaticResource A_Style_FZMaterial_ExclusiveGlow}" />
                <FZMaterial Color="{StaticResource H_Color_Primary_Yellow}"
                        Preset="{StaticResource H_Roundtangle_Outer_1px}">
                    <Decorator RenderTransformOrigin="0.5,0.5" RenderTransform="{StaticResource A_Transform_Italic}">
                        <FZTextBlock x:Name="ExclusiveTagText"
                             Text="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}}"
                             Style="{StaticResource H_Style_PostRaceRow_HeaderText}"
                             Color="{StaticResource H_Color_Primary_Black}"
                             TextAlignment="Center"
                             CapHeight="18" />
                    </Decorator>
                </FZMaterial>
            </Grid>
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_ExclusivityFloatingPin_FP_RaceOff">
            <Grid Height="{TemplateBinding Height}">
                <FZMaterial Style="{StaticResource A_Style_FZMaterial_ExclusiveGlow}" />
                <FZMaterial Color="{StaticResource H_Color_Primary_Yellow}"
                        Preset="{StaticResource H_Roundtangle_Outer_1px}">
                    <Decorator RenderTransformOrigin="0.5,0.5" RenderTransform="{StaticResource A_Transform_Italic}">
                        <FZTextBlock x:Name="ExclusiveTagText"
                             Text="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}}"
                             Style="{StaticResource H_Style_PostRaceRow_HeaderText}"
                             Color="{StaticResource H_Color_Primary_Black}"
                             TextAlignment="Center"
                             CapHeight="15" />
                    </Decorator>
                </FZMaterial>
            </Grid>
        </ControlTemplate>

        <ControlTemplate x:Key="A_Style_RewardTemplateControl_WithIcon">
            <Grid Width="568"
                  Height="184">
                <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Prize_Box_Glow.png"
                                  Width="568"
                                  Height="113"
                                  VerticalAlignment="Top"
                                  x:Name="AvailabilityGlow">
                    <local:FZMaterial.Style>
                        <Style TargetType="local:FZMaterial">
                            <Setter Property="Visibility" Value="Hidden" />
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding RewardState}" Value="{x:Static local:FestivalPassRewardState.Activatable}">
                                    <Setter Property="Visibility" Value="Visible" />
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </local:FZMaterial.Style>
                </local:FZMaterial>

                <DockPanel>
                    <Grid DockPanel.Dock="Top">
                        <Decorator VerticalAlignment="Stretch">
                            <Grid>
                                <Grid x:Name="ItemBar">
                                    <Grid.RenderTransform>
                                        <TranslateTransform Y="0" />
                                    </Grid.RenderTransform>

                                    <local:FZMaterial HorizontalAlignment="Stretch"
                                                  Margin="0"
                                                  Height="36"
                                                  Style="{StaticResource A_Style_ProgressReward_TopBar}">
                                        <Grid>
                                            <Grid ClipToBounds="True">
                                                <local:FZMaterial x:Name="Sheen"
                                                                  Width="60"
                                                                  Margin="0,-6"
                                                                  HorizontalAlignment="Left"
                                                                  Style="{StaticResource A_Style_FZMaterial_SheenEffect_ProgressItem}" />
                                            </Grid>
                                            <Decorator x:Name="ButtonPrompt"
                                                       Visibility="Collapsed"
                                                       HorizontalAlignment="Right"
                                                       Margin="0,0,0,0">
                                                <DockPanel>
                                                    <Decorator DockPanel.Dock="Left">
                                                        <local:FZTextBlock Text="{Binding Source={local:Loc HelpButtons.IDS_Press}, Converter={StaticResource A_StringToUpper}}"
                                                                           CapHeight="18"
                                                                           VerticalAlignment="Center"
                                                                           Color="{StaticResource H_Color_Primary_Black}"
                                                                           FontFamily="Horizon_A"
                                                                           MaxWidth="85"/>
                                                    </Decorator>
                                                    <Decorator DockPanel.Dock="Left" Width="5" />
                                                    <Grid>
                                                        <local:ControllerButtonControl  Height="35"
                                                                                        HorizontalAlignment="Left"
                                                                                        Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                                                                                        AllowMouseClick="False"
                                                                                        Margin="4,0"
                                                                                        x:Name="Button"
                                                                                        Button="X" />
                                                    </Grid>
                                                </DockPanel>
                                            </Decorator>

                                            <DockPanel LastChildFill="False">

                                                <Control Template="{StaticResource A_ControlTemplate_FestivalPassItem_CheckBox}"
                                                     DockPanel.Dock="Left"
                                                     Margin="7,0,0,0"/>
                                                <Decorator HorizontalAlignment="Left"
                                                       Margin="10,0,12,0">
                                                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextblock_ProgressReward_BottomBar_Text}"
                                                                       VerticalAlignment="Center"
                                                                       HorizontalAlignment="Center"
                                                                       FontFamily="Horizon_A"
                                                                       CapHeight="18"
                                                                       TextWrapping="Wrap"
                                                                       Margin="0" />
                                                </Decorator>
                                                                                             
                                                <local:FZMaterial ImageSource="{Binding RewardType, Converter={StaticResource A_Converter_PrizeTypeToImageSource_Badge_RewardItem}}"
                                                                  DockPanel.Dock="Left"
                                                                  Width="39"
                                                                  Height="26"
                                                                  VerticalAlignment="Center"
                                                                  HorizontalAlignment="Center"/>

                                                <Grid DockPanel.Dock="Right"
                                                      HorizontalAlignment="Right"
                                                      Width="143">
                                                    
                                                        <StackPanel x:Name="CurrencyBox" 
                                                                    VerticalAlignment="Center"
                                                                    HorizontalAlignment="Right"
                                                                    Orientation="Horizontal">
                                                            <local:FZTextBlock x:Name="Currency"
                                                                               Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TopBar_Currency}"
                                                                               Text="{Binding Points}" />
                                                            <Control Style="{StaticResource A_Style_Control_FestivalPass_PlaylistIcon}"
                                                                     Margin="7,0,5,0" />
                                                        </StackPanel>
                                                </Grid>
                                            </DockPanel>
                                        </Grid>
                                    </local:FZMaterial>
                                </Grid>


                                <local:FZMaterial x:Name="ItemBar_Complete"
                                                  HorizontalAlignment="Stretch"
                                                  Margin="0"
                                                  Opacity="0"
                                                  Height="36"
                                                  Style="{StaticResource A_Style_ProgressReward_TopBar_Complete}">
                                    <local:FZMaterial.RenderTransform>
                                        <TranslateTransform Y="0" />
                                    </local:FZMaterial.RenderTransform>
                                    <Grid>
                                        <DockPanel LastChildFill="False">
                                            <Control Template="{StaticResource A_ControlTemplate_FestivalPassItem_CheckBox}"
                                                     DockPanel.Dock="Left"
                                                     Margin="7,0,0,0"/>
                                            <Decorator HorizontalAlignment="Left"
                                                       Margin="10,0,12,0">
                                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextblock_ProgressReward_TopBar_Text}"
                                                                   Text="{local:Loc DestinationMenu.IDS_FestivalPass_RewardState_Completed}"
                                                                   VerticalAlignment="Center"
                                                                   HorizontalAlignment="Center"
                                                                   FontFamily="Horizon_A"
                                                                   CapHeight="18"
                                                                   Margin="0" />
                                            </Decorator>
                                                                    
                                            <local:FZMaterial ImageSource="{Binding RewardType, Converter={StaticResource A_Converter_PrizeTypeToImageSource_Badge_RewardItem}}"
                                                                  DockPanel.Dock="Left"
                                                                  Width="39"
                                                                  Height="26"
                                                                  VerticalAlignment="Center"
                                                                  HorizontalAlignment="Center"/>

                                            <Grid ClipToBounds="True"
                                                  DockPanel.Dock="Right"
                                                  HorizontalAlignment="Right"
                                                  Width="143">
                                                <Grid.Style>
                                                    <Style TargetType="{x:Type Grid}">
                                                        <Setter Property="Visibility" Value="Visible" />
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Points}" Value="{x:Null}">
                                                                <Setter Property="Visibility" Value="Collapsed"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </Grid.Style>

                                                <StackPanel VerticalAlignment="Center"
                                                           HorizontalAlignment="Right"
                                                           Orientation="Horizontal">
                                                    <local:FZTextBlock x:Name="CompletedCurrency"
                                                                       Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TopBar_Currency}"
                                                                       Text="{Binding Points}"
                                                                       Color="{StaticResource H_Color_Primary_Black}"/>
                                                    <Control Style="{StaticResource A_Style_Control_FestivalPass_PlaylistIcon}"
                                                             Margin="7,0,5,0"/>
                                                </StackPanel>
                                            </Grid>
                                        </DockPanel>

                                        <Grid ClipToBounds="True">
                                            <local:FZMaterial x:Name="Sheen_Complete"
                                                              Width="60"
                                                              Margin="0,-6"
                                                              Visibility="Visible"
                                                              Opacity="0"
                                                              HorizontalAlignment="Left"
                                                              Style="{StaticResource A_Style_FZMaterial_SheenEffect_ProgressItem}" />
                                        </Grid>
                                    </Grid>
                                </local:FZMaterial>

                                <Decorator ClipToBounds="True"
                                           Height="36"
                                           VerticalAlignment="Bottom">
                                    <local:FZMaterial x:Name="Flash"
                                                      Margin="-6,-6"
                                                      Opacity="0"
                                                      Style="{StaticResource A_Style_FZMaterial_FlashEffect}" />
                                </Decorator>
                            </Grid>
                        </Decorator>
                    </Grid>

                    <Grid x:Name="Content"
                          HorizontalAlignment="Stretch">

                        <Control HorizontalAlignment="Right"
                                 Style="{Binding RewardType, Converter={StaticResource A_Converter_RewardType_To_Style}}"
                                 Template="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeThumbnail}}"
                                 Margin="0,-20,-32,0"/>

                        <!-- overlay tags-->
                        <StackPanel Orientation="Horizontal"
                                    VerticalAlignment="Bottom"
                           HorizontalAlignment="Left">
                            <Control Style="{StaticResource A_Style_ExclusivityFloatingPin}"
                                     local:BindingProxy.A="{Binding PillText}"
                                     Visibility="{Binding PillText, Converter={StaticResource A_StringVisConverter}}"
                                     Height="32"
                                     Template="{StaticResource A_ControlTemplate_ExclusivityFloatingPin_FP}"
                                     VerticalAlignment="Center"
                                     Margin="2,0"/>
                            <Control Style="{StaticResource A_Style_RarityFloatingPin_Small_FP}" 
                                     VerticalAlignment="Center"
                                     Height="32"
                                     Margin="2,0"/>
                        </StackPanel>


                    <!-- overlay name-->
                            <FZTextBlock x:Name="RewardNameText"
                                         Color="{StaticResource H_Color_Primary_White}"
                                     CapHeight="18"
                                     FontFamily="Horizon_A"
                                     HorizontalAlignment="Left"
                                     VerticalAlignment="Center"
                                     TextAlignment="Left"
                                     Width="250"
                                     MaxHeight="115"
                                     TextWrapping="Wrap"
                                     Margin="2,0,0,32"
                                     LineAdjust="-0.5">
                                <local:FZTextBlock.Style>
                                    <Style TargetType="local:FZTextBlock">
                                        <Setter Property="Text" Value="{Binding Description}" />
                                    </Style>
                                </local:FZTextBlock.Style>
                            </FZTextBlock>

                    </Grid>
                </DockPanel>
                
            </Grid>
            <ControlTemplate.Triggers>
                <!-- Activatable end state-->
                <DataTrigger Binding="{Binding RewardState}"
                             Value="{x:Static local:FestivalPassRewardState.Activatable}">
                    <Setter Property="Visibility"
                            TargetName="ButtonPrompt"
                            Value="Visible" />                    
                    <Setter Property="Visibility"
                            TargetName="Sheen"
                            Value="Visible" />
                    <Setter Property="Visibility"
                            TargetName="CurrencyBox"
                            Value="Collapsed" />

                    <DataTrigger.EnterActions>
                        <local:BeginUIStoryboard HandoffBehavior="SnapshotAndReplace"
                                                 x:Name="BeginStoryboard_ProgressAnimateRewardPending"
                                                 Storyboard="{StaticResource A_Storyboard_ProgressReward_AnimateRewardPending}"/>
                    </DataTrigger.EnterActions>
                    <DataTrigger.ExitActions>
                        <StopStoryboard BeginStoryboardName="BeginStoryboard_ProgressAnimateRewardPending" />
                    </DataTrigger.ExitActions>
                </DataTrigger>
                
                <!-- claimed end state-->
                <DataTrigger Binding="{Binding RewardState}"
                             Value="{x:Static local:FestivalPassRewardState.Claimed}">
                    <Setter Property="Opacity"
                            TargetName="ItemBar_Complete"
                            Value="1" />
                    <Setter Property="Visibility"
                            TargetName="ItemBar"
                            Value="Collapsed" />
                    <DataTrigger.EnterActions>
                        <StopStoryboard BeginStoryboardName="BeginStoryboard_ProgressAnimateRewardPending" />
                    </DataTrigger.EnterActions>
                </DataTrigger>
                
                <!-- Transition animation-->
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding RewardState}"
                                   Value="{x:Static local:FestivalPassRewardState.Activatable}" />
                        <Condition Binding="{Binding AnimatingToState}"
                                   Value="{x:Static local:FestivalPassRewardState.Claimed}" />
                    </MultiDataTrigger.Conditions>
                    <MultiDataTrigger.EnterActions>
                        <StopStoryboard BeginStoryboardName="BeginStoryboard_ProgressAnimateRewardPending" />
                        <local:BeginUIStoryboard HandoffBehavior="SnapshotAndReplace"
                                                 x:Name="BeginStoryboard_ProgressAnimateRewardComplete"
                                                 Storyboard="{StaticResource A_Storyboard_Progress_AnimateRewardComplete}" />
                        <local:BeginUIStoryboard HandoffBehavior="SnapshotAndReplace"
                                                 Storyboard="{StaticResource A_Storyboard_Claimed_Sheen}" />
                    </MultiDataTrigger.EnterActions>
                    <MultiDataTrigger.ExitActions>
                        <StopStoryboard BeginStoryboardName="BeginStoryboard_ProgressAnimateRewardComplete" />
                    </MultiDataTrigger.ExitActions>
                </MultiDataTrigger>

                <DataTrigger Binding="{Binding RewardSource}"
                             Value="{x:Static local:FestivalPassRewardSource.Event}">
                    <Setter Property="Visibility"
                            TargetName="CurrencyBox"
                            Value="Collapsed" />
                </DataTrigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <local:MappingConverter x:Key="A_Converter_RaceOff_PanelProgressTextureToType">
            <local:MappingConverterEntry Key="{x:Type FestivalPassSeriesRaceOffOffroadItem}" Value="/ForzaUI;component/Textures/Data_Bound/Series32/Festival_Pass/Progress_Fill_Offroad.png"/>
            <local:MappingConverterEntry Key="{x:Type FestivalPassSeriesRaceOffAsphaltItem}" Value="/ForzaUI;component/Textures/Data_Bound/Series32/Festival_Pass/Progress_Fill_Asphalt.png"/>
        </local:MappingConverter>

        <local:MultiConverter x:Key="A_Converter_RaceOff_PanelProgressTexture" ConvertNullValues="True">
            <local:MultiConverterEntry Converter="{StaticResource A_TypeOfConverter}" />
            <local:MultiConverterEntry Converter="{StaticResource A_Converter_RaceOff_PanelProgressTextureToType}" />
        </local:MultiConverter>

        <Style x:Key="A_Style_ProgressBar_RaceOffEvent"
               TargetType="{x:Type ProgressBar}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ProgressBar}">
                        <DockPanel x:Name="PART_Track"
                                   Height="60"
                                   VerticalAlignment="Center">
                            <local:FZMaterial x:Name="PART_Indicator"
                                              ImageSource="{Binding DataContext, ElementName=PART_Track, Converter={StaticResource A_Converter_RaceOff_PanelProgressTexture}}"
                                              MaxWidth="301"
                                              Margin="3,0,0,0"
                                              ClipToBounds="True"
                                              HorizontalAlignment="Left"
                                              DockPanel.Dock="Left"
                                              Stretch="Uniform"
                                              StretchDirection="UpOnly"/>
                        </DockPanel>
                        <ControlTemplate.Triggers>
                            <DataTrigger Binding="{Binding Reward.RewardState, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="{Static CompareResult.GreaterThan}">
                                <Setter TargetName="PART_Indicator" Property="ImageSource"
                                        Value="/ForzaUI;component/Textures/Data_Bound/Series32/Festival_Pass/Progress_Fill_Complete.png" />
                            </DataTrigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <local:MappingConverter x:Key="A_Converter_RaceOff_PanelProgressCarTextureFromType">
            <local:MappingConverterEntry Key="{x:Type FestivalPassSeriesRaceOffOffroadItem}" Value="/ForzaUI;component/Textures/Data_Bound/Series32/Festival_Pass/Car_Offroad.png"/>
            <local:MappingConverterEntry Key="{x:Type FestivalPassSeriesRaceOffAsphaltItem}" Value="/ForzaUI;component/Textures/Data_Bound/Series32/Festival_Pass/Car_Asphalt.png"/>
        </local:MappingConverter>

        <local:MultiConverter x:Key="A_Converter_RaceOff_PanelProgressCarTexture" ConvertNullValues="False">
            <local:MultiConverterEntry Converter="{StaticResource A_TypeOfConverter}" />
            <local:MultiConverterEntry Converter="{StaticResource A_Converter_RaceOff_PanelProgressCarTextureFromType}" />
        </local:MultiConverter>

        <Style x:Key="A_Style_CarVisualProgress_RaceOffEvent"
               TargetType="{x:Type ProgressBar}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ProgressBar}">
                        <DockPanel x:Name="PART_Track"
                                   Height="60"
                                   VerticalAlignment="Center">
                            <local:Decorator x:Name="PART_Indicator"
                                              MaxWidth="300"
                                              Margin="0,0,0,0"
                                              ClipToBounds="True"
                                              HorizontalAlignment="Left"
                                              DockPanel.Dock="Left"/>
                            <local:FZMaterial ImageSource="{Binding DataContext, ElementName=PART_Track, Converter={StaticResource A_Converter_RaceOff_PanelProgressCarTexture}}"
                                              Style="{StaticResource A_Style_ProgressBarCap}"
                                              Height="56"
                                              Width="56"
                                              Margin="-54,0,0,55"
                                              HorizontalAlignment="Left"
                                              VerticalAlignment="Bottom"
                                              Stretch="Uniform"
                                              DockPanel.Dock="Right"/>

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

        <local:MappingConverter x:Key="A_Converter_RaceOff_PanelBackgroundTextureToType">
            <local:MappingConverterEntry Key="{x:Type FestivalPassSeriesRaceOffOffroadItem}" Value="/ForzaUI;component/Textures/Data_Bound/Series32/Festival_Pass/Panel_Offroad.png"/>
            <local:MappingConverterEntry Key="{x:Type FestivalPassSeriesRaceOffAsphaltItem}" Value="/ForzaUI;component/Textures/Data_Bound/Series32/Festival_Pass/Panel_Asphalt.png"/>
        </local:MappingConverter>

        <local:MultiConverter x:Key="A_Converter_RaceOff_PanelBackgroundTexture" ConvertNullValues="False">
            <local:MultiConverterEntry Converter="{TypeOfConverter}" />
            <local:MultiConverterEntry Converter="{StaticResource A_Converter_RaceOff_PanelBackgroundTextureToType}" />
        </local:MultiConverter>

        <ControlTemplate x:Key="A_ControlTemplate_ProgressBar_RaceOffProgress">
            <Grid>
                <local:FZMaterial x:Name="ProgressBarBack"
                                  Width="308"
                                  Height="38"
                                  ImageSource="/ForzaUI;component/Textures/Data_Bound/Series32/Festival_Pass/Progress_Bar.png"
                                  Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll1px}">
                        <ProgressBar x:Name="ProgressBar"
                                     Focusable="False"
                                     Style="{StaticResource A_Style_ProgressBar_RaceOffEvent}"
                                     Minimum="0"
                                     Maximum="1"
                                     VerticalAlignment="Center"
                                     Margin="0,0,0,0"
                                     Value="{Binding Progress}" />
                </local:FZMaterial>

                <local:FZMaterial x:Name="ProgressEndFlag"
                                  Width="36"
                                  Height="48"
                                  ImageSource="/ForzaUI;component/Textures/Data_Bound/Series32/Festival_Pass/Flag.png"
                                  HorizontalAlignment="Right"
                                  VerticalAlignment="Top"
                                  Margin="0,-46,0,0">
                    <FZMaterial.RenderTransform>
                            <ScaleTransform ScaleX="-1" />
                    </FZMaterial.RenderTransform>
                </local:FZMaterial>

                <!-- Car Progress Visual -->
                <ProgressBar x:Name="CarProgressVisual"
                             Focusable="False"
                             Style="{StaticResource A_Style_CarVisualProgress_RaceOffEvent}"
                             Width="308"
                             Height="5"
                             Minimum="0"
                             Maximum="1"
                             VerticalAlignment="Center"
                             Margin="3,0,3,0"
                             Value="{Binding Value, ElementName=ProgressBar, Converter={Clamp Min=0.2}}" />

                <!-- text overlay -->
                <Decorator RenderTransformOrigin="0.5,0.5" RenderTransform="{StaticResource A_Transform_Italic}"
                           HorizontalAlignment="Right" Margin="0,0,18,4">
                    <Grid>
                        <local:FZTextBlock Text="{Binding ProgressBarText}"
                                           Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                           FontSize="27.7"
                                           Margin="0,0,36,12"
                                           Color="{StaticResource H_Color_Primary_Purple}"
                                           HorizontalAlignment="Center"
                                           VerticalAlignment="Center"
                                           Effect="{StaticResource A_Effect_HighContrastModeDropShadow}">
                        </local:FZTextBlock>
                    </Grid>
                </Decorator>
            </Grid>
        </ControlTemplate>

        <ControlTemplate x:Key="A_Style_RewardTemplateControl_RaceOff">
            <Grid Width="352"
                  Height="372">
                <Grid ClipToBounds="True">
                    <local:FZMaterial x:Name="RewardBackground"
                                      Preset="{StaticResource A_Preset_FZMaterial_Reward_BackgroundGradient_OverviewReward_RaceOff}"
                                      VerticalAlignment="Bottom"
                                      Height="310"/>
                    <Decorator VerticalAlignment="Bottom">
                        <Grid>
                            <Grid x:Name="ItemBottomBar">
                                <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Prize_Box_Glow.png"
                                                  Width="352"
                                                  Height="120"
                                                  VerticalAlignment="Bottom"
                                                  x:Name="AvailabilityGlow">
                                    <local:FZMaterial.Style>
                                        <Style TargetType="local:FZMaterial">
                                            <Setter Property="Visibility"
                                                    Value="Visible" />
                                            <Style.Triggers>
                                                <DataTrigger Binding="{Binding RewardState}"
                                                             Value="{x:Static local:FestivalPassRewardState.Pending}">
                                                    <Setter Property="Visibility"
                                                            Value="Hidden" />
                                                </DataTrigger>
                                            </Style.Triggers>
                                        </Style>
                                    </local:FZMaterial.Style>
                                </local:FZMaterial>

                                <Decorator HorizontalAlignment="Stretch"
                                           VerticalAlignment="Bottom"
                                           Height="80">
                                    <Grid>
                                        <Grid ClipToBounds="True">
                                            <local:FZMaterial x:Name="Sheen"
                                                              Width="60"
                                                              Margin="0,-6"
                                                              HorizontalAlignment="Left"
                                                              Style="{StaticResource A_Style_FZMaterial_SheenEffect_ProgressItem}" />
                                        </Grid>

                                        <!-- Race Off Progress Bar -->
                                        <Control Template="{StaticResource A_ControlTemplate_ProgressBar_RaceOffProgress}"
                                                 DataContext="{Binding DataContext, RelativeSource={RelativeSource AncestorType=Control, AncestorLevel=2}}"
                                                 VerticalAlignment="Bottom"
                                                 HorizontalAlignment="Center"
                                                 Margin="0,0,0,10"
                                                 Width="400"/>

                                        <DockPanel Name="RedeemPromptPanel"
                                                   VerticalAlignment="Bottom"
                                                   HorizontalAlignment="Center"
                                                   Margin="50,0,50,12"
                                                   Height="35">
                                            <Decorator LayoutTransform="{StaticResource A_Transform_Italic}"
                                                       HorizontalAlignment="Left"
                                                       Margin="0,0,12,0">
                                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextblock_ProgressReward_BottomBar_Text_Base}"
                                                                   VerticalAlignment="Center"
                                                                   HorizontalAlignment="Center"
                                                                   FontFamily="Horizon_A"
                                                                   CapHeight="18"
                                                                   MaxWidth="185"
                                                                   TextWrapping="Wrap"
                                                                   Margin="0" />
                                            </Decorator>
                                            <Decorator x:Name="ButtonPrompt"
                                                       Visibility="Collapsed"
                                                       HorizontalAlignment="Right"
                                                       DockPanel.Dock="Right"
                                                       Margin="0,0,0,0">
                                                <DockPanel>
                                                    <Decorator DockPanel.Dock="Left" LayoutTransform="{StaticResource A_Transform_Italic}">
                                                        <local:FZTextBlock Text="{Binding Source={local:Loc HelpButtons.IDS_Press}, Converter={StaticResource A_StringToUpper}}"
                                                                           CapHeight="18"
                                                                           VerticalAlignment="Center"
                                                                           Color="{StaticResource H_Color_Primary_Purple}"
                                                                           FontFamily="Horizon_A"
                                                                           MaxWidth="85"/>
                                                    </Decorator>
                                                    <Decorator DockPanel.Dock="Left" Width="5" />
                                                    <Grid>
                                                        <local:ControllerButtonControl  Height="35"
                                                                                        HorizontalAlignment="Left"
                                                                                        Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                                                                                        AllowMouseClick="False"
                                                                                        Margin="4,0"
                                                                                        x:Name="Button"
                                                                                        Button="X" />
                                                    </Grid>
                                                </DockPanel>
                                            </Decorator>
                                        </DockPanel>
                                    </Grid>
                                </Decorator>

                                <Decorator ClipToBounds="True"
                                           Height="44"
                                           VerticalAlignment="Bottom">
                                    <local:FZMaterial x:Name="Flash"
                                                      Margin="-6,-6"
                                                      Opacity="0"
                                                      Style="{StaticResource A_Style_FZMaterial_FlashEffect}" />
                                </Decorator>
                            </Grid>
                        </Grid>
                    </Decorator>
                </Grid>

                <DockPanel x:Name="Content"
                           Margin="0,0,0,50"
                           Width="352"
                           Height="352"
                           HorizontalAlignment="Left"
                           VerticalAlignment="Bottom">
                    <!-- overlay name-->
                    <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" 
                               DockPanel.Dock="Bottom"
                               VerticalAlignment="Bottom" Margin="24,20,24,46">
                            <FZTextBlock x:Name="RewardNameText"
                                         Color="{StaticResource H_Color_Primary_White}"
                                         CapHeight="32"
                                         FontFamily="Horizon_B"
                                         MaxWidth="304"
                                         MaxHeight="70">

                                <local:FZTextBlock.Style>
                                    <Style TargetType="local:FZTextBlock">
                                        <Setter Property="Text" Value="{Binding Description}" />
                                    </Style>
                                </local:FZTextBlock.Style>
                            </FZTextBlock>
                    </Decorator>

                    <!-- content(thumbnail) -->
                    <Control Style="{Binding RewardType, Converter={StaticResource A_Converter_RewardType_To_Style}}"
                             Template="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeThumbnail}}" />
                </DockPanel>
                
                <!-- overlay tags-->
                <StackPanel Orientation="Vertical"
                            VerticalAlignment="Center"
                            HorizontalAlignment="Right"
                            Margin="0,0,26,0">
                    <Control Style="{StaticResource A_Style_ExclusivityFloatingPin_RaceOff}"
                             local:BindingProxy.A="{Binding PillText}"
                             Visibility="{Binding PillText, Converter={StaticResource A_StringVisConverter}}"
                             Height="27"
                             Template="{StaticResource A_ControlTemplate_ExclusivityFloatingPin_FP_RaceOff}"
                             VerticalAlignment="Bottom" />
                    <Control Style="{StaticResource A_Style_RarityFloatingPin_Small_RaceOff}" 
                             VerticalAlignment="Bottom" />
                </StackPanel>
            </Grid>
            <ControlTemplate.Triggers>
                <!-- Activatable end state-->
                <DataTrigger Binding="{Binding RewardState}"
                             Value="{x:Static local:FestivalPassRewardState.Activatable}">
                    <Setter Property="Visibility"
                            TargetName="ButtonPrompt"
                            Value="Visible" />                    
                    <Setter Property="Visibility"
                            TargetName="Sheen"
                            Value="Visible" />

                    <DataTrigger.EnterActions>
                        <local:BeginUIStoryboard HandoffBehavior="SnapshotAndReplace"
                                                 x:Name="BeginStoryboard_ProgressAnimateRewardPending"
                                                 Storyboard="{StaticResource A_Storyboard_ProgressReward_AnimateRewardPending}"/>
                    </DataTrigger.EnterActions>
                    <DataTrigger.ExitActions>
                        <StopStoryboard BeginStoryboardName="BeginStoryboard_ProgressAnimateRewardPending" />
                    </DataTrigger.ExitActions>
                </DataTrigger>
                
                <!-- claimed end state-->
                <DataTrigger Binding="{Binding RewardState}"
                             Value="{x:Static local:FestivalPassRewardState.Claimed}">
                    <DataTrigger.EnterActions> 
                        <StopStoryboard BeginStoryboardName="BeginStoryboard_ProgressAnimateRewardPending" />
                    </DataTrigger.EnterActions>
                </DataTrigger>
                
                <!-- Transition animation-->
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding RewardState}"
                                   Value="{x:Static local:FestivalPassRewardState.Activatable}" />
                        <Condition Binding="{Binding AnimatingToState}"
                                   Value="{x:Static local:FestivalPassRewardState.Claimed}" />
                    </MultiDataTrigger.Conditions>
                    <MultiDataTrigger.EnterActions>
                        <StopStoryboard BeginStoryboardName="BeginStoryboard_ProgressAnimateRewardPending" />
                        <local:BeginUIStoryboard HandoffBehavior="SnapshotAndReplace"
                                                 x:Name="BeginStoryboard_ProgressAnimateRewardComplete"
                                                 Storyboard="{StaticResource A_Storyboard_Progress_AnimateRewardComplete}" />
                        <local:BeginUIStoryboard HandoffBehavior="SnapshotAndReplace"
                                                 Storyboard="{StaticResource A_Storyboard_Claimed_Sheen}" />
                    </MultiDataTrigger.EnterActions>
                    <MultiDataTrigger.ExitActions>
                        <StopStoryboard BeginStoryboardName="BeginStoryboard_ProgressAnimateRewardComplete" />
                    </MultiDataTrigger.ExitActions>
                </MultiDataTrigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <DataTemplate DataType="local:XAMLReward"
                      x:Key="A_Style_RewardTemplateControl">
            <Grid x:Name="RewardGrid"
                  Width="{StaticResource A_Double_FestivalPass_MaxCarouselItemHalfWidth}"
                  Height="100">
                <local:FZMaterial x:Name="RewardBackground"
                                  Width="{StaticResource A_Double_FestivalPass_MaxCarouselItemHalfWidth}"
                                  Height="80"
                                  Preset="{StaticResource A_Preset_FZMaterial_Reward_BackgroundGradient}" />
                <StackPanel>
                    <Grid x:Name="RewardMark"
                          Margin="-5,-5,-5,5"
                          Width="100"
                          Height="25"
                          VerticalAlignment="Top"
                          HorizontalAlignment="Right"
                          LayoutTransform="{StaticResource A_Transform_Italic}">
                        <local:FZMaterial Width="100"
                                          Height="25"
                                          Color="{StaticResource H_Color_Primary_Yellow}" />
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeTitle}"
                                           Margin="12,5,12,5"
                                           VerticalAlignment="Center"
                                           HorizontalAlignment="Center"
                                           Color="{StaticResource H_Color_Primary_Purple}"
                                           Text="{local:Loc InGame.IDS_Reward}" />
                    </Grid>
                    <local:FZTextBlock x:Name="RewardType"
                                       Style="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeDesc}"
                                       HorizontalAlignment="Right"
                                       Margin="10,2"
                                       Text="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeToString}}" />
                    <local:FZTextBlock x:Name="RewardTitle"
                                       Style="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeDesc}"
                                       HorizontalAlignment="Right"
                                       Margin="10,2"
                                       Text="{Binding Description, Converter={StaticResource A_StringToUpper}}" />
                </StackPanel>
                <Grid x:Name="ExclusiveMark"
                      Margin="0,2,110,-5"
                      Width="100"
                      Height="25"
                      VerticalAlignment="Bottom"
                      HorizontalAlignment="Right">
                    <local:FZMaterial x:Name="ExclusiveHalo"
                                      Width="100"
                                      Height="30"
                                      VerticalAlignment="Center"
                                      Color="#30FFFF00"
                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}" />
                    <local:FZMaterial Width="92"
                                      Height="22"
                                      Color="{StaticResource H_Color_Primary_Yellow}" />
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeTitle}"
                                       Margin="13,6,10,5"
                                       VerticalAlignment="Center"
                                       HorizontalAlignment="Center"
                                       Color="{StaticResource H_Color_Primary_Purple}"
                                       LayoutTransform="{StaticResource A_Transform_Italic}"
                                       Text="{local:Loc Main.IDS_Reward_Exclusive}" />
                </Grid>
                <Grid x:Name="RarityMark"
                      Margin="0,2,10,-5"
                      Width="100"
                      Height="25"
                      VerticalAlignment="Bottom"
                      HorizontalAlignment="Right">
                    <local:FZMaterial Width="92"
                                      Height="22"
                                      Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}" />
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeTitle}"
                                       Margin="10,6,10,5"
                                       VerticalAlignment="Center"
                                       HorizontalAlignment="Center"
                                       Color="{StaticResource H_Color_Primary_Purple}"
                                       Text="{Binding Rarity, Converter={StaticResource A_Converter_RarityToNameString}}" />
                </Grid>
            </Grid>
        </DataTemplate>

        <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_FlatPanel_RewardContainerOutline"
                                                 BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"
                                                 Thickness="8,68,8,8"
                                                 CornerRadius="4" />


        <Style x:Key="A_Style_FZTextBlock_ProgressTile_TitleText"
               TargetType="local:FZTextBlock"
               BasedOn="{StaticResource A_Style_FZTextBlock_HorizonC}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_FestivalPass_Text_Highlight}" />
        </Style>

        <Style x:Key="A_Style_FZTextBlock_ProgressSlider_TitleText"
               TargetType="local:FZTextBlock"
               BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_FestivalPass_Text_Highlight}" />
            <Setter Property="CapHeight" Value="20" />
        </Style>

        <DataTemplate DataType="{x:Type local:FestivalPassSeriesCompletionProgressItem}">
            <Grid x:Name="FestivalPassSeriesCompletionProgressItem"
                  Width="{StaticResource A_Double_FestivalPass_OverviewItemWidth}"
                  Height="{StaticResource A_Double_FestivalPass_ProgressItemHeight}">
                <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                      Margin="71,37,60,60">
                    <StackPanel Orientation="Vertical">

                        <local:FZTextBlock DockPanel.Dock="Top"
                                           x:Name="SeriesTitle"
                                           Style="{StaticResource A_Style_FZTextBlock_ProgressTile_TitleText}"
                                           Text="{Binding SeriesTitle}"
                                           LineAdjust="-0.45"
                                           CapHeight="42"
                                           TextWrapping="Wrap"
                                           TextAlignment="Left"
                                           HorizontalAlignment="Stretch"
                                           VerticalAlignment="Center"
                                           Height="75"
                                           Width="800"/>

                        <local:FZMaterial HorizontalAlignment="Stretch" DockPanel.Dock="Top" Height="70" Color="{StaticResource H_Color_Glass_Purple_40pc}">

                            <Grid>
                                <DockPanel HorizontalAlignment="Stretch"
                                           Margin="16"  LastChildFill="True">
                                    <local:FZTextBlock x:Name="StateTitleText"
                                                        Text="{local:Loc DestinationMenu.IDS_SeriesProgress}"
                                                       Style="{StaticResource A_Style_FZTextBlock_ProgressSlider_TitleText}"
                                                       HorizontalAlignment="Left"
                                                       MaxWidth="280"
                                                       DockPanel.Dock="Left"/>
                                    <Decorator>
                                        <local:FZTextBlock x:Name="StateProgressText"
                                                           local:MultiStringFormatter.Param0="{Binding CurrentPoints, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                           local:MultiStringFormatter.Param1="{Binding MaxPoints, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                           Style="{StaticResource A_Style_FZTextBlock_ProgressSlider_ValueText}"
                                                           HorizontalAlignment="Right"
                                                           FontFamily="Horizon_C"/>
                                    </Decorator>
                                </DockPanel>

                                <Control Template="{StaticResource A_ControlTemplate_ProgressBar_FP}"
                                         Width="{StaticResource A_Double_FestivalPass_ProgessBarWidth}"
                                                      HorizontalAlignment="Center"
                                         VerticalAlignment="Bottom"
                                         Margin="0,0,0,-10"/>
                            </Grid>

                        </local:FZMaterial>
                        <Decorator Height="56" DockPanel.Dock="Top" />

                        <Control x:Name="Reward2"
                                 DataContext="{Binding Rewards[1]}"
                                 Template="{StaticResource A_Style_RewardTemplateControl_WithIcon}"
                                 DockPanel.Dock="Top"/>

                        <Decorator Height="30" DockPanel.Dock="Top" />

                        <Control x:Name="Reward1"
                                 DataContext="{Binding Rewards[0]}"
                                 Template="{StaticResource A_Style_RewardTemplateControl_WithIcon}"
                                 DockPanel.Dock="Top"/>

                    </StackPanel>
                </Grid>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassSeriesCommunityGiftEventItem}">
            <Grid  Width="736" Height="736">
                <local:FZMaterial x:Name="CommunityGiftEventProgressItem"
                                    Width="795"
                                    Height="780"
                                    ImageSource="{Binding FestivalPlaylistTileBackground}"
                                    VerticalAlignment="Bottom" HorizontalAlignment="Right"
                                    Margin="-67,0,0,0"/>
                <DockPanel>
                    <StackPanel DockPanel.Dock="Top"
                                Orientation="Vertical"
                                HorizontalAlignment="Center"
                                Margin="0,60,0,0">
                        <Decorator RenderTransform="{StaticResource A_Transform_Italic}"
                                    RenderTransformOrigin="0.5,0.5"
                                    Margin="10,0,10,0">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ProgressTile_TitleText}"
                                                Text="{Binding Title}"
                                                LineAdjust="-0.6"
                                                FontSize="80"
                                                Height="100"
                                                TextWrapping="NoWrap"
                                                VerticalAlignment="Center"
                                                HorizontalAlignment="Center" />
                        </Decorator>
                        <local:FZTextBlock Margin="45,5,45,0"
                                           Height="125"
                                            FontSize="30"
                                            FontFamily="Horizon_A"
                                            Color="{StaticResource H_Color_Primary_White}"
                                            TextWrapping="Wrap"
                                            HorizontalAlignment="Stretch"
                                            VerticalAlignment="Top"
                                            TextAlignment="Center">
                            <local:FZTextBlock.Style>
                                <Style TargetType="local:FZTextBlock"
                                    BasedOn="{StaticResource A_Style_FZTextBlock_FestivalPass_OverviewTitle}">
                                    <Setter Property="Text"
                                            Value="{Binding Description}"/>
                                    <Setter Property="MarkupConverter"
                                            Value="{StaticResource A_MappingConverter_FestivalPass_Text_Highlight}" />
                                </Style>
                            </local:FZTextBlock.Style>
                        </local:FZTextBlock>
                    </StackPanel>

                    <Grid Margin="16"
                            Height="455"
                            VerticalAlignment="Bottom"
                            DockPanel.Dock="Bottom">

                        <!-- Progress On top-->
                        <Control Template="{StaticResource A_ControlTemplate_ProgressBar_CommunityGiftEvent}"
                                    VerticalAlignment="Top"
                                    Margin="-2,60,0,0"
                                    Width="725"/>

                        <!-- Rewards on bottom -->
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="24,85,24,24" RenderTransformOrigin="0.5,0.5">
                            <StackPanel.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform
                                        ScaleX="0.85"
                                        ScaleY="0.85" />
                                </TransformGroup>
                            </StackPanel.RenderTransform>
                            <Control x:Name="Reward1"
                                        DataContext="{Binding Rewards[0]}"
                                        Template="{StaticResource A_Style_RewardTemplateControl_WithIcon}" />
                            <Decorator Width="10"/>
                            <Control x:Name="Reward2"
                                        DataContext="{Binding Rewards[1]}"
                                        Template="{StaticResource A_Style_RewardTemplateControl_WithIcon}" />
                        </StackPanel>
                    </Grid>
                </DockPanel>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassSeriesIEUpsellItem}">
            <DataTemplate.Resources>
                <local:MappingConverter x:Key="A_MappingConverter_CompleteStateToBottomBarTexture">
                    <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/title_complete_bg.png"/>
                    <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/title_active_bg.png"/>
                </local:MappingConverter>

                <local:MappingConverter x:Key="A_MappingConverter_CompleteStateToBottomBarText">
                    <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{local:Loc ForzaEvents.IDS_SeriesIE_Complete}"/>
                    <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{local:Loc ForzaEvents.IDS_SeriesIE_Incomplete}"/>
                </local:MappingConverter>

                <local:MappingConverter x:Key="A_MappingConverter_CompleteStateToBottomBarHeight">
                    <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="55"/>
                    <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="68"/>
                </local:MappingConverter>

                <CircleEase x:Key="A_EasingFunction_EaseInCircle" EasingMode="EaseIn" />
                <CircleEase x:Key="A_EasingFunction_EaseOutCircle" EasingMode="EaseOut" />

                <DoubleAnimationUsingKeyFrames x:Key="A_AnimationUsingKeyFrames_Sheen_Movement_Initial_Delay"
                                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
                                                Storyboard.TargetName="{x:Null}">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="-60"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:0.25" EasingFunction="{StaticResource A_EasingFunction_EaseInCircle}" Value="60"/>
                    <LinearDoubleKeyFrame KeyTime="0:0:0.875" Value="636"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:1.25" EasingFunction="{StaticResource A_EasingFunction_EaseOutCircle}" Value="726" />
                    <DiscreteDoubleKeyFrame KeyTime="0:0:4" Value="726"/>
                </DoubleAnimationUsingKeyFrames>

                <local:UIStoryboard x:Key="A_Storyboard_SeriesIESelected"
                            FillBehavior="HoldEnd"
                            RepeatBehavior="Forever"
                            Storyboard.TargetName="Sheen">
                    <StaticResourceExtension ResourceKey="A_AnimationUsingKeyFrames_Sheen_Movement_Initial_Delay" />
                </local:UIStoryboard>
            </DataTemplate.Resources>
            <Grid>
                <Grid>
                    <local:FZMaterial Style="{StaticResource H_Style_Tile_Shadow}" />
                    <local:FZMaterial ImageSource="{Binding CompleteStateTexture}" Width="726" Height="726" Visibility="{Binding IsComplete, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                    <local:FZMaterial ImageSource="{Binding IncompleteStateTexture}" Width="726" Height="726" Visibility="{Binding IsComplete, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"/>
                    <local:FZMaterial ImageSource="{Binding IsComplete, Converter={StaticResource A_MappingConverter_CompleteStateToBottomBarTexture}}" Width="725" Height="{Binding IsComplete, Converter={StaticResource A_MappingConverter_CompleteStateToBottomBarHeight}}" VerticalAlignment="Bottom" Margin="0,0,0,2">
                        <Grid>
                            <Grid ClipToBounds="True" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Height="50">
                                <local:FZMaterial x:Name="Sheen"
                                                    Width="60"
                                                    Margin="0,-6"
                                                    HorizontalAlignment="Left"
                                                    Style="{StaticResource A_Style_FZMaterial_SheenEffect_ProgressItem}"
                                                    Visibility="{Binding IsComplete, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"
                                                    Opacity="0.6">
                                </local:FZMaterial>
                            </Grid>
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,0,10" MaxHeight="24">
                                <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/FestivalPass/tick_complete.png" Width="24" Height="24" Visibility="{Binding IsComplete, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                                <Decorator Width="10"/>
                                <local:FZTextBlock Text="{Binding IsComplete, Converter={StaticResource A_MappingConverter_CompleteStateToBottomBarText}}" CapHeight="24" FontFamily="Horizon_A" Color="{StaticResource H_Color_Primary_Purple}" VerticalAlignment="Center" Margin="0,0,10,0"/>
                                <local:ControllerButtonControl  Height="35" Style="{StaticResource A_Style_ControllerButtonControl_Standalone}" AllowMouseClick="False"
                                                                x:Name="Button"
                                                                Button="A"
                                                                Visibility="{Binding RelativeSource={RelativeSource AncestorType=ListBoxItem}, Path=IsKeyboardFocused, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                                Margin="0,0,10,0"/>
                            </StackPanel>
                        </Grid>
                    </local:FZMaterial>
                </Grid>
            </Grid>
            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding IsComplete}" Value="False">
                    <DataTrigger.EnterActions>
                        <local:BeginUIStoryboard HandoffBehavior="SnapshotAndReplace"
                                                    x:Name="BeginStoryboard_SeriesIESelected"
                                                    Storyboard="{StaticResource A_Storyboard_SeriesIESelected}" />
                    </DataTrigger.EnterActions>
                    <DataTrigger.ExitActions>
                        <StopStoryboard BeginStoryboardName="BeginStoryboard_SeriesIESelected" />
                    </DataTrigger.ExitActions>
                </DataTrigger>
            </DataTemplate.Triggers>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassSeriesUpsellItem}">
            <local:FestivalPassUpsellLiveTile x:Name="PART_Button_FPUpsell"
                                              UpsellItems="{Binding UpsellItems, RelativeSource={RelativeSource AncestorType=Page}}"
                                              Style="{StaticResource A_Style_Button_FeaturedTile}"
                                              SelectedItemIndex="{Binding UpsellSelectedIndex, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Page}}"
                                              Height="{StaticResource A_Double_FestivalPass_ProgressItemHeight}"
                                              Width="{StaticResource A_Double_FestivalPass_ProgressItemHeight}"
                                              Margin="0"
                                              local:ManualPassthroughProperty.Input="{local:Loc PauseMenu.IDS_ScreenReader_GenericFeaturedContent}">
            </local:FestivalPassUpsellLiveTile>
        </DataTemplate>
        
        <local:MappingConverter x:Key="A_Converter_RaceOff_PanelLogoTextureToType">
            <local:MappingConverterEntry Key="{x:Type FestivalPassSeriesRaceOffOffroadItem}" Value="/ForzaUI;component/Textures/Data_Bound/Series32/Festival_Pass/Offroad_Logo.png"/>
            <local:MappingConverterEntry Key="{x:Type FestivalPassSeriesRaceOffAsphaltItem}" Value="/ForzaUI;component/Textures/Data_Bound/Series32/Festival_Pass/Asphalt_Logo.png"/>
        </local:MappingConverter>

        <local:MultiConverter x:Key="A_Converter_RaceOff_PanelLogoTexture" ConvertNullValues="False">
            <local:MultiConverterEntry Converter="{TypeOfConverter}" />
            <local:MultiConverterEntry Converter="{StaticResource A_Converter_RaceOff_PanelLogoTextureToType}" />
        </local:MultiConverter>

        <ControlTemplate x:Key="H_Template_RaceOffCard" 
                         TargetType="{x:Type Control}">
            <Grid x:Name="RaceOffCardRoot">
                <local:FZMaterial Height="736" 
                                  Width="368"
                                  VerticalAlignment="Center"
                                  HorizontalAlignment="Center"
                                  ImageSource="{Binding DataContext, ElementName=RaceOffCardRoot, Converter={StaticResource A_Converter_RaceOff_PanelBackgroundTexture}}">
                    <Grid>
                        <local:FZMaterial Height="168"
                                          Width="368"
                                          VerticalAlignment="Top"
                                          HorizontalAlignment="Center"
                                          Margin="0,-39,0,0"
                                          ImageSource="{Binding DataContext, ElementName=RaceOffCardRoot, Converter={StaticResource A_Converter_RaceOff_PanelLogoTexture}}" />
                        <Grid VerticalAlignment="Top" 
                              Margin="0,143,0,0"
                              HorizontalAlignment="Center"
                              Width="336"
                              Height="251">
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_RaceOff_Description_Area}"/>
                            <local:FZTextBlock Text="{Binding Description, Converter={StringToUpper}}" 
                                               MarkupConverter="{StaticResource A_MarkupConverter_RaceOff_Description}"
                                               Style="{StaticResource A_Style_FZTextBlock_FestivalPass_OverviewTitle}"
                                               Margin="10,5,10,40"
                                               CapHeight="17"
                                               TextWrapping="Wrap"
                                               LineAdjust="-0.4"/>
                        </Grid>

                        <Control x:Name="RewardRaceOff"
                                 DataContext="{Binding Reward}"
                                 VerticalAlignment="Bottom"
                                 Template="{StaticResource A_Style_RewardTemplateControl_RaceOff}"
                                 HorizontalAlignment="Stretch"
                                 Margin="0,0,0,8"/>
                    </Grid>
                </local:FZMaterial>
            </Grid>
        </ControlTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassSeriesRaceOffItem}">
            <StackPanel Orientation="Horizontal">
                <!-- Asphalt Side-->
                <Control DataContext="{Binding FirstSide}"
                         Template="{StaticResource H_Template_RaceOffCard}" />
                <!-- OffRoad Side-->
                <Control DataContext="{Binding SecondSide}"
                         Template="{StaticResource H_Template_RaceOffCard}"
                         Margin="8,0,0,0" />
            </StackPanel>
        </DataTemplate>
        
        <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPreset_Circle_FestivalPlaylist_Outline"
                                           CornerRadius="9"
                                           Thickness="2"/> 
        
        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPreset_Circle_FestivalPlaylist"
                                           CornerRadius="7"/>  
        
        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPreset_Circle_FestivalPlaylist_Unselected"
                                           CornerRadius="7"/>

        <Style x:Key="A_Style_FZMaterial_SelectionDots_Arrow"
               TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Width" Value="8"/>
            <Setter Property="Height" Value="12"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="5,0"/>
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
        </Style>

        <Style x:Key="A_Style_ItemsSelector_SelectionDots_FestivalPlaylist_Weekly"
               BasedOn="{StaticResource A_Style_ItemsSelector_SelectionDots_Forzathon}"
               TargetType="{x:Type local:ItemsSelector}">
            <Style.Resources>
                <System:Double x:Key="A_Double_SelectionDot_Width">18</System:Double>
                <System:Double x:Key="A_Double_SelectionDot_Height">18</System:Double>
                <Thickness x:Key="A_Thickness_SelectionDot_Margin">1,0,0,0</Thickness>

                <Style x:Key="A_Style_Tile_SelectionDots_Dynamic_Outline" TargetType="{x:Type local:FZMaterial}" BasedOn="{StaticResource A_Style_Tile_SelectionDots_Base_Outline}">
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Grey_60pc}" />
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Circle_FestivalPlaylist_Outline}"/>
                    <Setter Property="Opacity" Value="0"/>
                </Style>

                <Style x:Key="A_Style_Tile_SelectionDots_Dynamic" TargetType="{x:Type local:FZMaterial}" BasedOn="{StaticResource A_Style_Tile_SelectionDots_Base}">
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Grey_60pc}" />
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Circle_FestivalPlaylist_Unselected}"/>
                    <Setter Property="Margin" Value="2"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding State}"
                                     Value="{x:Static local:ForzaEventChallengeState.Complete}">
                            <Setter Property="ImageSource"
                                    Value="{StaticResource A_BitmapImage_ChallengeTick_Circle}" />
                            <Setter Property="Color"
                                    Value="{StaticResource H_Color_Primary_White}" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>

                <Style x:Key="A_Style_Tile_SelectionDots_Selected_Dynamic" TargetType="{x:Type local:FZMaterial}" BasedOn="{StaticResource A_Style_Tile_SelectionDots_Selected_Base}">
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}" />
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Circle_FestivalPlaylist}"/>
                    <Setter Property="Margin" Value="2"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding State}"
                                     Value="{x:Static local:ForzaEventChallengeState.Complete}">
                            <Setter Property="ImageSource"
                                    Value="{StaticResource A_BitmapImage_ChallengeTick_Circle}" />
                            <Setter Property="Color"
                                    Value="{StaticResource H_Color_Primary_White}" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>

                <Style x:Key="A_Style_Tile_SelectionDots_Selected_Dynamic_Outline" TargetType="{x:Type local:FZMaterial}" BasedOn="{StaticResource A_Style_Tile_SelectionDots_Selected_Base_Outline}">
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Green}" />
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Circle_FestivalPlaylist_Outline}"/>
                    <Setter Property="Margin" Value="-2"/>
                </Style>
            </Style.Resources>
        </Style>

        <local:LinearTransformConverter Scale="4.84"
                                        Sub="60"
                                        x:Key="A_Converter_SheenOffset" />
        <local:LinearTransformConverter Scale="8.56"
                                        Sub="60"
                                        x:Key="A_Converter_SheenOffset_Large" />
        
        <Style x:Key="A_Style_FZMaterial_SheenEffect_ContentItem"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_SheenEffect_Base}">
            <Setter Property="local:BindingProxy.AlwaysValidNumeric">
                <Setter.Value>
                    <System:Double>0</System:Double>
                </Setter.Value>
            </Setter>
            <Setter Property="Tag"
                    Value="{Binding (local:BindingProxy.AlwaysValidNumeric), RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_SheenOffset}, FallbackValue=0}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding ItemSize}"
                             Value="{x:Static local:FestivalPassItemSize.Large}">
                    <Setter Property="Tag"
                            Value="{Binding (local:BindingProxy.AlwaysValidNumeric), RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_SheenOffset_Large}}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <local:UIStoryboard x:Key="A_Storyboard_ContentItem_Claimed_Sheen"
                            FillBehavior="Stop"
                            Storyboard.TargetName="Sheen_Complete">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="{x:Null}">
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_Complete_Sheen_Start}"
                                        Value="1.0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:BindingProxy.AlwaysValidNumeric)"
                                           Storyboard.TargetName="{x:Null}">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                        Value="0" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_Complete_Sheen_Start}"
                                        Value="0" />
                <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_Complete_Sheen_End}"
                                      Value="100" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>
        <local:UIStoryboard x:Key="A_Storyboard_ContentItem_AnimateRewardPending"
                            FillBehavior="HoldEnd"
                            RepeatBehavior="Forever">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:BindingProxy.AlwaysValidNumeric)"
                                           Storyboard.TargetName="Sheen">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                        Value="0" />
                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_PendingActivation_SlideHitch}"
                                      EasingFunction="{StaticResource A_EasingFunction_EaseInCircle}"
                                      Value="6" />
                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_PendingActivation_SlideSpeedUp}"
                                      EasingFunction="{StaticResource A_EasingFunction_EaseOutCircle}"
                                      Value="10" />
                <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_PendingActivation_AnimationEnd}"
                                      Value="100" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_ContentItem_AnimateRewardComplete"
                            FillBehavior="HoldEnd">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="Flash">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                        Value="0" />
                <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_AnimationStart}"
                                      Value="0.9" />
                <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_FlashEnd}"
                                      Value="0.0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="ItemBar_Complete">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                        Value="0" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_Mid}"
                                        Value="1" />
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TranslateTransform.Y)"
                                           Storyboard.TargetName="ItemBar">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                        Value="0" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_Start}"
                                        Value="0" />
                <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_Mid}"
                                      Value="44" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TranslateTransform.Y)"
                                           Storyboard.TargetName="ItemBar_Complete">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                        Value="44" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_Mid}"
                                        Value="44" />
                <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Claimed_SwitchTransition_End}"
                                      Value="0" />
            </DoubleAnimationUsingKeyFrames>

            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent EventName="RewardAnimationComplete"
                                    local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Claimed_AnimationEnd}" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>
        <ImageBrush x:Key="A_Brush_SheenCompleteOpacityMask_Small"
                    ImageSource="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Points_Box_Completed_Small_Mask.png" />
        <ImageBrush x:Key="A_Brush_SheenCompleteOpacityMask_Large"
                    ImageSource="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Points_Box_Completed_Large_Mask.png" />

        <local:MappingConverter x:Key="A_MappingConverter_ItemSize_To_SheenMask"
                                Default="{StaticResource A_Brush_SheenCompleteOpacityMask_Small}">
            <local:MappingConverterEntry Key="{x:Static FestivalPassItemSize.Large}"
                                         Value="{StaticResource A_Brush_SheenCompleteOpacityMask_Large}" />
        </local:MappingConverter>
        
        <!-- reward state bottom control that can be reused in other templates-->
        <Style TargetType="Control" x:Key="A_Style_Control_ContentItem_BarState">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Control">
                        <Grid ClipToBounds="True" VerticalAlignment="Bottom">
                            <local:FZMaterial x:Name="ItemBar"
                                              HorizontalAlignment="Stretch"
                                              Style="{StaticResource A_Style_FZMaterial_Item_BottomBarBase}">
                                <Grid>
                                    <Grid ClipToBounds="True"
                                          VerticalAlignment="Bottom"
                                          HorizontalAlignment="Stretch"
                                          Height="55">
                                        <local:FZMaterial x:Name="Sheen"
                                                          Width="60"
                                                          Margin="0,-6"
                                                          HorizontalAlignment="Left"
                                                          Style="{StaticResource A_Style_FZMaterial_SheenEffect_ContentItem}">
                                            <local:FZMaterial.RenderTransform>
                                                <TransformGroup>
                                                    <SkewTransform AngleX="-26" />
                                                    <TranslateTransform X="{Binding Tag, ElementName=Sheen}" />
                                                </TransformGroup>
                                            </local:FZMaterial.RenderTransform>
                                        </local:FZMaterial>
                                    </Grid>
                                    <DockPanel HorizontalAlignment="Stretch"
                                               Margin="0,0,0,0">
                                        <Control Template="{StaticResource A_ControlTemplate_FestivalPassItem_FPRewardPill}"
                                                 DockPanel.Dock="Left"
                                                 HorizontalAlignment="Left"
                                                 Margin="8,10,0,0"
                                                 local:BindingProxy.A="{Binding ContentType, Converter={StaticResource A_Converter_ContentType_to_Preset_RewardPill}}"/>
                                        <Decorator x:Name="ButtonPrompt"
                                                   Visibility="Collapsed"
                                                   HorizontalAlignment="Right"
                                                   DockPanel.Dock="Right"
                                                   Margin="0,0,0,0">
                                            <StackPanel Orientation="Horizontal">
                                                <Decorator LayoutTransform="{StaticResource A_Transform_Italic}">
                                                    <local:FZTextBlock Text="{Binding Source={local:Loc HelpButtons.IDS_Press}, Converter={StaticResource A_StringToUpper}}"
                                                                       CapHeight="18"
                                                                       VerticalAlignment="Center"
                                                                       Color="{StaticResource H_Color_Primary_Purple}"
                                                                       FontFamily="Horizon_A" />
                                                </Decorator>
                                                <Grid>
                                                    <local:ControllerButtonControl  Height="35"
                                                                                    HorizontalAlignment="Left"
                                                                                    Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                                                                                    AllowMouseClick="False"
                                                                                    Margin="4,0"
                                                                                    x:Name="Button"
                                                                                    Button="X" />
                                                </Grid>
                                            </StackPanel>
                                        </Decorator>
                                        <Decorator Margin="14,10,14,0">
                                            <local:FZTextBlock x:Name="RewardName"
                                                           DataContext="{Binding TopReward}"
                                                           Style="{StaticResource A_Style_FZTextBlock_FestivalPass_RewardName}"/>
                                        </Decorator>
                                    </DockPanel>
                                </Grid>
                            </local:FZMaterial>

                            <local:FZMaterial x:Name="ItemBar_Complete"
                                              Opacity="0"
                                              HorizontalAlignment="Stretch"
                                              Style="{StaticResource A_Style_FZMaterial_Item_BottomBarBase_Complete}">
                                <Grid>
                                    <DockPanel HorizontalAlignment="Stretch"
                                               Margin="0,0,0,0">
                                        <Control Template="{StaticResource A_ControlTemplate_FestivalPassItem_FPRewardPill}"
                                                 DockPanel.Dock="Left"
                                                 HorizontalAlignment="Left"
                                                 Margin="8,10,0,0"
                                                 local:BindingProxy.A="{Binding ContentType, Converter={StaticResource A_Converter_ContentType_to_Preset_RewardPill}}"/>
                                        <Decorator Margin="14,10,14,0">
                                            <local:FZTextBlock x:Name="RewardNameCompleted"
                                                           DataContext="{Binding TopReward}"
                                                           Style="{StaticResource A_Style_FZTextBlock_FestivalPass_RewardName}"/>
                                        </Decorator>
                                    </DockPanel>
                                    <Grid ClipToBounds="True"
                                          OpacityMask="{Binding ItemSize, Converter={StaticResource A_MappingConverter_ItemSize_To_SheenMask}}">
                                        <local:FZMaterial x:Name="Sheen_Complete"
                                                          Width="60"
                                                          Margin="0,-6"
                                                          Visibility="Visible"
                                                          Opacity="0"
                                                          HorizontalAlignment="Left"
                                                          Style="{StaticResource A_Style_FZMaterial_SheenEffect_ContentItem}">
                                            <local:FZMaterial.RenderTransform>
                                                <TransformGroup>
                                                    <SkewTransform AngleX="-26" />
                                                    <TranslateTransform X="{Binding Tag, ElementName=Sheen_Complete}" />
                                                </TransformGroup>
                                            </local:FZMaterial.RenderTransform>
                                        </local:FZMaterial>
                                    </Grid>
                                </Grid>
                            </local:FZMaterial>

                            <Decorator ClipToBounds="True" VerticalAlignment="Bottom" HorizontalAlignment="Stretch">
                                <local:FZMaterial x:Name="Flash"
                                                  Height="40"
                                                  Opacity="0"
                                                  Style="{StaticResource A_Style_FZMaterial_FlashEffect}" />
                            </Decorator>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <!-- complete end state - no item -->
                            <MultiDataTrigger>
                                <MultiDataTrigger.Conditions>
                                    <Condition Binding="{Binding TopReward}"
                                               Value="{x:Null}" />
                                    <Condition Binding="{Binding ItemState}"
                                               Value="{x:Static local:FestivalPassItemState.Complete}" />
                                </MultiDataTrigger.Conditions>
                                <Setter Property="Opacity"
                                        TargetName="ItemBar_Complete"
                                        Value="1" />
                                <Setter Property="Visibility"
                                        TargetName="ItemBar"
                                        Value="Collapsed" />
                            </MultiDataTrigger>

                            <!-- complete end state & claimed item -->
                            <DataTrigger Binding="{Binding TopReward.RewardState}"
                                         Value="{x:Static local:FestivalPassRewardState.Claimed}">
                                <Setter Property="Opacity"
                                        TargetName="ItemBar_Complete"
                                        Value="1" />
                                <Setter Property="Visibility"
                                        TargetName="ItemBar"
                                        Value="Collapsed" />
                                <DataTrigger.EnterActions>
                                    <StopStoryboard BeginStoryboardName="BeginStoryboard_ContentItem_AnimateRewardPending" />
                                </DataTrigger.EnterActions>
                            </DataTrigger>

                            <!-- pending activation state -->
                            <DataTrigger Binding="{Binding TopReward.RewardState}"
                                         Value="{x:Static local:FestivalPassRewardState.Activatable}">
                                <Setter Property="Visibility"
                                        TargetName="ButtonPrompt"
                                        Value="Visible" />
                                <Setter Property="Visibility"
                                        TargetName="Sheen"
                                        Value="Visible" />

                                <DataTrigger.EnterActions>
                                    <local:BeginUIStoryboard HandoffBehavior="SnapshotAndReplace"
                                                             x:Name="BeginStoryboard_ContentItem_AnimateRewardPending"
                                                             Storyboard="{StaticResource A_Storyboard_ContentItem_AnimateRewardPending}" />
                                </DataTrigger.EnterActions>
                                <DataTrigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="BeginStoryboard_ContentItem_AnimateRewardPending" />
                                </DataTrigger.ExitActions>
                            </DataTrigger>

                            <!-- Transition animation-->
                            <MultiDataTrigger>
                                <MultiDataTrigger.Conditions>
                                    <Condition Binding="{Binding TopReward.RewardState}"
                                               Value="{x:Static local:FestivalPassRewardState.Activatable}" />
                                    <Condition Binding="{Binding TopReward.AnimatingToState}"
                                               Value="{x:Static local:FestivalPassRewardState.Claimed}" />
                                </MultiDataTrigger.Conditions>
                                <MultiDataTrigger.EnterActions>
                                    <StopStoryboard BeginStoryboardName="BeginStoryboard_ContentItem_AnimateRewardPending" />
                                    <local:BeginUIStoryboard HandoffBehavior="SnapshotAndReplace"
                                                             x:Name="BeginStoryboard_ContentItem_AnimateRewardComplete"
                                                             Storyboard="{StaticResource A_Storyboard_ContentItem_AnimateRewardComplete}" />
                                    <local:BeginUIStoryboard HandoffBehavior="SnapshotAndReplace"
                                                             Storyboard="{StaticResource A_Storyboard_ContentItem_Claimed_Sheen}" />
                                </MultiDataTrigger.EnterActions>
                                <MultiDataTrigger.ExitActions>
                                    <StopStoryboard BeginStoryboardName="BeginStoryboard_ContentItem_AnimateRewardComplete" />
                                </MultiDataTrigger.ExitActions>
                            </MultiDataTrigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_WeeklyChallenge_Description"
               TargetType="FZTextBlock">
            <Setter Property="Text" Value="{Binding CurrentWeeklyChallenge.Description}" />
            <Setter Property="Color" Value="{StaticResource A_Color_ForzaEvents_WeeklyChallenge_Text}" />
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="LineAdjust" Value="-0.3" />
            <Setter Property="CapHeight" Value="14" />
            <Setter Property="FontFamily" Value="Horizon_D" />
            <Setter Property="TextAlignment" Value="Left" />
            <Setter Property="MaxHeight" Value="180" />
            <Setter Property="Width" Value="380" />
            <Setter Property="VerticalAlignment" Value="Top" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="AutoScroll.AllowScrolling" Value="False" />
            <Setter Property="AutoScroll" Value="{StaticResource H_AutoScrollSettings_Descriptions}" />
            <Setter Property="Stretch" Value="None" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_ForzaEvents}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=(Selector.IsSelected), RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="True">
                    <Setter Property="TextTrimming" Value="None" />
                    <Setter Property="AutoScroll.AllowScrolling" Value="True"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <DataTemplate DataType="{x:Type local:FestivalPassForzathonWeeklyItem}">
            <DataTemplate.Resources>
                <local:MappingConverter x:Key="A_MappingConverter_ChapterIndex_To_ChapterText">
                    <local:MappingConverterEntry Key="0" Value="{local:Loc ForzaEvents.IDS_ForzaEvents_Challenge_Chapter1}" />
                    <local:MappingConverterEntry Key="1" Value="{local:Loc ForzaEvents.IDS_ForzaEvents_Challenge_Chapter2}" />
                    <local:MappingConverterEntry Key="2" Value="{local:Loc ForzaEvents.IDS_ForzaEvents_Challenge_Chapter3}" />
                    <local:MappingConverterEntry Key="3" Value="{local:Loc ForzaEvents.IDS_ForzaEvents_Challenge_Chapter4}" />
                </local:MappingConverter>
            </DataTemplate.Resources>
            <Grid x:Name="FestivalPassForzathonWeeklyItem" Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
                <local:FZMaterial Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter UseHidden=True}}"
                                  Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage}"/>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_ItemInnerBorder}"/>
                <DockPanel Height="220" Margin="30,40,30,0">
                    <local:FZTextBlock
                        DockPanel.Dock="Top"
                       Text="{Binding CurrentWeeklyChallenge.Subtitle}" 
                       Color="{StaticResource H_Color_Primary_Green}"
                       TextWrapping="Wrap"
                       LineAdjust="-0.3"
                       CapHeight="18"
                       FontFamily="Horizon_A"
                       TextAlignment="Left"
                       Width="380"
                       VerticalAlignment="Center"
                       HorizontalAlignment="Center"/>
                    <Decorator Height="15"
                               DockPanel.Dock="Top"/>
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_WeeklyChallenge_Description}"/>
                </DockPanel>
                <Grid VerticalAlignment="Bottom">
                    <Grid x:Name="ChapterDescriptionBox" 
                          Margin="20,0,20,80"
                          VerticalAlignment="Top">
                        <local:FZMaterial Color="{StaticResource H_Color_Primary_Black}"
                                          Opacity="0.6"
                                          Preset="{StaticResource H_Roundtangle_TopOnly_2px}" 
                                          VerticalAlignment="Stretch"
                                          HorizontalAlignment="Stretch"/>
                        <!-- using Min/Max so that when fonts scale to 150%, the box can be up to 150% its normal height. Forte bug Bug 4300050 -->
                        <DockPanel VerticalAlignment="Stretch"
                                   HorizontalAlignment="Stretch"
                                   MinHeight="100"
                                   MaxHeight="100">
                            <ContentControl Style="{StaticResource A_Style_ContentControl_ForzathonChallengeSelector}"
                                            Content="{Binding SelectedItem, ElementName=DotSelector}"
                                            Tag="{Binding SelectedIndex, ElementName=DotSelector}"
                                            Margin="17,17,17,30" />
                        </DockPanel>

                        <local:FZMaterial x:Name="ProgressContainer"
                                          VerticalAlignment="Top"
                                          Height="36"
                                          Margin="0,-36,0,0"
                                          Style="{StaticResource A_Style_FZMaterial_ForzaEvents_ChallengeState}">
                            <DockPanel Margin="8,0">
                                <StackPanel Orientation="Horizontal">
                                    <Grid Margin="2,0,10,0">
                                        <local:FZMaterial x:Name="CheckBox"
                                                          HorizontalAlignment="Center"
                                                          VerticalAlignment="Center"
                                                          Width="24"
                                                          Style="{StaticResource A_Style_ProgressReward_CheckBox}"
                                                          Color="{StaticResource H_Color_Primary_Black}" 
                                                          Preset="{RoundtangleStroke Thickness=2}"
                                                          Height="24">
                                        </local:FZMaterial>
                                        <local:FZMaterial x:Name="StateIcon"
                                                          HorizontalAlignment="Center"
                                                          VerticalAlignment="Center"
                                                          ImageSource="{StaticResource A_BitmapImage_FPPill_CheckmarkIcon}"
                                                          Width="24"
                                                          Height="24"
                                                          Visibility="Collapsed" />
                                    </Grid>
                                    <local:FZTextBlock x:Name="StateArea"
                                                       DataContext="{Binding SelectedItem, ElementName=DotSelector}"
                                                       DockPanel.Dock="Left"
                                                       Text="{Binding SelectedIndex, ElementName=DotSelector, Converter={StaticResource A_MappingConverter_ChapterIndex_To_ChapterText}}"
                                                       FontFamily="Horizon_A"
                                                       Color="{StaticResource H_Color_Primary_Black}" 
                                                       VerticalAlignment="Center"
                                                       HorizontalAlignment="Left"
                                                       FontFamily="Horizon_A"
                                                       CapHeight="16" />
                                </StackPanel>
                                <Decorator Width="6"
                                           DockPanel.Dock="Left" />
                                <DockPanel LastChildFill="False"
                                           HorizontalAlignment="Right">
                                    <local:FZMaterial DockPanel.Dock="Left"
                                                      Style="{StaticResource A_Style_FZMaterial_SelectionDots_Arrow}"
                                                      Data="{StaticResource A_Geometry_Spatial_LeftArrow}" />
                                    <local:ItemsSelector x:Name="DotSelector"
                                                         DataContext="{Binding CurrentWeeklyChallenge}"
                                                         SelectedIndex="{Binding CurrentChallengeIndex}"
                                                         ItemsSource="{Binding ChildChallenges}"
                                                         Margin="0"
                                                         Style="{StaticResource A_Style_ItemsSelector_SelectionDots_FestivalPlaylist_Weekly}" />
                                    <local:FZMaterial DockPanel.Dock="Right"
                                                      Style="{StaticResource A_Style_FZMaterial_SelectionDots_Arrow}"
                                                      Data="{StaticResource A_Geometry_Spatial_RightArrow}" />
                                </DockPanel>

                            </DockPanel>
                        </local:FZMaterial>
                    </Grid>
                    <Grid>
                        <Grid DockPanel.Dock="Bottom"
                              VerticalAlignment="Bottom">
                            <local:FZMaterial x:Name="ItemBar"
                                              Style="{StaticResource A_Style_FZMaterial_Item_BottomBarBase}"
                                              VerticalAlignment="Bottom">
                                <DockPanel Margin="10,10,18,0">
                                    <Control Template="{StaticResource A_ControlTemplate_FestivalPassItem_FPRewardPill}"
                                             DockPanel.Dock="Left"
                                             local:BindingProxy.A="{Binding ContentType, Converter={StaticResource A_Converter_ContentType_to_Preset_RewardPill}}"/>
                                    <Decorator>
                                        <local:FZTextBlock x:Name="RewardName"
                                                           DataContext="{Binding TopReward}"
                                                           Style="{StaticResource A_Style_FZTextBlock_FestivalPass_RewardName}"/>
                                    </Decorator>
                                </DockPanel>
                            </local:FZMaterial>
                            <local:FZMaterial x:Name="ItemBar_Complete"
                                              HorizontalAlignment="Stretch"
                                              Style="{StaticResource A_Style_FZMaterial_Item_BottomBarBase_Complete}">
                                <Grid>
                                    <DockPanel HorizontalAlignment="Left"
                                               Margin="0,10,0,0">
                                        <Control Template="{StaticResource A_ControlTemplate_FestivalPassItem_FPRewardPill}"
                                                 DockPanel.Dock="Left"
                                                 HorizontalAlignment="Left"
                                                 Margin="8,0,0,0"
                                                 local:BindingProxy.A="{Binding ContentType, Converter={StaticResource A_Converter_ContentType_to_Preset_RewardPill}}"/>
                                        <Decorator Margin="14,0">
                                            <local:FZTextBlock x:Name="RewardNameCompleted"
                                                           DataContext="{Binding TopReward}"
                                                           Style="{StaticResource A_Style_FZTextBlock_FestivalPass_RewardName}"/>
                                        </Decorator>
                                    </DockPanel>
                                    <Grid ClipToBounds="True"
                                          OpacityMask="{Binding ItemSize, Converter={StaticResource A_MappingConverter_ItemSize_To_SheenMask}}">
                                        <local:FZMaterial x:Name="Sheen_Complete"
                                                          Width="60"
                                                          Margin="0,-6"
                                                          Visibility="Visible"
                                                          Opacity="0"
                                                          HorizontalAlignment="Left"
                                                          Style="{StaticResource A_Style_FZMaterial_SheenEffect_ContentItem}">
                                            <local:FZMaterial.RenderTransform>
                                                <TransformGroup>
                                                    <SkewTransform AngleX="-26" />
                                                    <TranslateTransform X="{Binding Tag, ElementName=Sheen_Complete}" />
                                                </TransformGroup>
                                            </local:FZMaterial.RenderTransform>
                                        </local:FZMaterial>
                                    </Grid>
                                </Grid>
                            </local:FZMaterial>
                        </Grid>

                        <Control Template="{StaticResource A_ControlTemplate_FestivalPassItem_RewardInformation}"
                                 VerticalAlignment="Bottom"
                                 Margin="4,0,4,55"/>
                    </Grid>
                </Grid>
                <Grid x:Name="TitleGrid">
                    <Decorator VerticalAlignment="Top"
                               Height="{StaticResource A_Double_Size_Tile_TitlePanel}"
                               Margin="18,18,18,0">
                        <StackPanel Orientation="Vertical" VerticalAlignment="Top">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TileTitle}"
                                                MaxHeight="40"
                                                Text="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_WeeklyForzathon_Title}"/>
                            <Decorator Height="9" />
                            <Decorator MaxHeight="40">
                                <local:FZTextBlock x:Name="WeeklyTitle" 
                                                   Style="{StaticResource A_Style_FZTextBlock_FestivalPass_WeeklyChallengeTitle}"/>
                            </Decorator>
                        </StackPanel>
                    </Decorator>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_FooterIcon}"/>
                </Grid>
            </Grid>
            <DataTemplate.Triggers>
                <!-- Complete state for chapter -->
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding SelectedItem.State, ElementName=DotSelector}"
                                   Value="{x:Static local:ForzaEventChallengeState.Complete}" />
                        <Condition Binding="{Binding CurrentWeeklyChallenge.State}"
                                   Value="{x:Static local:ForzaEventChallengeState.Active}" />
                    </MultiDataTrigger.Conditions>
                    <Setter TargetName="StateIcon"
                            Property="Visibility"
                            Value="Visible" />
                    <Setter TargetName="StateArea"
                            Property="Text"
                            Value="{local:Loc ForzaEvents.IDS_WeeklyChapterProgress_Complete}" />
                    <Setter TargetName="CheckBox"
                            Property="Color"
                            Value="{StaticResource H_Color_Primary_Black}" />
                    <Setter TargetName="CheckBox"
                            Property="Preset"
                            Value="{Roundtangle}" />
                    <Setter TargetName="ProgressContainer"
                            Property="ImageSource"
                            Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Prize_Box_Completed.png" />
                </MultiDataTrigger>
            </DataTemplate.Triggers>
        </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}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="Visibility" Value="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter UseHidden=True}}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.NotStarted}">
                    <Setter Property="Color"
                            Value="#969696" />
                    <Setter Property="ImageSource"
                            Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Locked.png" />
                </DataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Expired}">
                    <Setter Property="Color"
                            Value="#969696" />
                    <Setter Property="ImageSource"
                            Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Locked.png" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZMaterial_DailyBacking"
               TargetType="{x:Type local:FZMaterial}"
               BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
            <Setter Property="Color"
                    Value="#4D000000" />
        </Style>
        
        <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_Gradient_Daily"
                                                 BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_BottomBar}"
                                                 GradientColorA="{StaticResource A_Color_HighlightGradientA}"
                                                 GradientColorB="{StaticResource A_Color_HighlightGradientB}"
                                                 Thickness="4"/>
        <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_Daily_Desaturated"
                                                 Thickness="4"
                                                 Saturation="0"/>

        <Style x:Key="A_Style_FZMaterial_Daily_OuterFrame" TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangleStroke_Gradient_Daily}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Expired}">
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangleStroke_Daily_Desaturated}" />
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Grey_60pc}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.NotStarted}">
                    <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangleStroke_Daily_Desaturated}" />
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Grey_60pc}" />
                </DataTrigger> 
                <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Complete}">
                    <Setter Property="Preset" Value="{Roundtangle}" />
                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Frames/Daily_Border_Gold.png" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <local:MappingConverter x:Key="A_Converter_Description" CheckEnumKey="ForzaEventChallengeState">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}"
                                         Value="{StaticResource H_Color_Primary_White}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="{StaticResource A_Color_Tile_Text}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="{StaticResource H_Color_Primary_White}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="{StaticResource A_Color_Tile_Text}" />
        </local:MappingConverter>
        
        <local:MappingConverter x:Key="A_Converter_HeaderTextColor" CheckEnumKey="ForzaEventChallengeState">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}"
                                         Value="{StaticResource H_Color_Primary_Green}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}"
                                         Value="{StaticResource A_Color_Tile_Title_Locked}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="{StaticResource H_Color_Primary_Green}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="{StaticResource A_Color_Tile_Title_Locked}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_State_To_DailyString">
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}"
                                         Value="{local:Loc DestinationMenu.IDS_ForzathonDaily_Completed}" />
            <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}"
                                         Value="{Binding Source={local:Loc DestinationMenu.IDS_Expired_Upper}, Converter={StaticResource A_StringToUpper}}" />
        </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>
        <MappingConverter x:Key="A_MappingConverter_Daily">
            <MappingConverterEntry Key="{NoCase NUM}" Value="{StaticResource A_Style_FZRun_Daily_NUM}" />
        </MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_FestivalPass_ForzaEvents_BarText"
               TargetType="local:FZTextBlock">
            <Setter Property="FontFamily"
                    Value="Horizon_B" />
            <Setter Property="CapHeight"
                    Value="18" />
            <Setter Property="MaxWidth"
                    Value="285" />
            <Setter Property="Color"
                    Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_Text}" />
            <Setter Property="MarkupConverter"
                    Value="{StaticResource A_MappingConverter_Daily}" />
            <Setter Property="Text"
                    Value="{Binding State, Converter={StaticResource A_Converter_State_To_DailyString}}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.NotStarted}">
                    <Setter Property="Text"
                            Value="{Binding DataContext.Points, Converter={StaticResource A_Converter_PointsUnit}, RelativeSource={RelativeSource AncestorType=ListBoxItem}}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Complete}">
                    <Setter Property="Color"
                            Value="{StaticResource H_Color_Primary_Purple}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Active}">
                    <Setter Property="Text"
                            Value="{Binding DataContext.Points, Converter={StaticResource A_Converter_PointsUnit}, RelativeSource={RelativeSource AncestorType=ListBoxItem}}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="H_Style_AutoScroll_Challenge_Title" TargetType="FZTextBlock">
            <Setter Property="Color" Value="{Binding DataContext.State, RelativeSource={RelativeSource AncestorType=StackPanel},Converter={StaticResource A_Converter_HeaderTextColor}}"/>
            <Setter Property="CapHeight" Value="18" />
            <Setter Property="FontFamily" Value="Horizon_A" />
            <Setter Property="TextAlignment" Value="Left" />
            <Setter Property="Stretch" Value="None" />
            <Setter Property="VerticalAlignment" Value="Stretch" />
            <Setter Property="AutoScroll.AllowScrolling" Value="False" />
            <Setter Property="AutoScroll" Value="{StaticResource H_AutoScrollSettings_Festival_Title}" />

            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=(Selector.IsSelected), RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="True">
                    <Setter Property="AutoScroll.AllowScrolling" Value="True"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_ForzathonDaily_Time_Title" 
               TargetType="{x:Type local:FZTextBlock}">
            <Setter Property="Text" Value="{local:Loc ForzaEvents.IDS_Time_DailyChallenge_Active_FestivalPass}"/>
            <Setter Property="FontFamily" Value="Horizon_B" />
            <Setter Property="CapHeight" Value="19" />
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.NotStarted}">
                    <Setter Property="Text" Value="{local:Loc ForzaEvents.IDS_ActiveIn}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Expired}">
                    <Setter Property="Text" Value="{local:Loc ForzaEvents.IDS_Time_DailyChallenge_Active_FestivalPass}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Complete}">
                    <Setter Property="Text" Value="{local:Loc ForzaEvents.IDS_Time_DailyChallenge_Active_FestivalPass}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_ForzathonDaily_Time_Value" 
               TargetType="{x:Type local:FZTextBlock}">
            <Setter Property="Text" Value="{Binding Time, Converter={StaticResource A_StringToUpper}}" />
            <Setter Property="FontFamily" Value="Horizon_A" />
            <Setter Property="CapHeight" Value="18" />
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Active}">
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Complete}">
                    <Setter Property="Text" Value="{local:Loc ForzaEvents.IDS_Time_DailyChallenge_Expired}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Expired}">
                    <Setter Property="Text" Value="{local:Loc ForzaEvents.IDS_Time_DailyChallenge_Expired}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_Decorator_ChallengeRemainingTime_Value_RenderTransform"
               TargetType="Decorator">
            <Setter Property="RenderTransform" Value="{StaticResource A_Transform_Italic}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Expired}">
                    <Setter Property="RenderTransform">
                        <Setter.Value>
                            <TranslateTransform />
                        </Setter.Value>
                    </Setter>
                </DataTrigger>
                <DataTrigger Binding="{Binding State}"
                             Value="{x:Static local:ForzaEventChallengeState.Complete}">
                    <Setter Property="RenderTransform">
                        <Setter.Value>
                            <TranslateTransform />
                        </Setter.Value>
                    </Setter>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <!-- Daily Challenge Template -->
        <DataTemplate x:Key="A_DataTemplate_Daily">
            <local:FZMaterial x:Name="Background"
                                Width="406"
                                MinHeight="229"
                                Margin="16,3,0,3"
                                Style="{StaticResource A_Style_FZMaterial_DailyBacking}">
                <Grid>
                    <local:FZMaterial x:Name="OuterFrame"
                                      Style="{StaticResource A_Style_FZMaterial_Daily_OuterFrame}"/>
                    <DockPanel Margin="17,18,17,10">

                        <DockPanel DockPanel.Dock="Top"
                                   x:Name="TimeRemainingDock">
                            <local:FZTextBlock Style="{StaticResource A_Style_ForzathonDaily_Time_Title}"
                                               MaxWidth="137"
                                               VerticalAlignment="Center"
                                               DockPanel.Dock="Left"
                                               Margin="0,0,0,0"/>

                            <Decorator Style="{StaticResource A_Style_Decorator_ChallengeRemainingTime_Value_RenderTransform}"
                                       Margin="0,0,2,0"
                                       VerticalAlignment="Center">
                                <local:FZTextBlock x:Name="TimeRemaining"
                                                   VerticalAlignment="Center"
                                                   Style="{StaticResource A_Style_ForzathonDaily_Time_Value}"
                                                   FontFamily="Horizon_A_tf"
                                                   MaxWidth="160"
                                                   MarkupConverter="{StaticResource A_MarkupConverter_CategoryTextTimer}"
                                                   HorizontalAlignment="Right"/>
                            </Decorator>
                        </DockPanel>
                        <local:FZMaterial DockPanel.Dock="Top"  Margin="0,13" Height="2"
                                          VerticalAlignment="Bottom"
                                          Color="{StaticResource A_Color_FestivalPass_ItemSeparator}" />
                        
                        <DockPanel Margin="0"
                                   DockPanel.Dock="Bottom">
                            <Control Template="{StaticResource A_ControlTemplate_FestivalPassItem_FPRewardPill}"
                                     DockPanel.Dock="Left"
                                     local:BindingProxy.A="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_FestivalPassItemBottomBar_Seasonal_Pill}"
                                     VerticalAlignment="Center" />
                            <FZTextBlock DockPanel.Dock="Right"
                                         FontFamily="Horizon_A_tf"
                                         CapHeight="20"
                                         VerticalAlignment="Center"
                                         Color="{StaticResource H_Color_Primary_White}"
                                         Text="{Binding Reward}" />

                            <Control Style="{StaticResource H_Style_Control_CreditsIcon}" Margin="4" DockPanel.Dock="Right"/>
                            <Decorator />
                        </DockPanel>

                        <local:FZMaterial DockPanel.Dock="Bottom"
                                          Margin="0,6"
                                          Height="2"
                                          VerticalAlignment="Bottom"
                                          Color="{StaticResource A_Color_FestivalPass_ItemSeparator}" />

                        <Grid>
                            <!-- Icon -->
                            <local:FZMaterial x:Name="DailyIcon" 
                                              Width="72"
                                              Height="72"
                                              VerticalAlignment="Top"
                                              HorizontalAlignment="Right"
                                              Margin="0,0,0,0"
                                              Style="{StaticResource A_Style_FZMaterial_Daily_Icon}" />

                            <StackPanel x:Name="InformationStack" 
                                        Margin="0,0,92,0"
                                        HorizontalAlignment="Left">
                                <!-- Title -->
                                <FZTextBlock
                                    Style="{StaticResource H_Style_AutoScroll_Challenge_Title}"
                                    Text="{Binding Title}" />
                                <Decorator Height="14"/>
                                <local:FZTextBlock HorizontalAlignment="Left"
                                                   TextAlignment="Left"
                                                   Text="{Binding Description}"
                                                   MarkupConverter="{StaticResource A_MappingConverter_ForzaEvents}"
                                                   CapHeight="14"
                                                   VerticalAlignment="Top"
                                                   StretchDirection="DownOnly"
                                                   TextWrapping="Wrap"
                                                   Color="{Binding State, Converter={StaticResource A_Converter_Description}}"
                                                   FontFamily="Horizon_D"
                                                   LineAdjust="-0.6"/>
                                <Decorator Height="14"/>
                            </StackPanel>
                        </Grid>

                    </DockPanel>
                </Grid>
            </local:FZMaterial>
            <DataTemplate.Triggers>

            </DataTemplate.Triggers>
        </DataTemplate>

        <System:Double x:Key="A_Double_Zero">0</System:Double>
        <System:Double x:Key="A_Double_MaxDailyScroll">4</System:Double>
        <System:Double x:Key="A_Double_MaxDailyScrollTotalHeightOffset">592</System:Double>

        <MultiConverter x:Key="A_Converter_DailyItemsActualHeightToScrollOffset">
            <MultiConverterEntry TargetType="{Type Double}"
                                 Parameter="{StaticResource A_Double_MaxDailyScrollTotalHeightOffset}"
                                 Converter="{MathOperationConverter Operation=Subtract}"/>
            <MultiConverterEntry TargetType="{Type Double}"
                                 Parameter="{StaticResource A_Double_MaxDailyScroll}"
                                 Converter="{MathOperationConverter Operation=Divide}"/>
        </MultiConverter>

        <System:Double x:Key="A_Double_ScrollShadow_Height">120</System:Double>
        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_ScrollShadow_Bottom"
                                           GradientColorA="{StaticResource A_Color_Transparent}"
                                           GradientColorB="{StaticResource H_Color_Glass_Purple_60pc}"
                                           GradientAngle="180"/>

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_ScrollShadow_Top"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_ScrollShadow_Bottom}"
                                           GradientAngle="0"/>
        
        <DataTemplate DataType="{x:Type local:FestivalPassForzathonDailyItem}">
            <Grid x:Name="FestivalPassForzathonDailyItem"
                  Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage_ForzathonDaily}" />
                <DockPanel LastChildFill="True">
                    <StackPanel x:Name="TitleStack"
                                DockPanel.Dock="Top"
                                Margin="18,18,18,10">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TileTitle}"
                                            VerticalAlignment="Bottom"
                                            HorizontalAlignment="Left"
                                            MaxHeight="40"
                                            Text="{local:Loc DestinationMenu.IDS_FestivalPassEventCategory_DailyForzathon_Title}"
                                            Style="{StaticResource A_Style_FZTextBlock_FestivalPass_TileTitle}" />
                        <Decorator Height="9" />
                        <Grid MaxHeight="40">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_ItemStateText_ForzathonDaily_Definition}"
                                               VerticalAlignment="Top"
                                               MaxWidth="340"
                                               HorizontalAlignment="Left"/>

                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_ItemStateText_ForzathonDaily_Value}"
                                               VerticalAlignment="Top"
                                               MaxWidth="60"
                                               HorizontalAlignment="Right"/>
                        </Grid>
                    </StackPanel>
                    <Grid ClipToBounds="True"
                          Visibility="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_NotLockedContentItemState}, FallbackValue=Visible}"
                          x:Name="WrapperGrid">



                        <StackPanel VerticalAlignment="Bottom"
                                    Margin="0,0,0,0">
                            <Canvas>
                                <ItemsControl x:Name="DailyItems"
                                              ItemTemplate="{StaticResource A_DataTemplate_Daily}"
                                              ItemsSource="{Binding Challenges}"
                                              ItemsPanel="{StaticResource A_Template_DailiesPanel}"
                                              HorizontalAlignment="Left"
                                              BindingProxy.AlwaysValidNumeric="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_DailyItemsActualHeightToScrollOffset}, FallbackValue={StaticResource A_Double_Zero}}"/>
                            </Canvas>
                            <Decorator Height="{Binding ActualHeight, ElementName=WrapperGrid}" />
                            <Decorator MultiDataConversion.Value="{Binding (BlendValue.Output), RelativeSource={RelativeSource Self}}"
                                       MultiDataConversion.Parameter="{Binding (BindingProxy.AlwaysValidNumeric), ElementName=DailyItems, FallbackValue={StaticResource A_Double_Zero}}"
                                       MultiDataConversion.TargetType="{Type Double}"
                                       MultiDataConversion.Converter="{MathOperationConverter Operation=Multiply}"
                                       BindingProxy.AlwaysValidNumeric="{Binding (MultiDataConversion.Output), RelativeSource={RelativeSource Self}, FallbackValue={StaticResource A_Double_Zero}}"
                                       Height="{Binding Path=(BindingProxy.AlwaysValidNumeric), RelativeSource={RelativeSource Self}}"                                       
                                       x:Name="ScrollPusher"
                                       local:BlendValue.Input="{Binding ScrollIndex}"
                                       local:BlendValue.BlendFromPreviousOutput="True"
                                       local:BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_Carousel_SmoothScroll}" />
                        </StackPanel>

                        <ScrollBar x:Name="Scrollbar"
                                   Style="{StaticResource H_Style_ScrollBar}"
                                   Margin="8,6,6,30"
                                   HorizontalAlignment="Right"
                                   Minimum="0"
                                   Maximum="{StaticResource A_Double_MaxDailyScroll}"
                                   Value="{Binding Path=(local:BlendValue.Output), ElementName=ScrollPusher}"
                                   ViewportSize="{StaticResource A_Double_MaxDailyScroll}">
                            <DynamicData.Data>
                                <DynamicDataSource>
                                    <DynamicDataItem Name="ScrollBarThickness"
                                                     DataType="Double"
                                                     Value="8" />
                                    <DynamicDataItem Name="ScrollBarCornerRadius"
                                                     DataType="CornerRadius"
                                                     Value="3" />
                                </DynamicDataSource>
                            </DynamicData.Data>
                        </ScrollBar>

                        <local:FZMaterial x:Name="ScrollShadowTop"
                                  VerticalAlignment="Top"
                                  Height="{StaticResource A_Double_ScrollShadow_Height}"
                                  Preset="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_ScrollShadow_Top}"/>
                    </Grid>
                </DockPanel>
                
                <local:FZMaterial x:Name="ScrollShadowBottom"
                                  VerticalAlignment="Bottom"
                                  Height="{StaticResource A_Double_ScrollShadow_Height}"
                                  Preset="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_ScrollShadow_Bottom}"/>
            </Grid>
            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding Value, ElementName=Scrollbar}" Value="0">
                    <Setter TargetName="ScrollShadowTop" Property="Visibility" Value="Collapsed" />
                </DataTrigger>
                <DataTrigger Binding="{Binding Value, ElementName=Scrollbar}" Value="{StaticResource A_Double_MaxDailyScroll}">
                    <Setter TargetName="ScrollShadowBottom" Property="Visibility" Value="Collapsed" />
                </DataTrigger>
            </DataTemplate.Triggers>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassHorizonStoryItem}">
            <Grid x:Name="FestivalPassHorizonStoryItem" Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage}"/>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_ItemInnerBorder}"/>

                <StackPanel Margin="{StaticResource A_Thickness_TileUnborderedBackground}"
                            Orientation="Vertical" VerticalAlignment="Bottom">
                    <Grid x:Name="StoryDescriptionGrid" 
                          Margin="20,0,20,135"
                          VerticalAlignment="Top"
                          Visibility="{Binding ItemState, Converter={StaticResource A_Converter_Visibility_ActiveContentItemState}}">
                        <local:FZMaterial Height="202" 
                                          Color="{StaticResource H_Color_Primary_Black}"
                                          Opacity="0.5"
                                          Preset="{StaticResource H_Roundtangle_TopOnly_3px}" 
                                          VerticalAlignment="Bottom"/>
                        <StackPanel Style="{StaticResource A_Style_StackPanel_FestivalPass_TintedPanelContainer}"
                                    Margin="18,15">
                            <local:FZTextBlock Text="{local:Loc DestinationMenu.IDS_HorizonStory_NextChapter}"
                                               HorizontalAlignment="Left" 
                                               VerticalAlignment="Top"
                                               CapHeight="18"
                                               LineAdjust="-0.2"
                                               Color="{StaticResource H_Color_Primary_Green}"
                                               TextAlignment="Left"/>
                            <Decorator Height="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToBetweenTitleAndTextHeight}}" DockPanel.Dock="Top"/>
                            <local:FZTextBlock Text="{Binding ChapterName}"
                                               HorizontalAlignment="Left" 
                                               FontFamily="Horizon_B"
                                               CapHeight="18"
                                               LineAdjust="-0.2"
                                               Color="{StaticResource A_Color_ForzaEvents_WeeklyChallenge_TitleText}"
                                               TextAlignment="Left"
                                               TextWrapping="Wrap"
                                               MaxHeight="42"
                                               MaxWidth="295"/>
                            <Decorator Height="23"/>
                            <local:FZTextBlock Text="{Binding Description}" 
                                               MarkupConverter="{StaticResource A_MappingConverter_ForzaEvents}"
                                               HorizontalAlignment="Left" 
                                               Color="{StaticResource A_Color_ForzaEvents_WeeklyChallenge_Text}"
                                               TextWrapping="Wrap"
                                               CapHeight="14"
                                               FontFamily="Horizon_D"
                                               TextAlignment="Left"
                                               MaxHeight="140"/>
                        </StackPanel>

                        <local:FZMaterial x:Name="ProgressContainer"
                                          VerticalAlignment="Bottom"
                                          Height="36"
                                          Margin="0,0,0,-36"
                                          Style="{StaticResource A_Style_FZMaterial_ForzaEvents_ChallengeState}">
                            <DockPanel Margin="18,0">
                                <local:FZTextBlock x:Name="StateArea"
                                                   DockPanel.Dock="Left"
                                                   Text="{local:Loc DestinationMenu.IDS_HorizonStory_TotalChaptersCompleted}"
                                                   Style="{StaticResource A_Style_FZTextBlock_ForzaEvents_WeeklyChallenge_Text}"
                                                   Color="{StaticResource H_Color_Primary_Black}"
                                                   VerticalAlignment="Center"
                                                   HorizontalAlignment="Left"
                                                   FontFamily="Horizon_A"
                                                   CapHeight="19" />
                                <Decorator Width="6"
                                           DockPanel.Dock="Left" />
                                <local:FZTextBlock x:Name="StateText"
                                                   VerticalAlignment="Center"
                                                   HorizontalAlignment="Right"
                                                   FontFamily="Horizon_A"
                                                   CapHeight="19"
                                                   Style="{StaticResource A_Style_FZTextBlock_ForzaEvents_WeeklyChallenge_Text}"
                                                   Color="{StaticResource H_Color_Primary_Black}"
                                                   local:MultiStringFormatter.Format="{local:Loc DestinationMenu.IDS_HorizonStory_ChaptersCompletedFormat}"
                                                   local:MultiStringFormatter.Param0="{Binding CompletedChapterCount, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                   local:MultiStringFormatter.Param1="{Binding TotalChapterCount, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                   Text="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
                            </DockPanel>
                        </local:FZMaterial>
                    </Grid>
                </StackPanel>

                <Grid x:Name="DetailStack" VerticalAlignment="Bottom">
                    <Control Style="{StaticResource A_Style_Control_ContentItem_BarState}" />
                    <Control Template="{StaticResource A_ControlTemplate_FestivalPassItem_RewardInformation}" Margin="4,0,4,55"/>
                </Grid>

                <Grid x:Name="TitleGrid" VerticalAlignment="Top">
                    <Decorator VerticalAlignment="Top"
                            Height="{StaticResource A_Double_Size_Tile_TitlePanel}"
                            Margin="{Binding ItemSize, Converter={StaticResource A_Converter_Thickness_MarginFromItemSize}}">
                        <StackPanel Orientation="Vertical" VerticalAlignment="Top">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileTitle}"/>
                            <Decorator Height="{StaticResource A_Double_RewardStackItemNameDividerHeight}"/>
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileText}"/>
                        </StackPanel>
                    </Decorator>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_FooterIcon}"/>
                </Grid>
            </Grid>
        </DataTemplate>
        
        <DataTemplate DataType="{x:Type local:FestivalPassContentItem}">
            <Grid x:Name="FestivalPassContentItem" Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}"
                  Width="{Binding ItemSize, Converter={StaticResource A_Converter_Width_FromItemSize}}">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage}"/>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_ItemInnerBorder}"/>
                <Grid x:Name="DetailStack"
                      VerticalAlignment="Bottom">
                    <Control Style="{StaticResource A_Style_Control_ContentItem_BarState}" />
                    <Control Style="{StaticResource A_Style_Control_DetailStack}" Margin="4,0,4,55"/>
                </Grid>
                <Grid x:Name="TitleGrid" VerticalAlignment="Top">
                    <Decorator VerticalAlignment="Top"
                            Height="{StaticResource A_Double_Size_Tile_TitlePanel}"
                            Margin="{Binding ItemSize, Converter={StaticResource A_Converter_Thickness_MarginFromItemSize}}">
                        <DockPanel VerticalAlignment="Top" Height="195">
                            <local:FZTextBlock DockPanel.Dock="Top" Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileTitle}"/>
                            <Decorator DockPanel.Dock="Top" Height="{StaticResource A_Double_RewardStackItemNameDividerHeight}"/>
                            <local:FZTextBlock DockPanel.Dock="Top" Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileText}" />
                            <Decorator DockPanel.Dock="Top" Height="18" Visibility="{Binding Description, Converter={StaticResource A_StringVisConverter}}"/>
                            <local:FZTextBlock DockPanel.Dock="Top" Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileDescriptionText}" />
                            <Decorator DockPanel.Dock="Top"
                                    VerticalAlignment="Top"
                                    HorizontalAlignment="Left"
                                       Margin="0,18,0,0">
                                <local:FZTextBlock x:Name="Subtext" 
                                                VerticalAlignment="Center"
                                                Color="{StaticResource H_Color_Primary_White}"
                                                CapHeight="14"
                                                TextWrapping="Wrap"
                                                FontFamily="Horizon_D"
                                                LineAdjust="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToSubHeadingTextLineAdjust}}"
                                                MarkupConverter="{StaticResource A_MappingConverter_FestivalPass_Text_Highlight}">
                                    <local:FZTextBlock.Style>
                                        <Style TargetType="{x:Type local:FZTextBlock}">
                                            <Setter Property="Visibility" Value="Collapsed"/>
                                            <Setter Property="Text" Value=""/>
                                            <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="Text" Value="{Binding SubText}"/>
                                                    <Setter Property="Visibility" Value="Visible"/>
                                                </MultiDataTrigger>
                                            </Style.Triggers>
                                        </Style>
                                    </local:FZTextBlock.Style>
                                </local:FZTextBlock>
                            </Decorator>
                        </DockPanel>
                    </Decorator>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_FooterIcon}"/>
                </Grid>
                <Control HorizontalAlignment="Right" 
                         VerticalAlignment="Bottom"
                         x:Name="ImageCreatorLabel"
                         Margin="0,0,0,120"
                         Template="{StaticResource A_ControlTemplate_FestivalPassItem_ImageCreatorLabel}"
                         Opacity="0.75"
                         Visibility="{Binding DataContext.ImageCreatorGamertag, RelativeSource={RelativeSource AncestorType=ListBoxItem}, Converter={StaticResource A_StringVisConverter_UseHidden}, FallbackValue=Hidden}"/>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassPhotoChallengeItem}">
            <Grid x:Name="FestivalPassPhotoChallengeItem" Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage}"/>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_ItemInnerBorder}"/>

                <Grid x:Name="DetailStack"
                      VerticalAlignment="Bottom">
                    <Control Style="{StaticResource A_Style_Control_ContentItem_BarState}" />
                    <Control Template="{StaticResource A_ControlTemplate_FestivalPassItem_RewardInformation}" Margin="4,0,4,55"/>
                </Grid>
                
                <StackPanel x:Name="TitleStack" Orientation="Vertical">
                    <Grid x:Name="TitleGrid" VerticalAlignment="Top">
                        <Decorator VerticalAlignment="Top"
                                   Margin="{Binding ItemSize, Converter={StaticResource A_Converter_Thickness_MarginFromItemSize}}">
                            <StackPanel Orientation="Vertical" VerticalAlignment="Top">
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileTitle}"/>
                                <Decorator Height="{StaticResource A_Double_RewardStackItemNameDividerHeight}"/>
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileText}"/>
                            </StackPanel>
                        </Decorator>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_FooterIcon}"/>
                    </Grid>
                    <Decorator Margin="20,0,0,0">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileDescriptionText}" />
                    </Decorator>
                </StackPanel>

            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassTreasureCarItem}">
            <Grid x:Name="FestivalPassTreasureCarItem" Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage}"/>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_ItemInnerBorder}"/>

                <Grid x:Name="DetailStack"
                      VerticalAlignment="Bottom">
                    <Control Style="{StaticResource A_Style_Control_ContentItem_BarState}" />
                    <Control Template="{StaticResource A_ControlTemplate_FestivalPassItem_RewardInformation}" Margin="4,0,4,55"/>
                </Grid>

                <Grid Margin="20,15,20,100"
                      VerticalAlignment="Bottom">
                    <Grid.Style>
                        <Style TargetType="{x:Type Grid}">
                            <Setter Property="Visibility" Value="Collapsed" />
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static local:FestivalPassItemState.Available}">
                                    <Setter Property="Visibility" Value="Visible"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </Grid.Style>
                    <local:FZMaterial Height="237"
                                      x:Name="RiddleBackground"
                                      Color="{StaticResource H_Color_Glass_Purple_60pc}"
                                      Visibility="{Binding HasTreasureSpawned, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"
                                      VerticalAlignment="Bottom" >
                        <StackPanel x:Name="RiddlePanel" Visibility="{Binding HasTreasureSpawned, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}" >
                            <local:FZTextBlock Text="{Loc DestinationMenu.IDS_TreasureChest_ClueHeading}"
                                               Style="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeTitle}"
                                               Margin="15,15,15,5"/>
                            <local:FZTextBlock Text="{Binding SubText}"
                                               Style="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeSubTitle}"
                                               Margin="15,5,15,15"/>
                            <local:FZTextBlock Text="{Binding Description}"
                                               Style="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeDesc}"
                                               MaxHeight="150"
                                               Margin="15,5,15,0" />
                        </StackPanel>
                    </local:FZMaterial>
                </Grid>


                <StackPanel x:Name="TitleStack" Orientation="Vertical">
                    <Grid x:Name="TitleGrid" VerticalAlignment="Top">
                        <Decorator VerticalAlignment="Top"
                                   Margin="{Binding ItemSize, Converter={StaticResource A_Converter_Thickness_MarginFromItemSize}}">
                            <StackPanel Orientation="Vertical" VerticalAlignment="Top">
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileTitle}"/>
                                <Decorator Height="{StaticResource A_Double_RewardStackItemNameDividerHeight}"/>
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileText}"/>
                            </StackPanel>
                        </Decorator>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_FooterIcon}"/>
                    </Grid>
                </StackPanel>

            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassTreasureChestItem}">
            <Grid Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}"
                  ClipToBounds="True">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage}"/>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_ItemInnerBorder}"/>

                <StackPanel x:Name="TitleStack">
                    <Grid x:Name="TitleGrid"
                        VerticalAlignment="Top">
                        <Decorator VerticalAlignment="Top"
                                Margin="{Binding ItemSize, Converter={StaticResource A_Converter_Thickness_MarginFromItemSize}}">
                            <StackPanel Orientation="Vertical"
                                        VerticalAlignment="Top">
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileTitle}" />
                                <Decorator Height="{StaticResource A_Double_RewardStackItemNameDividerHeight}" />
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileText}" />
                            </StackPanel>
                        </Decorator>
                        <local:FZMaterial x:Name="TreasureChestIcon"
                                        VerticalAlignment="Top"
                                        HorizontalAlignment="Right"
                                        Style="{StaticResource A_Style_FZMaterial_FestivalPass_FooterIcon}">
                        </local:FZMaterial>
                    </Grid>
                    
                    <Decorator VerticalAlignment="Center"
                            Visibility="{Binding HasTreasureSpawned, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                               Margin="20,0,0,0">
                        <local:FZTextBlock x:Name="Subtext"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Left"
                                        Color="{StaticResource H_Color_Primary_White}"
                                        MaxWidth="320"
                                        CapHeight="14"
                                        TextWrapping="Wrap"
                                        LineAdjust="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToSubHeadingTextLineAdjust}}"
                                        FontFamily="Horizon_D">
                            <local:FZTextBlock.Style>
                                <Style TargetType="{x:Type local:FZTextBlock}">
                                    <Setter Property="Visibility"
                                            Value="Collapsed" />
                                    <Setter Property="Text"
                                            Value="" />
                                    <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="Text"
                                                    Value="{Binding SubText}" />
                                            <Setter Property="Visibility"
                                                    Value="Visible" />
                                        </MultiDataTrigger>
                                    </Style.Triggers>
                                </Style>
                            </local:FZTextBlock.Style>
                        </local:FZTextBlock>
                    </Decorator>
                </StackPanel>

                <Grid Margin="20,15,20,100"
                      VerticalAlignment="Bottom">
                    <Grid.Style>
                        <Style TargetType="{x:Type Grid}">
                            <Setter Property="Visibility" Value="Collapsed" />
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding ItemState}" Value="{x:Static local:FestivalPassItemState.Available}">
                                    <Setter Property="Visibility" Value="Visible"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </Grid.Style>
                    <local:FZMaterial Height="237"
                                      x:Name="RiddleBackground"
                                      Color="{StaticResource H_Color_Glass_Purple_60pc}"
                                      Visibility="{Binding HasTreasureSpawned, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"
                                      VerticalAlignment="Bottom" >
                        <StackPanel x:Name="RiddlePanel" Visibility="{Binding HasTreasureSpawned, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}" >
                            <local:FZTextBlock Text="{Loc DestinationMenu.IDS_TreasureChest_ClueHeading}"
                                               Style="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeTitle}"
                                               Margin="15,15,15,5"/>
                            <local:FZTextBlock Text="{Binding SubText}"
                                               Style="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeSubTitle}"
                                               Margin="15,5,15,15"/>
                            <local:FZTextBlock Text="{Binding Description}"
                                               Style="{StaticResource A_Style_FZTextBlock_TreasureChestChallengeDesc}"
                                               MaxHeight="150"
                                               Margin="15,5,15,0" />
                        </StackPanel>
                    </local:FZMaterial>
                </Grid>

                <Grid x:Name="DetailStack"
                      VerticalAlignment="Bottom">
                    <Control Style="{StaticResource A_Style_Control_ContentItem_BarState}" />
                    <Control Style="{StaticResource A_Style_Control_DetailStack}" Margin="4,0,4,55"/>
                </Grid>
            </Grid>
        </DataTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassEventLabItem}">
            <Grid x:Name="FestivalPassEventLabItem" Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}"
                  Width="{Binding ItemSize, Converter={StaticResource A_Converter_Width_FromItemSize}}">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_BackingImage}"/>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPass_ItemInnerBorder}"/>

                <StackPanel Margin="{Binding ItemSize, Converter={StaticResource A_Converter_Thickness_MarginFromItemSize}}">
                    <Grid x:Name="TitleGrid" VerticalAlignment="Top">
                        <Decorator VerticalAlignment="Top"
                                Height="{StaticResource A_Double_Size_Tile_TitlePanel}">
                            <DockPanel VerticalAlignment="Top">
                                <local:FZTextBlock DockPanel.Dock="Top" Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileTitle}"/>
                                <Decorator DockPanel.Dock="Top" Height="{StaticResource A_Double_RewardStackItemNameDividerHeight}"/>
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FestivalPass_EventTileText}"
                                                   HorizontalAlignment="Left"
                                                   DockPanel.Dock="Top"
                                                   VerticalAlignment="Top"
                                                   local:MultiStringFormatter.Format="{local:Loc EventBlueprint.IDS_CreatorPresentsFormat}"
                                                   local:MultiStringFormatter.Param0="{Binding Creator.FormattedGamertag, Converter={StaticResource A_StringToUpper}}"
                                                   Text="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
                            </DockPanel>
                        </Decorator>

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

                    <local:FZTextBlock Text="{Binding Title}"
                                       DockPanel.Dock="Top"
                                       VerticalAlignment="Center" 
                                       Color="{StaticResource H_Color_Primary_White}" 
                                       HorizontalAlignment="Left"
                                       FontFamily="Horizon_A"
                                       CapHeight="24"
                                       Visibility="{Binding Description, Converter={StaticResource A_StringVisConverter}}"
                                       Margin="0,27,0,0"/>
                    <local:FZTextBlock Text="{Binding Description}"
                                       Margin="0,15,0,0"
                                       TextWrapping="Wrap"
                                       VerticalAlignment="Top"
                                       Color="{StaticResource H_Color_Primary_White}" 
                                       HorizontalAlignment="Left"
                                       FontFamily="Horizon_B"  
                                       CapHeight="15"
                                       Visibility="{Binding Description, Converter={StaticResource A_StringVisConverter}}"/>
                </StackPanel>

                <Grid x:Name="DetailStack"
                      VerticalAlignment="Bottom">
                    <Control Style="{StaticResource A_Style_Control_ContentItem_BarState}" />
                    <Control Style="{StaticResource A_Style_Control_DetailStack}" Margin="4,0,4,55"/>
                </Grid>
            </Grid>
        </DataTemplate>

        <local:MappingConverter x:Key="A_Converter_Season_To_IconImage">
            <local:MappingConverterEntry Key="{x:Static local:Season.Spring}"
                                         Value="game:\Media\UI\Textures\Data_Bound\FestivalPass\Seasons\Spring_Icon.png" />
            <local:MappingConverterEntry Key="{x:Static local:Season.Summer}"
                                         Value="game:\Media\UI\Textures\Data_Bound\FestivalPass\Seasons\Summer_Icon.png" />
            <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}"
                                         Value="game:\Media\UI\Textures\Data_Bound\FestivalPass\Seasons\Autumn_Icon.png" />
            <local:MappingConverterEntry Key="{x:Static local:Season.Winter}"
                                         Value="game:\Media\UI\Textures\Data_Bound\FestivalPass\Seasons\Winter_Icon.png" />
        </local:MappingConverter>
                
        <DataTemplate DataType="{x:Type local:FestivalPassCompletionProgressItem}">
            <Grid Width="{StaticResource A_Double_FestivalPass_OverviewItemWidth}"
                  x:Name="FestivalPassCompletionProgressItem"
                  Height="{StaticResource A_Double_FestivalPass_ProgressItemHeight}"
                  Focusable="False">

                <local:FZMaterial Color="#7D000000"
                                  VerticalAlignment="Stretch"
                                  HorizontalAlignment="Stretch">

                    <local:FZMaterial Preset="{Roundtangle CornerRadius={CornerRadius TopLeft=2, BottomLeft=2}}"
                                      HorizontalAlignment="Left"
                                      Width="10"
                                      Color="{Binding Season, Converter={StaticResource A_Converter_Season_To_Color}}" />

                </local:FZMaterial>
                <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                      Margin="70,37,60,60">
                    <DockPanel LastChildFill="False">
                        <Grid DockPanel.Dock="Top">
                            <DockPanel x:Name="SeasonTitleContainer">
                                <local:FZMaterial DockPanel.Dock="Left"
                                                  ImageSource="{Binding Season, Converter={StaticResource A_Converter_Season_To_IconImage}}"
                                                  Width="52" Height="52"
                                                  Margin="0,0,20,0"/>

                                <local:FZTextBlock DockPanel.Dock="Top"
                                           x:Name="SeriesTitle"
                                           Style="{StaticResource A_Style_FZTextBlock_ProgressTile_TitleText}"
                                           Text="{Binding Season, Converter={StaticResource A_Converter_Season_To_String_Styled}}"
                                           LineAdjust="-0.45"
                                           CapHeight="42"
                                           TextWrapping="Wrap"
                                           TextAlignment="Left"
                                           HorizontalAlignment="Stretch"
                                           VerticalAlignment="Center"
                                           MaxHeight="70"/>
                            </DockPanel>
                        </Grid>

                        <Decorator Height="21" DockPanel.Dock="Top" />

                        <local:FZMaterial x:Name="SeasonProgressContainer"
                                          HorizontalAlignment="Stretch"
                                          DockPanel.Dock="Top" Height="70"
                                          Color="{StaticResource H_Color_Glass_Purple_40pc}">

                            <Grid>
                                <DockPanel HorizontalAlignment="Stretch"
                                           Margin="16"  LastChildFill="True">
                                    <local:FZTextBlock x:Name="StateTitleText"
                                                       Text="{local:Loc DestinationMenu.IDS_SeasonProgress}"
                                                       Style="{StaticResource A_Style_FZTextBlock_ProgressSlider_TitleText}"
                                                       HorizontalAlignment="Left"
                                                       MaxWidth="280"
                                                       DockPanel.Dock="Left"/>
                                    <Decorator>
                                        <local:FZTextBlock x:Name="StateProgressText"
                                                           local:MultiStringFormatter.Param0="{Binding CurrentPoints, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                           local:MultiStringFormatter.Param1="{Binding MaxPoints, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                           Style="{StaticResource A_Style_FZTextBlock_ProgressSlider_ValueText}"
                                                           HorizontalAlignment="Right"
                                                           FontFamily="Horizon_C"/>
                                    </Decorator>
                                </DockPanel>

                                <Control Template="{StaticResource A_ControlTemplate_ProgressBar_FP}"
                                         Width="{StaticResource A_Double_FestivalPass_ProgessBarWidth}"
                                         HorizontalAlignment="Center"
                                         VerticalAlignment="Bottom"
                                         Tag="Variant"
                                         Margin="0,0,0,-10"/>
                            </Grid>

                        </local:FZMaterial>

                        <Decorator Height="56" DockPanel.Dock="Top" />

                        <Control x:Name="Reward2"
                                 DataContext="{Binding Rewards[1]}"
                                 Template="{StaticResource A_Style_RewardTemplateControl_WithIcon}"
                                 DockPanel.Dock="Top"/>

                        <Decorator Height="30" DockPanel.Dock="Top" />

                        <Control x:Name="Reward1"
                                 DataContext="{Binding Rewards[0]}"
                                 Template="{StaticResource A_Style_RewardTemplateControl_WithIcon}"
                                 DockPanel.Dock="Top"/>
                    </DockPanel>
                </Grid>
            </Grid>
        </DataTemplate>

        <MappingConverter x:Key="A_LangStrToBetweenTextLine1AndTextLine2Margin" Default="0,4,0,0">
            <MappingConverterEntry Key="CHS" Value="0,12,0,0"/>
            <MappingConverterEntry Key="CHT" Value="0,12,0,0"/>
            <MappingConverterEntry Key="JP" Value="0,12,0,0"/>
            <MappingConverterEntry Key="KO" Value="0,12,0,0"/>
            <MappingConverterEntry Key="RU" Value="0,12,0,0"/>
            <MappingConverterEntry Key="BR" Value="0,14,0,0"/>
            <MappingConverterEntry Key="IT" Value="0,14,0,0"/>
            <MappingConverterEntry Key="FR" Value="0,14,0,0"/>
            <MappingConverterEntry Key="MX" Value="0,14,0,0"/>
            <MappingConverterEntry Key="DE" Value="0,14,0,0"/>
            <MappingConverterEntry Key="PL" Value="0,14,0,0"/>
            <MappingConverterEntry Key="CZ" Value="0,14,0,0"/>
            <MappingConverterEntry Key="HU" Value="0,14,0,0"/>
            <MappingConverterEntry Key="TR" Value="0,14,0,0"/>
        </MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_VotedOnItem_to_LocText" Default="{local:Loc DestinationMenu.IDS_FestivalPass_Vote_Banner_PostVote}">
            <local:MappingConverterEntry Key="{x:Null}"
                                 Value="{local:Loc DestinationMenu.IDS_FestivalPass_Vote_Banner_PreVote}"/>
        </local:MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_PlaylistVoteTab_Text" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_Title}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="TextAlignment" Value="Center" />
        </Style>

        <Style x:Key="A_Style_FZTextBlock_PlaylistVoteTab_Text_Main" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_PlaylistVoteTab_Text}">
            <Setter Property="Text" Value="{local:Loc DestinationMenu.IDS_FestivalPass_Vote_Instruction_PostWinnerKnown_Upper}" />
            <Style.Triggers>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding SelectedCategory.WinnerItem}" Value="{x:Null}" />
                        <Condition Binding="{Binding SelectedCategory.IsVoteClosed}" Value="True" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Text" Value="{local:Loc DestinationMenu.IDS_FestivalPass_Vote_Instruction_Calculating_Upper}" />
                </MultiDataTrigger>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding SelectedCategory.WinnerItem}" Value="{x:Null}" />
                        <Condition Binding="{Binding SelectedCategory.IsVoteClosed}" Value="False" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Text" Value="{local:Loc DestinationMenu.IDS_FestivalPass_Vote_Instruction_PreVote_Upper}" />
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>
        
        <Style x:Key="A_Style_FZMaterial_PlaylistVoteItem_SubTextVisibility" TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Visibility" Value="Collapsed" />
            <Style.Triggers>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}" Value="True" />
                        <Condition Binding="{Binding SelectedCategory.IsVoteClosed, RelativeSource={RelativeSource AncestorType=Page}}" Value="False" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Visibility" Value="Visible" />
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>

        <ControlTemplate x:Key="A_ControlTemplate_PlaylistVote_ButtonVote" TargetType="{x:Type Control}">
            <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                                       Height="40"
                                       UseLargeIcon="False"
                                       Button="A" />
        </ControlTemplate>

        <Style x:Key="A_Style_FZPlaylistVote_Markup_BUTTON_VOTE" TargetType="{x:Type Control}">
            <Setter Property="Template" Value="{StaticResource A_ControlTemplate_PlaylistVote_ButtonVote}" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>

        <ControlTemplate x:Key="A_ControlTemplate_PlaylistVote_ButtonLeftRight_Controller" TargetType="{x:Type Control}">
            <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                               Height="40"
                               UseLargeIcon="False"
                               Button="DPadHorizontal" />
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_PlaylistVote_ButtonLeftRight" TargetType="{x:Type Control}">
            <StackPanel Orientation="Horizontal">
                <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                                               Button="DPadLeft"/>
                <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                                               Button="DPadRight"/>
            </StackPanel>
        </ControlTemplate>

        <Style x:Key="A_Style_FZPlaylistVote_Markup_BUTTON_LEFTRIGHT" TargetType="{x:Type Control}">
            <Setter Property="Template" Value="{StaticResource A_ControlTemplate_PlaylistVote_ButtonLeftRight_Controller}" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="Margin" Value="0,0,5,0" />

            <Style.Triggers>
                <DataTrigger Binding="{Binding IsControllerActiveInput, RelativeSource={RelativeSource AncestorType=Page}}"
                             Value="False" >
                    <Setter Property="Template"
                            Value="{StaticResource A_ControlTemplate_PlaylistVote_ButtonLeftRight}" />
                </DataTrigger>

                <DataTrigger Binding="{Binding IsControllerActiveInput, RelativeSource={RelativeSource AncestorType=Page}}"
                             Value="True" >
                    <Setter Property="Template"
                            Value="{StaticResource A_ControlTemplate_PlaylistVote_ButtonLeftRight_Controller}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <MappingConverter x:Key="A_MarkupConverter_FZPlaylistVote_TextControl">
            <MappingConverterEntry Key="{NoCase BUTTON_VOTE}" Value="{StaticResource A_Style_FZPlaylistVote_Markup_BUTTON_VOTE}" />
            <MappingConverterEntry Key="{NoCase BUTTON_LEFTRIGHT}" Value="{StaticResource A_Style_FZPlaylistVote_Markup_BUTTON_LEFTRIGHT}" />
        </MappingConverter>

        <Style x:Key="A_Style_FZMaterial_PlaylistVoteItem" TargetType="{x:Type FZMaterial}">
            <Setter Property="Width" Value="572" />
            <Setter Property="Height" Value="572" />
            <Setter Property="Margin" Value="0,0,0,-64" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding SelectedCategory.WinnerItem, RelativeSource={RelativeSource AncestorType=Page}}"
                             Value="{x:Null}">
                    <Setter Property="Width" Value="520" />
                    <Setter Property="Height" Value="520" />
                    <Setter Property="Margin" Value="0" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <DataTemplate DataType="{x:Type local:FestivalPassPlaylistVoteItem}">
            <Grid>
                <Grid x:Name="FestivalPassPlaylistVoteItem">
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_PlaylistVoteItem}"
                                      ImageSource="{Binding TexturePath}"
                                      Preset="{Binding ItemState, Converter={StaticResource A_Converter_Preset_BackingImageFromVoteItemState}}" />
                </Grid>
                <local:FZMaterial Margin="0,0,0,-75"
                                  Height="53"
                                  VerticalAlignment="Bottom"
                                  HorizontalAlignment="Stretch"
                                  ImageSource="Game:\Media\UI\Textures\Data_Bound\PlaylistVoting\Text_BG_Small.png"
                                  Style="{StaticResource A_Style_FZMaterial_PlaylistVoteItem_SubTextVisibility}">
                    <local:FZTextBlock Text="{Binding SelectedCategory.VotedOnItem, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_MappingConverter_VotedOnItem_to_LocText}}"
                                       MarkupConverter="A_MarkupConverter_FZPlaylistVote_TextControl"
                                       Style="{StaticResource A_Style_FZTextBlock_PlaylistVoteTab_Text}"
                                       CapHeight="25" />
                </local:FZMaterial>
            </Grid>
        </DataTemplate>

        <local:MappingConverter x:Key="A_MappingConverter_SelectedCategory_to_PlaylistVoteVisibility" Default="{x:Static Visibility.Collapsed}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.PlaylistVote}" Value="{x:Static Visibility.Visible}" />
        </local:MappingConverter>

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

        <MappingConverter x:Key="A_MarkupConverter_ComingSoonText">
            <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_ComingSoon_HIGHLIGHT}" />
        </MappingConverter>
        
        <DataTemplate DataType="{x:Type local:FestivalPassSeriesPreviewItem}">
            <Grid x:Name="FestivalPassSeriesPreviewItem">

                <local:FZMaterial ImageSource="{Binding TexturePath}"
                                  GetSizeFromTexture="True"
                                  VerticalAlignment="Top"
                                  HorizontalAlignment="Left"
                                  Stretch="Uniform" />
                <DockPanel Margin="8">
                    <StackPanel Orientation="Vertical" 
                                HorizontalAlignment="Center"
                                DockPanel.Dock="Bottom" Margin="0,18,0,18"
                                MaxWidth="350">
                        <local:FZTextBlock Text="{Binding TextLine1}"
                                           CapHeight="25"
                                           Color="{StaticResource H_Color_Primary_White}"
                                           Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                           MarkupConverter="{StaticResource A_MarkupConverter_ComingSoonText}"/>
                        <Decorator Margin="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToBetweenTextLine1AndTextLine2Margin}}"
                                   Visibility="{Binding TextLine2, Converter={StaticResource A_StringVisConverter}}">
                            <local:FZTextBlock  Text="{Binding TextLine2}"
                                                CapHeight="25"
                                                Color="{StaticResource H_Color_Primary_White}"
                                                Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                MarkupConverter="{StaticResource A_MarkupConverter_ComingSoonText}" />
                        </Decorator>
                    </StackPanel>

                    <!-- overlay tags-->
                    <StackPanel Orientation="Vertical"
                                VerticalAlignment="Bottom"
                                HorizontalAlignment="Right"
                                Margin="0,0,-16,0">

                        <Control Style="{StaticResource A_Style_ExclusivityFloatingPin}"
                                 local:BindingProxy.A="{Binding Adornment}"
                                 HorizontalAlignment="Right" Height="32"
                                 Visibility="{Binding Adornment, Converter={StaticResource A_StringVisConverter}}"/>
                        <Control Style="{StaticResource A_Style_RarityFloatingPin_Small}"
                                 HorizontalAlignment="Right"/>
                    </StackPanel>
                </DockPanel>
            </Grid>
        </DataTemplate>

        <!--#region Series History -->

        <local:MappingConverter x:Key="A_Converter_SeriesItemState_CanBeCompleted"
                                Default="True">
            <local:MappingConverterEntry Key="{x:Static local:XAMLSeriesItemState.Future}"
                                         Value="False" />
        </local:MappingConverter>

        <Style x:Key="A_Style_FZRun_FestivalPass_Title_NUM"
               TargetType="{x:Type local:FZRun}">
            <Setter Property="FontFamily"
                    Value="Horizon_A" />
        </Style>
        <Style x:Key="A_Style_FZRun_FestivalPass_Title_HIGHLIGHT"
               TargetType="{x:Type local:FZRun}">
            <Setter Property="FontFamily"
                    Value="HorizonA" />
        </Style>

        <MappingConverter x:Key="A_MappingConverter_FestivalPass_Title">
            <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_FestivalPass_Title_HIGHLIGHT}" />
            <MappingConverterEntry Key="{NoCase NUM}" Value="{StaticResource A_Style_FZRun_FestivalPass_Title_NUM}" />
        </MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_HistoryItem_Date"
               TargetType="local:FZTextBlock">
            <Setter Property="FontFamily" Value="Horizon_A" />
            <Setter Property="CapHeight" Value="18" />
            <Setter Property="Visibility" Value="Collapsed" />
            <Setter Property="Visibility" Value="Collapsed" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_FestivalPass_Title}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding SeriesItemState}" Value="{x:Static local:XAMLSeriesItemState.Current}">
                    <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc DestinationMenu.IDS_SeriesHistory_EndingIn_Format}" />
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Purple}" />
                    <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding SeriesTimeRemaining, RelativeSource={RelativeSource AncestorType=Page}}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding SeriesItemState}" Value="{x:Static local:XAMLSeriesItemState.Future}">
                    <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc DestinationMenu.IDS_SeriesHistory_StartsIn_Format}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_HistoryItem_Name"
               TargetType="local:FZTextBlock">
            <Setter Property="FontFamily" Value="Horizon_C" />
            <Setter Property="CapHeight" Value="20" />
            <Setter Property="Margin" Value="4" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc DestinationMenu.IDS_SeriesHistory_Sunset_Ended_Format}" />
            <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding SeriesNumber}" />
            <Setter Property="Text" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_FestivalPass_Title}" />
        </Style>


        <Style x:Key="A_Style_FZTextBlock_HistoryItem_ProgressValue"
               TargetType="local:FZTextBlock">
            <Setter Property="FontFamily" Value="Horizon_C" />
            <Setter Property="CapHeight" Value="20" />
            <Setter Property="Margin" Value="4" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc DestinationMenu.IDS_SeriesProgress_Format}" />
            <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding CurrentPoints}" />
            <Setter Property="local:MultiStringFormatter.Param1" Value="{Binding MaxPoints}" />
            <Setter Property="Text" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_FestivalPass_Text_Highlight}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding SeriesItemState}" Value="{x:Static local:XAMLSeriesItemState.Future}">
                    <Setter Property="Text" Value="{local:Loc DestinationMenu.IDS_SeriesHistory_ComingSoon}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <ImageSource x:Key="A_BitmapImage_SeriesHistory_GoldFill">/ForzaUI;component/Textures/Data_Bound/FestivalPass/History/gold_fill.png</ImageSource>

        <ControlTemplate x:Key="A_ControlTemplate_ProgressBar_FestivalPassHistory"
                         TargetType="{x:Type Control}">
            <Grid>
                <local:FZMaterial x:Name="PART_Track"
                                  Width="{TemplateBinding Width}"
                                  Height="18"
                                  Color="{StaticResource H_Color_Primary_Black}"
                                  Preset="{Roundtangle CornerRadius=9}" />
                <Decorator x:Name="PART_Indicator"
                                  Height="18"
                                  HorizontalAlignment="Left"
                                  ClipToBounds="True">
                    <local:FZMaterial x:Name="Fill"
                                      Width="{Binding ActualWidth, ElementName=PART_Track}"
                                      Color="{StaticResource H_Color_Primary_Pink}"
                                      Preset="{Roundtangle CornerRadius=9}"
                                      HorizontalAlignment="Left"/>
                </Decorator>
            </Grid>
            <ControlTemplate.Triggers>
                <DataTrigger Binding="{Binding SeriesItemState}"
                             Value="{x:Static local:XAMLSeriesItemState.Future}">
                    <!-- Edge case future may have no points yet, so have to trick the progress bar to look empty when it would usually fill due to value meeting max-->
                    <Setter Property="Color"
                            TargetName="Fill"
                            Value="{StaticResource H_Color_Primary_Yellow}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding SeriesMedalState}"
                             Value="{x:Static local:XAMLSeriesMedalState.Gold}">
                    <Setter Property="Color"
                            TargetName="Fill"
                            Value="{StaticResource H_Color_Primary_White}" />
                    <Setter Property="ImageSource"
                            TargetName="Fill"
                            Value="{StaticResource A_BitmapImage_SeriesHistory_GoldFill}" />
                </DataTrigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <DataTemplate DataType="{x:Type local:FestivalPassHistoryItem}">
            <Grid x:Name="FestivalPassHistoryItem"
                  Style="{StaticResource A_Style_FrameworkElement_FestivalPass_ItemContainer}"
                  Width="{Binding ItemSize, Converter={StaticResource A_Converter_Width_FromItemSize}}">

                <local:FZMaterial ImageSource="{Binding ImagePath}"
                                  Preset="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                  x:Name="BackingImage"
                                  HorizontalAlignment="Stretch"
                                  VerticalAlignment="Stretch" />

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

                <local:FZMaterial MinHeight="48"
                                  VerticalAlignment="Top"
                                  HorizontalAlignment="Stretch"
                                  Margin="4"
                                  Color="{StaticResource H_Color_Primary_Black}"
                                  Preset="{Roundtangle}">
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HistoryItem_Name}"/>
                </local:FZMaterial>

                <StackPanel Orientation="Vertical"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Bottom"
                            Margin="0,0,0,32">

                    <DockPanel HorizontalAlignment="Stretch"
                               Margin="32,0"
                               LastChildFill="False">

                        <local:FZMaterial DockPanel.Dock="Bottom"
                                          Height="30"
                                          Preset="{RoundtangleStroke Thickness=6, CornerRadius=15}"
                                          Margin="0,10,0,0">

                            <ProgressBar Template="{StaticResource A_ControlTemplate_ProgressBar_FestivalPassHistory}"
                                         Margin="6"
                                         Minimum="0"
                                         Maximum="{Binding MaxPoints, Converter={StaticResource A_IntToFloatConverter}}"
                                         Value="{Binding CurrentPoints, Converter={StaticResource A_IntToFloatConverter}}" />
                        </local:FZMaterial>

                        <local:FZTextBlock DockPanel.Dock="Left"
                                           Color="{StaticResource H_Color_Primary_White}"
                                           Text="{local:Loc DestinationMenu.IDS_SeriesProgress}"
                                           CapHeight="17"
                                           FontFamily="Horizon_A"
                                           VerticalAlignment="Center"
                                           Margin="15,0,0,0"/>

                        <Control DockPanel.Dock="Right"
                                 Width="20"
                                 Height="20"
                                 Style="{StaticResource H_Style_Control_PlaylistIcon}"
                                 Margin="3,3,15,3"
                                 VerticalAlignment="Center" />

                        <local:FZTextBlock DockPanel.Dock="Right"
                                           Style="{StaticResource A_Style_FZTextBlock_HistoryItem_ProgressValue}"
                                           Margin="3"
                                           VerticalAlignment="Center"/>
                    </DockPanel>
                </StackPanel>
            </Grid>
            <DataTemplate.Triggers>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding SeriesItemState, Converter={StaticResource A_Converter_SeriesItemState_CanBeCompleted}}"
                                   Value="True" />
                        <Condition Binding="{Binding SeriesItemComplete}"
                                   Value="{StaticResource A_Boolean_True}" />
                    </MultiDataTrigger.Conditions>
                    <Setter TargetName="BackingImage"
                            Property="ImageSource"
                            Value="{Binding GoldImagePath}" />
                </MultiDataTrigger>
            </DataTemplate.Triggers>
        </DataTemplate>

        <DataTemplate x:Key="A_DataTemplate_Reward_WithIcon">
            <Control Template="{StaticResource A_Style_RewardTemplateControl_WithIcon}"
                     Margin="0,14,0,9"/>
        </DataTemplate>

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

        <System:Double x:Key="A_Double_MaxVisibleItems">2</System:Double>

        <MultiConverter x:Key="A_Converter_RewardsItemCountToMaxScroll">
            <MultiConverterEntry TargetType="{Type Double}"
                                 Parameter="{StaticResource A_Double_MaxVisibleItems}"
                                 Converter="{MathOperationConverter Operation=Subtract}" />
            <MultiConverterEntry TargetType="{Type Double}"
                                 Converter="{Clamp Min=0, Max=10000}" />
        </MultiConverter>

        <DataTemplate DataType="{x:Type local:FestivalPassHistoryRewardsItem}">
            <Grid x:Name="FestivalPassHistoryRewardsItem"
                  Width="{StaticResource A_Double_FestivalPass_OverviewItemWidth}"
                  Height="{StaticResource A_Double_FestivalPass_ProgressItemHeight}">
 
                <local:FZMaterial Color="#7D000000"
                                  VerticalAlignment="Stretch"
                                  HorizontalAlignment="Stretch"/>

                <local:FZMaterial Preset="{Roundtangle CornerRadius={CornerRadius TopLeft=2, BottomLeft=2}}"
                                  HorizontalAlignment="Left"
                                  Width="10"
                                  Color="{StaticResource H_Color_Primary_Pink}" />

                <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                      Margin="52,41,28,41">
                    <DockPanel>

                        <local:FZTextBlock DockPanel.Dock="Top"
                                           x:Name="SeriesTitle"
                                           Style="{StaticResource A_Style_FZTextBlock_ProgressTile_TitleText}"
                                           Text="{local:Loc DestinationMenu.IDS_FestivalPass_SeriesRewards_Title}"
                                           LineAdjust="-0.45"
                                           CapHeight="42"
                                           TextWrapping="Wrap"
                                           TextAlignment="Left"
                                           HorizontalAlignment="Stretch"
                                           VerticalAlignment="Center"
                                           Height="70"
                                           Margin="21,0,0,0"/>


                        <local:FZMaterial DockPanel.Dock="Top"
                                          HorizontalAlignment="Stretch"
                                          Height="50"
                                          Color="{StaticResource H_Color_Glass_Purple_40pc}"
                                          Margin="0,0,14,0">

                            <DockPanel Margin="19,0,13,0">
                                
                                <local:FZTextBlock DockPanel.Dock="Left"
                                                   Text="{local:Loc DestinationMenu.IDS_FestivalPass_HistoryProgress}"
                                                   CapHeight="20"
                                                   TextAlignment="Left"
                                                   Color="{StaticResource H_Color_Primary_White}"
                                                   VerticalAlignment="Center"/>

                                <local:Control DockPanel.Dock="Right"
                                               Style="{StaticResource H_Style_Control_PlaylistIcon}"
                                               Height="27"
                                               Width="27"
                                               VerticalAlignment="Center"/>
                                <Decorator>
                                    <local:FZTextBlock Color="{StaticResource H_Color_Primary_Yellow}"
                                                       Margin="8,0"
                                                       VerticalAlignment="Center"
                                                       HorizontalAlignment="Right"
                                                       CapHeight="27"
                                                       Text="{Binding CurrentPoints, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"/>
                                </Decorator>
                            </DockPanel>
                        </local:FZMaterial>

                        <Decorator Height="8" DockPanel.Dock="Top" />

                        <ScrollBar DockPanel.Dock="Right"
                                           x:Name="Scrollbar"
                                           Style="{StaticResource H_Style_ScrollBar}"
                                           Margin="6,0,0,0"
                                           HorizontalAlignment="Right"
                                           Minimum="0"
                                           Maximum="{Binding ItemsSource.Count, ElementName=RewardItems,Converter={StaticResource A_Converter_RewardsItemCountToMaxScroll}, FallbackValue={StaticResource A_Double_Zero}}"
                                           Value="{Binding Path=(local:BlendValue.Output), ElementName=ScrollPusher}"
                                           ViewportSize="{Binding ItemsSource.Count, ElementName=RewardItems, Converter={StaticResource A_Converter_RewardsItemCountToMaxScroll}, FallbackValue={StaticResource A_Double_Zero}}">
                            <DynamicData.Data>
                                <DynamicDataSource>
                                    <DynamicDataItem Name="ScrollBarThickness"
                                                             DataType="Double"
                                                             Value="8" />
                                    <DynamicDataItem Name="ScrollBarCornerRadius"
                                                             DataType="CornerRadius"
                                                             Value="3" />
                                </DynamicDataSource>
                            </DynamicData.Data>
                        </ScrollBar>

                        <local:FZMaterial HorizontalAlignment="Stretch" Color="{StaticResource H_Color_Glass_Purple_20pc}">
                            <Grid ClipToBounds="True"
                                  x:Name="WrapperGrid">

                                <StackPanel VerticalAlignment="Bottom"
                                            Margin="18,0">
                                    <Canvas>
                                        <ItemsControl x:Name="RewardItems"
                                                      ItemTemplate="{StaticResource A_DataTemplate_Reward_WithIcon}"
                                                      ItemsSource="{Binding Rewards}"
                                                      ItemsPanel="{StaticResource A_Template_RewardsPanel}"
                                                      HorizontalAlignment="Left"
                                                      MultiDataConversion.Value="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
                                                      MultiDataConversion.Parameter="{Binding ItemsSource.Count, RelativeSource={RelativeSource Self}, FallbackValue={StaticResource A_Double_One}}"
                                                      MultiDataConversion.TargetType="{Type Double}"
                                                      MultiDataConversion.Converter="{MathOperationConverter Operation=Divide}"/>
                                    </Canvas>
                                    <Decorator Height="{Binding ActualHeight, ElementName=WrapperGrid}" />
                                    <Decorator MultiDataConversion.Value="{Binding (BlendValue.Output), RelativeSource={RelativeSource Self}}"
                                               MultiDataConversion.Parameter="{Binding (MultiDataConversion.Output), ElementName=RewardItems, FallbackValue={StaticResource A_Double_Zero}}"
                                               MultiDataConversion.TargetType="{Type Double}"
                                               MultiDataConversion.Converter="{MathOperationConverter Operation=Multiply}"
                                               BindingProxy.AlwaysValidNumeric="{Binding (MultiDataConversion.Output), RelativeSource={RelativeSource Self}, FallbackValue={StaticResource A_Double_Zero}}"
                                               Height="{Binding Path=(BindingProxy.AlwaysValidNumeric), RelativeSource={RelativeSource Self}}"                                       
                                               x:Name="ScrollPusher"
                                               local:BlendValue.Input="{Binding ScrollIndex}"
                                               local:BlendValue.BlendFromPreviousOutput="True"
                                               local:BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_Carousel_SmoothScroll}" />
                                </StackPanel>


                                <local:FZMaterial x:Name="ScrollShadowTop"
                                                  Opacity="0"
                                          VerticalAlignment="Top"
                                          Height="{StaticResource A_Double_ScrollShadow_Height}"
                                          Preset="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_ScrollShadow_Top}"/>

                                <local:FZMaterial x:Name="ScrollShadowBottom"
                                                  VerticalAlignment="Bottom"
                                                  Height="{StaticResource A_Double_ScrollShadow_Height}"
                                                  Preset="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_ScrollShadow_Bottom}"
                                                  MultiDataConversion.Value="{Binding Maximum, ElementName=Scrollbar}"
                                                  MultiDataConversion.Parameter="{Binding Value, ElementName=Scrollbar}"
                                                  MultiDataConversion.TargetType="{Type Double}"
                                                  MultiDataConversion.Converter="{MathOperationConverter Operation=Divide}" />
                            </Grid>
                        </local:FZMaterial>


                    </DockPanel>
                </Grid>
            </Grid>
            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding Value, ElementName=Scrollbar}" Value="0">
                    <Setter TargetName="ScrollShadowTop" Property="Visibility" Value="Collapsed" />
                </DataTrigger>
                <!--<DataTrigger Binding="{Binding (MultiDataConversion.Output), ElementName=ScrollShadowBottom}" Value="1">
                    <Setter TargetName="ScrollShadowBottom" Property="Visibility" Value="Collapsed" />
                </DataTrigger>-->
            </DataTemplate.Triggers>
        </DataTemplate>
        
        <!--#endregion-->

        <local:MappingConverter x:Key="A_MappingConverter_Shadow_Visibility_FromDataType" Default="Visible">
            <local:MappingConverterEntry Key="{x:Type local:FestivalPassHistoryRewardsItem}" Value="Hidden" />
            <local:MappingConverterEntry Key="{x:Type local:FestivalPassSeriesCompletionProgressItem}" Value="Hidden" />
            <local:MappingConverterEntry Key="{x:Type local:FestivalPassCompletionProgressItem}" Value="Hidden" />
        </local:MappingConverter>

        <Style x:Key="A_Style_ListBoxItem_FestivalPass_Base"
               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="-25" />
                    <Setter Property="Visibility" Value="{Binding ObjectType, Converter={StaticResource A_MappingConverter_Shadow_Visibility_FromDataType}}" />
                </Style>
                <Style
                    x:Key="H_Style_TemplatedElement_MouseRollover"
                    BasedOn="{StaticResource H_Style_TemplatedElement_MouseRollover}"
                    TargetType="{Type Control}">
                    <Setter
                        Property="MarkAsHandled.RoutedEvent"
                        Value="UIElement.MouseLeftButtonDown" />
                    <Setter
                        Property="AttachedRoutedEventCommand.Enabled"
                        Value="{Binding (Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}" />
                    <Setter
                        Property="AttachedRoutedEventCommand.Command"
                        Value="{Binding SelectCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
                    <Setter
                        Property="AttachedRoutedEventCommand.RoutedEvent"
                        Value="UIElement.MouseLeftButtonUp" />
                    <Setter
                        Property="SelectorSelectedItem.SelectAncestorOnRoutedEvent"
                        Value="UIElement.MouseLeftButtonUp" />
                </Style>
            </Style.Resources>
            <Setter Property="Margin"
                    Value="{StaticResource A_Double_FestivalPass_CarouselItemMargin}" />
            <Setter Property="IsEnabled"
                    Value="{Binding Enabled}"/>
            <Setter Property="Focusable"
                    Value="{Binding Enabled}"/>
            <Setter Property="DynamicData.Data">
                <Setter.Value>
                    <DynamicDataSource>
                        <DynamicDataItem Name="MouseRolloverCornerRadius"
                                         DataType="CornerRadius"
                                         Value="2" />
                    </DynamicDataSource>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="A_Style_ListBoxItem_FestivalPass_WithCustomInput_Seasonal"
               TargetType="{x:Type ListBoxItem}"
               BasedOn="{StaticResource A_Style_ListBoxItem_FestivalPass_Base}">

            <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="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>
                <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>
        <Style x:Key="A_Style_ListBoxItem_FestivalPass_WithCustomInput_SeriesHistory"
               TargetType="{x:Type ListBoxItem}"
               BasedOn="{StaticResource A_Style_ListBoxItem_FestivalPass_Base}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding Rewards.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="{x:Static local:CompareResult.GreaterThan}" >
                    <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>
        

        <Style x:Key="A_Style_ListBoxItem_FestivalPass_WithCustomInput_PlaylistVote"
               TargetType="{x:Type ListBoxItem}"
               BasedOn="{StaticResource A_Style_ListBoxItem_FestivalPass_Base}">
            <Setter Property="Margin" Value="246,0,246,0" />
        </Style>

        <Style x:Key="A_Style_ListBoxItem_FestivalPass_WithCustomInput_Series"
               TargetType="{x:Type ListBoxItem}"
               BasedOn="{StaticResource A_Style_ListBoxItem_FestivalPass_Base}">

            <Style.Triggers>
                <DataTrigger Binding="{Binding KeydownCustomCommand, 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"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding ScrollCommand, Converter={StaticResource A_Converter_IsNotNull}}" Value="{StaticResource A_Boolean_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_Season"
                         TargetType="{x:Type local:CommonListBox}">
            <Grid HorizontalAlignment="Left" Margin="-150,0,0,0">
                <Decorator>
                    <FZScrollViewer 
                                Style="{StaticResource A_Style_ScrollViewer_TextMenu}"
                                CanContentScroll="True"
                                AllowMouseWheelScrolling="True"
                                HorizontalScrollBarVisibility="Visible"
                                VerticalScrollBarVisibility="Disabled"
                                IsAtTop="{Binding (local:FZScrollViewer.IsAtTop), Mode=OneWayToSource, RelativeSource={RelativeSource TemplatedParent}}"
                                IsAtBottom="{Binding (local:FZScrollViewer.IsAtBottom), Mode=OneWayToSource, RelativeSource={RelativeSource TemplatedParent}}"
                                Height="{TemplateBinding Height}"
                                Width="2220"
                                Focusable="False"
                                KeepSelectionOnScreen="False"
                                Orientation="Horizontal"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Left"
                                x:Name="ScrollViewer">
                        <local:FZScrollViewer.Template>
                            <ControlTemplate TargetType="ScrollViewer">
                                <DockPanel Focusable="False">
                                    <ScrollBar DockPanel.Dock="Right"
                                            Minimum="0"
                                            HorizontalAlignment="Left"
                                            VerticalAlignment="Center"
                                            Maximum="{Binding ScrollableHeight, ElementName=ScrollViewer}"
                                            ViewportSize="{Binding ViewportHeight, ElementName=ScrollViewer}"
                                            Value="{Binding VerticalOffset, ElementName=ScrollViewer}"
                                            Visibility="{Binding ComputedVerticalScrollBarVisibility, ElementName=ScrollViewer}"
                                            Height="{TemplateBinding Height, Converter={LinearTransformConverter Add=-24}}"
                                            Style="{StaticResource A_Style_ScrollBar_TextMenu}"
                                            Margin="-32,0,0,0"
                                            x:Name="PART_VerticalScrollBar">
                                        <DynamicData.Data>
                                            <DynamicDataSource>
                                                <DynamicDataItem Name="ScrollBarBackgroundMaterial"
                                                             DataType="Style">
                                                    <Style TargetType="local:FZMaterial">
                                                        <Setter Property="Color"
                                                            Value="#696969" />
                                                        <Setter Property="Opacity"
                                                            Value="0.8" />
                                                        <Setter Property="Preset">
                                                            <Setter.Value>
                                                                <FZMaterialPresetRoundtangle CornerRadius="4" />
                                                            </Setter.Value>
                                                        </Setter>
                                                    </Style>
                                                </DynamicDataItem>
                                            </DynamicDataSource>
                                        </DynamicData.Data>
                                    </ScrollBar>
                                    <ScrollContentPresenter x:Name="PART_ScrollContentPresenter"
                                                            Content="{TemplateBinding Content}"
                                                            CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}" />
                                </DockPanel>
                            </ControlTemplate>
                        </local:FZScrollViewer.Template>
                        <VirtualizingMultiSizeItemPanel IsItemsHost="True"
                                                        Width="2220"
                                                        Height="714"
                                                        ExtentTrailTop="118"
                                                        ExtentTrailBottom="-1200"
                                                        TileMappedSizes="{StaticResource H_Data_TileSizes}"
                                                        DesiredAxisOffset="280"
                                                        DefaultItemWidth="{StaticResource A_Double_FestivalPass_MaxCarouselItemHalfHeight}"
                                                        DefaultItemHeight="{StaticResource A_Double_FestivalPass_MaxCarouselItemHeight}"
                                                        VirtualizationMode="Standard"
                                                        KeyboardNavigation.DirectionalNavigation="Contained"
                                                        Orientation="Horizontal"
                                                        HorizontalAlignment="Left"
                                                        ScrollAnimationDuration="0:0:0.05" />
                    </FZScrollViewer>
                </Decorator>
            </Grid>
        </ControlTemplate>
        <ControlTemplate x:Key="A_ControlTemplate_CommonListBox_Carousel_FestivalPass_Series"
                         TargetType="{x:Type local:CommonListBox}">
            <DockPanel HorizontalAlignment="Left">
                <WrapPanel IsItemsHost="True"
                           KeyboardNavigation.DirectionalNavigation="Contained"
                           Orientation="Vertical" />
            </DockPanel>
        </ControlTemplate>


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

        <MappingConverter x:Key="A_MarkupConverter_UpcomingDateText">
            <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_UpcomingDate_HIGHLIGHT}" />
        </MappingConverter>
        <ControlTemplate x:Key="A_ControlTemplate_CommonListBox_Carousel_FestivalPass_Preview"
                         TargetType="{x:Type local:CommonListBox}">
            <Grid HorizontalAlignment="Center"
                  Width="{StaticResource A_Double_FestivalPass_BackgroundImageWidth}"
                  Height="{StaticResource A_Double_FestivalPass_BackgroundImageHeight}"
                  Margin="0,-10,0,0">
                <DockPanel Focusable="False"
                           HorizontalAlignment="Stretch"
                           ClipToBounds="True">
                    <WrapPanel IsItemsHost="True"
                               DockPanel.Dock="Bottom"
                               Orientation="Horizontal"
                               HorizontalAlignment="Center"
                               MaxWidth="1560"
                               Margin="0,0,0,67"/>
                    <StackPanel HorizontalAlignment="Center" 
                                Margin="0,62,0,0"
                                MinHeight="256"
                                MaxWidth="1520"
                                VerticalAlignment="Top"
                                DataContext="{Binding SelectedCategory}">
                        <Decorator RenderTransformOrigin="0.5,0.5"
                                   HorizontalAlignment="Center"
                                   Margin="0,0,0,32"
                                   MaxWidth="1700">
                            <local:FZTextBlock Text="{Binding PreviewName}"
                                               CapHeight="77"
                                               Color="{StaticResource H_Color_Primary_White}"
                                               Style="{StaticResource A_Style_FZTextBlock_HorizonC}"
                                               HorizontalAlignment="Center"/>
                        </Decorator>
                        <local:FZTextBlock Text="{Binding PreviewSubtitle}"
                                           TextAlignment="Center"
                                           HorizontalAlignment="Center"
                                           CapHeight="28"
                                           LineAdjust="-0.5"
                                           TextWrapping="Wrap"
                                           Color="{StaticResource H_Color_Primary_White}"
                                           MarkupConverter="{StaticResource A_MarkupConverter_UpcomingDateText}"
                                           Style="{StaticResource A_Style_FZTextBlock_HorizonB}" />
                    </StackPanel>
                </DockPanel>
            </Grid>
        </ControlTemplate>
        <ControlTemplate x:Key="A_ControlTemplate_CommonListBox_FestivalPassPreview_Title_WithoutPreviewItems"
                 TargetType="{x:Type local:CommonListBox}">
            <Grid HorizontalAlignment="Center"
                  Margin="-118,-185,0,0"
                  Width="1920"
                  Height="1080">
                <local:FZMaterial Width="1920"
                                  Height="340"
                                  HorizontalAlignment="Center"
                                  VerticalAlignment="Center"
                                  ImageSource="Game:\Media\UI\Textures\Data_Bound\PlaylistVoting\Text_BG_Small.png">
                    <StackPanel HorizontalAlignment="Center" 
                                Margin="0,20,0,0"
                                MinHeight="256"
                                MaxWidth="1520"
                                VerticalAlignment="Center"
                                DataContext="{Binding SelectedCategory}">
                        <local:FZTextBlock Text="{local:Loc DestinationMenu.IDS_FestivalPass_PostSunset_ComingSoon}"
                                           HorizontalAlignment="Center"
                                           CapHeight="40"
                                           Color="{StaticResource H_Color_Primary_White}"
                                           Style="{StaticResource A_Style_FZTextBlock_HorizonA}"/>
                        <Decorator RenderTransform="{StaticResource A_Transform_Italic}"
                                   RenderTransformOrigin="0.5,0.5"
                                   HorizontalAlignment="Center"
                                   MaxWidth="1700">
                            <local:FZTextBlock Text="{Binding PreviewName}"
                                               CapHeight="110"
                                               Color="{StaticResource H_Color_Primary_Yellow}"
                                               Style="{StaticResource A_Style_FZTextBlock_HorizonA}" />
                        </Decorator>
                        <local:FZTextBlock Text="{Binding PreviewSubtitle}"
                                           HorizontalAlignment="Center"
                                           CapHeight="40"
                                           Color="{StaticResource H_Color_Primary_White}"
                                           Style="{StaticResource A_Style_FZTextBlock_HorizonA}" />
                    </StackPanel>
                </local:FZMaterial>
            </Grid>
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_CommonListBox_Carousel_FestivalPass_PlaylistVote"
                 TargetType="{x:Type local:CommonListBox}">
            <Grid VerticalAlignment="Center" HorizontalAlignment="Center">
                <WrapPanel IsItemsHost="True"
                           KeyboardNavigation.DirectionalNavigation="Contained"
                           Orientation="Vertical" />
            </Grid>
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_CommonListBox_Carousel_FestivalPass_PlaylistVote_Texts"
                         TargetType="{x:Type local:CommonListBox}">
            <Grid VerticalAlignment="Center" HorizontalAlignment="Stretch">
                <StackPanel IsItemsHost="True"
                            KeyboardNavigation.DirectionalNavigation="Contained"
                            Orientation="Horizontal"
                            HorizontalAlignment="Center" />
            </Grid>
        </ControlTemplate>

        <Style x:Key="A_Style_CommonListBox_Base"
               TargetType="local:CommonListBox">
            <Setter Property="ItemContainerStyle"
                    Value="{StaticResource A_Style_ListBoxItem_FestivalPass_Base}" />
            <Setter Property="Height"
                    Value="{StaticResource A_Double_FestivalPass_MaxCarouselItemHeightWithMargin}" />
        </Style>
        <Style x:Key="A_Style_CommonListBox_Season"
               BasedOn="{StaticResource A_Style_CommonListBox_Base}"
               TargetType="local:CommonListBox">
            <Setter Property="Margin" 
                    Value="-160,0,0,0"/>
            <Setter Property="ItemContainerStyle"
                    Value="{StaticResource A_Style_ListBoxItem_FestivalPass_WithCustomInput_Seasonal}" />
            <Setter Property="Template"
                    Value="{StaticResource A_ControlTemplate_CommonListBox_Carousel_FestivalPass_Season}" />
        </Style>
        <Style x:Key="A_Style_CommonListBox_Series"
               BasedOn="{StaticResource A_Style_CommonListBox_Base}"
               TargetType="local:CommonListBox">
            <Setter Property="ItemContainerStyle" 
                    Value="{StaticResource A_Style_ListBoxItem_FestivalPass_WithCustomInput_Series}"/>
            <Setter Property="Template"
                    Value="{StaticResource A_ControlTemplate_CommonListBox_Carousel_FestivalPass_Series}" />
        </Style>
        <Style x:Key="A_Style_CommonListBox_Preview"
               BasedOn="{StaticResource A_Style_CommonListBox_Base}"
               TargetType="local:CommonListBox">
            <Setter Property="ItemContainerStyle">
                <Setter.Value>
                    <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}">
                        <Setter Property="Margin"
                                Value="4,0" />
                    </Style>
                </Setter.Value>
            </Setter>
            <Setter Property="Template"
                    Value="{StaticResource A_ControlTemplate_CommonListBox_Carousel_FestivalPass_Preview}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding SelectedCategory.Items.Count}" Value="0">
                    <Setter Property="Template" Value="{StaticResource A_ControlTemplate_CommonListBox_FestivalPassPreview_Title_WithoutPreviewItems}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="A_Style_CommonListBox_PlaylistVote"
               BasedOn="{StaticResource A_Style_CommonListBox_Base}"
               TargetType="local:CommonListBox">
            <Setter Property="ItemContainerStyle"
                    Value="{StaticResource A_Style_ListBoxItem_FestivalPass_WithCustomInput_PlaylistVote}" />
            <Setter Property="Template"
                    Value="{StaticResource A_ControlTemplate_CommonListBox_Carousel_FestivalPass_PlaylistVote}" />
            <Setter Property="Margin"
                    Value="-44,59,0,0" />
        </Style>   
        
        <Style x:Key="A_Style_CommonListBox_SeriesHistory"
               BasedOn="{StaticResource A_Style_CommonListBox_Base}"
               TargetType="local:CommonListBox">
            <Setter Property="Margin" 
                    Value="-160,0,0,0"/>
            <Setter Property="ItemContainerStyle"
                    Value="{StaticResource A_Style_ListBoxItem_FestivalPass_WithCustomInput_SeriesHistory}" />
            <Setter Property="Template"
                    Value="{StaticResource A_ControlTemplate_CommonListBox_Carousel_FestivalPass_Season}" />
        </Style>

        <local:MappingConverter x:Key="A_MappingConverter_CategoryType_to_Style" CheckEnumKey="FestivalPassTemplateType">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.Season}"
                                         Value="{StaticResource A_Style_CommonListBox_Season}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.Series}"
                                         Value="{StaticResource A_Style_CommonListBox_Series}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.Preview}"
                                         Value="{StaticResource A_Style_CommonListBox_Preview}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.PlaylistVote}"
                                         Value="{StaticResource A_Style_CommonListBox_PlaylistVote}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.SeriesHistory}"
                                         Value="{StaticResource A_Style_CommonListBox_SeriesHistory}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_CategoryType_to_ContentHorizontalAlignment" Default="{x:Static HorizontalAlignment.Left}">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.PlaylistVote}"
                                 Value="{x:Static HorizontalAlignment.Center}" />
        </local:MappingConverter>

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

        <ImageSource x:Key="A_BitmapImage_CategoryIcon_Inactive">/ForzaUI;component/Textures/Data_Bound/FestivalPass/category_icon_inactive.png</ImageSource>
        <ImageSource x:Key="A_BitmapImage_CategoryIcon_Active">/ForzaUI;component/Textures/Data_Bound/FestivalPass/category_icon_active.png</ImageSource>

        <Style x:Key="H_Style_FestivalPass_TabButton_CustomIcon"
               TargetType="{Type FZMaterial}">
            <Setter Property="Visibility"
                    Value="Collapsed" />
            <Setter Property="Width"
                    Value="26" />
            <Setter Property="Height"
                    Value="26" />
            <Setter Property="VerticalAlignment"
                    Value="Center" />
            <!--<Setter Property="Margin"
                    Value="10,-2,-20,0" />-->
            <Setter Property="Color"
                    Value="{StaticResource H_Color_Primary_White}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding DataContext.SeasonCategoryState, RelativeSource={RelativeSource AncestorType={Type FZButton}}}" Value="{x:Static local:FestivalPassSeasonCategoryState.Expired}">
                    <Setter Property="Visibility" Value="Visible" />
                    <Setter Property="ImageSource" Value="{StaticResource A_BitmapImage_CategoryIcon_Inactive}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding DataContext.SeasonCategoryState, RelativeSource={RelativeSource AncestorType={Type FZButton}}}" Value="{x:Static local:FestivalPassSeasonCategoryState.Upcoming}">
                    <Setter Property="Visibility" Value="Visible" />
                    <Setter Property="ImageSource" Value="{StaticResource A_BitmapImage_CategoryIcon_Inactive}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding DataContext.SeasonCategoryState, RelativeSource={RelativeSource AncestorType={Type FZButton}}}" Value="{x:Static local:FestivalPassSeasonCategoryState.Active}">
                    <Setter Property="Visibility" Value="Visible" />
                    <Setter Property="ImageSource" Value="{StaticResource A_BitmapImage_CategoryIcon_Active}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource AncestorType={Type FZButton}}}" Value="False">
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="H_Style_FestivalPass_TabButton"
               TargetType="{Type FZButton}"
               BasedOn="{StaticResource H_Style_TabButton}">
            <Setter Property="Tag"
                    Value="{Binding CategoryNotificationBadge}" />
            <Setter Property="local:BindingProxy.A"
                    Value="{StaticResource H_Style_FestivalPass_TabButton_CustomIcon}" />
        </Style>

        <Style x:Key="A_Style_FZTextBlock_GenericDescription"
               TargetType="local:FZTextBlock"
               BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="CapHeight" Value="18" />
            <Setter Property="MaxWidth" Value="640" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_ProgressSliderValue_Markup}" />
            <Setter Property="Text" Value="{Binding SelectedCategory.Description}" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="TextAlignment" Value="Left" />
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="LineAdjust" Value="-0.55" />
        </Style>

        <Style x:Key="A_Style_FZTextBlock_PreviewDescription"
               TargetType="local:FZTextBlock"
               BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="CapHeight" Value="25" />
            <Setter Property="MaxWidth" Value="640" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_PreviewDescription_Markup}" />
            <Setter Property="Text" Value="{Binding SelectedCategory.Description}" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="TextAlignment" Value="Left" />
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="LineAdjust" Value="-0.65" />
            <Setter Property="TrackingAdjust" Value="0" />
        </Style>
        
        <local:MappingConverter x:Key="A_MappingConverter_CategoryType_to_DescriptionStyle" CheckEnumKey="FestivalPassTemplateType">
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.Season}"
                                         Value="{StaticResource A_Style_FZTextBlock_GenericDescription}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.Series}"
                                         Value="{StaticResource A_Style_FZTextBlock_GenericDescription}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.Preview}"
                                         Value="{StaticResource A_Style_FZTextBlock_PreviewDescription}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.PlaylistVote}"
                                         Value="{StaticResource A_Style_FZTextBlock_GenericDescription}" />
            <local:MappingConverterEntry Key="{x:Static local:FestivalPassTemplateType.SeriesHistory}"
                                         Value="{StaticResource A_Style_FZTextBlock_GenericDescription}" />
        </local:MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_CategoryStateText_Definition"
               TargetType="local:FZTextBlock"
               BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA_tf}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
            <Setter Property="CapHeight" Value="22" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_ProgressSliderValue_Markup}" />
            <Setter Property="Text" Value="{Binding SelectedCategory.CategoryStateStringDefinition}" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="TextAlignment" Value="Left" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MarkupConverter_CategoryTextTimer}" />
        </Style>

        <Style x:Key="A_Style_FZTextBlock_CategoryStateText_Value"
               TargetType="local:FZTextBlock"
               BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA_tf}">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
            <Setter Property="CapHeight" Value="22" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_ProgressSliderValue_Markup}" />
            <Setter Property="Text" Value="{Binding SelectedCategory.CategoryStateStringValue}" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="TextAlignment" Value="Right" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MarkupConverter_CategoryTextTimer}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding SelectedCategory.SeasonCategoryState}"
                             Value="{x:Static local:FestivalPassSeasonCategoryState.Expired}">
                    <Setter Property="Text"
                            Value="{Loc DestinationMenu.IDS_Expired}" />
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding IsActiveSeries}"
                             Value="False">
                    <Setter Property="Text"
                            Value="{Loc DestinationMenu.IDS_Expired}" />
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
        
        <Style x:Key="A_Style_Decorator_CategoryStateText_RenderTransform"
               TargetType="Decorator">
            <Setter Property="RenderTransform" Value="{StaticResource A_Transform_Italic}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding SelectedCategory.SeasonCategoryState}"
                             Value="{x:Static local:FestivalPassSeasonCategoryState.Expired}">
                    <Setter Property="RenderTransform">
                        <Setter.Value>
                            <TranslateTransform />
                        </Setter.Value>
                    </Setter>
                </DataTrigger>
                <DataTrigger Binding="{Binding IsActiveSeries}"
                             Value="False">
                    <Setter Property="RenderTransform">
                        <Setter.Value>
                            <TranslateTransform />
                        </Setter.Value>
                    </Setter>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FestivalPass_DPadController_ButtonControl"
               TargetType="{x:Type local:ControllerButtonControl}"
               BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}">
            <Setter Property="Visibility" Value="Collapsed" />
            <Style.Triggers>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding SelectedCategory.FestivalPassTemplateType}" Value="{x:Static local:FestivalPassTemplateType.PlaylistVote}" />
                        <Condition Binding="{Binding IsControllerActiveInput}" Value="True" />
                        <Condition Binding="{Binding SelectedCategory.IsVoteClosed}" Value="False" />
                        <Condition Binding="{Binding SelectedCategory.VotedOnItem}" Value="{x:Null}" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Visibility" Value="Visible" />
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_ListBoxItem_FestivalPass_PlaylistVote_Text">
            <Setter Property="Margin" Value="246,0,246,0"/>
            <Setter Property="VerticalAlignment" Value="Top" />
        </Style>
        
        <Style x:Key="A_Style_CommonListBox_PlaylistVote_Text" TargetType="{x:Type CommonListBox}">
            <Setter Property="ItemContainerStyle"
                    Value="{StaticResource A_Style_ListBoxItem_FestivalPass_PlaylistVote_Text}" />
            <Setter Property="Template"
                    Value="{StaticResource A_ControlTemplate_CommonListBox_Carousel_FestivalPass_PlaylistVote_Texts}" />
        </Style>

        <Style x:Key="A_Style_FZMaterial_PlaylistVoteItemText" TargetType="{x:Type FZMaterial}">
            <Setter Property="Width" Value="572" />
            <Setter Property="Height" Value="55" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding SelectedCategory.WinnerItem, RelativeSource={RelativeSource AncestorType=Page}}"
                             Value="{x:Null}">
                    <Setter Property="Width" Value="520" />
                    <Setter Property="Height" Value="53" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <DataTemplate x:Key="A_DataTemplate_PlaylistVoteItemText">
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_PlaylistVoteItemText}"
                              VerticalAlignment="Top"
                              ImageSource="Game:\Media\UI\Textures\Data_Bound\PlaylistVoting\Text_BG_Small.png">
                <local:FZTextBlock Text="{Binding SeriesName}"
                                   Style="{StaticResource A_Style_FZTextBlock_PlaylistVoteTab_Text}"
                                   CapHeight="25"/>
            </local:FZMaterial>
        </DataTemplate>

        <Style x:Key="A_Style_FZMaterial_PlaylistVote_VS_Visibility" TargetType="{x:Type FZMaterial}">
            <Setter Property="Visibility" Value="Collapsed" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding SelectedCategory.WinnerItem}" Value="{x:Null}">
                    <Setter Property="Visibility" Value="Visible" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZMaterial_PlaylistVote_VS_SubText_Visibility" TargetType="{x:Type FZMaterial}">
            <Setter Property="Visibility" Value="Collapsed" />
            <Style.Triggers>
                <MultiDataTrigger>
                    <MultiDataTrigger.Conditions>
                        <Condition Binding="{Binding SelectedCategory.IsVoteClosed}"
                                   Value="{StaticResource A_Boolean_False}" />
                        <Condition Binding="{Binding SelectedCategory.VotedOnItem}"
                                   Value="{x:Null}" />
                    </MultiDataTrigger.Conditions>
                    <Setter Property="Visibility" Value="Visible" />
                </MultiDataTrigger>
            </Style.Triggers>
        </Style>

        <ControlTemplate x:Key="A_ControlTemplate_PlaylistVote_Texts"
                 TargetType="{x:Type Control}">
            <StackPanel Width="1920"
                        Margin="-120,3,0,0">
                <local:FZMaterial HorizontalAlignment="Center"
                                  VerticalAlignment="Top"
                                  Width="1890"
                                  Height="92"
                                  ImageSource="Game:\Media\UI\Textures\Data_Bound\PlaylistVoting\Text_BG_Large.png">
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PlaylistVoteTab_Text_Main}"
                                       Color="{StaticResource H_Color_Primary_White}"
                                       CapHeight="39"/>
                </local:FZMaterial>
                <local:CommonListBox x:Name="text_List"
                                     ItemsSource="{Binding SelectedCategory.Items}"
                                     ItemTemplate="{StaticResource A_DataTemplate_PlaylistVoteItemText}"
                                     Style="{StaticResource A_Style_CommonListBox_PlaylistVote_Text}"
                                     Margin="0,10,0,0">
                </local:CommonListBox>
                <local:FZMaterial ImageSource="Game:\Media\UI\Textures\Data_Bound\PlaylistVoting\VS_Graphic.png"
                                  Height="215"
                                  Stretch="Uniform"
                                  Margin="0,128,0,0"
                                  Style="{StaticResource A_Style_FZMaterial_PlaylistVote_VS_Visibility}" />
                <local:FZMaterial ImageSource="Game:\Media\UI\Textures\Data_Bound\PlaylistVoting\Text_BG_Small.png"
                                  Height="55"
                                  Width="400"
                                  Margin="0,38,0,0"
                                  Style="{StaticResource A_Style_FZMaterial_PlaylistVote_VS_SubText_Visibility}">
                    <local:FZTextBlock Text="{local:Loc DestinationMenu.IDS_FestivalPass_Vote_Instruction_PreVote_Lower}"
                                       MarkupConverter="{StaticResource A_MarkupConverter_FZPlaylistVote_TextControl}"
                                       Style="{StaticResource A_Style_FZTextBlock_PlaylistVoteTab_Text}"
                                       CapHeight="25"/>
                </local:FZMaterial>
            </StackPanel>
        </ControlTemplate>

        <Style x:Key="A_Style_FZMaterial_FestivalPassBackground" TargetType="FZMaterial" BasedOn="{StaticResource A_Style_FrameworkElement_FadeOnlyTransition_0}">
            <Setter Property="ImageSource"
                    Value="{Binding BackgroundPath, FallbackValue=Game:\Media\UI\Textures\Data_Bound\FestivalPass\FPDefaultBackground.png}" />
            <Setter Property="Preset" 
                    Value="{Roundtangle AlphaMode=Clear}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding SelectedCategory.BackgroundImagePathOverride, Converter={StaticResource A_Converter_IsNotNull}}"
                             Value="{StaticResource A_Boolean_True}" >
                        <Setter Property="ImageSource"
                                Value="{Binding SelectedCategory.BackgroundImagePathOverride, FallbackValue=Game:\Media\UI\Textures\Data_Bound\FestivalPass\FPDefaultBackground.png}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>


        <ControlTemplate x:Key="A_ControlTemplate_WidescreenGradientBlur" TargetType="{x:Type Control}">
            <ControlTemplate.Resources>
                <Style x:Key="A_Style_FZMaterial_FestivalPassBackground_WidscreenGradientBlur" 
                       TargetType="FZMaterial" 
                       BasedOn="{StaticResource A_Style_FZMaterial_FestivalPassBackground}">
                    <Setter Property="IsHitTestVisible" Value="False" />
                    <Setter Property="Visibility" Value="{Binding IsScreenVisiblePastUISizeHorizontal, Source={StaticResource PART_UIResolutionScaler}, Converter={StaticResource A_Converter_BoolToVis}, FallbackValue={x:Static Visibility.Collapsed}}" />
                </Style>

                <Double x:Key="A_Double_ScreenCenterPercent">0.5</Double>

                <Double x:Key="A_Double_Opacity1OffsetFromCenter">-1070</Double> <!-- 1070 pixels from center is past the edge of the 16:9 area, but still within the bounds of where our fullscreen bleed content draws valid pixels -->
                <Double x:Key="A_Double_Opacity2OffsetFromCenter">-980</Double> <!-- 980 pixels from center is the edge of the 16:9 area, the point where we want our gradient fully transparent -->
                <Double x:Key="A_Double_Opacity3OffsetFromCenter">980</Double>
                <Double x:Key="A_Double_Opacity4OffsetFromCenter">1070</Double>

                <MultiConverter x:Key="A_MultiConverter_OffsetFromCenterUIPixelsToScreenPercent">
                    <MultiConverterEntry Converter="{MathOperationConverter Operation=Divide}"
                                 Parameter="{StaticResource A_Double_SceneWidth}"
                                 TargetType="float" />
                    <MultiConverterEntry Converter="{MathOperationConverter Operation=Multiply}"
                                 Parameter="{Binding HorizontalScaleValue, Source={StaticResource PART_UIResolutionScaler}}"
                                 TargetType="float" />
                    <MultiConverterEntry Converter="{MathOperationConverter Operation=Add}"
                                 Parameter="{StaticResource A_Double_ScreenCenterPercent}"
                                 TargetType="float" />
                </MultiConverter>

            </ControlTemplate.Resources>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPassBackground_WidscreenGradientBlur}">
                <local:FZMaterial.OpacityMask>
                    <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                        <GradientStop x:Name="Stop1" Color="White" Offset="{Convert {StaticResource A_Double_Opacity1OffsetFromCenter}, Converter={StaticResource A_MultiConverter_OffsetFromCenterUIPixelsToScreenPercent}}"/>
                        <GradientStop x:Name="Stop2" Color="Transparent" Offset="{Convert {StaticResource A_Double_Opacity2OffsetFromCenter}, Converter={StaticResource A_MultiConverter_OffsetFromCenterUIPixelsToScreenPercent}}"/>
                        <GradientStop x:Name="Stop3" Color="Transparent" Offset="{Convert {StaticResource A_Double_Opacity3OffsetFromCenter}, Converter={StaticResource A_MultiConverter_OffsetFromCenterUIPixelsToScreenPercent}}"/>
                        <GradientStop x:Name="Stop4" Color="White" Offset="{Convert {StaticResource A_Double_Opacity4OffsetFromCenter}, Converter={StaticResource A_MultiConverter_OffsetFromCenterUIPixelsToScreenPercent}}"/>
                    </LinearGradientBrush>
                </local:FZMaterial.OpacityMask>
            </local:FZMaterial>
        </ControlTemplate>

        <Style x:Key="A_Style_FZMaterial_FestivalPassBackgroundLogo" TargetType="FZMaterial" BasedOn="{StaticResource A_Style_FrameworkElement_FadeOnlyTransition_0}">
            <Setter Property="ImageSource"
                    Value="{Binding BackgroundLogoPath, FallbackValue=Game:\Media\UI\Textures\Data_Bound\FestivalPass\FPDefaultWordmark.png}" />
            <Style.Triggers>
                <!-- hide the logo when the fullscreen background is overridden by the category. category-specific backgrounds have their own logos baked in -->
                <DataTrigger Binding="{Binding SelectedCategory.BackgroundImagePathOverride, Converter={StaticResource A_Converter_IsNotNull}}"
                             Value="{StaticResource A_Boolean_True}" >
                    <Setter Property="Visibility" Value="Hidden" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZMaterial_Timer_Icon"
               TargetType="FZMaterial">
            <Setter Property="Width" Value="40" />
            <Setter Property="Height" Value="40" />
            <Setter Property="Margin" Value="-11" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Anthem/Icons/Timer.png" />
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding SelectedCategory.SeasonCategoryState}"
                             Value="{x:Static local:FestivalPassSeasonCategoryState.Expired}">
                    <Setter Property="Color"
                            Value="{StaticResource H_Color_Primary_White}" />
                    <Setter Property="ImageSource"
                            Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FP_Locked_Icon.png" />
                    <Setter Property="Width" Value="32" />
                    <Setter Property="Height" Value="32" />
                    <Setter Property="Margin" Value="-5" />
                </DataTrigger>
                <DataTrigger Binding="{Binding IsActiveSeries}"
                             Value="False">
                    <Setter Property="Color"
                            Value="{StaticResource H_Color_Primary_White}" />
                    <Setter Property="ImageSource"
                            Value="/ForzaUI;component/Textures/Data_Bound/FestivalPass/FP_Locked_Icon.png" />
                    <Setter Property="Width" Value="32" />
                    <Setter Property="Height" Value="32" />
                    <Setter Property="Margin" Value="-5" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
        
    </Page.Resources>

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

    <Grid>
        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Glass_ScreenBackground}" />
        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FestivalPassBackground}" />
        <local:FZMaterialGlassCapture />
        <local:MappingConverterResourcePreloader Converter="{StaticResource A_Converter_PrizeTypeToImageSource_Badge}"
                                                 ValueType="{Type BitmapImage}"/>

        <local:MappingConverterResourcePreloader Converter="{StaticResource A_Converter_PrizeTypeToImageSource_Badge_RewardItem}"
                                                 ValueType="{Type BitmapImage}"/>

        <local:MappingConverterResourcePreloader Converter="{StaticResource A_Converter_Season_To_IconImage}"
                                                 ValueType="{Type BitmapImage}"/>   
        
        <local:MappingConverterResourcePreloader Converter="{StaticResource A_Converter_RewardTypeToIcon_FestivalPass}"
                                                 ValueType="{Type BitmapImage}"/>

        <local:MappingConverterResourcePreloader Converter="{StaticResource A_MappingConverter_ForzaEvents_Challengetype_Icon}"
                                                 ValueType="{Type BitmapImage}"/>
        
        <PageInputHandler x:Name="ClaimCommand"
                          Command="{Binding ClaimRewardsCommand}"
                          Button="X" />
        <PageInputHandler Command="{Binding ToggleSeasonalDetailsCommand}"
                          Button="R3" 
                          x:Name="DetailsToggleCommand"/>

        <ContentControl Style="{StaticResource A_Style_ButtonBar}"
                        x:Name="BottomBar">
            <local:ControllerButtonPanel x:Name="PART_HelpPanel"
                                         Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
                <local:ControllerButtonControl Button="A"
                                            Description="{Binding DescriptionA}" />
                <local:ControllerButtonControl Name="DPad"
                                               Button="DPadHorizontal"
                                               Description="{local:Loc HelpButtons.IDS_Choose}"
                                               Style="{StaticResource A_Style_FestivalPass_DPadController_ButtonControl}" />
                <local:ControllerButtonControl Button="B"
                                            Description="{local:Loc HelpButtons.IDS_Back}" />
                <local:ControllerButtonControl Button="X"
                                               Visibility="{Binding Command.Enabled, ElementName=ClaimCommand, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                               Description="{local:Loc HelpButtons.IDS_ClaimRewards}" />
                <local:ControllerButtonControl Button="Back"
                                            Description="{Binding DescriptionBack}" />
                <local:ControllerButtonControl Button="Start"
                                            Description="{Binding DescriptionStart}" />
                <local:ControllerButtonControl Button="R3"
                                               Visibility="{Binding Command.Enabled, ElementName=DetailsToggleCommand, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                               Description="{local:Loc HelpButtons.IDS_DetailToggleButton}" />
            </local:ControllerButtonPanel>
        </ContentControl>
        
        <Border Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <DockPanel Margin="120,46,128,46"
                       VerticalAlignment="Top">
                <local:FZMaterial DockPanel.Dock="Left"
                                  GetSizeFromTexture="True" 
                                  HorizontalAlignment="Left" 
                                  VerticalAlignment="Center" 
                                  Style="{StaticResource A_Style_FZMaterial_FestivalPassBackgroundLogo}"/>
                <StackPanel DockPanel.Dock="Left"
                            HorizontalAlignment="Left"
                            VerticalAlignment="Center"
                            Orientation="Horizontal"
                            Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_1}">

                    <local:FZMaterial Height="100" Width="3" Color="{StaticResource H_Color_Primary_White}" Margin="36,0"
                                      VerticalAlignment="Center"/>
                    <local:FZTextBlock Style="{Binding SelectedCategory.FestivalPassTemplateType, Converter={StaticResource A_MappingConverter_CategoryType_to_DescriptionStyle}}"/>
                </StackPanel>

                <local:FZMaterial DockPanel.Dock="Right"
                                  Height="72"
                                  Width="418"
                                  HorizontalAlignment="Right"
                                  VerticalAlignment="Center"
                                  Preset="{GlassRoundtangle BlurAmount=High}"
                                  Style="{StaticResource A_Style_FZMaterial_ActiveSeries_Background_Colour}">
                    <Grid>
                        <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/FestivalPass/Festival_Playlist_logo.png"
                                          Width="220"
                                          Height="98"
                                          HorizontalAlignment="Left"
                                          VerticalAlignment="Center"
                                          Margin="-70,0,0,0"/>

                        <StackPanel Orientation="Vertical"
                                    VerticalAlignment="Center"
                                    Margin="0,0,14,0">
                            <local:FZTextBlock x:Name="TimerDefinitionText"
                                               DockPanel.Dock="Top"
                                               Style="{StaticResource A_Style_FZTextBlock_CategoryStateText_Definition}"
                                               HorizontalAlignment="Right"
                                               MaxWidth="350" />

                            <Decorator Height="8"/>
                            
                            <StackPanel Orientation="Horizontal"
                                        DockPanel.Dock="Bottom"
                                        HorizontalAlignment="Right">
                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Timer_Icon}"
                                                  x:Name="TimerIcon" />
                                <Decorator Width="10"/>
                                <Decorator Style="{StaticResource A_Style_Decorator_CategoryStateText_RenderTransform}"
                                           RenderTransformOrigin="0.5,0.5">
                                    <local:FZTextBlock x:Name="TimerValueText"
                                                       Style="{StaticResource A_Style_FZTextBlock_CategoryStateText_Value}"
                                                       VerticalAlignment="Center"
                                                       HorizontalAlignment="Center"/>
                                </Decorator>
                            </StackPanel>
                        </StackPanel>
                    </Grid>
                </local:FZMaterial>
            </DockPanel>
        </Border>

        <Border Style="{StaticResource A_Style_Border_ScenePadding_Opus}">
            <StackPanel Orientation="Vertical"
                        Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_1}"
                        VerticalAlignment="Top"
                        Margin="40,68,0,0">
                <StackPanel  HorizontalAlignment="Stretch"
                             Margin="-55,0,0,17"
                             MinWidth="1786"
                             Orientation="Vertical">
                    <FZTabButtonsSelector x:Name="PART_Categories"
                                          ItemsSource="{Binding Categories}"
                                          Style="{StaticResource H_Style_TabBar}"
                                          ItemContainerStyle="{StaticResource H_Style_FestivalPass_TabButton}"
                                          HorizontalAlignment="Stretch"
                                          VerticalAlignment="Bottom"
                                          HorizontalContentAlignment="Center"
                                          Margin="0"
                                          MinWidth="1786"
                                          SelectedItem="{Binding SelectedCategory}"/>
                </StackPanel>

                <Grid>
                    <Grid Width="1"
                          Height="1"
                          HorizontalAlignment="Left"
                          VerticalAlignment="Top">
                        <local:FZMaterial Width="{StaticResource A_Double_FestivalPass_BackgroundImageWidth}"
                                          Height="{StaticResource A_Double_FestivalPass_BackgroundImageHeight}"
                                          ImageSource="{Binding SelectedCategory.BackgroundPath}"
                                          Visibility="{Binding SelectedCategory.BackgroundPath, Converter={StaticResource A_Converter_VisibleWhenNotNull}, FallbackValue=Collapsed}">
                        </local:FZMaterial>
                    </Grid>
                    <StackPanel Orientation="Horizontal">
                        <local:CommonListBox x:Name="PART_List"
                                             local:FindVisualOffset.SelectedItem="{Binding SelectedItem, RelativeSource={RelativeSource AncestorType=Page}}"
                                             SelectedItem="{Binding SelectedItem}"
                                             ItemsSource="{Binding SelectedCategory.Items}"
                                             Style="{Binding SelectedCategory.FestivalPassTemplateType, Converter={StaticResource A_MappingConverter_CategoryType_to_Style}}"
                                             local:FocusOnPageFocusGained.SelectorSelectedItem="True"
                                             AllowSelectionOfDisabledItems="False"
                                             MaxSkipOverDisabledItemsCount="2"
                                             PageSize="1" />
                    </StackPanel>
                    <local:NavigationArrows Margin="-90,0,-50,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}">
                        <local:NavigationArrows.Style>
                            <Style BasedOn="{StaticResource A_Style_Control_NavigationArrows}"
                                   TargetType="local:NavigationArrows">
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding SelectedCategory.Items.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=5}"
                                                 Value="-1">
                                        <Setter Property="Visibility"
                                                Value="Collapsed" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </local:NavigationArrows.Style>
                    </local:NavigationArrows>
                </Grid>
            </StackPanel>
        </Border>

        <Control Template="{StaticResource A_ControlTemplate_WidescreenGradientBlur}" />
    </Grid>
</Page>
