<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:System="clr-namespace:System;assembly=mscorlib"
                    xmlns:local="clr-namespace:ForzaUI;assembly="
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    mc:Ignorable="d">

    <Style x:Key="A_Style_FZTextBlock_TimeHeader" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter Property="FontSize" Value="45"/>
        <Setter Property="Color" Value="{StaticResource A_Color_Tile_Text_Alternate}"/>
        <Setter Property="TextAlignment" Value="Right" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_TimeBody" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter Property="FontSize" Value="90"/>
        <Setter Property="Color" Value="{StaticResource A_Color_Tile_Text_Alternate}"/>
        <Setter Property="TextAlignment" Value="Right" />
    </Style>

    <!-- Shows time until starts or ends -->
    <ControlTemplate x:Key="A_ControlTemplate_ForzaEventTimer">
        <StackPanel Style="{StaticResource A_Style_FrameworkElement_HiddenWhenLocked}" DockPanel.Dock="Bottom" >
            <local:FZTextBlock x:Name="Header" Text="{local:Loc ForzaEvents.IDS_Time_WeeklyChallenge_NotStarted}" Style="{StaticResource A_Style_FZTextBlock_TimeHeader}" HorizontalAlignment="Right"/>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <local:FZMaterial x:Name="ClockIcon" Width="54" Height="63" Visibility="Hidden" ImageSource="/ForzaUI;component/Textures/Data_Bound/Forza_Events/Clock_Icon_1.png" Margin="0,0,5,0"/>
                <local:FZTextBlock x:Name="Body" Text="{Binding Time}" Style="{StaticResource A_Style_FZTextBlock_TimeBody}" VerticalAlignment="Center" />
            </StackPanel>
        </StackPanel>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding HasStarted}" Value="True">
                <DataTrigger.Setters>
                    <Setter TargetName="Header" Property="Text" Value="{local:Loc ForzaEvents.IDS_Time_DailyChallenge_Complete}" />
                    <Setter TargetName="Body" Property="Color" Value="{StaticResource A_Color_Tile_LiveText}" />
                    <Setter TargetName="ClockIcon" Property="Visibility" Value="Visible" />
                </DataTrigger.Setters>
            </DataTrigger>
            <DataTrigger Binding="{Binding HasEnded}" Value="True">
                <DataTrigger.Setters>
                    <Setter TargetName="Header" Property="Visibility" Value="Collapsed" />
                    <Setter TargetName="Body" Property="Text" Value="{local:Loc ForzaEvents.IDS_Time_DailyChallenge_Expired}" />
                    <Setter TargetName="Body" Property="Color" Value="{StaticResource A_Color_Tile_LiveText}" />
                    <Setter TargetName="ClockIcon" Property="Visibility" Value="Collapsed" />
                </DataTrigger.Setters>
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style x:Key="A_Style_FZMaterial_ForzaEventsTileImage"
           TargetType="local:FZMaterial">
        <Setter Property="Opacity" Value="0" />
        <Setter Property="ImageSourceNoPreload" Value="{Binding TileImage}" />
        <Style.Resources>
            <Storyboard x:Key="FadeInStoryboard">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:0.15" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
        </Style.Resources>
        <Style.Triggers>
            <DataTrigger Binding="{Binding (local:TileMenuNavigationManager.LockState), RelativeSource={RelativeSource FindAncestor, AncestorType=Button}}" Value="{x:Static local:LockState.Locked}">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_Acrylic_BodyPanel_Image}"/>
                <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Anthem/PauseMenuTileBackgrounds/ForzaTuesday_Locked.png" />
            </DataTrigger>
            <Trigger Property="Downloaded" Value="True">
                <Trigger.EnterActions>
                    <BeginStoryboard Storyboard="{StaticResource FadeInStoryboard}"/>
                </Trigger.EnterActions>
            </Trigger>
        </Style.Triggers>
    </Style>

    <!-- Social tile -->
    <ControlTemplate x:Key="A_ControlTemplate_ForzaEventsTile" TargetType="{x:Type local:FZButton}">
        <Grid Style="{StaticResource A_Style_FrameworkElement_TiledMenuTransition}">
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TileShadow}" />
            <Grid Style="{StaticResource A_Style_Grid_MotionBlur}">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_MotionBlurExpander}" />
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_AcrylicSurface_BodyPanel}"/>
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_ForzaEventsTileImage}" x:Name="Image"/>
                <Decorator Visibility="{Binding Downloaded, ElementName=Image, Converter={StaticResource A_Converter_BoolToVis_Inverted}}">
                    <ProgressBar Style="{StaticResource A_Style_ProgressBar_WaitSpinner}" />
                </Decorator>
                <DockPanel Margin="{StaticResource A_Thickness_TilePadding}">
                    <local:FZTextBlock x:Name="Heading"
                                       Style="{StaticResource A_Style_FZTextBlock_TileTitle}"
                                       local:TextBlockInlineMarkup.Markup="{TemplateBinding Content}"
                                       Color="{StaticResource A_Color_Tile_Title_Alternate}"
                                       DockPanel.Dock="Top"/>
                    <local:FZMaterial Style="{StaticResource A_Style_Tile_LockIcon}" />
                    <Control Width="Auto" DockPanel.Dock="Bottom" Template="{StaticResource A_ControlTemplate_ForzaEventTimer}" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
                </DockPanel>
            </Grid>
            <ContentControl Style="{StaticResource A_Style_ContentControl_TileSelectionStroke}"/>
        </Grid>
    </ControlTemplate>

    <!-- Featured tile -->
    <DataTemplate DataType="{x:Type local:FeaturedForzaEventsLiveTileItem}">
        <Grid x:Name="Root"
            Style="{StaticResource A_Style_FrameworkElement_LiveTileItemRoot}">
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_AcrylicSurface_BodyPanel}" />
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_ForzaEventsTileImage}"
                              ImageSourceNoPreload="{Binding ForzaEvent.TileImage, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}"
                              x:Name="Image"/>
            <Decorator Visibility="{Binding Downloaded, ElementName=Image, Converter={StaticResource A_Converter_BoolToVis_Inverted}}">
                <ProgressBar Style="{StaticResource A_Style_ProgressBar_WaitSpinner}" />
            </Decorator>
            <Grid Margin="{StaticResource A_Thickness_TilePadding}">
                <DockPanel>
                    <local:FZTextBlock DockPanel.Dock="Top"
                                        Style="{StaticResource A_Style_FZTextBlock_TileTitle}"
                                        local:TextBlockInlineMarkup.Markup="{local:Loc PauseMenu.IDS_TileTitle_ForzaEvents}"
                                        Color="{StaticResource A_Color_Tile_Title_Alternate}" />
                    <ContentControl ContentTemplate="{StaticResource A_DataTemplate_SelectionDot}"
                                    DockPanel.Dock="Bottom"
                                    Margin="0,15,0,0"
                                    Visibility="Hidden"/>
                    <local:FZTextBlock DockPanel.Dock="Bottom"
                                       HorizontalAlignment="Right"
                                       VerticalAlignment="Bottom"
                                       MaxWidth="630"
                                       Style="{StaticResource A_Style_FZTextBlock_FeaturedText}"
                                       Text="{Binding ForzaEvent.FeatureTileText, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}" />
                </DockPanel>
            </Grid>
            <Grid.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform X="0"/>
                </TransformGroup>
            </Grid.RenderTransform>
        </Grid>
    </DataTemplate>

    <!-- ChallengeType Icon Mapping -->
    <local:MappingConverter x:Key="A_MappingConverter_ForzaEvents_Challengetype_Icon">
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.ReachSpeed}"                 Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Reach_X_Speed.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillChain}"                 Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Skill_Chain.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.DriveDistance}"              Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Drive_a_Total_of_Miles.png"/>

        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillNearMiss}"              Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Near_Miss.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillOvertake}"              Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Pass_Skills.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillTradingPaint}"          Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Trading_Paint.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillAir}"                   Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Air_Skills_and_Airborn_Pass.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillDrift}"                 Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Drifting.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillEDrift}"                Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Drifting.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillDraft}"                 Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Drafting.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillTwoWheels}"             Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillDriftTap}"              Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Drift_Tap.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillWreckage}"              Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Wreckage.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillCleanSpeed}"            Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Speed_Skills.png"/>

        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillCleanStart}"            Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Clean_Racing_and_Clean_Start.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillFastAndClean}"          Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Clean_Racing_and_Clean_Start.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillDareDevil}"             Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Daredevil.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillStuntman}"              Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Stunt_Man.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillThreadingTheNeedle}"    Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Threading_The_Needle.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillAirbornePass}"          Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Air_Skills_and_Airborn_Pass.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillHardCharger}"           Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Speed_Skills.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillKangaroo}"              Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Kangaroo.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillTriplePass}"            Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Pass_Skills.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillSideSwipe}"             Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Sideswipe.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillCrashLanding}"          Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Crash_Landing.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillShowOff}"               Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Showoff_Skills.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillEbisuStyle}"            Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Air_Skills_and_Airborn_Pass.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillLuckyEscape}"           Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Lucky_Escape.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillSlingShot}"             Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Slingshot.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillWreckingBall}"          Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Wrecking_Ball.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillGreatChain}"            Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Skill_Chain.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillAwesomeChain}"          Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Skill_Chain.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillUltimateChain}"         Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Skill_Chain.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillLandscaping}"           Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Landscaping.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillGoingPostal}"           Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillRoadOpen}"              Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillTrashman}"              Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Trashman.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillLumberjack}"            Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Lumberjack.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillFruitSalad}"            Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillWaterworks}"            Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillSnowman}"               Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.SkillBarrelRoll}"            Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>

        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.StuntSpeedTrapStars}"        Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\PR_Stunts_Stars.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.StuntSpeedZoneStars}"        Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\PR_Stunts_Stars.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.StuntDriftZoneStars}"        Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\PR_Stunts_Stars.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.StuntDangerSignStars}"       Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\PR_Stunts_Stars.png"/>

        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.StuntSpeedTrapScore}"        Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Speed_Trap.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.StuntSpeedZoneScore}"        Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Speed_Zone.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.StuntDriftZoneScore}"        Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Drift_Zone.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.StuntDangerSignScore}"       Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Danger_Sign.png"/>

        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.EventCircuit}"               Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Road_Circuit_Events.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.EventStreet}"                Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Street_Scene_Event.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.EventCrossCountry}"          Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Cross_Country_Events.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.EventScramble}"              Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Scramble_Events.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.EventTrail}"                 Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Dirt_Trail_Events.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.EventHillClimb}"             Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.EventDescent}"               Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.EventCrossCountryCircuit}"   Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Cross_Country_Circuit.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.EventDragStrip}"             Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Drag_Strip.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.EventSprint}"                Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\Road_Sprint_Event.png"/>

        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.E3Autumn}" Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.E3Winter}" Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.E3Spring}" Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeType.E3Summer}" Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\ChallengeTypeIcons\GenericFallback.png"/>
    </local:MappingConverter>
    <!-- Daily Challenge Resources -->

    <Color x:Key="A_Color_ForzaEvents_DailyChallenge_IconBacking">#FF00B592</Color>
    <Color x:Key="A_Color_ForzaEvents_DailyChallenge_CompletedText">#80000000</Color>
    <Color x:Key="A_Color_ForzaEvents_DailyChallenge_Text">#FFFFFFFF</Color>
    <Color x:Key="A_Color_ForzaEvents_DailyChallenge_TitleText">#FFFFFFFF</Color>
    <Color x:Key="A_Color_ForzaEvents_DailyChallenge_ProgressText">#FFFFFFFF</Color>

    <local:MappingConverter x:Key="A_MappingConverter_ForzaEvents_DailyChallenge_StateString">
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}" Value="{local:Loc ForzaEvents.IDS_NotStarted}" />
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}" Value="{local:Loc ForzaEvents.IDS_Active}" />
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}" Value="{local:Loc ForzaEvents.IDS_Complete}" />
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}" Value="{local:Loc ForzaEvents.IDS_Expired}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_MappingConverter_ForzaEvents_DailyChallenge_StateTimeString">
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}" Value="{local:Loc ForzaEvents.IDS_Time_DailyChallenge_NotStarted}" />
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}" Value="{local:Loc ForzaEvents.IDS_Time_DailyChallenge_Active}" />
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}" Value="{local:Loc ForzaEvents.IDS_Time_DailyChallenge_Complete}" />
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}" Value="{local:Loc ForzaEvents.IDS_Time_DailyChallenge_Expired}" />
    </local:MappingConverter>

    <Style x:Key="A_Style_FZMaterial_ForzaEvents_ChallengeState"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_ProgressBacking}"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_ForzaEvents_DailyChallenge_ProgressText" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_A"/>
        <Setter Property="CapHeight" Value="16"/>
        <Setter Property="Color" Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_ProgressText}"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_ForzaEvents_DailyChallenge_RewardText" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_A"/>
        <Setter Property="CapHeight" Value="16"/>
        <Setter Property="Color" Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_ProgressText}"/>
    </Style>

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

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

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

    <Style x:Key="A_Style_FZMaterial_ForzaEventPoints_Small" TargetType="local:FZMaterial">
        <Setter Property="Width" Value="31"/>
        <Setter Property="Height" Value="31"/>
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Forza_Events/FPIcon/ForzaEventPoints_Small.png"/>
    </Style>

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

    <Style x:Key="A_Style_FZMaterial_GlassPanel_DailyBacking"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_InnerAll}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_BackgroundBacking}"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_GlassPanel_DailyBorder"
           TargetType="{x:Type local:FZMaterial}"
           BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlassRoundtangleStroke_Daily_Border}"/>
        <Setter Property="Color" Value="#A67E7E7E"/>
    </Style>

    <ControlTemplate x:Key="A_ControlTemplate_ForzaEvents_DailyChallenge_InfoBlock" TargetType="{x:Type Control}">
        <DockPanel>
            <local:FZTextBlock HorizontalAlignment="Left"
                               Text="{Binding Title, Converter={StaticResource A_StringToUpper}}"
                               CapHeight="19"
                               Color="{StaticResource A_Color_ForzaEvents_DailyChallenge_TitleText}"
                               DockPanel.Dock="Top"/>
            <Decorator Height="12" DockPanel.Dock="Top"/>
            <local:FZTextBlock HorizontalAlignment="Left"
                               TextAlignment="Left"
                               local:TextBlockInlineMarkup.Markup="{Binding Description}"
                               local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_ForzaEvents_Challenge_"
                               CapHeight="13"
                               MaxHeight="54"
                               TextWrapping="Wrap"
                               Color="{StaticResource A_Color_ForzaEvents_DailyChallenge_Text}"
                               FontFamily="Horizon_D"/>
        </DockPanel>
    </ControlTemplate>

    <Style x:Key="A_Style_FZMaterial_ForzaEventIcon"
           TargetType="local:FZMaterial">
        <Setter Property="ImageSource"
                Value="{Binding Image}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding Image}"
                         Value="{x:Null}">
                <Setter Property="ImageSource"
                        Value="{Binding ChallengeType, Converter={StaticResource A_MappingConverter_ForzaEvents_Challengetype_Icon}}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    
    <ControlTemplate x:Key="A_ControlTemplate_ForzaEvents_DailyChallenge_Icon" TargetType="{x:Type Control}">
        <local:FZMaterial Width="{Binding Width, RelativeSource={RelativeSource TemplatedParent}}" Height="{Binding Height, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource A_Style_FZMaterial_ForzaEvents_ChallengeState}" Color="{StaticResource A_Color_ForzaEvents_DailyChallenge_IconBacking}">
            <local:FZMaterial DockPanel.Dock="Left" Style="{StaticResource A_Style_FZMaterial_ForzaEventIcon}"  Width="{Binding Width, RelativeSource={RelativeSource TemplatedParent}}" Height="{Binding Height, RelativeSource={RelativeSource TemplatedParent}}"/>
        </local:FZMaterial>
    </ControlTemplate>

    <Color x:Key="A_Colour_Dynamic_ForzathonPoints">#ffff</Color>
    <Color x:Key="A_Colour_Dynamic_ForzathonPointsComplete">#80000000</Color>
    
    <ControlTemplate x:Key="A_ControlTemplate_ForzathonPoint_Badge" 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 Reward}"
                               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>

    <!-- Daily Challenge Template -->
    <DataTemplate x:Key="A_DataTemplate_ForzaEvents_DailyChallenge">
        <local:FZMaterial x:Name="Border" Width="410" Height="198"
                              Margin="0"
                              Style="{StaticResource A_Style_FZMaterial_GlassPanel_DailyBorder}">
            <local:FZMaterial x:Name="Background" Margin="3.5"
                              Style="{StaticResource A_Style_FZMaterial_GlassPanel_DailyBacking}">
                <DockPanel x:Name="Content" HorizontalAlignment="Stretch" Margin="6,8,6,6" >

                    <!-- Time -->
                    <Grid DockPanel.Dock="Top" Margin="0,0,0,10">
                        <local:FZTextBlock HorizontalAlignment="Left" 
                                           Text="{Binding State, Converter={StaticResource A_MappingConverter_ForzaEvents_DailyChallenge_StateTimeString}}" 
                                           CapHeight="19" 
                                           FontFamily="Horizon_A" 
                                           Color="{StaticResource A_Color_ForzaEvents_DailyChallenge_Text}"/>
                        <local:FZTextBlock HorizontalAlignment="Right"
                                           local:TextBlockInlineMarkup.Markup="{Binding Time}" 
                                           local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_ForzaEvents_Challenge_" 
                                           CapHeight="16" 
                                           FontFamily="Horizon_B" 
                                           Color="{StaticResource A_Color_ForzaEvents_DailyChallenge_Text}"/>
                    </Grid>

                    <!-- Progress + Reward -->
                    <local:FZMaterial x:Name="ProgressContainer" Height="32" DockPanel.Dock="Bottom" Margin="0,12,0,0" Style="{StaticResource A_Style_FZMaterial_ForzaEvents_ChallengeState}">
                        <Grid VerticalAlignment="Center" Margin="9,0">
                            <Control Template="{StaticResource A_ControlTemplate_ForzathonPoint_Badge}" Focusable="False"/>
                            <local:FZTextBlock x:Name="Progress"
                                               HorizontalAlignment="Right"
                                               VerticalAlignment="Center"
                                               Text="{Binding ProgressString}"
                                               Style="{StaticResource A_Style_FZTextBlock_ForzaEvents_DailyChallenge_ProgressText}"
                                               Visibility="Collapsed"/>
                            <StackPanel x:Name="State" HorizontalAlignment="Right" Orientation="Horizontal" Visibility="Visible">
                                <local:FZTextBlock Text="{Binding State, Converter={StaticResource A_MappingConverter_ForzaEvents_DailyChallenge_StateString}}"
                                                   Style="{StaticResource A_Style_FZTextBlock_ForzaEvents_DailyChallenge_ProgressText}"
                                                   VerticalAlignment="Center"
                                                   x:Name="StateText"/>
                                <local:FZMaterial x:Name="CompletedIcon"
                                                  Visibility="Collapsed"
                                                  ImageSourceNoPreload="/ForzaUI;component/Textures/Anthem/Icons/Tick.png"
                                                  Height="32"
                                                  Width="32"
                                                  VerticalAlignment="Center"
                                                  Color="{StaticResource A_Color_ForzaEvents_DailyChallenge_CompletedText}"
                                                  Margin="0,0,-8,0"/>
                            </StackPanel>
                        </Grid>
                    </local:FZMaterial>

                    <!-- Icon -->
                    <Control Width="102" Height="102" Template="{StaticResource A_ControlTemplate_ForzaEvents_DailyChallenge_Icon}" Focusable="False"/>

                    <!-- Title -->
                    <Control Template="{StaticResource A_ControlTemplate_ForzaEvents_DailyChallenge_InfoBlock}" Margin="12,10" Focusable="False"/>
                </DockPanel>
            </local:FZMaterial>
        </local:FZMaterial>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Complete}">
                <Setter TargetName="ProgressContainer" Property="Color" Value="#FFFFFFFF" />
                <Setter TargetName="ProgressContainer" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\CompletedBacking.png" />
                <Setter TargetName="CompletedIcon" Property="Visibility" Value="Visible" />
                <Setter TargetName="StateText" Property="Color" Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_CompletedText}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Active}">
                <Setter TargetName="Progress" Property="Visibility" Value="Visible" />
                <Setter TargetName="State" Property="Visibility" Value="Collapsed" />
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <!-- Weekly Challenge Resources -->
    <Color x:Key="A_Color_ForzaEvents_WeeklyChallenge_Text">#FFFFFFFF</Color>
    <Color x:Key="A_Color_ForzaEvents_WeeklyChallenge_TitleText">#FFFFFFFF</Color>
    <Color x:Key="A_Color_ForzaEvents_WeeklyChallenge_TitleText_ForzathonBranded">#FFFF1971</Color>
    <Color x:Key="A_Color_ForzaEvents_WeeklyChallenge_ProgressText">#FFFFFFFF</Color>
    <Color x:Key="A_Color_ForzaEvents_WeeklyChallenge_CompletedBacking">#FF00B592</Color>

    <local:MappingConverter x:Key="A_MappingConverter_ForzaEvents_WeeklyChallenge_StateString">
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}" Value="{local:Loc ForzaEvents.IDS_NotStarted}" />
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}" Value="{local:Loc ForzaEvents.IDS_Complete}" />
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}" Value="{local:Loc ForzaEvents.IDS_Expired}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_MappingConverter_ForzaEvents_WeeklyChallenge_StateTimeString">
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.NotStarted}" Value="{local:Loc ForzaEvents.IDS_Time_WeeklyChallenge_NotStarted}" />
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Active}" Value="{local:Loc ForzaEvents.IDS_Time_WeeklyChallenge_Active}" />
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Complete}" Value="{local:Loc ForzaEvents.IDS_Time_WeeklyChallenge_Complete}" />
        <local:MappingConverterEntry Key="{x:Static local:ForzaEventChallengeState.Expired}" Value="{local:Loc ForzaEvents.IDS_Time_WeeklyChallenge_Expired}" />
    </local:MappingConverter>

    <Style x:Key="A_Style_FZTextBlock_ForzaEvents_WeeklyChallenge_Text" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_B"/>
        <Setter Property="CapHeight" Value="16"/>
        <Setter Property="Color" Value="{StaticResource A_Color_ForzaEvents_WeeklyChallenge_Text}"/>
    </Style>

    <Style x:Key="A_Style_FZRun_ForzaEvents_WeeklyChallenge_NUM" TargetType="local:FZRun">
        <Setter Property="FontFamily" Value="Horizon_A"/>
        <Setter Property="CapHeight" Value="23"/>
        <Setter Property="Color" Value="{StaticResource A_Color_ForzaEvents_WeeklyChallenge_TimerNumbers}"/>
    </Style>

    <DataTemplate x:Key="A_DataTemplate_WeeklyChallenge_Chapter">
        <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>
        <DockPanel>
            <local:FZTextBlock Text="{Binding Tag, RelativeSource={RelativeSource  FindAncestor, AncestorType=ContentControl}, Converter={StaticResource A_MappingConverter_ChapterIndex_To_ChapterText}}" 
                               HorizontalAlignment="Center" 
                               VerticalAlignment="Top"
                               CapHeight="21"
                               LineAdjust="-0.2"
                               DockPanel.Dock="Top"
                               Color="{StaticResource A_Color_ForzaEvents_WeeklyChallenge_TitleText_ForzathonBranded}"
                               TextAlignment="Center"/>
            <Decorator Height="10" DockPanel.Dock="Top"/>
            <local:FZTextBlock Text="{Binding Title, Converter={StaticResource A_StringToUpper}}" 
                               HorizontalAlignment="Center" 
                               CapHeight="21"
                               LineAdjust="-0.2"
                               DockPanel.Dock="Top"
                               Color="{StaticResource A_Color_ForzaEvents_WeeklyChallenge_TitleText}"
                               TextAlignment="Center"/>
            <Decorator Height="10" DockPanel.Dock="Top"/>
            <local:FZTextBlock local:TextBlockInlineMarkup.Markup="{Binding Description}" 
                               local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_ForzaEvents_Challenge_"  
                               HorizontalAlignment="Center" 
                               Color="{StaticResource A_Color_ForzaEvents_WeeklyChallenge_Text}"
                               TextWrapping="Wrap"
                               CapHeight="14"
                               FontFamily="Horizon_D"
                               TextAlignment="Center"
                               Margin="0,10,0,5"/>
        </DockPanel>
    </DataTemplate>

    <Style x:Key="A_Style_Button_ForzaEvents" TargetType="{x:Type local:FZButton}">
        <Setter Property="Panel.ZIndex" Value="-100"/>
        <Setter Property="local:ZPanel.ZOffset" Value="0"/>
        <Setter Property="RenderTransformOrigin"
                Value="0.5,0.5" />
        <Setter Property="local:FocusOnMouseOverBehaviour.Self"
                        Value="True" />
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsKeyboardFocused}" Value="True">
                <Setter Property="Panel.ZIndex" Value="0"/>
                <DataTrigger.EnterActions>
                    <BeginStoryboard Storyboard="{StaticResource A_Storyboard_Tile_Selected}"/>
                </DataTrigger.EnterActions>
                <DataTrigger.ExitActions>
                    <BeginStoryboard Storyboard="{StaticResource A_Storyboard_Tile_Unselected}"/>
                </DataTrigger.ExitActions>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_ItemsSelector_SelectionDots_Large_Forzathon" TargetType="local:ItemsSelector" BasedOn="{StaticResource A_Style_ItemsSelector_SelectionDots_Large}">
        <Setter Property="SelectedIndex" Value="{Binding SelectedItemIndex, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
        <Setter Property="ItemsSource" Value="{Binding ChildChallenges}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Margin" Value="0,0,0,6"/>
        <Setter Property="Focusable" Value="False"/>
        <Style.Resources>
            <Color x:Key="A_Color_Tile_Selected">#FFFF1971</Color>
            <Style x:Key="A_Style_Tile_SelectionDots_Dynamic" TargetType="{x:Type local:FZMaterial}" BasedOn="{StaticResource A_Style_Tile_SelectionDots_Base}">
                <Setter Property="Color" Value="#FFFFFF"/>
                <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_SelectionDot_Large}"/>
            </Style>
        </Style.Resources>
    </Style>

    <Style x:Key="A_Style_ContentControl_ForzathonChallengeSelector" TargetType="ContentControl">
        <Setter Property="ContentTemplate" Value="{StaticResource A_DataTemplate_WeeklyChallenge_Chapter}"/>
        <Setter Property="Margin" Value="10,20,10,20"/>
        <Setter Property="Focusable" Value="False"/>
    </Style>

    <!-- Weekly Challenge Template -->
    <ControlTemplate x:Key="A_ControlTemplate_ForzaEvents_WeeklyMultiChallenge" TargetType="local:MultiItemLiveTile">
        <Grid>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TileShadow}" />
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}" >
                <DockPanel Margin="4">
                    <Grid DockPanel.Dock="Top" Width="418" Height="622">
                        <local:FZMaterial ImageSource="{Binding Image}" Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}" />
                        <local:FZMaterial Color="#80000000" Visibility="{StaticResource A_Visibility_ShowForHighContrastOnly}" />
                        <DockPanel LastChildFill="False">
                            <local:FZMaterial DockPanel.Dock="Top" Height="82" Color="#80000000" Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterTopOnly}">
                                <local:FZTextBlock DockPanel.Dock="Top"
                                                   HorizontalAlignment="Center"
                                                   Text="{local:Loc ForzaEvents.IDS_WeeklyChallenge}"
                                                   CapHeight="28"
                                                   FontFamily="Horizon_A"
                                                   VerticalAlignment="Center"
                                                   Color="{StaticResource A_Color_ForzaEvents_WeeklyChallenge_TitleText}"/>
                            </local:FZMaterial>
                            <Decorator DockPanel.Dock="Top" Height="18"/>
                            <local:FZTextBlock DockPanel.Dock="Top"
                                           HorizontalAlignment="Center"
                                           Text="{Binding Title, Converter={StaticResource A_StringToUpper}}"
                                           CapHeight="28"
                                           FontFamily="Horizon_A"
                                           Color="{StaticResource A_Color_ForzaEvents_WeeklyChallenge_TitleText}"
                                           Margin="10,0"/>
                            <Decorator DockPanel.Dock="Top" Height="12"/>
                            <local:FZTextBlock DockPanel.Dock="Top"
                                           HorizontalAlignment="Center"
                                           local:TextBlockInlineMarkup.Markup="{Binding Reward, Converter={StaticResource A_StringToUpper}}"
                                           local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_ForzaEvents_Challenge_"
                                           Style="{StaticResource A_Style_FZTextBlock_ForzaEvents_WeeklyChallenge_Text}"/>
                            <local:FZMaterial DockPanel.Dock="Bottom" Height="246" Color="{StaticResource A_Color_ForzathonWeeklyDescriptionPanelBacking}" Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterBottomOnly}">
                                <DockPanel Margin="6" LastChildFill="True">
                                    <local:FZMaterial x:Name="ProgressContainer" DockPanel.Dock="Bottom" Height="36" Style="{StaticResource A_Style_FZMaterial_ForzaEvents_ChallengeState}">
                                        <DockPanel Margin="8,0">
                                            <local:FZTextBlock x:Name="StateArea" DockPanel.Dock="Left"
                                                               Text="{local:Loc ForzaEvents.IDS_WeeklyChallenge}"
                                                               Style="{StaticResource A_Style_FZTextBlock_ForzaEvents_WeeklyChallenge_Text}"
                                                               VerticalAlignment="Center"
                                                               HorizontalAlignment="Left"
                                                               FontFamily="Horizon_A"
                                                               CapHeight="16"/>
                                            <Decorator Width="6" DockPanel.Dock="Left"/>
                                            <DockPanel HorizontalAlignment="Right">
                                                <local:FZMaterial x:Name="StateIcon" DockPanel.Dock="Right"
                                                              Visibility="Collapsed"
                                                              Height="36"
                                                              Width="36"
                                                              VerticalAlignment="Center"
                                                              Margin="0,0,-9,0"/>
                                                <local:FZTextBlock x:Name="StateText"
                                                               Text="{Binding State, Converter={StaticResource A_MappingConverter_ForzaEvents_WeeklyChallenge_StateString}}"
                                                               Style="{StaticResource A_Style_FZTextBlock_ForzaEvents_WeeklyChallenge_Text}"
                                                               VerticalAlignment="Center"
                                                               HorizontalAlignment="Left"
                                                               FontFamily="Horizon_A"
                                                               CapHeight="16"/>
                                            </DockPanel>
                                        </DockPanel>
                                    </local:FZMaterial>
                                    <DockPanel HorizontalAlignment="Center" Focusable="False">
                                        <local:ItemsSelector x:Name="DotSelector"
                                                         DockPanel.Dock="Bottom"
                                                         Style="{StaticResource A_Style_ItemsSelector_SelectionDots_Large_Forzathon}"/>
                                        <ContentControl Style="{StaticResource A_Style_ContentControl_ForzathonChallengeSelector}"
                                                        Content="{Binding SelectedItem, ElementName=DotSelector}" 
                                                        Tag="{Binding SelectedIndex, ElementName=DotSelector}"
                                                        DockPanel.Dock="Top"/>
                                    </DockPanel>
                                </DockPanel>
                            </local:FZMaterial>
                        </DockPanel>
                    </Grid>
                    <StackPanel VerticalAlignment="Center" Margin="0,6,0,0">
                        <local:FZTextBlock  x:Name="ChallengeState"
                                       HorizontalAlignment="Center"
                                       local:TextBlockInlineMarkup.Markup="{Binding State, Converter={StaticResource A_MappingConverter_ForzaEvents_WeeklyChallenge_StateTimeString}}"
                                       Style="{StaticResource A_Style_FZTextBlock_TileText}" />
                        <Decorator DockPanel.Dock="Top" Height="8"/>
                        <local:FZTextBlock x:Name="TimeValue"
                                       HorizontalAlignment="Center"
                                       Style="{StaticResource A_Style_FZTextBlock_TileTitle}"
                                       local:TextBlockInlineMarkup.Markup="{Binding Time, Converter={StaticResource A_StringToUpper}}"
                                       local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_ForzaEvents_WeeklyChallenge_"
                                       FontFamily="Horizon_B"
                                       Color="{StaticResource A_Color_Tile_Text}"
                                       CapHeight="18"/>
                    </StackPanel>
                </DockPanel>
            </local:FZMaterial>
            <ContentControl Style="{StaticResource A_Style_ContentControl_TileSelectionStroke}" Focusable="False"/>
            <local:AudioEvent x:Name="FocusAudioEvent" SilenceWhileUIFlowInputDisabled="True"/>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsKeyboardFocusWithin" Value="True">
                <Setter TargetName="FocusAudioEvent" Property="SoundName" Value="/Master/UI/PauseMenu/HZ2_SFX_UI_PauseMenu_Move_01"/>
            </Trigger>
            <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Active}">
                <Setter TargetName="StateArea" Property="Text" Value="{local:Loc ForzaEvents.IDS_WeeklyChapterProgress}"/>
                <Setter TargetName="StateText" Property="Text" Value="{Binding SelectedItem.ProgressString, ElementName=DotSelector}"/>
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Active}"/>
                    <Condition Binding="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource Self}}" Value="{x:Null}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="ChallengeState" Property="Text" Value="{local:Loc ForzaEvents.IDS_Active_Weekly_Current}"/>
                <Setter TargetName="TimeValue" Property="local:TextBlockInlineMarkup.Markup" Value="{local:Loc ForzaEvents.IDS_Active_Weekly}"/>
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding SelectedItem.State, ElementName=DotSelector}" Value="{x:Static local:ForzaEventChallengeState.Expired}"/>
                    <Condition Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Active}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="StateText" Property="Text" Value="{local:Loc ForzaEvents.IDS_Expired}"/>
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding SelectedItem.State, ElementName=DotSelector}" Value="{x:Static local:ForzaEventChallengeState.Complete}"/>
                    <Condition Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Active}"/>
                </MultiDataTrigger.Conditions>
                <Setter TargetName="StateIcon" Property="Visibility" Value="Visible" />
                <Setter TargetName="StateIcon" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Anthem/Icons/Tick.png" />
                <Setter TargetName="StateText" Property="Text" Value="{local:Loc ForzaEvents.IDS_Complete}"/>
                <Setter TargetName="ProgressContainer" Property="Color" Value="{StaticResource A_Color_ForzaEvents_WeeklyChallenge_CompletedBacking}" />
            </MultiDataTrigger>
            <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.Complete}">
                <Setter TargetName="StateIcon" Property="Visibility" Value="Visible" />
                <Setter TargetName="StateIcon" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Anthem/Icons/Tick.png" />
                <Setter TargetName="ProgressContainer" Property="Color" Value="#FFFFFFFF" />
                <Setter TargetName="ProgressContainer" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound\Forza_Events\CompletedBacking.png" />
                <Setter TargetName="StateText" Property="Color" Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_CompletedText}" />
                <Setter TargetName="StateArea" Property="Color" Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_CompletedText}" />
                <Setter TargetName="StateIcon" Property="Color" Value="{StaticResource A_Color_ForzaEvents_DailyChallenge_CompletedText}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding State}" Value="{x:Static local:ForzaEventChallengeState.NotStarted}">
                <Setter TargetName="StateArea" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="StateText" Property="Visibility" Value="Collapsed"/>
                <Setter TargetName="StateIcon" Property="Visibility" Value="Visible" />
                <Setter TargetName="StateIcon" Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Anthem/Icons/Locked_Icon.png" />
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <!-- Shop Tile Resources -->
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_Gradient_ForzaEvents_ShopTileBacking"
        BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
        CornerRadius="{StaticResource A_CornerRadius_Inner_All}"
        GradientColorA="#FF999999"
        GradientColorB="#FFF5F5F5"/>

    <Color x:Key="A_Color_ForzaEvents_ShopTile_CarText">#FFFFFFFF</Color>
    <Color x:Key="A_Color_ForzaEvents_ShopTile_TimeText">#FFFFFFFF</Color>
    <Color x:Key="A_Color_ForzaEvents_ShopTile_PreTimeText">#FFFFFFFF</Color>

    <ControlTemplate x:Key="A_ControlTemplate_ForzaEvents_CarInformation"
                     TargetType="{x:Type Control}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="28"/>
                <RowDefinition Height="8"/>
                <RowDefinition Height="28"/>
                <RowDefinition Height="17"/>
                <RowDefinition Height="36"/>
            </Grid.RowDefinitions>
            <local:FZTextBlock HorizontalAlignment="Right"
                               Text="{Binding CarYearAndManufacturer, Converter={StaticResource A_StringToUpper}}"
                               FontFamily="Horizon_A"
                               CapHeight="27"
                               Color="{StaticResource A_Color_ForzaEvents_ShopTile_CarText}"
                               Effect="{StaticResource A_Effect_HighContrastModeDropShadow}"
                               Grid.Row="0"/>
            <local:FZTextBlock HorizontalAlignment="Right" 
                               Text="{Binding CarModel, Converter={StaticResource A_StringToUpper}}"
                               FontFamily="Horizon_B"
                               CapHeight="27"
                               Color="{StaticResource A_Color_ForzaEvents_ShopTile_CarText}"
                               Effect="{StaticResource A_Effect_HighContrastModeDropShadow}"
                               VerticalAlignment="Center"
                               Grid.Row="2"/>
            <Control Style="{StaticResource A_Style_Control_CarClassBadge_Small_Default}" 
                     local:BindingProxy.A="{Binding PerformanceIndex}" 
                     local:BindingProxy.B="{Binding CarClass}" 
                     Height="36" Width="90" 
                     HorizontalAlignment="Right" 
                     Focusable="False"
                     Grid.Row="4"/>
        </Grid>
    </ControlTemplate>

    <!-- Shop Tile -->
    <ControlTemplate x:Key="A_ControlTemplate_ForzaEvents_ShopTile" TargetType="local:FZButton">
        <ControlTemplate.Resources>
            <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_ForzathonItem_RarityStroke"
                                             CornerRadius="4"
                                             Thickness="6,90,6,6" />

            <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_ForzathonItem_RarityStroke_HorizonEdition"
                                             BasedOn="{StaticResource A_FZMaterialPresetRoundtangleStroke_ForzathonItem_RarityStroke}"
                                             GradientColorA="{StaticResource A_Color_HorizonEditionGradientA}"
                                             GradientColorB="{StaticResource A_Color_HorizonEditionGradientB}"
                                             GradientAngle="45"/>

            <local:MappingConverter x:Key="A_Converter_RarityToPreset" Default="{StaticResource A_FZMaterialPresetRoundtangleStroke_ForzathonItem_RarityStroke}">
                <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.HorizonEdition}" Value="{StaticResource A_FZMaterialPresetRoundtangleStroke_ForzathonItem_RarityStroke_HorizonEdition}" />
            </local:MappingConverter>
        </ControlTemplate.Resources>
        <Grid>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TileShadow}" />
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
                <DockPanel LastChildFill="False">
                    <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_Gradient_ForzaEvents_ShopTileBacking}"  Margin="4" DockPanel.Dock="Top">
                        <Grid>
                            <local:FZMaterial Preset="{Binding Rarity, Converter={StaticResource A_Converter_RarityToPreset}}" Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}" 
                                          Visibility="{Binding EventData.IsShopAvailable, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" Height="331">
                                <Grid Margin="0,0,0,-0.25" >
                                    <Grid>
                                        <Control Margin="13,14,13,9" Template="{StaticResource A_ControlTemplate_ForzaEvents_CarInformation}" Focusable="False" />
                                        <Decorator ClipToBounds="True" Margin="6,0,6,-0.25" >
                                            <local:FZMaterial ImageSource="{Binding CarThumbnail}" Stretch="UniformToFill" Margin="-150,0,0,85" Width="600" Height="337.5"/>
                                        </Decorator>
                                        <Grid Margin="13,14,13,9" 
                                              Visibility="{Binding EventData.EventShop.TimeRemaining, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}, Converter={StaticResource A_StringVisConverter}}">
                                            <Grid Visibility="{DynamicResource A_Visibility_Timer_Dynamic}"
                                              HorizontalAlignment="Right"
                                              VerticalAlignment="Bottom"
                                              Margin="0,0,0,-21">
                                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_ShadowBase}" Margin="-10"/>
                                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}"
                                                              Color="{StaticResource A_Color_ForzaEvents_ShopTile_SubTitle}">
                                                    <StackPanel Margin="18,7">
                                                        <local:FZTextBlock HorizontalAlignment="Center"
                                                               Text="{local:Loc ForzaEvents.IDS_ShopTile_NewItems}"
                                                               FontFamily="Horizon_B"
                                                               CapHeight="16"
                                                               Color="{StaticResource A_Color_ForzaEvents_ShopTile_PreTimeText}"/>
                                                        <Decorator Height="8"/>
                                                        <local:FZTextBlock HorizontalAlignment="Right"
                                                               local:TextBlockInlineMarkup.Markup="{Binding EventData.EventShop.TimeRemaining, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}" 
                                                               local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_ForzaEvents_Challenge_" 
                                                               FontFamily="Horizon_B"
                                                               CapHeight="16"
                                                               Color="{StaticResource A_Color_ForzaEvents_ShopTile_TimeText}"/>
                                                    </StackPanel>
                                                </local:FZMaterial>
                                            </Grid>

                                        </Grid>
                                    </Grid>
                                </Grid>
                            </local:FZMaterial>
                            <local:FZMaterial x:Name="ShopLockBackground" 
                                              ImageSourceNoPreload="/ForzaUI;component/Textures/Anthem/TileBackgrounds/Forzathon_shop_locked.png"
                                              Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}"
                                              Visibility="{Binding EventData.IsShopAvailable, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"
                                              Width="418"
                                              Height="331"/>
                        </Grid>
                    </local:FZMaterial>
                    <local:FZTextBlock DockPanel.Dock="Bottom"
                                       x:Name="ShopTitle"
                                       Text="{local:Loc ForzaEvents.IDS_ShopTile_Title}" 
                                       HorizontalAlignment="Center"
                                       VerticalAlignment="Bottom"
                                       Margin="0,0,0,33"
                                       Style="{StaticResource A_Style_FZTextBlock_TileTitle}" 
                                       Color="{StaticResource A_Color_ForzaEvents_ShopTile_Title}"/>
                    <Decorator DockPanel.Dock="Bottom"
                               Height="86"
                               VerticalAlignment="Bottom"
                               Margin="6,0,0,0">
                        <ContentControl x:Name="FloatingIcon" Content="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/FloatingIcons/ForzaEventsShop.png" 
                                        Style="{StaticResource A_Style_ContentControl_FloatingIcon_Tile}" Focusable="False" VerticalAlignment="Top"/>
                    </Decorator>
                </DockPanel>
            </local:FZMaterial>
            <ContentControl Style="{StaticResource A_Style_ContentControl_TileSelectionStroke}"  Focusable="False"/>
            <local:AudioEvent x:Name="FocusAudioEvent" SilenceWhileUIFlowInputDisabled="True"/>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsKeyboardFocusWithin" Value="True">
                <Setter TargetName="FocusAudioEvent" Property="SoundName" Value="/Master/UI/PauseMenu/HZ2_SFX_UI_PauseMenu_Move_01"/>
            </Trigger>
            <DataTrigger Binding="{Binding IsKeyboardFocused, RelativeSource={RelativeSource TemplatedParent}}" Value="True">
                <Setter Property="local:BindingProxy.A" TargetName="FloatingIcon">
                    <Setter.Value>
                        <System:Boolean>True</System:Boolean>
                    </Setter.Value>
                </Setter>
            </DataTrigger>
            <DataTrigger Binding="{Binding EventData.IsShopAvailable, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}" Value="False">
                <Setter Property="local:BindingProxy.B" TargetName="FloatingIcon" Value="{x:Static local:LockState.Locked}"/>
                <Setter Property="Color" TargetName="ShopTitle" Value="{StaticResource A_Color_Tile_Title_Locked}"/>
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <ControlTemplate x:Key="A_ControlTemplate_ForzaEvents_ShopTileLoading" TargetType="local:FZButton">
        <Grid>
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TileShadow}" />
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
                <ProgressBar Style="{StaticResource A_Style_ProgressBar_WaitSpinnerDark}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            </local:FZMaterial>
            <ContentControl Style="{StaticResource A_Style_ContentControl_TileSelectionStroke}"  Focusable="False"/>
            <local:AudioEvent x:Name="FocusAudioEvent"  SilenceWhileUIFlowInputDisabled="True"/>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsKeyboardFocusWithin" Value="True">
                <Setter TargetName="FocusAudioEvent" Property="SoundName" Value="/Master/UI/PauseMenu/HZ2_SFX_UI_PauseMenu_Move_01"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style x:Key="A_Style_FZButton_ForzaEvents_ShopTile_Overview" BasedOn="{StaticResource A_Style_Button_ForzaEvents}" TargetType="{x:Type local:FZButton}">
        <Setter Property="Template" Value="{StaticResource A_ControlTemplate_ForzaEvents_ShopTileLoading}"/>
        <Style.Resources>
            <Visibility x:Key="A_Visibility_Timer_Dynamic">Visible</Visibility>
        </Style.Resources>
        <Style.Triggers>
            <DataTrigger Binding="{Binding EventData.EventShop.IsLoading, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}" Value="False">
                <Setter Property="Template" Value="{StaticResource A_ControlTemplate_ForzaEvents_ShopTile}"/>
                <Setter Property="Command" Value="{Binding EventShopTransition, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}"/>
            </DataTrigger>
            <!--Control has lock state-->
            <DataTrigger Binding="{Binding EventData.IsShopAvailable, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}" Value="False">
                <Setter Property="Template" Value="{StaticResource A_ControlTemplate_ForzaEvents_ShopTile}"/>
                <Setter Property="Command" Value="{Binding EventShopTransition, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <!-- FP Total Block Resources -->
    <Color x:Key="A_Color_ForzaEvents_ForzaEventPointBlock_Text">#FFFFFFFF</Color>

    <Style x:Key="A_Style_FZTextBlock_ForzaEventPointBlock_Text" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_A"/>
        <Setter Property="CapHeight" Value="26"/>
        <Setter Property="Color" Value="{StaticResource A_Color_ForzaEvents_ForzaEventPointBlock_Text}"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_ForzaEventPointBlock_Text_PointUnit" BasedOn="{StaticResource A_Style_FZTextBlock_ForzaEventPointBlock_Text}"  TargetType="local:FZTextBlock">
        <Setter Property="RenderTransform">
            <Setter.Value>
                <SkewTransform AngleX="-12"/>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- FP Total Block -->
    <ControlTemplate x:Key="A_ControlTemplate_ForzaEvents_ForzaEventPointTotal" TargetType="Control">
        <local:FZMaterial x:Name="TotalPoints" Style="{StaticResource A_Style_FZMaterial_FlatPanel_HeaderPill}">
            <DockPanel LastChildFill="True" Margin="20">
                <StackPanel Orientation="Horizontal"  HorizontalAlignment="Right" VerticalAlignment="Center" DockPanel.Dock="Right">
                    <local:FZTextBlock Text="{Binding CurrentPoints}" MaxWidth="175" VerticalAlignment="Center"
                                       Style="{StaticResource A_Style_FZTextBlock_ForzaEventPointBlock_Text}"/>
                    <Decorator Width="18"/>
                    <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/Forza_Events/FPIcon/ForzaEventPoints_Large_Shadow.png" Width="66" Height="66" Margin="-20"/>
                </StackPanel>
                <Decorator Width="8" DockPanel.Dock="Right"/>
                <local:FZTextBlock Text="{local:Loc ForzaEvents.IDS_PointsTotalLabel}" 
                                   HorizontalAlignment="Left" 
                                   VerticalAlignment="Center"
                                   Style="{StaticResource A_Style_FZTextBlock_ForzaEventPointBlock_Text}"
                                   MaxWidth="315"/>
            </DockPanel>
        </local:FZMaterial>
    </ControlTemplate>

    <Style x:Key="A_ControllerButtonControl_RS_ForzaEvents_Controller" TargetType="local:ControllerButtonControl" BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}">
        <Setter Property="Button" Value="RThumb_LeftRight"/>
        <Setter Property="Description" Value="{Binding (FocusManager.FocusedElement).(local:ControllerButtonPanel.RThumbLeftRightDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsControllerActiveInput, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" Value="0">
                <Setter Property="Visibility" Value="Collapsed"/>
            </DataTrigger>
            <Trigger Property="Description" Value="">
                <Setter Property="Visibility" Value="Collapsed"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_ControllerButtonControl_RS_ForzaEvents_Keyboard" TargetType="local:ControllerButtonControl" BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}">
        <Setter Property="InputOverride" Value="{local:Input Command=INPUTCMD_UI_RIGHT_STICK_RIGHT, Context=INPUTCONTEXT_UI}" />
        <Setter Property="Description" Value="{Binding (FocusManager.FocusedElement).(local:ControllerButtonPanel.RThumbLeftRightDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsControllerActiveInput, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}" Value="0">
                <Setter Property="Visibility" Value="Collapsed"/>
            </DataTrigger>
            <Trigger Property="Description" Value="">
                <Setter Property="Visibility" Value="Collapsed"/>
            </Trigger>
        </Style.Triggers>
    </Style>
</ResourceDictionary>
