<UserControl
    DataContext="{Binding (HUDData.Data), RelativeSource={RelativeSource Self}}" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:local="clr-namespace:ForzaUI"
    mc:Ignorable="d"
    x:Class="ForzaUI.HUDRewardRevealsControl"
    Margin="0,0,0,0"
    VerticalAlignment="Center"
    HorizontalAlignment="Right"
    x:Name="UserControl">
    <UserControl.Resources>
        <ResourceDictionary>

            <TimeSpan x:Key="PART_A_TimeSpan_ProgressBar_NoLevelUp">0:0:1.0</TimeSpan>
            <TimeSpan x:Key="PART_A_TimeSpan_ProgressBar_StartLevelUp">0:0:1.0</TimeSpan>
            <TimeSpan x:Key="PART_A_TimeSpan_ProgressBar_MidLevelUp">0:0:0.75</TimeSpan>
            <TimeSpan x:Key="PART_A_TimeSpan_ProgressBar_EndLevelUp">0:0:1.0</TimeSpan>
            <TimeSpan x:Key="PART_A_TimeSpan_ProgressBar_Blocked">0:0:1.0</TimeSpan>

            <QuadraticEase x:Key="PART_A_EasingFunction_ProgressBar_NoLevelUp" EasingMode="EaseInOut"/>
            <QuadraticEase x:Key="PART_A_EasingFunction_ProgressBar_FirstUp" EasingMode="EaseIn"/>
            <!--<LinearEase x:Key="PART_A_EasingFunction_ProgressBar_MidLevelUp"/>-->
            <QuadraticEase x:Key="PART_A_EasingFunction_ProgressBar_EndLevelUp" EasingMode="EaseOut"/>
            <!--<LinearEase x:Key="PART_A_EasingFunction_ProgressBar_Blocked"/>-->

            <TimeSpan x:Key="PART_A_TimeSpan_TotalTicker">0:0:1.0</TimeSpan>
            <QuadraticEase x:Key="PART_A_EasingFunction_TotalTicker" EasingMode="EaseOut"/>

            <Double x:Key="A_Double_RewardReveals_Width">416</Double>

            <SkewTransform x:Key="A_Transform_SheenItalicise" AngleX="15"/>

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

            <Color x:Key="A_Color_ProgressBar_Background">#FF4D4D4D</Color>

            <KeyTime x:Key="A_KeyTime_Show_Header_Start">0:0:0.0</KeyTime>
            <TimeSpan x:Key="A_TimeSpan_Show_Header_Duration">0:0:0.15</TimeSpan>
            <OffsetKeyTime x:Key="A_KeyTime_Show_Header_End"
                           KeyTime="{StaticResource A_KeyTime_Show_Header_Start}"
                           Offset="{StaticResource A_TimeSpan_Show_Header_Duration}"/>

            <KeyTime x:Key="A_KeyTime_Winnings_Hide_Start">0:0:0.0</KeyTime>
            <TimeSpan x:Key="A_TimeSpan_Winnings_Hide_Duration">0:0:0.1</TimeSpan>
            <OffsetKeyTime x:Key="A_KeyTime_Winnings_Hide_End"
                           KeyTime="{StaticResource A_KeyTime_Winnings_Hide_Start}"
                           Offset="{StaticResource A_TimeSpan_Winnings_Hide_Duration}"/>

            <KeyTime x:Key="A_KeyTime_Big_Badge_Show_Start">0:0:0.0</KeyTime>
            <TimeSpan x:Key="A_TimeSpan_Big_Badge_Show_Duration">0:0:0.2</TimeSpan>
            <OffsetKeyTime x:Key="A_KeyTime_Big_Badge_Show_End"
                           KeyTime="{StaticResource A_KeyTime_Winnings_Hide_Start}"
                           Offset="{StaticResource A_TimeSpan_Winnings_Hide_Duration}"/>

            <TimeSpan x:Key="A_TimeSpan_Big_Badge_Sheen_Duration">0:0:0.2</TimeSpan>
            <OffsetKeyTime x:Key="A_KeyTime_Big_Badge_Sheen_End"
               KeyTime="{StaticResource A_KeyTime_Big_Badge_Show_End}"
               Offset="{StaticResource A_TimeSpan_Big_Badge_Sheen_Duration}"/>

            <KeyTime x:Key="A_KeyTime_Small_Badge_Sheen_Start">0:0:0.0</KeyTime>
            <TimeSpan x:Key="A_TimeSpan_Small_Badge_Sheen_Duration">0:0:0.2</TimeSpan>
            <OffsetKeyTime x:Key="A_KeyTime_Small_Badge_Sheen_End"
                           KeyTime="{StaticResource A_KeyTime_Small_Badge_Sheen_Start}"
                           Offset="{StaticResource A_TimeSpan_Small_Badge_Sheen_Duration}"/>
            <KeyTime x:Key="A_KeyTime_Small_Badge_Sheen_Update">0:0:0.2</KeyTime>
            <KeyTime x:Key="A_KeyTime_Small_Badge_Update">0:0:0.2</KeyTime>

            <Double x:Key="SheenMotionStart">-0.075</Double>
            <Double x:Key="SheenMotionStop">1.075</Double>
            <Double x:Key="SheenRadius">0.25</Double>

            <UIStoryboard x:Key="A_Storyboard_Show_Header_And_Body">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Show_Header_End}" EventName="PART_Reward_Reveal_Shown"/>
                    <StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="UI_HUD_RewardsNewHeader"/>
                </UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Header">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Show_Header_Start}" Value="0"/>
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Show_Header_End}" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Body">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Show_Header_Start}" Value="0"/>
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Show_Header_End}" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>

            <!--
                If you change these resources, you need to *manually* update their BeginTime usages, which can't use the resource because Nullable<TimeSpan> is (somehow!) incompatible

                BeginTime={StaticResource A_TimeSpan_Hide_Header_Delay}
            -->
            <TimeSpan x:Key="A_TimeSpan_Hide_Header_Delay">0:0:1.0</TimeSpan>

            <OffsetKeyTime x:Key="A_KeyTime_Hide_Header_Start"
                           KeyTime="0:0:0.0"
                           Offset="{StaticResource A_TimeSpan_Hide_Header_Delay}"/>
            <Duration x:Key="A_Duration_Hide_Header">0:0:0.15</TimeSpan>
            <TimeSpan x:Key="A_TimeSpan_Hide_Header">0:0:0.15</TimeSpan>
            <OffsetKeyTime x:Key="A_KeyTime_Hide_Header_End"
                           KeyTime="{StaticResource A_KeyTime_Hide_Header_Start}"
                           Offset="{StaticResource A_TimeSpan_Hide_Header}"/>

            <UIStoryboard x:Key="A_Storyboard_Hide_Header_And_All_Body_Elements">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" EventName="PART_Input_Disabled" />
                    <RaiseFzEvent TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" EventName="PART_Reward_Reveal_Hidden"/>
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:2.0" EventName="dummy_event"/>
                </UIStoryboard.TriggerAnimation>
                <!-- BeginTime={StaticResource A_TimeSpan_Hide_Header_Delay} -->
                <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Header" FillBehavior="Stop" BeginTime="0:0:1.0" To="0" Duration="{StaticResource A_Duration_Hide_Header}"/>
                <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Body" FillBehavior="Stop" BeginTime="0:0:1.0" To="0" Duration="{StaticResource A_Duration_Hide_Header}"/>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Winnings" FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" Value="0"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Big_Badge" FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" Value="0"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Reward" FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" Value="0"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Hide_Header_And_Body_Winnings_Only">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" EventName="PART_Input_Disabled" />
                    <RaiseFzEvent TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" EventName="PART_Reward_Reveal_Hidden"/>
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:2.0" EventName="dummy_event"/>
                </UIStoryboard.TriggerAnimation>
                <!-- BeginTime={StaticResource A_TimeSpan_Hide_Header_Delay} -->
                <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Header" FillBehavior="Stop" BeginTime="0:0:1.0" To="0" Duration="{StaticResource A_Duration_Hide_Header}"/>
                <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Body" FillBehavior="Stop" BeginTime="0:0:1.0" To="0" Duration="{StaticResource A_Duration_Hide_Header}"/>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Winnings" FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" Value="0"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Hide_Header_And_Body_Only">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" EventName="PART_Input_Disabled" />
                    <RaiseFzEvent TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" EventName="PART_Reward_Reveal_Hidden"/>
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:2.0" EventName="dummy_event"/>
                </UIStoryboard.TriggerAnimation>
                <!-- BeginTime={StaticResource A_TimeSpan_Hide_Header_Delay} -->
                <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Header" FillBehavior="Stop" BeginTime="0:0:1.0" To="0" Duration="{StaticResource A_Duration_Hide_Header}"/>
                <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Body" FillBehavior="Stop" BeginTime="0:0:1.0" To="0" Duration="{StaticResource A_Duration_Hide_Header}"/>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Show_Winnings">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:0.0" EventName="PART_Winnings_Shown"/>
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:2.0" EventName="dummy_event"/>
                </UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Winnings">
                    <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Hide_Winnings">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" EventName="PART_Winnings_Hidden"/>
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:2.0" EventName="dummy_event"/>
                </UIStoryboard.TriggerAnimation>
                <!-- BeginTime={StaticResource A_TimeSpan_Hide_Header_Delay} -->
                <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Winnings" FillBehavior="Stop" BeginTime="0:0:1.0" To="0" Duration="{StaticResource A_Duration_Hide_Header}"/>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Show_Big_Badge_And_Sheen">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent EventName="PART_Input_Enabled" TriggerAnimation.KeyTime="0:0:0.0"/>
                    <RaiseFzEvent EventName="PART_BigBadge_Shown" TriggerAnimation.KeyTime="0:0:2.5"/>
                    <RaiseFzEvent EventName="Shine" Storyboard.TargetName="Big_Badge_Inner_Shine" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Show_Header_End}"/>
                    <RaiseFzEvent EventName="Execute_Big_Badge_Sheen" Storyboard.TargetName="Big_Badge_Inner" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Show_Header_End}"/>
                    <StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="UI_HUD_RewardsPanelLevelUp"/>
                </UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Big_Badge">
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Show_Header_Start}" Value="0"/>
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Show_Header_End}" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Show_Big_Badge">
                <UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="UI_HUD_RewardsPanelClaimNow"/>
                    <RaiseFzEvent EventName="PART_Input_Enabled" TriggerAnimation.KeyTime="0:0:0.0"/>
                    <RaiseFzEvent EventName="PART_BigBadge_Shown" TriggerAnimation.KeyTime="0:0:2.0"/>
                    <RaiseFzEvent EventName="dummy_event" TriggerAnimation.KeyTime="0:0:3.0"/>
                </UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Big_Badge">
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Show_Header_Start}" Value="0"/>
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Show_Header_End}" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Hide_Big_Badge">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent EventName="PART_Input_Disabled" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Hide_Header_End}"/>
                    <RaiseFzEvent TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Hide_Header_End}" EventName="PART_BigBadge_Hidden"/>
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:2.0" EventName="dummy_event"/>
                </UIStoryboard.TriggerAnimation>
                <!-- BeginTime={StaticResource A_TimeSpan_Hide_Header_Delay} -->
                <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Big_Badge" FillBehavior="Stop" BeginTime="0:0:1.0" To="0" Duration="{StaticResource A_Duration_Hide_Header}"/>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Show_Reward">
                <UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="UI_HUD_RewardsPanelClaimNow"/>
                    <RaiseFzEvent EventName="PART_Input_Enabled" TriggerAnimation.KeyTime="0:0:0.0"/>
                    <RaiseFzEvent EventName="PART_Rewards_Shown" TriggerAnimation.KeyTime="0:0:2.0"/>
                    <RaiseFzEvent EventName="dummy_event" TriggerAnimation.KeyTime="0:0:3.0"/>
                </UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Reward">
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Show_Header_Start}" Value="0"/>
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Show_Header_End}" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Hide_Reward">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent EventName="PART_Input_Disabled" TriggerAnimation.KeyTime="0:0:0.15"/>
                    <RaiseFzEvent EventName="PART_Rewards_Hidden" TriggerAnimation.KeyTime="0:0:0.15"/>
                </UIStoryboard.TriggerAnimation>
                <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Reward" FillBehavior="Stop" To="0" Duration="0:0:0.15"/>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Update_Small_Badge_Start" DurationOverride="0:0:1.0">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:0.0" EventName="PART_Update_Small_Badge_Amount" />
                    <local:RaiseFzEvent EventName="dummy_event" TriggerAnimation.KeyTime="0:0:2.0"/>
                </UIStoryboard.TriggerAnimation>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_RankUpProgressBarBlocked">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:0.0" EventName="Execute_ProgressBar_Blocked" Storyboard.TargetName="ProgressBar" />
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:0.1" EventName="PART_Update_ProgressBar_Blocked" />
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:3.0" EventName="PART_Update_Small_Badge_Amount" />
                    <local:RaiseFzEvent EventName="dummy_event" TriggerAnimation.KeyTime="0:0:4.0"/>
                </UIStoryboard.TriggerAnimation>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_RankUpProgressBarAndSmallBadge">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent EventName="PART_Update_Small_Badge_Amount" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Small_Badge_Update}"/>
                    <RaiseFzEvent EventName="PART_Update_Small_Badge_End" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Small_Badge_Sheen_End}" />
                    <RaiseFzEvent EventName="dummy_event" TriggerAnimation.KeyTime="0:0:2.0" />
                    <RaiseFzEvent TriggerAnimation.KeyTime="0:0:0.0" EventName="Shine" Storyboard.TargetName="Small_Badge_Shine" />
                    <StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="UI_HUD_RewardsBarLevelUp"/>
                </UIStoryboard.TriggerAnimation>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Sheen_Big_Badge">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Big_Badge_Sheen_End}" EventName="PART_Big_Badge_Reveal_End"/>
                </UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Offset"
                                               Storyboard.TargetName="Big_Badge_Sheen_Center">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Big_Badge_Show_End}" 
                                            Value="{StaticResource SheenMotionStart}"/>
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Big_Badge_Sheen_End}" 
                                          Value="{StaticResource SheenMotionStop}"
                                          EasingFunction="{QuadraticEasing EasingMode=EaseIn}" />
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Sheen_Small_Badge">
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent EventName="PART_Update_Small_Badge_Amount" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Small_Badge_Update}"/>
                    <local:RaiseFzEvent EventName="PART_Update_Small_Badge_End" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Small_Badge_Sheen_End}" />
                    <local:RaiseFzEvent EventName="dummy_event" TriggerAnimation.KeyTime="0:0:2.0" />
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Offset"
                                           Storyboard.TargetName="Small_Badge_Sheen_Center">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Small_Badge_Sheen_Start}" Value="{StaticResource SheenMotionStart}"/>
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Small_Badge_Sheen_End}" 
                                      Value="{StaticResource SheenMotionStop}"
                                      EasingFunction="{QuadraticEasing EasingMode=EaseIn}" />
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>

            <KeyTime x:Key="A_KeyTime_Winnings_Show_Start">0:0:0.0</KeyTime>
            <TimeSpan x:Key="A_TimeSpan_Winnings_Show_Duration">0:0:0.25</TimeSpan>
            <OffsetKeyTime x:Key="A_KeyTime_Winnings_Show_End"
                           KeyTime="{StaticResource A_KeyTime_Winnings_Show_Start}"
                           Offset="{StaticResource A_TimeSpan_Winnings_Show_Duration}"/>
            <TimeSpan x:Key="A_TimeSpan_Winnings_NextEntry_Delay_Short">0:0:0.25</TimeSpan>
            <TimeSpan x:Key="A_TimeSpan_Winnings_NextEntry_Delay_Long">0:0:0.5</TimeSpan>
            <OffsetKeyTime x:Key="A_KeyTime_Winnings_NextEntry_Short"
                           KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}"
                           Offset="{StaticResource A_TimeSpan_Winnings_NextEntry_Delay_Short}"/>
            <OffsetKeyTime x:Key="A_KeyTime_Winnings_NextEntry_Long"
                           KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}"
                           Offset="{StaticResource A_TimeSpan_Winnings_NextEntry_Delay_Long}"/>

            <TimeSpan x:Key="A_TimeSpan_Winnings_NextPage_Delay_Short">0:0:0.5</TimeSpan>
            <TimeSpan x:Key="A_TimeSpan_Winnings_NextPage_Delay_Long">0:0:1.0</TimeSpan>
            <OffsetKeyTime x:Key="A_KeyTime_Winnings_NextPage_Short"
                           KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}"
                           Offset="{StaticResource A_TimeSpan_Winnings_NextPage_Delay_Short}"/>
            <OffsetKeyTime x:Key="A_KeyTime_Winnings_NextPage_Long"
                           KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}"
                           Offset="{StaticResource A_TimeSpan_Winnings_NextPage_Delay_Long}"/>

            <UIStoryboard x:Key="A_Storyboard_ShowWinningsEntry_Short">
                <local:UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="UI_HUD_RewardsItemSlide"/>
                    <local:RaiseFzEvent EventName="PART_Reveal_Next_Winning_Entry" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Winnings_NextEntry_Short}"/>
                    <local:RaiseFzEvent EventName="PART_Reveal_Next_Winning_Page" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Winnings_NextPage_Short}"/>
                    <local:RaiseFzEvent EventName="dummy_event" TriggerAnimation.KeyTime="0:0:2.0"/>
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                    FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_Start}" Value="464"/>
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}" Value="0" EasingFunction="{QuadraticEasing EasingMode=EaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                    FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_Start}" Value="0"/>
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Effect"
                    FillBehavior="Stop">
                    <DiscreteObjectKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_Start}">
                        <DiscreteObjectKeyFrame.Value>
                            <MotionBlurEffect />
                        </DiscreteObjectKeyFrame.Value>
                    </DiscreteObjectKeyFrame>
                    <DiscreteObjectKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}" Value="{x:Null}"/>
                </ObjectAnimationUsingKeyFrames>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_ShowWinningsEntry_Long">
                <local:UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="UI_HUD_RewardsItemSlide"/>
                    <local:RaiseFzEvent EventName="PART_Reveal_Next_Winning_Entry" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Winnings_NextEntry_Long}"/>
                    <local:RaiseFzEvent EventName="PART_Reveal_Next_Winning_Page" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Winnings_NextPage_Long}"/>
                    <local:RaiseFzEvent EventName="dummy_event" TriggerAnimation.KeyTime="0:0:2.0"/>
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                    FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_Start}" Value="464"/>
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}" Value="0" EasingFunction="{QuadraticEasing EasingMode=EaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                    FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_Start}" Value="0"/>
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Effect"
                    FillBehavior="Stop">
                    <DiscreteObjectKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_Start}">
                        <DiscreteObjectKeyFrame.Value>
                            <MotionBlurEffect />
                        </DiscreteObjectKeyFrame.Value>
                    </DiscreteObjectKeyFrame>
                    <DiscreteObjectKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}" Value="{x:Null}"/>
                </ObjectAnimationUsingKeyFrames>
            </UIStoryboard>

            <Storyboard x:Key="A_Storyboard_WinningsScroll" >
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:BlendValue.Blend)"
                                               Storyboard.TargetName="{x:Null}"
                                               FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_Start}"
                                            Value="0" />
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}"
                                          Value="1"
                                          EasingFunction="{local:QuarticEasing EasingMode=EaseOut}" />
                </DoubleAnimationUsingKeyFrames>
                <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Effect"
                    FillBehavior="Stop">
                    <DiscreteObjectKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_Start}">
                        <DiscreteObjectKeyFrame.Value>
                            <MotionBlurEffect />
                        </DiscreteObjectKeyFrame.Value>
                    </DiscreteObjectKeyFrame>
                    <DiscreteObjectKeyFrame KeyTime="{StaticResource A_KeyTime_Winnings_Show_End}" Value="{x:Null}"/>
                </ObjectAnimationUsingKeyFrames>-->
            </Storyboard>

            <Style x:Key="H_Style_SheenItalicise" 
                   TargetType="{Type FrameworkElement}">
                <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
                <Setter Property="RenderTransform" Value="{StaticResource A_Transform_SheenItalicise}"/>
            </Style>

            <MappingConverter x:Key="A_Currency_Type_To_Color" Default="{StaticResource H_Color_Primary_White}">
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.XP}" Value="{StaticResource H_Color_Primary_Pink}"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.HorizonOpenXP}" Value="{StaticResource A_Color_HorizonOpen}"/>
            </MappingConverter>

            <MappingConverter x:Key="A_Reward_Type_To_Title">
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.XP}" Value="{local:Loc InGame.IDS_PostRace_XPRewardsTitle}"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.Credits}" Value="{local:Loc InGame.IDS_PostRace_CreditsTitle}"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.Discoveries}" Value="{local:Loc InGame.IDS_PostRace_DiscoveriesTitle}"/>
            </MappingConverter>

            <MappingConverter x:Key="A_Reward_Type_To_Margin" Default="13,0">
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.Discoveries}" Value="59,0,13,0"/>
            </MappingConverter>

            <MappingConverter x:Key="A_Reward_Type_To_Header_Text_Color" Default="Black">
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.Discoveries}" Value="White"/>
            </MappingConverter>

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

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

            <MappingConverter x:Key="A_Reward_Type_To_HeaderBackgroundImagePath">
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.HorizonOpenXP}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Horizon_Play_Topper.png"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.FestivalCampaign}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Festival_Topper.png"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.DiscoveryCampaign}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Discover_Japan_Topper.png"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.Discoveries}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Discovery_Topper.png"/>
            </MappingConverter>

            <Style x:Key="A_Style_AmountTextMarkup_NUM"
            TargetType="local:FZRun">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
            </Style>

            <MappingConverter x:Key="A_MappingConverter_AmountTextMarkup" >
                <MappingConverterEntry Key="{NoCase NUM}" Value="{StaticResource A_Style_AmountTextMarkup_NUM}" />
            </MappingConverter>

            <Style x:Key="A_Style_FZMaterial_WinningsAmountContainer" TargetType="{x:Type FZMaterial}">
                <Setter Property="Preset" Value="{Roundtangle CornerRadius={CornerRadius TopLeft=16, BottomLeft=16}}"/>
                <Setter Property="Color" Value="{StaticResource H_Color_Glass_Purple_40pc}"/>
                <Setter Property="Width" Value="124"/>
                <Setter Property="Height" Value="34"/>
                <Setter Property="HorizontalAlignment" Value="Right"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Visibility" Value="{Binding Amount, Converter={StaticResource H_VisibleIfGreaterThanZero}}"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_WinningsAmountText" TargetType="{x:Type FZTextBlock}">
                <Setter Property="Text" Value="{Binding Amount, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"/>
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                <Setter Property="CapHeight" Value="16"/>
                <Setter Property="FontFamily" Value="Horizon_A_tf"/>
                <Setter Property="Margin" Value="8,0"/>
                <Setter Property="HorizontalAlignment" Value="Right"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Effect" Value="{StaticResource A_DropShadowEffect_DefaultHud}"/>
                <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_AmountTextMarkup}"/>
            </Style>

            <ControlTemplate x:Key="A_Control_Template_CreditWinningsAmount" TargetType="{x:Type Control}">
                <DockPanel Visibility="{Binding Amount, Converter={StaticResource H_VisibleIfGreaterThanZero}}">
                    <Control Style="{StaticResource H_Style_Control_CreditsIcon}" Margin="4" DockPanel.Dock="Left"/>
                    <Decorator Style="{StaticResource H_Style_PostRaceItalicise}">
                        <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_WinningsAmountText}"/>
                    </Decorator>
                </DockPanel>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_FestivalCampaignWinningsAmount" TargetType="{x:Type Control}">
                <DockPanel Visibility="{Binding Amount, Converter={StaticResource H_VisibleIfGreaterThanZero}}">
                    <Control Style="{StaticResource H_Style_Control_FPIcon}" Margin="4" DockPanel.Dock="Right"/>
                    <Decorator Style="{StaticResource H_Style_PostRaceItalicise}">
                        <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_WinningsAmountText}"/>
                    </Decorator>
                </DockPanel>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_DiscoveryCampaignWinningsAmount" TargetType="{x:Type Control}">
                <DockPanel Visibility="{Binding Amount, Converter={StaticResource H_VisibleIfGreaterThanZero}}">
                    <Control Style="{StaticResource H_Style_Control_DJIcon}" Margin="4" DockPanel.Dock="Right"/>
                    <Decorator Style="{StaticResource H_Style_PostRaceItalicise}">
                        <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_WinningsAmountText}"/>
                    </Decorator>
                </DockPanel>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_TextOnlyWinningsAmount" TargetType="{x:Type Control}">
                <Decorator Style="{StaticResource H_Style_PostRaceItalicise}"
                           Visibility="{Binding Amount, Converter={StaticResource H_VisibleIfGreaterThanZero}}">
                    <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_WinningsAmountText}"
                                 Color="{Binding Tag, Converter={StaticResource A_Currency_Type_To_Color}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ItemsControl}}}"
                                 Text="{Binding Amount, Converter={StaticResource A_NumUnitConverter_ShowUnit_0dp_InsertMarkup}, ConverterParameter=experiencepoints}"/>
                </Decorator>
            </ControlTemplate>

            <local:MappingConverter x:Key="A_Reward_Type_To_Race_Winnings_Entry_Amount_Template" Default="{StaticResource A_Control_Template_TextOnlyWinningsAmount}">
                <local:MappingConverterEntry Key="{x:Static HUDRewardRevealType.Credits}" Value="{StaticResource A_Control_Template_CreditWinningsAmount}" />
                <local:MappingConverterEntry Key="{x:Static HUDRewardRevealType.FestivalCampaign}" Value="{StaticResource A_Control_Template_FestivalCampaignWinningsAmount}" />
                <local:MappingConverterEntry Key="{x:Static HUDRewardRevealType.DiscoveryCampaign}" Value="{StaticResource A_Control_Template_DiscoveryCampaignWinningsAmount}" />
            </local:MappingConverter>

            <MappingConverter x:Key="A_ProgressBarFillColorRewardTypeUsesId" Default="{StaticResource A_Boolean_False}">
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.FestivalCampaign}" Value="{StaticResource A_Boolean_True}"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.DiscoveryCampaign}" Value="{StaticResource A_Boolean_True}"/>
            </MappingConverter>

            <Style x:Key="A_Style_FZMaterial_ProgressBarFill" TargetType="{x:Type FZMaterial}">
                <Setter Property="Preset" Value="{Roundtangle CornerRadius=7}"/>
                <Setter Property="Height" Value="14"/>
                <Setter Property="Color" Value="{Binding Tag, Converter={StaticResource A_Currency_Type_To_Color}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding Tag, Converter={StaticResource A_ProgressBarFillColorRewardTypeUsesId}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" Value="{StaticResource A_Boolean_True}">
                        <Setter Property="Preset">
                            <Setter.Value>
                                <FZMaterialPresetRoundtangle CornerRadius="7"
                                    GradientAngle="90"
                                    GradientColorA="{Binding CurrentProgression.Id, Converter={StaticResource H_MilestoneIdToColourA}}" 
                                    GradientColorB="{Binding CurrentProgression.Id, Converter={StaticResource H_MilestoneIdToColourB}}"/>
                            </Setter.Value>
                        </Setter>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_ProgressBar_Winnings" TargetType="{x:Type ProgressBar}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type ProgressBar}">
                            <DockPanel x:Name="PART_Track">
                                <Grid x:Name="PART_Indicator" HorizontalAlignment="Left" ClipToBounds="True">
                                    <FZMaterial Style="{StaticResource A_Style_FZMaterial_ProgressBarFill}"
                                       Width="{Binding ActualWidth, ElementName=PART_Track}" />
                                </Grid>
                            </DockPanel>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Body" TargetType="{x:Type FZMaterial}">
                <Setter Property="Color" Value="{StaticResource H_Color_Glass_Purple_40pc}"  />
                <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlass_High}"  />
                <Setter Property="Width" Value="{StaticResource A_Double_RewardReveals_Width}"/>
            </Style>

            <Double x:Key="A_Double_WinningsPerSlotHeight">34</Double>
            <Double x:Key="A_Double_WinningsPerSlotHeightWithMargin">38</Double>

            <MappingConverter x:Key="A_RequiredSlotsToWinningsHeight" Default="{StaticResource A_Double_WinningsPerSlotHeight}">
                <MappingConverterEntry Key="2" Value="72"/>
            </MappingConverter>

            <Style x:Key="A_Style_FZMaterial_Winnings" TargetType="{x:Type FZMaterial}" BasedOn="{StaticResource A_Style_FZMaterial_Body}">
                <Setter Property="Opacity" Value="0"/>
                <Setter Property="Height" Value="{Binding RequiredSlots, Converter={StaticResource A_RequiredSlotsToWinningsHeight}, FallbackValue={StaticResource A_Double_WinningsPerSlotHeight}}"/>
                <Setter Property="Margin" Value="0,0,0,4"/>
                <Setter Property="RenderTransform">
                    <Setter.Value>
                        <TranslateTransform X="0" Y="0"/>
                    </Setter.Value>
                </Setter>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsComplete}" Value="True">
                        <Setter Property="Opacity" Value="1"/>
                    </DataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsRevealed}" Value="True"/>
                            <Condition Binding="{Binding IsComplete}" Value="False"/>
                            <Condition Binding="{Binding RequiredSlots, Converter={CompareConverter}, ConverterParameter=2}" Value="{Static CompareResult.LessThan}"/>
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <BeginUIStoryboard x:Name="ShowWinningsShort"
                                Storyboard="{StaticResource A_Storyboard_ShowWinningsEntry_Short}"/>
                        </MultiDataTrigger.EnterActions>
                        <MultiDataTrigger.ExitActions>
                            <StopStoryboard BeginStoryboardName="ShowWinningsShort"/>
                        </MultiDataTrigger.ExitActions>
                        <Setter Property="Opacity" Value="1"/>
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsRevealed}" Value="True"/>
                            <Condition Binding="{Binding IsComplete}" Value="False"/>
                            <Condition Binding="{Binding RequiredSlots, Converter={CompareConverter}, ConverterParameter=1}" Value="{Static CompareResult.GreaterThan}"/>
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <BeginUIStoryboard x:Name="ShowWinningsLong"
                                Storyboard="{StaticResource A_Storyboard_ShowWinningsEntry_Long}"/>
                        </MultiDataTrigger.EnterActions>
                        <MultiDataTrigger.ExitActions>
                            <StopStoryboard BeginStoryboardName="ShowWinningsLong"/>
                        </MultiDataTrigger.ExitActions>
                        <Setter Property="Opacity" Value="1"/>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Big_Badge" TargetType="{x:Type FZMaterial}" BasedOn="{StaticResource A_Style_FZMaterial_Body}">
                <Setter Property="Height" Value="72"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Reward" TargetType="{x:Type FZMaterial}" BasedOn="{StaticResource A_Style_FZMaterial_Body}">
                <Setter Property="Height" Value="72"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_WinningsTick" TargetType="{x:Type FZMaterial}">
                <Setter Property="Visibility" Value="{Binding ShowTick, Converter={FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
                <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Width" Value="24"/>
                <Setter Property="Height" Value="24"/>
                <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Tick_Box.png"/>
                <Setter Property="Margin" Value="0,0,-8,0"/>
                <Setter Property="RenderTransform">
                    <Setter.Value>
                        <TranslateTransform X="-12"/>
                    </Setter.Value>
                </Setter>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding Tag, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ItemsControl}}}" Value="{x:Static HUDRewardRevealType.Discoveries}">
                        <Setter Property="Width" Value="30"/>
                        <Setter Property="Height" Value="30"/>
                        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Discover_Icon_Small.png"/>
                        <Setter Property="Margin" Value="0,0,-8,0"/>
                        <Setter Property="RenderTransform">
                            <Setter.Value>
                                <TranslateTransform X="-15"/>
                            </Setter.Value>
                        </Setter>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_WinningsIcon" TargetType="{x:Type FZMaterial}">
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="GreedyMeasure" Value="True"/>
                <Setter Property="Visibility" Value="{Binding IconPath, Converter={StaticResource A_StringVisConverter}}"/>
                <Setter Property="ImageSource" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
                <Setter Property="Stretch" Value="Uniform"/>
                <Setter Property="StretchDirection" Value="DownOnly"/>
                <Setter Property="local:MultiStringFormatter.Param0" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/"/>
                <Setter Property="local:MultiStringFormatter.Param1" Value="{Binding IconPath}"/>
                <Setter Property="local:MultiStringFormatter.Format" Value="{StaticResource A_String_01FormatString}"/>
                <Setter Property="Margin" Value="12,0"/>
            </Style>

            <DataTemplate x:Key="A_DataTemplate_Winnings_Entry">
                <FZMaterial Style="{StaticResource A_Style_FZMaterial_Winnings}">
                    <DockPanel>
                        <Grid DockPanel.Dock="Left">
                            <Decorator RenderTransformOrigin="0.5,0.5">
                                <Decorator.RenderTransform>
                                    <TranslateTransform X="2" Y="2"/>
                                </Decorator.RenderTransform>
                                <FZMaterial Style="{StaticResource A_Style_FZMaterial_WinningsTick}" Color="{StaticResource A_Color_HUDDropShadow}" Preset="{StaticResource A_FZMaterialPreset_AlphaOnly}"/>
                            </Decorator>
                            <FZMaterial Style="{StaticResource A_Style_FZMaterial_WinningsTick}"/>
                        </Grid>
                        <FZMaterial DockPanel.Dock="Right" Style="{StaticResource A_Style_FZMaterial_WinningsIcon}"/>
                        <FZMaterial DockPanel.Dock="Right" Style="{StaticResource A_Style_FZMaterial_WinningsAmountContainer}">
                            <Control Tag="{Binding Tag, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ItemsControl}}}" 
                                     Template="{Binding Tag, Converter={StaticResource A_Reward_Type_To_Race_Winnings_Entry_Amount_Template}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ItemsControl}}}" />
                        </FZMaterial>
                        <StackPanel Margin="8,0,8,0"
                            HorizontalAlignment="Left" 
                            VerticalAlignment="Center">
                            <FZTextBlock Color="{StaticResource H_Color_Primary_White}" 
                                     CapHeight="16"
                                     FontFamily="Horizon_A_tf" 
                                     Text="{Binding Title}"
                                     Margin="0,6"
                                     Visibility="{Binding Title, Converter={StringVisConverter}}"/>
                            <FZTextBlock Color="{StaticResource H_Color_Primary_White}" 
                                     CapHeight="16"
                                     FontFamily="Horizon_B_tf" 
                                     Text="{Binding Subtitle}"
                                     Margin="0,6"
                                     Visibility="{Binding Subtitle, Converter={StringVisConverter}}"/>
                        </StackPanel>
                    </DockPanel>
                </FZMaterial>
            </DataTemplate>

            <ControlTemplate x:Key="A_ContentControl_Template_Header" TargetType="{x:Type ContentControl}">
                <Decorator Height="38">
                    <FZMaterial MinHeight="38" Color="{StaticResource H_Color_Primary_White}" ImageSource="{Binding Tag, Converter={StaticResource A_Reward_Type_To_HeaderBackgroundImagePath}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" Stretch="None" VerticalAlignment="Bottom">
                        <DockPanel VerticalAlignment="Bottom" Height="38">
                            <ContentPresenter DockPanel.Dock="Right"/>
                            <FZTextBlock Text="{Binding Tag, Converter={StaticResource A_Reward_Type_To_Title}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" VerticalAlignment="Center" HorizontalAlignment="Left" Color="{Binding Tag, Converter={StaticResource A_Reward_Type_To_Header_Text_Color}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" CapHeight="20" FontFamily="Horizon_C_tf" Margin="{Binding Tag, Converter={StaticResource A_Reward_Type_To_Margin}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" Visibility="{Binding Text, RelativeSource={RelativeSource Self}, Converter={StringVisConverter}}" MarkupConverter="{StaticResource A_MappingConverter_HeaderTextMarkup}"/>
                        </DockPanel>
                    </FZMaterial>
                </Decorator>
            </ControlTemplate>

            <Style x:Key="A_Style_FZMaterial_HeaderTotalPill" TargetType="{x:Type FZMaterial}">
                <Setter Property="Preset" Value="{Roundtangle CornerRadius={CornerRadius TopLeft=16, BottomLeft=16}}"/>
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
                <Setter Property="Width" Value="150"/>
                <Setter Property="Height" Value="34"/>
                <Setter Property="Margin" Value="0,0,2,0"/>
                <Setter Property="HorizontalAlignment" Value="Right"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="DockPanel.Dock" Value="Right"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_HeaderTotalText" TargetType="{x:Type FZTextBlock}">
                <Setter Property="Text" Value="{Binding TotalTicker.TickerValue, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"/>
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                <Setter Property="CapHeight" Value="18"/>
                <Setter Property="Margin" Value="11,0"/>
                <Setter Property="FontFamily" Value="Horizon_A_tf"/>
                <Setter Property="HorizontalAlignment" Value="Right"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_AmountTextMarkup}"/>
            </Style>

            <ControlTemplate x:Key="A_ContentControl_Template_ProgressBar" TargetType="{x:Type ContentControl}">
                <FZMaterial Height="44" Color="{StaticResource H_Color_Glass_Purple_60pc}" Preset="{StaticResource A_FZMaterialPresetGlass_High}">
                    <Grid>
                        <DockPanel x:Name="ProgressBar" MinHeight="28" Opacity="1">
                            <ContentPresenter DockPanel.Dock="Right"/>
                            <Grid Margin="12,0,12,0">
                                <FZMaterial Color="{StaticResource H_Color_Primary_Black}" Height="23" Preset="{Roundtangle CornerRadius=11}">
                                    <FZMaterial Margin="4" Color="{StaticResource A_Color_ProgressBar_Background}" Preset="{Roundtangle CornerRadius=7}">
                                    </FZMaterial>
                                </FZMaterial>
                                <ProgressBar x:Name="Reward_Reveal_ProgressBar"
                                             Style="{StaticResource A_Style_ProgressBar_Winnings}"
                                             Margin="4"
                                             Minimum="{Binding CurrentProgression.MinAmount, Converter={StaticResource A_IntToFloatConverter}}"
                                             Maximum="{Binding CurrentProgression.MaxAmount, Converter={StaticResource A_IntToFloatConverter}}"
                                             Value="{Binding CurrentProgression.BarTicker.TickerValue, Converter={StaticResource A_IntToFloatConverter}}"
                                             Tag="{Binding Tag, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}"/>
                            </Grid>
                        </DockPanel>
                        <FZTextBlock x:Name="BlockedText"
                            Text="{Binding CurrentProgression.BlockedText}"
                            FontFamily="Horizon_C"
                            CapHeight="16"
                            Color="{StaticResource H_Color_Primary_White}"
                            Margin="8,4"
                            Opacity="0"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Visibility="{Binding CurrentProgression.BlockedText, Converter={StaticResource A_StringVisConverter}, FallbackValue={Static Visibility.Collapsed}}"/>
                    </Grid>
                    <local:EventFire.FzTriggers>
                        <local:EventFireTrigger Event="Execute_ProgressBar_Blocked">
                            <local:EventFireTrigger.Storyboard>
                                <Storyboard>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ProgressBar" FillBehavior="Stop">
                                        <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="1"/>
                                        <LinearDoubleKeyFrame KeyTime="0:0:0.15" Value="0"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BlockedText" FillBehavior="Stop">
                                        <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0"/>
                                        <DiscreteDoubleKeyFrame KeyTime="0:0:0.15" Value="0"/>
                                        <LinearDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
                                    </DoubleAnimationUsingKeyFrames>
                                </Storyboard>
                            </local:EventFireTrigger.Storyboard>
                        </local:EventFireTrigger>
                    </local:EventFire.FzTriggers>
                </FZMaterial>
                <ControlTemplate.Triggers>
                    <DataTrigger Binding="{Binding CurrentProgression.LevelUpType}" Value="{Static HUDProgressBarLevelUpType.Blocked}">
                        <Setter TargetName="ProgressBar" Property="Opacity" Value="0"/>
                        <Setter TargetName="BlockedText" Property="Opacity" Value="1"/>
                    </DataTrigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>

            <ControlTemplate x:Key="A_ControlTemplate_ItemsControl_Winnings"
                             TargetType="{Type ItemsControl}">
                <StackPanel Orientation="Vertical"
                            IsItemsHost="True"
                            local:BlendValue.BlendFromPreviousOutput="True"
                            local:BlendValue.Input="{Binding WinningsScrollOffset, Converter={MathOperationConverter Operation=Multiply}, ConverterParameter={StaticResource A_Double_WinningsPerSlotHeightWithMargin}}" 
                            local:BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_WinningsScroll}">
                    <StackPanel.RenderTransform>
                        <TranslateTransform X="0" Y="{Binding (BlendValue.Output), Converter={StaticResource H_InvertConverter}, RelativeSource={RelativeSource AncestorType=FrameworkElement}}"/>
                    </StackPanel.RenderTransform>>
                </StackPanel>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_Winnings" TargetType="{x:Type Control}">
                <Decorator Width="{StaticResource A_Double_RewardReveals_Width}">
                    <Decorator Margin="-50,0" ClipToBounds="True">
                        <ItemsControl x:Name="PART_Race_Winnings"
                                   Tag="{Binding Tag, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}"
                                   Width="{StaticResource A_Double_RewardReveals_Width}"
                                   MaxHeight="152"
                                   ClipToBounds="False"
                                   IsEnabled="False"
                                   ItemTemplate="{StaticResource A_DataTemplate_Winnings_Entry}" 
                                   ItemsSource="{Binding Winnings}"
                                   Template="{StaticResource A_ControlTemplate_ItemsControl_Winnings}"
                                   HorizontalAlignment="Center"/>
                    </Decorator>
                </Decorator>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_SmallBadgeHorizonOpenXP" TargetType="{x:Type ContentControl}">
                <Grid>
                    <StackPanel x:Name="Small_Badge" 
                            Orientation="Horizontal">
                        <FZMaterial x:Name="Small_Badge_LevelBackground" 
                                    Color="{StaticResource A_Color_HorizonOpen}" 
                                    Width="36" 
                                    Height="28">
                            <FZTextBlock Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_HorizonOpenXPConverter}}" 
                                            CapHeight="14" 
                                            Color="{StaticResource H_Color_Primary_Black}"
                                            VerticalAlignment="Center"
                                            TextAlignment="Center"
                                            Margin="8,0"/>
                        </FZMaterial>
                    </StackPanel>
                </Grid>
            </ControlTemplate>

            <MappingConverter x:Key="A_BigBadgeTitleTextRewardTypeUsesId" Default="{StaticResource A_Boolean_False}">
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.FestivalCampaign}" Value="{StaticResource A_Boolean_True}"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.DiscoveryCampaign}" Value="{StaticResource A_Boolean_True}"/>
            </MappingConverter>

            <MappingConverter x:Key="A_RewardTypeToBigBadgeTitleTextVisibility" Default="{x:Static Visibility.Visible}">
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.Discoveries}" Value="{x:Static Visibility.Collapsed}"/>
            </MappingConverter>

            <MappingConverter x:Key="H_MilestoneIdToBigBadgeTitleText">
                <MappingConverterEntry Key="{Identifier64 festival_wristband_1_objective}" Value="{local:Loc InGame.IDS_PostRace_NewFestivalCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_2_objective}" Value="{local:Loc InGame.IDS_PostRace_NewFestivalCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_3_objective}" Value="{local:Loc InGame.IDS_PostRace_NewFestivalCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_4_objective}" Value="{local:Loc InGame.IDS_PostRace_NewFestivalCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_5_objective}" Value="{local:Loc InGame.IDS_PostRace_NewFestivalCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_6_objective}" Value="{local:Loc InGame.IDS_PostRace_NewFestivalCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_7_objective}" Value="{local:Loc InGame.IDS_PostRace_NewFestivalCampaignObjective}"/>

                <MappingConverterEntry Key="{Identifier64 discovery_stamp_1_objective}" Value="{local:Loc InGame.IDS_PostRace_NewDiscoveryCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_2_objective}" Value="{local:Loc InGame.IDS_PostRace_NewDiscoveryCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_3_objective}" Value="{local:Loc InGame.IDS_PostRace_NewDiscoveryCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_4_objective}" Value="{local:Loc InGame.IDS_PostRace_NewDiscoveryCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_5_objective}" Value="{local:Loc InGame.IDS_PostRace_NewDiscoveryCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_6_objective}" Value="{local:Loc InGame.IDS_PostRace_NewDiscoveryCampaignObjective}"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_7_objective}" Value="{local:Loc InGame.IDS_PostRace_NewDiscoveryCampaignObjective}"/>
            </MappingConverter>

            <MappingConverter x:Key="H_MilestoneIdToBigBadgeImageSourcePath">
                <MappingConverterEntry Key="{Identifier64 festival_wristband_1_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Wristband_01.png"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_2_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Wristband_02.png"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_3_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Wristband_03.png"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_4_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Wristband_04.png"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_5_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Wristband_05.png"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_6_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Wristband_06.png"/>
                <MappingConverterEntry Key="{Identifier64 festival_wristband_7_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Wristband_07.png"/>

                <MappingConverterEntry Key="{Identifier64 discovery_stamp_1_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Eki_Stamp_01.png"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_2_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Eki_Stamp_02.png"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_3_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Eki_Stamp_03.png"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_4_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Eki_Stamp_04.png"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_5_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Eki_Stamp_05.png"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_6_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Eki_Stamp_06.png"/>
                <MappingConverterEntry Key="{Identifier64 discovery_stamp_7_objective}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Eki_Stamp_07.png"/>
            </MappingConverter>

            <Style x:Key="A_Style_FZMaterial_BigBadgeCampaign" TargetType="{x:Type FZMaterial}">
                <Setter Property="ImageSource" Value="{Binding CurrentProgression.Id, Converter={StaticResource H_MilestoneIdToBigBadgeImageSourcePath}}"/>
                <Setter Property="GetSizeFromTexture" Value="True"/>
                <Setter Property="Margin" Value="0,0,10,0"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
            </Style>

            <ControlTemplate x:Key="A_Control_Template_BigBadgeXP" TargetType="{x:Type ContentControl}">
                <Grid Margin="0,0,10,0">
                    <StackPanel x:Name="LevelBadge" Orientation="Horizontal">
                        <FZMaterial Width="18" 
                                Height="40" 
                                x:Name="Prestige_Level" 
                                Visibility="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_Converter_PrestigeLevelToVisibilityFromXP}, FallbackValue=Hidden}"
                                Color="{StaticResource H_Color_Primary_Black}">
                            <StackPanel Width="18">
                                <local:FZMaterial Margin="0,6,0,4"
                                              Color="{StaticResource H_Color_Primary_White}"  
                                              Style="{StaticResource A_Style_FZMaterial_PrestigeIcon_Leaderboard}" 
                                              Width="14"
                                              Height="14"/>
                                <local:FZTextBlock Color="{StaticResource H_Color_Primary_White}" 
                                                           CapHeight="12" 
                                                           Style="{StaticResource A_Style_FZTextBlock_PrestigeLevel_Leaderboard}"
                                                           Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_XPConverter_Prestige}}" />
                            </StackPanel>
                        </FZMaterial>
                        <FZMaterial x:Name="LevelBackground" Color="{Binding UserProfile.XP, Source={StaticResource PART_UIPlayerData}, Converter={StaticResource A_XPConverter}}" Width="52" Height="40">
                            <FZTextBlock Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_XPConverter}}" 
                                                    CapHeight="22"
                                                    Color="{Binding UserProfile.XP, Source={StaticResource PART_UIPlayerData}, Converter={StaticResource A_XPConverter_Text}}"
                                                    VerticalAlignment="Center"
                                                    TextAlignment="Center"/>
                        </FZMaterial>
                    </StackPanel>
                    <Grid ClipToBounds="True">
                        <local:FZMaterial CaptureSubgraph="True" 
                                              Preset="{StaticResource A_FZMaterialPresetAdditive}"
                                              x:Name="Sheen"
                                              Style="{StaticResource H_Style_SheenItalicise}" >
                            <local:FZMaterial CaptureSubgraph="True"  
                                                  Preset="{StaticResource A_FZMaterialPreset_AlphaOnly}" 
                                                  x:Name="SheenMask">
                                <local:FZMaterial.OpacityMask>
                                    <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                                        <GradientStop x:Name="Big_Badge_Sheen_Center" 
                                                          Color="White" 
                                                          Offset="{StaticResource SheenMotionStart}" />
                                        <GradientStop Color="Transparent" 
                                                          Offset="{Binding Offset, ElementName=Big_Badge_Sheen_Center, Converter={MathOperationConverter Operation=Subtract}, ConverterParameter={StaticResource SheenRadius}}" />
                                        <GradientStop Color="Transparent" 
                                                          Offset="{Binding Offset, ElementName=Big_Badge_Sheen_Center, Converter={MathOperationConverter Operation=Add}, ConverterParameter={StaticResource SheenRadius}}" />
                                    </LinearGradientBrush>
                                </local:FZMaterial.OpacityMask>
                                <Grid x:Name="SheenDuplicate" Width="{Binding ActualWith, ElementName=LevelBadge}" Height="{Binding HeightWith, ElementName=LevelBadge}">
                                    <FZMaterial Color="{StaticResource H_Color_Primary_White}">
                                        <ContentPresenter />
                                    </FZMaterial>
                                </Grid>
                            </local:FZMaterial>
                        </local:FZMaterial>
                    </Grid>
                    <local:EventFire.FzTriggers>
                        <local:EventFireTrigger Event="Execute_Big_Badge_Sheen" Storyboard="{StaticResource A_Storyboard_Sheen_Big_Badge}"/>
                    </local:EventFire.FzTriggers>
                </Grid>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_BigBadgeHorizonOpenXP" TargetType="{x:Type ContentControl}">
                <FZMaterial x:Name="LevelBackground" Color="{StaticResource A_Color_HorizonOpen}" Width="52" Height="40">
                    <FZTextBlock Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_HorizonOpenXPConverter}}" 
                                            CapHeight="22"
                                            Color="{StaticResource H_Color_Primary_Black}"
                                            VerticalAlignment="Center"
                                            TextAlignment="Center"/>
                </FZMaterial>
            </ControlTemplate>

            <Style x:Key="A_Style_StackPanel_ActivateButtonContainer" TargetType="{x:Type StackPanel}">
                <Setter Property="Orientation" Value="Horizontal"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
            </Style>

            <Style x:Key="A_Style_ControllerButtonControl_ActivateButton" TargetType="{x:Type ControllerButtonControl}" BasedOn="{StaticResource A_Style_ControllerButtonControl_Standalone}">
                <Setter Property="Margin" Value="0,0,8,0"/>
                <Setter Property="AllowMouseClick" Value="False"/>
                <Setter Property="Command" Value="{Binding DataContext.ActivateCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}"/>
                <Setter Property="Visibility" Value="{Binding DataContext.ActivateCommand.Enabled, Converter={FZBooleanToVisibilityConverter}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, FallbackValue=Collapsed}"/>
            </Style>

            <MappingConverter x:Key="A_Reward_Type_To_ButtonText">
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.FestivalCampaign}" Value="{local:Loc InGame.IDS_PostRace_Claim_Now}"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.DiscoveryCampaign}" Value="{local:Loc InGame.IDS_PostRace_Claim_Now}"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.Discoveries}" Value="{local:Loc InGame.IDS_PostRace_OpenMap}"/>
            </MappingConverter>

            <MappingConverter x:Key="A_Reward_Type_To_ButtonFallbackText">
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.FestivalCampaign}" Value="{local:Loc InGame.IDS_PostRace_Claim_Now_Fallback}"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.DiscoveryCampaign}" Value="{local:Loc InGame.IDS_PostRace_Claim_Now_Fallback}"/>
                <MappingConverterEntry Key="{x:Static HUDRewardRevealType.Discoveries}" Value="{local:Loc InGame.IDS_PostRace_OpenMap_Fallback}"/>
            </MappingConverter>

            <Style x:Key="A_Style_FZTextBlock_ActivateButtonText" TargetType="{x:Type FZTextBlock}">
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                <Setter Property="CapHeight" Value="16"/>
                <Setter Property="FontFamily" Value="Horizon_B_tf"/>
                <Setter Property="Visibility" Value="{Binding Text, RelativeSource={RelativeSource Self}, Converter={StaticResource A_StringVisConverter}}"/>
                <Setter Property="Margin" Value="0,4,0,4"/>
                <Setter Property="Text" Value="{Binding Tag, Converter={StaticResource A_Reward_Type_To_ButtonText}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding DataContext.ActivateCommand.Enabled, Converter={FZBooleanToVisibilityConverter}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, FallbackValue=Collapsed}" Value="{x:Static Visibility.Collapsed}">
                        <Setter Property="Text" Value="{Binding Tag, Converter={StaticResource A_Reward_Type_To_ButtonFallbackText}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_BigBadgeTitleText" TargetType="{x:Type FZTextBlock}">
                <Setter Property="HorizontalAlignment" Value="Center" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
                <Setter Property="CapHeight" Value="18" />
                <Setter Property="FontFamily" Value="Horizon_A_tf" />
                <Setter Property="Text" Value="{local:Loc InGame.IDS_PostRace_LevelUp}" />
                <Setter Property="Visibility" Value="{Binding Tag, Converter={StaticResource A_RewardTypeToBigBadgeTitleTextVisibility}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}"/>
                <Setter Property="Margin" Value="0,4"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding Tag, Converter={StaticResource A_BigBadgeTitleTextRewardTypeUsesId}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" Value="{StaticResource A_Boolean_True}">
                        <Setter Property="Text" Value="{Binding CurrentProgression.Id, Converter={StaticResource H_MilestoneIdToBigBadgeTitleText}}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <ControlTemplate x:Key="A_Control_Template_Big_Badge" TargetType="{x:Type ContentControl}">
                <FZMaterial Style="{StaticResource A_Style_FZMaterial_Big_Badge}" VerticalAlignment="Top">
                    <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Height="40">
                        <ContentPresenter VerticalAlignment="Center"/>
                        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_BigBadgeTitleText}"/>
                            <StackPanel Style="{StaticResource A_Style_StackPanel_ActivateButtonContainer}">
                                <ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_ActivateButton}" Margin="0,4,8,4" />
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ActivateButtonText}"/>
                            </StackPanel>
                        </StackPanel>
                    </StackPanel>
                </FZMaterial>
            </ControlTemplate>

            <local:MappingConverter x:Key="A_GrantedRewardTypeToImageSourcePath">
                <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Wheelspin}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Wheelspin_Reward.png" />
                <local:MappingConverterEntry Key="{x:Static local:UIRewardType.SuperWheelspin}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Super_Wheelspin_Reward.png" />
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_RevealTypeToRewardImageSourcePath" Default="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Festival_Reward.png">
                <local:MappingConverterEntry Key="{x:Static local:HUDRewardRevealType.FestivalCampaign}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Festival_Reward.png" />
                <local:MappingConverterEntry Key="{x:Static local:HUDRewardRevealType.DiscoveryCampaign}" Value="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Japan_Reward.png" />
            </local:MappingConverter>

            <Style x:Key="A_Style_FZMaterial_RewardIcon" TargetType="{x:Type FZMaterial}">
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="GetSizeFromTexture" Value="True"/>
                <Setter Property="ImageSource" Value="{Binding Tag, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}, Converter={StaticResource A_RevealTypeToRewardImageSourcePath}}"/>
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CurrentReward.Granted}" Value="{StaticResource A_Boolean_True}"/>
                            <Condition Binding="{Binding CurrentReward.Reward.RewardType, Converter={StaticResource A_GrantedRewardTypeToImageSourcePath}}" Value="{x:Null}" LogicalOp="NotEquals"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="ImageSource" Value="{Binding CurrentReward.Reward.RewardType, Converter={StaticResource A_GrantedRewardTypeToImageSourcePath}}"/>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <local:MappingConverter x:Key="A_GrantedRewardTypeToTitleText">
                <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Wheelspin}" Value="{local:Loc InGame.IDS_PostRace_Wheelspin_Received}" />
                <local:MappingConverterEntry Key="{x:Static local:UIRewardType.SuperWheelspin}" Value="{local:Loc InGame.IDS_PostRace_SuperWheelspin_Received}" />
            </local:MappingConverter>

            <Style x:Key="A_Style_FZTextBlock_RewardTitleText" TargetType="{x:Type FZTextBlock}">
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                <Setter Property="CapHeight" Value="18"/>
                <Setter Property="FontFamily" Value="Horizon_A_tf"/>
                <Setter Property="Text" Value="{local:Loc InGame.IDS_PostRace_Reward_Ready}"/>
                <Setter Property="Margin" Value="0,4"/>
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CurrentReward.Granted}" Value="{StaticResource A_Boolean_True}"/>
                            <Condition Binding="{Binding CurrentReward.Reward.RewardType, Converter={StaticResource A_GrantedRewardTypeToTitleText}}" Value="{x:Null}" LogicalOp="NotEquals"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Text" Value="{Binding CurrentReward.Reward.RewardType, Converter={StaticResource A_GrantedRewardTypeToTitleText}}"/>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <ControlTemplate x:Key="A_Control_Template_Reward" TargetType="{x:Type Control}">
                <FZMaterial Style="{StaticResource A_Style_FZMaterial_Reward}" VerticalAlignment="Top">
                    <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
                        <FZMaterial Style="{StaticResource A_Style_FZMaterial_RewardIcon}"/>
                        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RewardTitleText}"/>
                            <StackPanel Style="{StaticResource A_Style_StackPanel_ActivateButtonContainer}">
                                <ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_ActivateButton}"/>
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ActivateButtonText}"/>
                            </StackPanel>
                        </StackPanel>
                    </StackPanel>
                </FZMaterial>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_Reward_Reveal_XP" TargetType="{x:Type Control}">
                <StackPanel DataContext="{Binding XP}" Orientation="Vertical">
                    <StackPanel x:Name="Header" Opacity="0" Orientation="Vertical">
                        <ContentControl Template="{StaticResource A_ContentControl_Template_Header}" Tag="{x:Static HUDRewardRevealType.XP}">
                            <FZMaterial Style="{StaticResource A_Style_FZMaterial_HeaderTotalPill}">
                                <Decorator Style="{StaticResource H_Style_PostRaceItalicise}">
                                    <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HeaderTotalText}"
                                        Text="{Binding TotalTicker.TickerValue, Converter={StaticResource A_NumUnitConverter_ShowUnit_0dp_InsertMarkup}, ConverterParameter=experiencepoints}"
                                        Color="{StaticResource H_Color_Primary_Pink}"/>
                                </Decorator>
                            </FZMaterial>
                        </ContentControl>
                        <ContentControl x:Name="ProgressBar" Template="{StaticResource A_ContentControl_Template_ProgressBar}" Tag="{x:Static HUDRewardRevealType.XP}">
                            <ContentControl DataContext="{Binding CurrentProgression.FromUserProfile}" x:Name="Small_Badge_Shine" Style="{StaticResource A_Style_ContentControl_PlayerLevel_WithPrestige_SheenWrapper}" Margin="0,0,12,0">
                                <Control x:Name="Small_Badge" Template="{StaticResource A_ControlTemplate_PlayerLevel_WithPrestige}"/>
                            </ContentControl>
                        </ContentControl>
                    </StackPanel>
                    <Grid x:Name="Body" Margin="{StaticResource A_Thickness_RevealsBodyMargin}" Opacity="0">
                        <Control x:Name="Winnings" Template="{StaticResource A_Control_Template_Winnings}" Tag="{x:Static HUDRewardRevealType.XP}" Opacity="0" />
                        <ContentControl x:Name="Big_Badge" Template="{StaticResource A_Control_Template_Big_Badge}" Tag="{x:Static HUDRewardRevealType.XP}" Opacity="0">
                            <ContentControl DataContext="{Binding CurrentProgression.ToUserProfile}" x:Name="Big_Badge_Inner_Shine" Style="{StaticResource A_Style_ContentControl_PlayerLevel_WithPrestige_SheenWrapper}" Margin="0,0,10,0" VerticalAlignment="Center">
                                <Viewbox Height="40" VerticalAlignment="Center">
                                    <Control x:Name="Big_Badge_Inner" Template="{StaticResource A_ControlTemplate_PlayerLevel_WithPrestige}" VerticalAlignment="Center"/>
                                </Viewbox>
                            </ContentControl>
                        </ContentControl>
                        <Control x:Name="Reward" Template="{StaticResource A_Control_Template_Reward}" Tag="{x:Static HUDRewardRevealType.XP}" Opacity="0" />
                    </Grid>
                    <local:EventFire.FzTriggers>
                        <local:EventFireTrigger Event="PART_Show_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Show_Header_And_Body}"/>
                        <local:EventFireTrigger Event="PART_Hide_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Hide_Header_And_All_Body_Elements}"/>
                        <local:EventFireTrigger Event="PART_Show_Winnings" Storyboard="{StaticResource A_Storyboard_Show_Winnings}"/>
                        <local:EventFireTrigger Event="PART_Hide_Winnings" Storyboard="{StaticResource A_Storyboard_Hide_Winnings}"/>
                        <local:EventFireTrigger Event="PART_Show_Big_Badge" Storyboard="{StaticResource A_Storyboard_Show_Big_Badge_And_Sheen}"/>
                        <local:EventFireTrigger Event="PART_Hide_Big_Badge" Storyboard="{StaticResource A_Storyboard_Hide_Big_Badge}"/>
                        <local:EventFireTrigger Event="PART_Show_Reward" Storyboard="{StaticResource A_Storyboard_Show_Reward}"/>
                        <local:EventFireTrigger Event="PART_Hide_Reward" Storyboard="{StaticResource A_Storyboard_Hide_Reward}"/>
                        <local:EventFireTrigger Event="PART_ProgressBarRankUp" Storyboard="{StaticResource A_Storyboard_RankUpProgressBarAndSmallBadge}"/>
                    </local:EventFire.FzTriggers>
                </StackPanel>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_Reward_Reveal_Credits" TargetType="{x:Type Control}">
                <StackPanel DataContext="{Binding Credits}" Orientation="Vertical">
                    <ContentControl x:Name="Header" Template="{StaticResource A_ContentControl_Template_Header}" Tag="{x:Static HUDRewardRevealType.Credits}" Opacity="0">
                        <FZMaterial Style="{StaticResource A_Style_FZMaterial_HeaderTotalPill}">
                            <DockPanel>
                                <Control Style="{StaticResource H_Style_Control_CreditsIcon}" Margin="2" DockPanel.Dock="Left"/>
                                <Decorator Style="{StaticResource H_Style_PostRaceItalicise}">
                                    <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HeaderTotalText}"/>
                                </Decorator>
                            </DockPanel>
                        </FZMaterial>
                    </ContentControl>
                    <Grid x:Name="Body" Margin="{StaticResource A_Thickness_RevealsBodyMargin}" Opacity="0">
                        <Control x:Name="Winnings" Template="{StaticResource A_Control_Template_Winnings}" Tag="{x:Static HUDRewardRevealType.Credits}" Opacity="0" />
                    </Grid>
                    <local:EventFire.FzTriggers>
                        <local:EventFireTrigger Event="PART_Show_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Show_Header_And_Body}"/>
                        <local:EventFireTrigger Event="PART_Hide_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Hide_Header_And_Body_Winnings_Only}"/>
                        <local:EventFireTrigger Event="PART_Show_Winnings" Storyboard="{StaticResource A_Storyboard_Show_Winnings}"/>
                        <local:EventFireTrigger Event="PART_Hide_Winnings" Storyboard="{StaticResource A_Storyboard_Hide_Winnings}"/>
                    </local:EventFire.FzTriggers>
                </StackPanel>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_Reward_Reveal_HorizonOpenXP" TargetType="{x:Type Control}">
                <StackPanel DataContext="{Binding HorizonOpenXP}" Orientation="Vertical">
                    <StackPanel x:Name="Header" Opacity="0" Orientation="Vertical">
                        <ContentControl Template="{StaticResource A_ContentControl_Template_Header}" Tag="{x:Static HUDRewardRevealType.HorizonOpenXP}">
                            <FZMaterial Style="{StaticResource A_Style_FZMaterial_HeaderTotalPill}">
                                <Decorator Style="{StaticResource H_Style_PostRaceItalicise}">
                                    <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HeaderTotalText}"
                                        Text="{Binding TotalTicker.TickerValue, Converter={StaticResource A_NumUnitConverter_ShowUnit_0dp_InsertMarkup}, ConverterParameter=experiencepoints}"
                                        Color="{Binding Tag, Converter={StaticResource A_Currency_Type_To_Color}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}"/>
                                </Decorator>
                            </FZMaterial>
                        </ContentControl>
                        <ContentControl x:Name="ProgressBar" Template="{StaticResource A_ContentControl_Template_ProgressBar}" Tag="{x:Static HUDRewardRevealType.HorizonOpenXP}">
                            <ContentControl x:Name="Small_Badge_Shine" Style="{StaticResource A_Style_ContentControl_RoundtangleSheenWrapper}" Margin="0,0,12,0">
                                <ContentControl x:Name="Small_Badge" Template="{StaticResource A_Control_Template_SmallBadgeHorizonOpenXP}" Content="{Binding CurrentProgression.FromAmount, FallbackValue={StaticResource A_Int32_Zero}}"
                                VerticalAlignment="Center" />
                            </ContentControl>
                        </ContentControl>
                    </StackPanel>
                    <Grid x:Name="Body" Margin="{StaticResource A_Thickness_RevealsBodyMargin}" Opacity="0">
                        <Control x:Name="Winnings" Template="{StaticResource A_Control_Template_Winnings}" Tag="{x:Static HUDRewardRevealType.HorizonOpenXP}" Opacity="0" />
                        <ContentControl x:Name="Big_Badge" Template="{StaticResource A_Control_Template_Big_Badge}" Tag="{x:Static HUDRewardRevealType.HorizonOpenXP}" Opacity="0">
                            <ContentControl x:Name="Big_Badge_Inner_Shine" Style="{StaticResource A_Style_ContentControl_RoundtangleSheenWrapper}" Margin="0,0,10,0" >
                                <ContentControl x:Name="Big_Badge_Inner" Template="{StaticResource A_Control_Template_BigBadgeHorizonOpenXP}" Content="{Binding CurrentProgression.FromAmount, FallbackValue={StaticResource A_Int32_Zero}}" />
                            </ContentControl>
                        </ContentControl>
                        <Control x:Name="Reward" Template="{StaticResource A_Control_Template_Reward}" Tag="{x:Static HUDRewardRevealType.HorizonOpenXP}" Opacity="0" />
                    </Grid>
                    <local:EventFire.FzTriggers>
                        <local:EventFireTrigger Event="PART_Show_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Show_Header_And_Body}"/>
                        <local:EventFireTrigger Event="PART_Hide_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Hide_Header_And_All_Body_Elements}"/>
                        <local:EventFireTrigger Event="PART_Show_Winnings" Storyboard="{StaticResource A_Storyboard_Show_Winnings}"/>
                        <local:EventFireTrigger Event="PART_Hide_Winnings" Storyboard="{StaticResource A_Storyboard_Hide_Winnings}"/>
                        <local:EventFireTrigger Event="PART_Show_Big_Badge" Storyboard="{StaticResource A_Storyboard_Show_Big_Badge_And_Sheen}"/>
                        <local:EventFireTrigger Event="PART_Hide_Big_Badge" Storyboard="{StaticResource A_Storyboard_Hide_Big_Badge}"/>
                        <local:EventFireTrigger Event="PART_Show_Reward" Storyboard="{StaticResource A_Storyboard_Show_Reward}"/>
                        <local:EventFireTrigger Event="PART_Hide_Reward" Storyboard="{StaticResource A_Storyboard_Hide_Reward}"/>
                        <local:EventFireTrigger Event="PART_ProgressBarRankUp" Storyboard="{StaticResource A_Storyboard_RankUpProgressBarAndSmallBadge}"/>
                    </local:EventFire.FzTriggers>
                </StackPanel>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_Reward_Reveal_FestivalCampaign" TargetType="{x:Type Control}">
                <StackPanel DataContext="{Binding FestivalCampaign}" Orientation="Vertical">
                    <StackPanel x:Name="Header" Opacity="0" Orientation="Vertical">
                        <ContentControl Template="{StaticResource A_ContentControl_Template_Header}" Tag="{x:Static HUDRewardRevealType.FestivalCampaign}">
                            <FZMaterial Style="{StaticResource A_Style_FZMaterial_HeaderTotalPill}">
                                <DockPanel>
                                    <Control Style="{StaticResource H_Style_Control_FPIcon}" Margin="-4,2,2,2" DockPanel.Dock="Right"/>
                                    <Decorator Style="{StaticResource H_Style_PostRaceItalicise}">
                                        <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HeaderTotalText}"/>
                                    </Decorator>
                                </DockPanel>
                            </FZMaterial>
                        </ContentControl>
                        <ContentControl x:Name="ProgressBar" Template="{StaticResource A_ContentControl_Template_ProgressBar}" Tag="{x:Static HUDRewardRevealType.FestivalCampaign}"/>
                    </StackPanel>
                    <Grid x:Name="Body" Margin="{StaticResource A_Thickness_RevealsBodyMargin}" Opacity="0">
                        <Control x:Name="Winnings" Template="{StaticResource A_Control_Template_Winnings}" Tag="{x:Static HUDRewardRevealType.FestivalCampaign}" Opacity="0" />
                        <ContentControl x:Name="Big_Badge" Template="{StaticResource A_Control_Template_Big_Badge}" Tag="{x:Static HUDRewardRevealType.FestivalCampaign}" Opacity="0">
                            <FZMaterial x:Name="Big_Badge_Inner" Style="{StaticResource A_Style_FZMaterial_BigBadgeCampaign}"/>
                        </ContentControl>
                        <Control x:Name="Reward" Template="{StaticResource A_Control_Template_Reward}" Tag="{x:Static HUDRewardRevealType.FestivalCampaign}" Opacity="0" />
                    </Grid>
                    <local:EventFire.FzTriggers>
                        <local:EventFireTrigger Event="PART_Show_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Show_Header_And_Body}"/>
                        <local:EventFireTrigger Event="PART_Hide_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Hide_Header_And_All_Body_Elements}"/>
                        <local:EventFireTrigger Event="PART_Show_Winnings" Storyboard="{StaticResource A_Storyboard_Show_Winnings}"/>
                        <local:EventFireTrigger Event="PART_Hide_Winnings" Storyboard="{StaticResource A_Storyboard_Hide_Winnings}"/>
                        <local:EventFireTrigger Event="PART_Show_Big_Badge" Storyboard="{StaticResource A_Storyboard_Show_Big_Badge}"/>
                        <local:EventFireTrigger Event="PART_Hide_Big_Badge" Storyboard="{StaticResource A_Storyboard_Hide_Big_Badge}"/>
                        <local:EventFireTrigger Event="PART_Show_Reward" Storyboard="{StaticResource A_Storyboard_Show_Reward}"/>
                        <local:EventFireTrigger Event="PART_Hide_Reward" Storyboard="{StaticResource A_Storyboard_Hide_Reward}"/>
                        <local:EventFireTrigger Event="PART_ProgressBarRankUp" Storyboard="{StaticResource A_Storyboard_Update_Small_Badge_Start}"/>
                        <local:EventFireTrigger Event="PART_ProgressBarRankUpBlocked" Storyboard="{StaticResource A_Storyboard_RankUpProgressBarBlocked}"/>
                    </local:EventFire.FzTriggers>
                </StackPanel>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_Reward_Reveal_DiscoveryCampaign" TargetType="{x:Type Control}">
                <StackPanel DataContext="{Binding DiscoveryCampaign}" Orientation="Vertical">
                    <StackPanel x:Name="Header" Opacity="0" Orientation="Vertical">
                        <ContentControl Template="{StaticResource A_ContentControl_Template_Header}" Tag="{x:Static HUDRewardRevealType.DiscoveryCampaign}">
                            <FZMaterial Style="{StaticResource A_Style_FZMaterial_HeaderTotalPill}">
                                <DockPanel>
                                    <Control Style="{StaticResource H_Style_Control_DJIcon}" Margin="-4,2,2,2" DockPanel.Dock="Right"/>
                                    <Decorator Style="{StaticResource H_Style_PostRaceItalicise}">
                                        <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HeaderTotalText}"/>
                                    </Decorator>
                                </DockPanel>
                            </FZMaterial>
                        </ContentControl>
                        <ContentControl x:Name="ProgressBar" Template="{StaticResource A_ContentControl_Template_ProgressBar}" Tag="{x:Static HUDRewardRevealType.DiscoveryCampaign}"/>
                    </StackPanel>
                    <Grid x:Name="Body" Margin="{StaticResource A_Thickness_RevealsBodyMargin}" Opacity="0">
                        <Control x:Name="Winnings" Template="{StaticResource A_Control_Template_Winnings}" Tag="{x:Static HUDRewardRevealType.DiscoveryCampaign}" Opacity="0" />
                        <ContentControl x:Name="Big_Badge" Template="{StaticResource A_Control_Template_Big_Badge}" Tag="{x:Static HUDRewardRevealType.DiscoveryCampaign}" Opacity="0">
                            <FZMaterial x:Name="Big_Badge_Inner" Style="{StaticResource A_Style_FZMaterial_BigBadgeCampaign}"/>
                        </ContentControl>
                        <Control x:Name="Reward" Template="{StaticResource A_Control_Template_Reward}" Tag="{x:Static HUDRewardRevealType.DiscoveryCampaign}" Opacity="0" />
                    </Grid>
                    <local:EventFire.FzTriggers>
                        <local:EventFireTrigger Event="PART_Show_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Show_Header_And_Body}"/>
                        <local:EventFireTrigger Event="PART_Hide_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Hide_Header_And_All_Body_Elements}"/>
                        <local:EventFireTrigger Event="PART_Show_Winnings" Storyboard="{StaticResource A_Storyboard_Show_Winnings}"/>
                        <local:EventFireTrigger Event="PART_Hide_Winnings" Storyboard="{StaticResource A_Storyboard_Hide_Winnings}"/>
                        <local:EventFireTrigger Event="PART_Show_Big_Badge" Storyboard="{StaticResource A_Storyboard_Show_Big_Badge}"/>
                        <local:EventFireTrigger Event="PART_Hide_Big_Badge" Storyboard="{StaticResource A_Storyboard_Hide_Big_Badge}"/>
                        <local:EventFireTrigger Event="PART_Show_Reward" Storyboard="{StaticResource A_Storyboard_Show_Reward}"/>
                        <local:EventFireTrigger Event="PART_Hide_Reward" Storyboard="{StaticResource A_Storyboard_Hide_Reward}"/>
                        <local:EventFireTrigger Event="PART_ProgressBarRankUp" Storyboard="{StaticResource A_Storyboard_Update_Small_Badge_Start}"/>
                    </local:EventFire.FzTriggers>
                </StackPanel>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Control_Template_Reward_Reveal_Discoveries" TargetType="{x:Type Control}">
                <StackPanel DataContext="{Binding Discoveries}" Orientation="Vertical">
                    <StackPanel x:Name="Header" Opacity="0" Orientation="Vertical">
                        <ContentControl Template="{StaticResource A_ContentControl_Template_Header}" Tag="{x:Static HUDRewardRevealType.Discoveries}">
                            <ContentControl Style="{StaticResource H_Style_NotificationBadge}" Content="{Binding TotalTicker.TargetTickerValue, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}" Margin="0,0,8,0"/>
                        </ContentControl>
                    </StackPanel>
                    <Grid x:Name="Body" Margin="{StaticResource A_Thickness_RevealsBodyMargin}" Opacity="0">
                        <Control x:Name="Winnings" Template="{StaticResource A_Control_Template_Winnings}" Tag="{x:Static HUDRewardRevealType.Discoveries}" Opacity="0" />
                        <ContentControl x:Name="Big_Badge" Template="{StaticResource A_Control_Template_Big_Badge}" Tag="{x:Static HUDRewardRevealType.Discoveries}" Opacity="0">
                            <FZMaterial x:Name="Big_Badge_Inner" Style="{StaticResource A_Style_FZMaterial_BigBadgeCampaign}"
                                ImageSource="/ForzaUI;component/Textures/Anthem/Icons/PostRace/Discover_Map.png"/>
                        </ContentControl>
                        <Decorator x:Name="Reward" Opacity="0" />
                    </Grid>
                    <local:EventFire.FzTriggers>
                        <local:EventFireTrigger Event="PART_Show_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Show_Header_And_Body}"/>
                        <local:EventFireTrigger Event="PART_Hide_Reward_Reveal" Storyboard="{StaticResource A_Storyboard_Hide_Header_And_All_Body_Elements}"/>
                        <local:EventFireTrigger Event="PART_Show_Winnings" Storyboard="{StaticResource A_Storyboard_Show_Winnings}"/>
                        <local:EventFireTrigger Event="PART_Hide_Winnings" Storyboard="{StaticResource A_Storyboard_Hide_Winnings}"/>
                        <local:EventFireTrigger Event="PART_Show_Big_Badge" Storyboard="{StaticResource A_Storyboard_Show_Big_Badge}"/>
                        <local:EventFireTrigger Event="PART_Hide_Big_Badge" Storyboard="{StaticResource A_Storyboard_Hide_Big_Badge}"/>
                        <local:EventFireTrigger Event="PART_Show_Reward" Storyboard="{StaticResource A_Storyboard_Show_Reward}"/>
                        <local:EventFireTrigger Event="PART_Hide_Reward" Storyboard="{StaticResource A_Storyboard_Hide_Reward}"/>
                        <local:EventFireTrigger Event="PART_ProgressBarRankUp" Storyboard="{StaticResource A_Storyboard_Update_Small_Badge_Start}"/>
                    </local:EventFire.FzTriggers>
                </StackPanel>
            </ControlTemplate>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid x:Name="PART_LayoutRoot" Height="242">
        <VisualStateManager.VisualStateGroups>
            <UIVisualStateGroup x:Name="VisualStateGroup">
                <VisualState x:Name="PART_Hidden">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PART_LayoutRoot">
                            <EasingDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="PART_Shown">
                    <UIStoryboard>
                        <UIStoryboard.TriggerAnimation>
                            <StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0" EventName="UI_HUD_RewardsShow"/>
                        </UIStoryboard.TriggerAnimation>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PART_LayoutRoot">
                            <EasingDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                    </UIStoryboard>
                </VisualState>
            </UIVisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <Grid Width="{StaticResource A_Double_RewardReveals_Width}">
            <Control x:Name="PART_XP" Template="{StaticResource A_Control_Template_Reward_Reveal_XP}"/>
            <Control x:Name="PART_Credits" Template="{StaticResource A_Control_Template_Reward_Reveal_Credits}"/>
            <Control x:Name="PART_HorizonOpenXP" Template="{StaticResource A_Control_Template_Reward_Reveal_HorizonOpenXP}"/>
            <Control x:Name="PART_FestivalCampaign" Template="{StaticResource A_Control_Template_Reward_Reveal_FestivalCampaign}"/>
            <Control x:Name="PART_DiscoveryCampaign" Template="{StaticResource A_Control_Template_Reward_Reveal_DiscoveryCampaign}"/>
            <Control x:Name="PART_Discoveries" Template="{StaticResource A_Control_Template_Reward_Reveal_Discoveries}"/>
        </Grid>
    </Grid>
</UserControl>