<Page xmlns:local="clr-namespace:ForzaUI"
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
      x:Class="ForzaUI.Scenes.Anthem.A_PostRaceXP"
      mc:Ignorable="d"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}">
    <local:UIPageTransitionManager.TransitionManager>
        <local:UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_PostRace}"/>
    </local:UIPageTransitionManager.TransitionManager>
    <Page.Resources>
        <Style x:Key="A_Style_Control_PostRace_BonusValueBlock_XP" 
               BasedOn="{StaticResource A_Style_Control_PostRace_BonusValueBlock}"
               TargetType="Control">
            <Setter Property="Width" Value="190"/>
            <Setter Property="Tag"
                    Value="/ForzaUI;component/Textures/Data_Bound/PostRace/INF_85_FilledCircle.png" />
        </Style>

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_BarEdge"
                                           BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                           AlphaMode="Additive" />

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_BarEdgeGlow"
                                           Softness="60"
                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_BarEdge}" />

        <Color x:Key="A_Color_ProgressBackground_Overlay">#cd000000</Color>

        <Color x:Key="A_Color_LevelDark">#000</Color>
        <Color x:Key="A_Color_LevelLight">#ffff</Color>
        
        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_LevelDarkGradient"
                                           BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                           GradientColorA="{StaticResource A_Color_LevelDark}"
                                           GradientColorB="#0000"
                                           GradientAngle="90" />
        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_LevelLightGradient"
                                           BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                           AlphaMode="Additive"
                                           GradientColorA="#0000"
                                           GradientColorB="{StaticResource A_Color_LevelLight}"
                                           GradientAngle="90" />

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_LevelPill"
            BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
            CornerRadius="{StaticResource A_CornerRadius_InnerInner_All}"/>

        <local:FZMaterialPresetStreak x:Key="A_FZMaterialPresetStreak_TitleShadow_LevelBox"
            Color="#1A000000"
            Decay="1" />

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_PostRace_Showcase"
                            BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                            GradientColorA="{StaticResource A_Color_ShowcaseGradientA}"
                            GradientColorB="{StaticResource A_Color_ShowcaseGradientB}"
                            GradientAngle="-90" />
        <SkewTransform AngleX="-25"
                       CenterY="134"
                       x:Key="A_Transform_Skew" />

        <SkewTransform AngleX="25"
                       CenterY="134"
                       x:Key="A_Transform_InvertSkew" />


        <ControlTemplate x:Key="A_ControlTemplate_ProgressBar_XPLevelBar" TargetType="{x:Type ProgressBar}">
            <Grid RenderTransform="{StaticResource A_Transform_Skew}">
                <local:FZMaterial CaptureSubgraph="True">
                    <Grid>
                        <local:FZMaterial Color="{TemplateBinding Tag}"
                                          x:Name="PART_Track" />
                        <local:FZMaterial Color="{StaticResource A_Color_ProgressBackground_Overlay}" 
                                          Margin="0,0,0,-0.5"  />

                        <local:FZMaterial x:Name="PART_Indicator"
                                          HorizontalAlignment="Left"
                                          Preset="{StaticResource A_FZMaterialPreset_Cutout}" />
                    </Grid>
                </local:FZMaterial>



                <!-- Bar tips are currently tbd -->
                <Decorator Visibility="Hidden">
                    <local:FZMaterial Color="#fff"
                                                  Preset="{StaticResource A_FZMaterialPresetRoundtangle_BarEdge}"
                                                  Width="8"
                                                  HorizontalAlignment="Right">
                        <local:FZMaterial Color="#fff"
                                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_BarEdgeGlow}"
                                                      Margin="-30,-100" />
                    </local:FZMaterial>
                </Decorator>

            </Grid>
        </ControlTemplate>

        <ControlTemplate x:Key="A_ControlTemplate_ProgressBar_XPLevelBar_Eliminator" TargetType="{x:Type ProgressBar}">
            <Grid RenderTransform="{StaticResource A_Transform_Skew}">
                <local:FZMaterial>
                    <Grid>
                        <local:FZMaterial Margin="0,0,0,-0.5" x:Name="PART_Track"
                                          ImageSource="/ForzaUI;component/Textures/Data_Bound/Eliminator/PostRace/ELIM_ThreadBar.png"/>

                        <DockPanel>
                            <local:FZMaterial x:Name="PART_Indicator"
                                              Opacity="0" DockPanel.Dock="Left"/>
                            <local:FZMaterial Color="{StaticResource A_Color_ProgressBackground_Overlay}"
                                              Stretch="None" HorizontalAlignment="Stretch"/>
                        </DockPanel>
                    </Grid>
                </local:FZMaterial>
            </Grid>
        </ControlTemplate>
        
        <ControlTemplate x:Key="A_ControlTemplate_ProgressBar_XPLevelBar_Super_7" TargetType="{x:Type ProgressBar}">
            <Grid RenderTransform="{StaticResource A_Transform_Skew}">
                <local:FZMaterial>
                    <Grid>
                        <local:FZMaterial Margin="0,0,0,-0.5" x:Name="PART_Track"
                                          ImageSource="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/PostRace/SUPER7_ThreadBar.png"/>

                        <DockPanel>
                            <local:FZMaterial x:Name="PART_Indicator"
                                              Opacity="0" DockPanel.Dock="Left"/>
                            <local:FZMaterial Color="{StaticResource A_Color_ProgressBackground_Overlay}"
                                              Stretch="None" HorizontalAlignment="Stretch"/>
                        </DockPanel>
                    </Grid>
                </local:FZMaterial>
            </Grid>
        </ControlTemplate>

        <Style x:Key="A_Style_ProgressBar_XPLevelBarMask" TargetType="{x:Type ProgressBar}">
            <Setter Property="Focusable"
                    Value="False" />
            <Setter Property="Template" Value="{StaticResource A_ControlTemplate_ProgressBar_XPLevelBar}"/>
        </Style>

        <Style x:Key="A_Style_ProgressBar_XPRewardBarMask" TargetType="{x:Type ProgressBar}" BasedOn="{StaticResource A_Style_ProgressBar_XPLevelBarMask}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding InfluenceThread.StringID}" Value="eliminator">
                    <Setter Property="Template" Value="{StaticResource A_ControlTemplate_ProgressBar_XPLevelBar_Eliminator}"/>
                </DataTrigger>
            </Style.Triggers>
            <Style.Triggers>
                <DataTrigger Binding="{Binding InfluenceThread.StringID}" Value="super_7">
                    <Setter Property="Template" Value="{StaticResource A_ControlTemplate_ProgressBar_XPLevelBar_Super_7}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_Totals">
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseEntityModelEvent EventName="Panel_ShowTotal"
                                             local:TriggerAnimation.KeyTime="0:0:0.1" />
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.0"
                                    Storyboard.TargetName="EventFire"
                                    EventName="ShowTotal" />
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.1"
                                    Storyboard.TargetName="EventFire"
                                    EventName="StartTotalTicker" />
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:2.0"
                                    Storyboard.TargetName="EventFire"
                                    EventName="TotalReached" />
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:3.4"
                                    Storyboard.TargetName="EventFire"
                                    EventName="ShowLevelBar" />
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:4.4"
                                    Storyboard.TargetName="PART_LevelBar"
                                    EventName="StartLevelBarFillAnimation" />
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:4.4"
                                    Storyboard.TargetName="PART_RewardBar"
                                    EventName="StartLevelBarFillAnimation" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_1Bonus"
                            BeginTime="0:0:0.4">
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.5"
                                    EventName="ShowBonusItem1" />
                <local:RaiseEntityModelEvent EventName="Panel_ShowTotal"
                                             local:TriggerAnimation.KeyTime="0:0:0.8" />
                <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:1.2"
                                         Name="Begin1"
                                         Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_2Bonus"
                            BeginTime="0:0:0.4">
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.5"
                                        EventName="ShowBonusItem1"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.8"
                                    EventName="ShowBonusItem2" />
                <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:1.5"
                                         Name="Begin2"
                                         Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_3Bonus"
                            BeginTime="0:0:0.4">
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.5"
                                        EventName="ShowBonusItem1"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.8"
                                        EventName="ShowBonusItem2"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.1"
                                    EventName="ShowBonusItem3" />
                <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:1.8"
                                         Name="Begin3"
                                         Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_4Bonus"
                            BeginTime="0:0:0.4">
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.5"
                                        EventName="ShowBonusItem1"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.8"
                                        EventName="ShowBonusItem2"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.1"
                                        EventName="ShowBonusItem3"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.4"
                                    EventName="ShowBonusItem4" />
                <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:2.1"
                                         Name="Begin4"
                                         Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_5Bonus"
                            BeginTime="0:0:0.4">
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.5"
                                        EventName="ShowBonusItem1"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.8"
                                        EventName="ShowBonusItem2"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.1"
                                        EventName="ShowBonusItem3"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.4"
                                        EventName="ShowBonusItem4"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.7"
                                    EventName="ShowBonusItem5" />
                <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:2.4"
                                         Name="Begin5"
                                         Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_6Bonus"
                            BeginTime="0:0:0.4">
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.5"
                                    EventName="ShowBonusItem1" />
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.8"
                                    EventName="ShowBonusItem2" />
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.1"
                                    EventName="ShowBonusItem3" />
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.4"
                                    EventName="ShowBonusItem4" />
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.7"
                                    EventName="ShowBonusItem5" />
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:2.0"
                                    EventName="ShowBonusItem6" />
                <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:2.7"
                                         Name="Begin6"
                                         Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_7Bonus"
                            BeginTime="0:0:0.4">
            <local:UIStoryboard.TriggerAnimation> 
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.5"
                                        EventName="ShowBonusItem1"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.8"
                                        EventName="ShowBonusItem2"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.1"
                                        EventName="ShowBonusItem3"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.4"
                                        EventName="ShowBonusItem4"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.7"
                                        EventName="ShowBonusItem5"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:2.0"
                                        EventName="ShowBonusItem6"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:2.3"
                                    EventName="ShowBonusItem7" />
                <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:3.0"
                                         Name="Begin7"
                                         Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_8Bonus"
                            BeginTime="0:0:0.4">
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.5"
                                        EventName="ShowBonusItem1"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.8"
                                        EventName="ShowBonusItem2"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.1"
                                        EventName="ShowBonusItem3"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.4"
                                        EventName="ShowBonusItem4"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.7"
                                        EventName="ShowBonusItem5"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:2.0"
                                        EventName="ShowBonusItem6"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:2.3"
                                        EventName="ShowBonusItem7"/>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:2.6"
                                    EventName="ShowBonusItem8" />
                <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:3.3"
                                         Name="Begin8"
                                         Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_ShowLevelBar">
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent EventName="EnableSkip"
                                    local:TriggerAnimation.KeyTime="0:0:0.6" />
            </local:UIStoryboard.TriggerAnimation>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="GamerPicBlock"
                                           Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                           FillBehavior="HoldEnd">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="0" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                      Value="-1000"
                                      EasingFunction="{local:CubicEasing EasingMode=EaseOut}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                           Storyboard.TargetName="TotalValue"
                                           BeginTime="0:0:0">
                <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                      Value="{StaticResource A_Double_PostRace_WhooshInFromLeft_StartPositionXOffset}"
                                      EasingFunction="{local:LinearEasing}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="TotalValue"
                                           BeginTime="0:0:0.0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.2"
                                      Value="0" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                           Storyboard.TargetName="TotalLabel"
                                           BeginTime="0:0:0.0">
                <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                      Value="{StaticResource A_Double_PostRace_WhooshInFromRight_StartPositionXOffset}"
                                      EasingFunction="{local:LinearEasing}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="TotalLabel"
                                           BeginTime="0:0:0.0">
                <LinearDoubleKeyFrame KeyTime="0:0:0.2"
                                      Value="0" />
            </DoubleAnimationUsingKeyFrames>
            
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="RewardBarContainer"
                                           Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.2"
                                        Value="2500" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.5"
                                      Value="0"
                                      EasingFunction="{local:CubicEasing EasingMode=EaseOut}" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="RewardBarContainer"
                                           Storyboard.TargetProperty="Effect"
                                           FillBehavior="HoldEnd">
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5"
                                        Value="{x:Null}" />
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="LevelBarContainer"
                                           Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.3"
                                        Value="2500" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.6"
                                      Value="0"
                                      EasingFunction="{local:CubicEasing EasingMode=EaseOut}" />
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LevelBarContainer"
                                           Storyboard.TargetProperty="Effect"
                                           FillBehavior="HoldEnd">
                <DiscreteObjectKeyFrame KeyTime="0:0:0.6"
                                        Value="{x:Null}" />
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BarsDivider"
                                           Storyboard.TargetProperty="Opacity"
                                           FillBehavior="HoldEnd">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.4"
                                        Value="0" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.6"
                                      Value="1" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <KeyTime x:Key="A_KeyTime_LevelUp_Whiteout">0:0:0.1</KeyTime>
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_Whiteout_Fade"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout}"
                             Offset="0:0:0.1" />

        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_Whiteout_Complete"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout_Fade}"
                             Offset="0:0:0.5" />
        
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_TextIn_Begin"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout_Complete}"
                             Offset="-0:0:0.1" />
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_TextIn_End"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout_Complete}"
                             Offset="0:0:0.1" />
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_TextSlip_Begin"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_End}"
                             Offset="0:0:0.1" />

        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_FlashOn"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout_Fade}"
                             Offset="0:0:0.0" />
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_FlashCenter"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOn}"
                             Offset="{StaticResource A_TimeSpan_FlashToCenter}" />
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_FlashOff"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_FlashCenter}"
                             Offset="{StaticResource A_TimeSpan_FlashCenterToOff}" />
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_FlashOff_Alpha_Begin"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_FlashCenter}"
                             Offset="{StaticResource A_TimeSpan_FlashCenterToAlpha}" />
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_FlashOff_Alpha_End"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOff_Alpha_Begin}"
                             Offset="{StaticResource A_TimeSpan_FlashAlphaToOff}" />

        <System:TimeSpan x:Key="A_TimeSpan_TextSlip_Short_Duration">0:0:2.0</System:TimeSpan>
        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextSlip_Short_End"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_TextSlip_Begin}"
                             Offset="{StaticResource A_TimeSpan_TextSlip_Short_Duration}" />

        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextOut_Short_Begin"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextSlip_Short_End}"
                             Offset="0:0:0.1" />
        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextOut_Short_End"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Short_Begin}"
                             Offset="0:0:0.2" />
        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextOut_Motion_Short_End"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Short_Begin}"
                             Offset="0:0:0.3" />
        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextOut_Alpha_Short_End"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Short_Begin}"
                             Offset="0:0:0.08" />

        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextIn_Begin2"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Alpha_Short_End}"
                             Offset="-0:0:0.1" />
        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextIn_End2"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Alpha_Short_End}"
                             Offset="0:0:0.1" />
        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextSlip_Begin2"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextIn_End2}"
                             Offset="0:0:0.1" />

        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextSlip_Short_End2"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextSlip_Begin2}"
                             Offset="{StaticResource A_TimeSpan_TextSlip_Short_Duration}" />

        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextOut_Short_Begin2"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextSlip_Short_End2}"
                             Offset="0:0:0.1" />
        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextOut_Short_End2"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Short_Begin2}"
                             Offset="0:0:0.2" />
        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextOut_Motion_Short_End2"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Short_Begin2}"
                             Offset="0:0:0.3" />
        <local:OffsetKeyTime x:Key="A_KeyTime_RewardUp_TextOut_Alpha_Short_End2"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Short_Begin2}"
                             Offset="0:0:0.08" />


        <System:TimeSpan x:Key="A_TimeSpan_TextSlip_Duration">0:0:4.0</System:TimeSpan>
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_TextSlip_End"
                             KeyTime="{StaticResource A_KeyTime_RewardUp_TextSlip_Short_End2}" />

        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_TextOut_Begin"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_TextSlip_End}"
                             Offset="0:0:0.1" />
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_TextOut_End"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Begin}"
                             Offset="0:0:0.2" />
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_TextOut_Motion_End"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Begin}"
                             Offset="0:0:0.3" />
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_TextOut_Alpha_End"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Begin}"
                             Offset="0:0:0.08" />

        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_Complete"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_End}"
                             Offset="0:0:0.1" />


        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_BarIn_End"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_Complete}"
                             Offset="0:0:0.0" />
        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_BarIn_Start"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_BarIn_End}"
                             Offset="-0:0:0.2" />


        <local:OffsetKeyTime x:Key="A_KeyTime_LevelUp_StartFillingUpAgain"
                             KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_End}"
                             Offset="0:0:0.3"/>

        <TriggerActionCollection x:Key="A_PostRace_LevelUp_TriggerAnimation">
            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:3.1"
                                Storyboard.TargetName="PART_LevelBar"
                                EventName="LevelBarMidFlip" />
            <local:RaiseFzEvent EventName="DisableSkip"
                                local:TriggerAnimation.KeyTime="0:0:3.1" />
            <local:RaiseFzEvent EventName="EnableSkip"
                                local:TriggerAnimation.KeyTime="0:0:3.7" />
            <!--PauseStoryboard local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_LevelUp_FlashCenter}"
                                 BeginStoryboardName="A_BeginStoryboard_LevelUp" /-->
            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_LevelUp_StartFillingUpAgain}"
                                Storyboard.TargetName="PART_LevelBar"
                                EventName="StartLevelBarFillAnimation" />
        </TriggerActionCollection>
        <ThicknessAnimationUsingKeyFrames x:Key="A_PostRace_LevelUp_LevelUpGlow_Margin"
                                          Storyboard.TargetName="LevelUpGlow"
                                          Storyboard.TargetProperty="Margin">
            <DiscreteThicknessKeyFrame KeyTime="0:0:0"
                                       Value="0" />
            <DiscreteThicknessKeyFrame KeyTime="0:0:0"
                                       Value="0" />
            <EasingThicknessKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout_Complete}"
                                     Value="0,-30"
                                     EasingFunction="{local:LinearEasing}" />
        </ThicknessAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_PostRace_LevelUp_LevelUpGlow_Opacity"
                                       Storyboard.TargetName="LevelUpGlow"
                                       Storyboard.TargetProperty="Opacity">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout}"
                                  Value="0.8" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout_Fade}"
                                    Value="0.8" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout_Complete}"
                                  Value="0" />
        </DoubleAnimationUsingKeyFrames>
        <ThicknessAnimationUsingKeyFrames x:Key="A_PostRace_LevelUp_LevelBarContainer_Margin"
                                          Storyboard.TargetName="LevelBarContainer"
                                          Storyboard.TargetProperty="Margin"
                                          FillBehavior="Stop">
            <DiscreteThicknessKeyFrame KeyTime="0:0:0"
                                       Value="-400,0" />
            <DiscreteThicknessKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_BarIn_Start}"
                                       Value="-400,0" />
            <EasingThicknessKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_BarIn_End}"
                                     Value="0,0,0,0"
                                     EasingFunction="{local:QuadraticEasing EasingMode=EaseOut}" />
        </ThicknessAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_PostRace_LevelUp_LevelFull_Opacity"
                                       Storyboard.TargetName="LevelFull"
                                       Storyboard.TargetProperty="Opacity"
                                       FillBehavior="Stop">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="1" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Begin}"
                                    Value="1" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Complete}"
                                  Value="0" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_PostRace_LevelUp_PART_LevelBar_Opacity"
                                       Storyboard.TargetName="PART_LevelBar"
                                       Storyboard.TargetProperty="Opacity"
                                       FillBehavior="Stop">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Complete}"
                                    Value="1" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_PostRace_LevelUp_LevelUpTitle_Opacity"
                                       Storyboard.TargetName="LevelUpTitle"
                                       Storyboard.TargetProperty="Opacity">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                    Value="0" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_Begin}"
                                    Value="0" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_End}"
                                  Value="1"
                                  EasingFunction="{local:LinearEasing}" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Begin}"
                                    Value="1" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Alpha_End}"
                                  Value="0"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_PostRace_LevelUp_LevelUpDesc_Opacity"
                                       Storyboard.TargetName="LevelUpDesc"
                                       Storyboard.TargetProperty="Opacity">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                    Value="0" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_Begin}"
                                    Value="0" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_End}"
                                  Value="1"
                                  EasingFunction="{local:LinearEasing}" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Begin}"
                                    Value="1" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Alpha_End}"
                                  Value="0"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>

        <DoubleAnimationUsingKeyFrames x:Key="A_PostRace_LevelUp_LevelUpTitle_X"
                                       Storyboard.TargetName="LevelUpTitle"
                                       Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                    Value="-1000" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_Begin}"
                                    Value="-1000" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextSlip_Begin}"
                                  Value="-5"
                                  EasingFunction="{local:QuadraticEasing EasingMode=EaseOut}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Begin}"
                                  Value="5"
                                  EasingFunction="{local:LinearEasing}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Motion_End}"
                                  Value="1000"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_PostRace_LevelUp_LevelUpDesc_X"
                                       Storyboard.TargetName="LevelUpDesc"
                                       Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="1000" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_Begin}"
                                    Value="1000" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextSlip_Begin}"
                                  Value="5"
                                  EasingFunction="{local:QuadraticEasing EasingMode=EaseOut}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Begin}"
                                  Value="-5"
                                  EasingFunction="{local:LinearEasing}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Motion_End}"
                                  Value="-1000"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_PostRace_LevelUp_LevelUpFlash_X"
                                       Storyboard.TargetName="LevelUpFlash"
                                       Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="-2500" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOn}"
                                    Value="-800" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashCenter}"
                                  Value="1000"
                                  EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOff}"
                                  Value="3500"
                                  EasingFunction="{local:ExponentialEasing EasingMode=EaseOut}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_PostRace_LevelUp_LevelUpFlash_Opacity"
                                       Storyboard.TargetName="LevelUpFlash"
                                       Storyboard.TargetProperty="Opacity">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOn}"
                                    Value="{StaticResource A_Double_FlashOpacity}" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOff_Alpha_Begin}"
                                    Value="{StaticResource A_Double_FlashOpacity}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOff_Alpha_End}"
                                  Value="0" />
        </DoubleAnimationUsingKeyFrames>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_LevelUp"
                            TriggerAnimation="{StaticResource A_PostRace_LevelUp_TriggerAnimation}">
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpGlow_Margin" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpGlow_Opacity" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelBarContainer_Margin" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelFull_Opacity" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_PART_LevelBar_Opacity" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpTitle_Opacity" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpDesc_Opacity" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpTitle_X" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpDesc_X" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpFlash_X" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpFlash_Opacity" />
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_SkipTo_LevelUp"
                            TriggerAnimation="{StaticResource A_PostRace_LevelUp_TriggerAnimation}"
                            BeginTime="-0:0:3.1">
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpGlow_Margin" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpGlow_Opacity" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelBarContainer_Margin" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelFull_Opacity" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_PART_LevelBar_Opacity" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpTitle_Opacity" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpDesc_Opacity" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpTitle_X" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpDesc_X" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpFlash_X" />
            <StaticResourceExtension ResourceKey="A_PostRace_LevelUp_LevelUpFlash_Opacity" />
        </local:UIStoryboard>

        <TriggerActionCollection x:Key="A_TriggerAnimation_RewardUp">
            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:3.1"
                                Storyboard.TargetName="PART_RewardBar"
                                EventName="LevelBarMidFlip" />
            <local:RaiseFzEvent EventName="DisableSkip"
                                local:TriggerAnimation.KeyTime="0:0:3.1" />
            <local:RaiseFzEvent EventName="EnableSkip"
                                local:TriggerAnimation.KeyTime="0:0:3.7" />
            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_LevelUp_StartFillingUpAgain}"
                                Storyboard.TargetName="PART_RewardBar"
                                EventName="StartLevelBarFillAnimation" />
            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_RewardUp_TextIn_Begin2}"
                                EventName="WhooshIn"
                                Storyboard.TargetName="RewardTextBits" />
            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Short_Begin2}"
                                EventName="WhooshOut"
                                Storyboard.TargetName="RewardTextBits" />
        </TriggerActionCollection>
        <ThicknessAnimationUsingKeyFrames x:Key="A_Storyboard_PostRace_RewardUp_RewardUpGlow_Margin"
                                          Storyboard.TargetName="RewardUpGlow"
                                          Storyboard.TargetProperty="Margin">
            <DiscreteThicknessKeyFrame KeyTime="0:0:0"
                                       Value="0" />
            <DiscreteThicknessKeyFrame KeyTime="0:0:0"
                                       Value="0" />
            <EasingThicknessKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout_Complete}"
                                     Value="0,-30"
                                     EasingFunction="{local:LinearEasing}" />
        </ThicknessAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_Storyboard_PostRace_RewardUp_RewardUpGlow_Opacity"
                                       Storyboard.TargetName="RewardUpGlow"
                                       Storyboard.TargetProperty="Opacity">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout}"
                                  Value="0.8" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout_Fade}"
                                    Value="0.8" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Whiteout_Complete}"
                                  Value="0" />
        </DoubleAnimationUsingKeyFrames>
        <ThicknessAnimationUsingKeyFrames x:Key="A_Storyboard_PostRace_RewardUp_RewardBarContainer_Margin"
                                          Storyboard.TargetName="RewardBarContainer"
                                          Storyboard.TargetProperty="Margin"
                                          FillBehavior="Stop">
            <DiscreteThicknessKeyFrame KeyTime="0:0:0"
                                       Value="-400,0" />
            <DiscreteThicknessKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_BarIn_Start}"
                                       Value="-400,0" />
            <EasingThicknessKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_BarIn_End}"
                                     Value="0,0,0,0"
                                     EasingFunction="{local:QuadraticEasing EasingMode=EaseOut}" />
        </ThicknessAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_Storyboard_PostRace_RewardUp_RewardFull_Opacity"
                                       Storyboard.TargetName="RewardFull"
                                       Storyboard.TargetProperty="Opacity"
                                       FillBehavior="Stop">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="1" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextOut_Begin}"
                                    Value="1" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Complete}"
                                  Value="0" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_Storyboard_PostRace_RewardUp_PART_RewardBar_Opacity"
                                       Storyboard.TargetName="PART_RewardBar"
                                       Storyboard.TargetProperty="Opacity"
                                       FillBehavior="Stop">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_Complete}"
                                    Value="1" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_Storyboard_PostRace_RewardUp_RewardUpTitle_Opacity"
                                       Storyboard.TargetName="RewardUpTitle"
                                       Storyboard.TargetProperty="Opacity">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                    Value="0" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_Begin}"
                                    Value="0" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_End}"
                                  Value="1"
                                  EasingFunction="{local:LinearEasing}" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Short_Begin}"
                                    Value="1" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Alpha_Short_End}"
                                  Value="0"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_Storyboard_PostRace_RewardUp_RewardUpDesc_Opacity"
                                       Storyboard.TargetName="RewardUpDesc"
                                       Storyboard.TargetProperty="Opacity">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                    Value="0" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_Begin}"
                                    Value="0" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_End}"
                                  Value="1"
                                  EasingFunction="{local:LinearEasing}" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Short_Begin}"
                                    Value="1" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Alpha_Short_End}"
                                  Value="0"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_Storyboard_PostRace_RewardUp_RewardUpTitle_X"
                                       Storyboard.TargetName="RewardUpTitle"
                                       Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                    Value="-1000" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_Begin}"
                                    Value="-1000" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextSlip_Begin}"
                                  Value="-5"
                                  EasingFunction="{local:QuadraticEasing EasingMode=EaseOut}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_RewardUp_TextSlip_Short_End}"
                                  Value="5"
                                  EasingFunction="{local:LinearEasing}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Motion_Short_End}"
                                  Value="1000"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_Storyboard_PostRace_RewardUp_RewardUpDesc_X"
                                       Storyboard.TargetName="RewardUpDesc"
                                       Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="1000" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextIn_Begin}"
                                    Value="1000" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_TextSlip_Begin}"
                                  Value="5"
                                  EasingFunction="{local:QuadraticEasing EasingMode=EaseOut}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_RewardUp_TextSlip_Short_End}"
                                  Value="-5"
                                  EasingFunction="{local:LinearEasing}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_RewardUp_TextOut_Motion_Short_End}"
                                  Value="-1000"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_Storyboard_PostRace_RewardUp_RewardUpFlash_X"
                                       Storyboard.TargetName="RewardUpFlash"
                                       Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="-2500" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOn}"
                                    Value="-800" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashCenter}"
                                  Value="1000"
                                  EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOff}"
                                  Value="3500"
                                  EasingFunction="{local:ExponentialEasing EasingMode=EaseOut}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames x:Key="A_Storyboard_PostRace_RewardUp_RewardUpFlash_Opacity"
                                       Storyboard.TargetName="RewardUpFlash"
                                       Storyboard.TargetProperty="Opacity">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOn}"
                                    Value="{StaticResource A_Double_FlashOpacity}" />
            <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOff_Alpha_Begin}"
                                    Value="{StaticResource A_Double_FlashOpacity}" />
            <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_FlashOff_Alpha_End}"
                                  Value="0" />
        </DoubleAnimationUsingKeyFrames>
        
        <local:UIStoryboard x:Key="A_Storyboard_PostRace_RewardUp"
                            TriggerAnimation="{StaticResource A_TriggerAnimation_RewardUp}">
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpGlow_Margin" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpGlow_Opacity" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardBarContainer_Margin" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardFull_Opacity" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_PART_RewardBar_Opacity" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpTitle_Opacity" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpDesc_Opacity" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpTitle_X" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpDesc_X" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpFlash_X" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpFlash_Opacity" />
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_SkipTo_RewardUp"
                            TriggerAnimation="{StaticResource A_TriggerAnimation_RewardUp}"
                            BeginTime="-0:0:3.1">
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpGlow_Margin" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpGlow_Opacity" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardBarContainer_Margin" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardFull_Opacity" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_PART_RewardBar_Opacity" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpTitle_Opacity" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpDesc_Opacity" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpTitle_X" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpDesc_X" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpFlash_X" />
            <StaticResourceExtension ResourceKey="A_Storyboard_PostRace_RewardUp_RewardUpFlash_Opacity" />
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_FinalRewardUp" >
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:6.75" EventName="Complete" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <Size x:Key="A_Size_PostRace_GamerPicSizeParams">424,424</Size>

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_PostRace_Gamerpic"
                                           Saturation="0.8" />

        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_PostRace_Gamerpic_Overlay"
                                          Saturation="1.0" />

        <ImageBrush x:Key="A_Brush_GamerpicOpacity"
                    ImageSource="/ForzaUI;component/Textures/Data_Bound/PostRace/Gamerpic_Mask.png" />

        <ScaleTransform x:Key="A_Transform_FinalValue" />

        <Color x:Key="A_Color_XPRewards_Content">#ff3c3c3c</Color>

        <Storyboard x:Key="A_Storyboard_PostRace_WhooshOutToLeft">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                           Storyboard.TargetName="{x:Null}">
                <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                      Value="{StaticResource A_Double_PostRace_WhooshInFromLeft_StartPositionXOffset}"
                                      EasingFunction="{local:LinearEasing}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="{x:Null}">
                <LinearDoubleKeyFrame KeyTime="0:0:0.3"
                                      Value="0" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

        <Storyboard x:Key="A_Storyboard_PostRace_WhooshOutToRight">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                           Storyboard.TargetName="{x:Null}">
                <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                      Value="{StaticResource A_Double_PostRace_WhooshInFromRight_StartPositionXOffset}"
                                      EasingFunction="{local:LinearEasing}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="{x:Null}">
                <LinearDoubleKeyFrame KeyTime="0:0:0.3"
                                      Value="0" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

        <System:Double x:Key="A_Double_FinalTotalScale">1.15</System:Double>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_WhooshInFromLeft_Slide_XPTotal">
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent EventName="DisableSkip"
                                    local:TriggerAnimation.KeyTime="0:0:2" />
                <local:RaiseFzEvent EventName="EnableSkip"
                                    local:TriggerAnimation.KeyTime="0:0:2.6" />
            </local:UIStoryboard.TriggerAnimation>
            <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromLeft_Slide_X" />
            <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromLeft_Slide_Opacity" />
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_WhooshInFromLeft_Slide_XPTotal_Skip"
                            BeginTime="-0:0:2">
            <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromLeft_Slide_X" />
            <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromLeft_Slide_Opacity" />
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_WhooshInFromRight_Slide_XPTotal">
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent EventName="DisableSkip"
                                    local:TriggerAnimation.KeyTime="0:0:2" />
                <local:RaiseFzEvent EventName="EnableSkip"
                                    local:TriggerAnimation.KeyTime="0:0:2.6" />
            </local:UIStoryboard.TriggerAnimation>
            <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromRight_Slide_X" />
            <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromRight_Slide_Opacity" />
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_PostRace_WhooshInFromRight_Slide_XPTotal_Skip"
                            BeginTime="-0:0:2">
            <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromRight_Slide_X" />
            <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromRight_Slide_Opacity" />
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="GamerPicBlock_transition_in"
                            DurationOverride="{StaticResource A_Duration_Transition_ElementIn}">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                           Storyboard.TargetName="{x:Null}">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="-1000" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.43"
                                      Value="0"
                                      EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="{x:Null}">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="0" />
                <LinearDoubleKeyFrame KeyTime="0:0:0.129"
                                      Value="1" />
            </DoubleAnimationUsingKeyFrames>
            
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="TitleContainer_transition_in"
                            DurationOverride="{StaticResource A_Duration_Transition_ElementIn}">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                           Storyboard.TargetName="{x:Null}">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="-1000" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.43"
                                      Value="0"
                                      EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="{x:Null}">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="0" />
                <LinearDoubleKeyFrame KeyTime="0:0:0.129"
                                      Value="1" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>
    </Page.Resources>
    <Grid Width="1920"
          Height="540"
          ClipToBounds="True">
        <Grid x:Name="IEBlur"
              Width="1920"
              Height="540"
              local:MotionBlurEffect.MotionBlurPositionXControl="{Binding Path=(UIElement.RenderTransform).(TranslateTransform.X), ElementName=IE}"
              Tag=""
              ClipToBounds="True">
            <FrameworkElement.Style>
                <Style TargetType="Grid">
                    <Style.Triggers>
                        <Trigger Property="Tag"
                                 Value="IETransitionMotionBlur">
                        </Trigger>
                    </Style.Triggers>
                </Style>
            </FrameworkElement.Style>
            <Grid x:Name="NewStyleBits">
                <UIElement.RenderTransform>
                    <TranslateTransform />
                </UIElement.RenderTransform>
                <local:FZMaterial>
                    <local:FZMaterial.Preset>
                        <local:FZMaterialPresetRoundtangle GradientColorA="{Binding InfluenceThread.StringID, Converter={StaticResource A_Converter_InfluenceThreadIdToBackgroundGradientA}, FallbackValue=#FF0864CB}"
                                                           GradientColorB="{Binding InfluenceThread.StringID, Converter={StaticResource A_Converter_InfluenceThreadIdToBackgroundGradientB}, FallbackValue=#FF00C87A}"
                                                           GradientAngle="90" />
                    </local:FZMaterial.Preset>
                </local:FZMaterial>

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

                <Decorator Margin="0,0,0,0">
                    <Grid Height="540"
                          Width="1500"
                          HorizontalAlignment="Left"
                          ClipToBounds="True"
                          Style="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}"
                          x:Name="GamerPicBlock">
                        <Grid HorizontalAlignment="Left"
                              Margin="80,0,0,0">
                            <local:FZMaterial OpacityMask="{StaticResource A_Brush_GamerpicOpacity}"
                                              Width="878"
                                              Height="540"
                                              HorizontalAlignment="Left">
                                <Grid>
                                    <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_PostRace_Gamerpic}"
                                                      ClipToBounds="True"
                                                      VerticalAlignment="Center"
                                                      HorizontalAlignment="Center"
                                                      GreedyMeasure="True"
                                                      ImageSource="{Binding UserProfile, Converter={StaticResource A_GamerPicOrTeamProfileConverter}, ConverterParameter={StaticResource A_Size_PostRace_GamerPicSizeParams}}"
                                                      Stretch="UniformToFill" />
                                    <local:FZMaterial Color="{Binding InfluenceThread.StringID, Converter={StaticResource A_Converter_InfluenceThreadIdToTextBackground}, FallbackValue=#FF0864CB}"
                                                      Opacity="0.2"
                                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_PostRace_Gamerpic_Overlay}" />
                                    <local:FZMaterial Color="#000"
                                                      Opacity="0.65" />
                                    <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/PostRace/Gamerpic_Vignette.png" />

                                </Grid>
                            </local:FZMaterial>

                            <StackPanel HorizontalAlignment="Left">
                                <Decorator Height="80" />
                                <Grid Style="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}"
                                  local:UIPageTransitionManager.TransitionIndex="0"
                                  x:Name="TitleContainer">
                                    <StackPanel HorizontalAlignment="Left"
                                                Margin="260,0,0,0"
                                                RenderTransform="{StaticResource A_Transform_Italic}">
                                        <local:FZTextBlock Text="{local:Loc InGame.IDS_Influence_Rewards}"
                                                           Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                           CapHeight="43"
                                                           MaxWidth="500"
                                                           Color="#fff" />
                                        <Decorator Height="8" />
                                        <local:FZMaterial Color="#fff"
                                                          Height="4">
                                            <local:FZMaterial.Preset>
                                                <local:FZMaterialPresetRoundtangle CornerRadius="2" />
                                            </local:FZMaterial.Preset>
                                        </local:FZMaterial>
                                    </StackPanel>
                                </Grid>

                                <Decorator Height="26" />

                                <!--Use alternation count to give each item access to its own index-->
                                <ItemsControl AlternationCount="10000">

                                    <Decorator  Style="{StaticResource A_Style_RewardsBonusItemWrapper}">
                                        <DockPanel Style="{StaticResource A_Style_RewardsBonusDockPanel}"
                                                   DataContext="{Binding BonusItems[0]}">
                                            <Decorator Margin="0"
                                                       DockPanel.Dock="Right">
                                                <Control x:Name="BonusValue1"
                                                         Margin="0"
                                                         Style="{StaticResource A_Style_Control_PostRace_BonusValueBlock_XP}" />
                                            </Decorator>
                                            <Control x:Name="BonusLabel1"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusLabelBlock}" />

                                        </DockPanel>
                                    </Decorator>


                                    <Decorator Style="{StaticResource A_Style_RewardsBonusItemWrapper}">
                                        <DockPanel Style="{StaticResource A_Style_RewardsBonusDockPanel}"
                                                   DataContext="{Binding BonusItems[1]}">
                                            <Control x:Name="BonusValue2"
                                                     DockPanel.Dock="Right"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusValueBlock_XP}" />
                                            <Control x:Name="BonusLabel2"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusLabelBlock}" />
                                        </DockPanel>
                                    </Decorator>

                                    <Decorator Style="{StaticResource A_Style_RewardsBonusItemWrapper}">
                                        <DockPanel Style="{StaticResource A_Style_RewardsBonusDockPanel}"
                                                   DataContext="{Binding BonusItems[2]}">
                                            <Control x:Name="BonusValue3"
                                                     DockPanel.Dock="Right"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusValueBlock_XP}" />
                                            <Control x:Name="BonusLabel3"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusLabelBlock}" />

                                        </DockPanel>
                                    </Decorator>

                                    <Decorator Style="{StaticResource A_Style_RewardsBonusItemWrapper}">
                                        <DockPanel Style="{StaticResource A_Style_RewardsBonusDockPanel}"
                                                   DataContext="{Binding BonusItems[3]}">
                                            <Control x:Name="BonusValue4"
                                                     DockPanel.Dock="Right"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusValueBlock_XP}" />
                                            <Control x:Name="BonusLabel4"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusLabelBlock}" />
                                        </DockPanel>
                                    </Decorator>

                                    <Decorator Style="{StaticResource A_Style_RewardsBonusItemWrapper}">
                                        <DockPanel Style="{StaticResource A_Style_RewardsBonusDockPanel}"
                                                   DataContext="{Binding BonusItems[4]}">
                                            <Control x:Name="BonusValue5"
                                                     DockPanel.Dock="Right"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusValueBlock_XP}" />
                                            <Control x:Name="BonusLabel5"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusLabelBlock}" />
                                        </DockPanel>
                                    </Decorator>

                                    <Decorator Style="{StaticResource A_Style_RewardsBonusItemWrapper}">
                                        <DockPanel Style="{StaticResource A_Style_RewardsBonusDockPanel}"
                                                   DataContext="{Binding BonusItems[5]}">
                                            <Control x:Name="BonusValue6"
                                                     DockPanel.Dock="Right"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusValueBlock_XP}" />
                                            <Control x:Name="BonusLabel6"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusLabelBlock}" />
                                        </DockPanel>
                                    </Decorator>

                                    <Decorator Style="{StaticResource A_Style_RewardsBonusItemWrapper}">
                                        <DockPanel Style="{StaticResource A_Style_RewardsBonusDockPanel}"
                                                   DataContext="{Binding BonusItems[6]}">
                                            <Control x:Name="BonusValue7"
                                                     DockPanel.Dock="Right"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusValueBlock_XP}" />
                                            <Control x:Name="BonusLabel7"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusLabelBlock}" />
                                        </DockPanel>
                                    </Decorator>

                                    <Decorator Style="{StaticResource A_Style_RewardsBonusItemWrapper}">
                                        <DockPanel Style="{StaticResource A_Style_RewardsBonusDockPanel}"
                                                   DataContext="{Binding BonusItems[7]}">
                                            <Control x:Name="BonusValue8"
                                                     DockPanel.Dock="Right"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusValueBlock_XP}" />
                                            <Control x:Name="BonusLabel8"
                                                     Style="{StaticResource A_Style_Control_PostRace_BonusLabelBlock}" />
                                        </DockPanel>
                                    </Decorator>

                                </ItemsControl>
                            </StackPanel>
                        </Grid>
                    </Grid>
                </Decorator>

                <Grid Width="878"
                      Height="540"
                      Margin="80,0,0,0"
                      HorizontalAlignment="Left">
                </Grid>

                <Decorator HorizontalAlignment="Right"
                           VerticalAlignment="Center"
                           Margin="0,50,0,-50"
                           Width="1100">
                    <local:ZPanel.Transform>
                        <local:Transform3DGroup>
                            <local:ZRotation Angle="-6" />
                        </local:Transform3DGroup>
                    </local:ZPanel.Transform>
                    <StackPanel Orientation="Vertical"
                                MaxWidth="900"
                                HorizontalAlignment="Center"
                                RenderTransform="{StaticResource A_Transform_Italic}">
                        <Control x:Name="TotalLabel"
                                 Margin="20,0,0,0"
                                 HorizontalAlignment="Left"
                                 Style="{StaticResource A_Style_Control_PostRace_TotalLabelBlock}"
                                 Tag="{local:Loc InGame.IDS_PostRace_InfluenceTotal}" />

                        <Decorator Height="22" />

                        <Grid Opacity="0"
                              x:Name="TotalValue"
                              local:ZPanel.TransformOrigin="0.5,0"
                              MaxWidth="650">
                            <local:ZPanel.Transform>
                                <Transform3DGroup>
                                    <RotateTransform3D />
                                    <TranslateTransform3D />
                                    <ScaleTransform3D CenterY="0" />
                                </Transform3DGroup>
                            </local:ZPanel.Transform>
                            <Canvas HorizontalAlignment="Left">
                                <Control Style="{StaticResource A_Style_Control_PostRace_TotalValueBlock}"
                                         Opacity="1"
                                         local:BindingProxy.A="{Binding TotalReward.TickerValue}"
                                         Tag="/ForzaUI;component/Textures/Data_Bound/PostRace/INF_110_FilledCircle.png"
                                         local:MotionBlurEffect.MotionBlurPositionXControl="{Binding (local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX), RelativeSource={RelativeSource AncestorType=Grid}}"
                                         Height="{Binding ActualHeight, ElementName=FinalValue}" />
                            </Canvas>


                            <Grid>
                                <local:FZMaterial x:Name="TotalGlow"
                                                  RenderTransformOrigin="0.5, 0.5"
                                                  Color="#9AFFFFFF"
                                                  Opacity="0"
                                                  Preset="{StaticResource A_FZMaterialPresetAdditive}"
                                                  ImageSource="/ForzaUI;component/Textures/Anthem/HUD/SkillsLargeGlow.png"
                                                  local:ZPanel.DisableClipping="True"
                                                  IsHitTestVisible="False">
                                    <local:FZMaterial.RenderTransform>
                                        <ScaleTransform ScaleX="1.5"
                                                        ScaleY="3" />
                                    </local:FZMaterial.RenderTransform>
                                </local:FZMaterial>
                                <Control Style="{StaticResource A_Style_Control_PostRace_TotalValueBlock_Additive_NoMotionBlur}"
                                         local:BindingProxy.A="{Binding TotalReward.TargetTickerValue}"
                                         RenderTransformOrigin="0.5,0.5"
                                         RenderTransform="{StaticResource A_Transform_FinalValue}"
                                         x:Name="FinalValue"
                                         Tag="/ForzaUI;component/Textures/Data_Bound/PostRace/INF_110_FilledCircle.png" />
                            </Grid>

                        </Grid>

                    </StackPanel>
                </Decorator>

                <local:FZMaterial Color="#000000"
                                  Opacity="0.3"
                                  Height="27"
                                  VerticalAlignment="Bottom" />
                <local:FZMaterial Color="#000000"
                                  Opacity="0.3"
                                  Height="27"
                                  VerticalAlignment="Top" />

                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="268" />
                        <RowDefinition Height="4" />
                        <RowDefinition Height="268" />
                    </Grid.RowDefinitions>
                    <Grid.Resources>
                        <Style x:Key="A_Style_FZTextBlock_RewardThread"
                               BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}"
                               TargetType="local:FZTextBlock">
                            <Setter Property="Color"
                                    Value="#fff" />
                            <Setter Property="HorizontalAlignment"
                                    Value="Center" />
                        </Style>

                        <Style x:Key="A_Style_FZTextBlock_RewardBox"
                               BasedOn="{StaticResource A_Style_FZTextBlock_HorizonC}"
                               TargetType="local:FZTextBlock">
                            <Setter Property="Color"
                                    Value="#fff" />
                            <Setter Property="HorizontalAlignment"
                                    Value="Center" />
                        </Style>

                        <Style x:Key="A_Style_FZTextBlock_LevelBox"
                               BasedOn="{StaticResource A_Style_FZTextBlock_HorizonC}"
                               TargetType="local:FZTextBlock">
                            <Setter Property="Color"
                                    Value="{StaticResource A_Color_XPRewards_Content}" />
                            <Setter Property="HorizontalAlignment"
                                    Value="Center" />
                        </Style>

                        <Style x:Key="A_Style_FZMaterial_TierAsset" TargetType="local:FZMaterial">
                            <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/PostRace/Thread_Tier_Asset.png"/>
                            <Setter Property="Stretch" Value="Uniform" />
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding InfluenceThread.StringID, RelativeSource={RelativeSource AncestorType=Page}}" Value="eliminator">
                                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Eliminator/PostRace/ELIM_Thread_Tier_Asset.png"/>
                                </DataTrigger>
                            </Style.Triggers>
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding InfluenceThread.StringID, RelativeSource={RelativeSource AncestorType=Page}}" Value="super_7">
                                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/SuperChallenges/PostRace/SUPER7_Thread_Tier_Asset.png"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>

                        <ControlTemplate TargetType="Control"
                                         x:Key="A_Template_LevelBox">
                            <Grid Width="278">
                                <local:FZMaterial Color="#ffff"
                                                  Width="135"
                                                  HorizontalAlignment="{TemplateBinding HorizontalAlignment}" />

                                <local:FZMaterial RenderTransform="{StaticResource A_Transform_Skew}" />
                                <local:FZMaterial CaptureSubgraph="True"
                                                  Preset="{StaticResource A_FZMaterialPresetStreak_TitleShadow_LevelBox}">
                                    <StackPanel HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                Margin="0,0,25,0"
                                                x:Name="Content">
                                        <Decorator  RenderTransformOrigin="0.5,1"
                                                    RenderTransform="{StaticResource A_Transform_Italic}">
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_LevelBox}"
                                                               CapHeight="80"
                                                               Text="{Binding Converter={StaticResource A_XPConverter}}" />
                                        </Decorator>
                                        <Decorator Height="10"
                                                   Margin="10,0,0,0" />
                                        <Grid RenderTransformOrigin="0.5,0.5"
                                              RenderTransform="{StaticResource A_Transform_Italic}"
                                              Margin="4,0"
                                              MinWidth="126">
                                            <local:FZMaterial Color="{StaticResource A_Color_XPRewards_Content}"
                                                              Preset="{StaticResource A_FZMaterialPresetRoundtangle_LevelPill}">
                                            </local:FZMaterial>
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_LevelBox}"
                                                               HorizontalAlignment="Center"
                                                               Color="#fff"
                                                               Margin="8"
                                                               CapHeight="19"
                                                               TrackingAdjust="0.08"
                                                               Text="{local:Loc MyProfile.IDS_Level}" />
                                        </Grid>
                                    </StackPanel>
                                </local:FZMaterial>
                            </Grid>
                            <ControlTemplate.Triggers>
                                <Trigger Property="HorizontalAlignment"
                                         Value="Right">
                                    <Setter TargetName="Content"
                                            Property="Margin"
                                            Value="15,0,0,0" />
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>

                        <local:FZMaterialUVMap x:Key="A_FZMaterialUVMap_ThreadTextBackground"
                                               StretchRegion="16,0,16,0"
                                               UnstretchedSize="32,33" />

                        <ControlTemplate TargetType="Control"
                                         x:Key="A_Template_RewardsTierBox">
                            <Grid Width="278">
                                <local:FZMaterial Width="135"
                                                  HorizontalAlignment="{TemplateBinding HorizontalAlignment}" />

                                <local:FZMaterial RenderTransform="{StaticResource A_Transform_Skew}" />
                                <local:FZMaterial CaptureSubgraph="True"
                                                  Preset="{StaticResource A_FZMaterialPresetStreak_TitleShadow_LevelBox}">
                                    <local:FZMaterial.LayoutTransform>
                                        <ScaleTransform ScaleX="1.08"
                                                        ScaleY="1.08" />
                                    </local:FZMaterial.LayoutTransform>
                                    <Grid Height="173"
                                          Margin="0,0,30,0">
                                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_TierAsset}"/>

                                        <Decorator MaxWidth="85"
                                                   Height="50"
                                                   Margin="0,42,0,0"
                                                   VerticalAlignment="Top">
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_LevelBox}"
                                                               CapHeight="50"
                                                               HorizontalAlignment="Center"
                                                               VerticalAlignment="Center"
                                                               StretchDirection="DownOnly"
                                                               Text="{Binding}" />
                                        </Decorator>

                                        <StackPanel Margin="0,0,0,11"
                                                    VerticalAlignment="Bottom">
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RewardBox}"
                                                               Color="{StaticResource A_Color_XPRewards_Content}"
                                                               CapHeight="11"
                                                               TrackingAdjust="0.2"
                                                               Text="{local:Loc InGame.IDS_PostRace_Tier}" />
                                            <Decorator Height="9" />
                                            <Decorator RenderTransformOrigin="0.5,0.5"
                                                       Height="41"
                                                       Width="128"
                                                       RenderTransform="{StaticResource A_Transform_Italic}">
                                                <Decorator.Style>
                                                    <Style TargetType="Decorator">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding InfluenceThread.StringID, RelativeSource={RelativeSource AncestorType=Page}}" Value="eliminator">
                                                                <Setter Property="Visibility" Value="Hidden"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding InfluenceThread.StringID, RelativeSource={RelativeSource AncestorType=Page}}" Value="super_7">
                                                                <Setter Property="Visibility" Value="Hidden"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </Decorator.Style>
                                                <Decorator Margin="8"
                                                           MaxWidth="116">
                                                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_RewardThread}"
                                                                       Color="#fff"
                                                                       VerticalAlignment="Center"
                                                                       CapHeight="12"
                                                                       LineHeight="16"
                                                                       LineStackingStrategy="BlockLineHeight"
                                                                       Stretch="Uniform"
                                                                       StretchDirection="UpOnly"
                                                                       TextAlignment="Center"
                                                                       TextWrapping="Wrap"
                                                                       Text="{Binding InfluenceThread.Name, Converter={StaticResource A_StringToUpper}, RelativeSource={RelativeSource AncestorType=Page}}" />
                                                </Decorator>
                                            </Decorator>

                                        </StackPanel>
                                    </Grid>
                                </local:FZMaterial>
                            </Grid>
                        </ControlTemplate>

                        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_RewardGradient"
                                                           BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                                           GradientColorA="#999999"
                                                           GradientColorB="#ffffff"
                                                           GradientAngle="0" />

                        <Style x:Key="A_Style_FZTextBlock_CreditPrizeDetails_PrizeValue"
                               BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}"
                               TargetType="{x:Type local:FZTextBlock}">
                            <Setter Property="Color"
                                    Value="{StaticResource A_Color_Tombola_PrizeValue}" />
                            <Setter Property="FontSize"
                                    Value="144" />
                            <Setter Property="Text"
                                    Value="{Binding Description}" />
                            <Setter Property="Stretch"
                                    Value="None" />
                        </Style>

                        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_Default"
                                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_TombolaBackgroundGradient_Default}"
                                                           GradientAngle="-90" />
                        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_Common"
                                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_TombolaBackgroundGradient_Common}"
                                                           GradientAngle="-90" />
                        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_Rare"
                                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_TombolaBackgroundGradient_Rare}"
                                                           GradientAngle="-90" />
                        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_Epic"
                                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_TombolaBackgroundGradient_Epic}"
                                                           GradientAngle="-90" />
                        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_Legendary"
                                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_TombolaBackgroundGradient_Legendary}"
                                                           GradientAngle="-90" />
                        <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_HorizonEdition"
                                                           BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_TombolaBackgroundGradient_HorizonEdition}"
                                                           GradientAngle="-90" />

                        <local:MappingConverter x:Key="A_Converter_RarityToPrizeBackgroundGradientPreset"
                                                Default="{StaticResource A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_Default}">
                            <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Common}"
                                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_Common}" />
                            <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Rare}"
                                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_Rare}" />
                            <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Epic}"
                                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_Epic}" />
                            <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.Legendary}"
                                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_Legendary}" />
                            <local:MappingConverterEntry Key="{x:Static local:XAMLRarity.HorizonEdition}"
                                                         Value="{StaticResource A_FZMaterialPresetRoundtangle_PrizeBackgroundGradient_HorizonEdition}" />
                        </local:MappingConverter>

                        <ControlTemplate TargetType="Control"
                                         x:Key="A_Template_RewardBox">
                            <Grid Width="278">
                                <local:FZMaterial RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Margin="12,0,0,0"
                                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_RewardGradient}" />
                                </local:FZMaterial>
                                <local:FZMaterial Width="135"
                                                  HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                                  Preset="{StaticResource A_FZMaterialPresetRoundtangle_RewardGradient}" />
                            </Grid>
                        </ControlTemplate>

                        <ControlTemplate x:Key="A_Template_RewardBox_Horn"
                                         TargetType="Control">
                            <Grid Width="278">
                                <StackPanel Orientation="Horizontal"
                                            RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Width="12" />
                                    <local:FZMaterial Width="350"
                                                      Preset="{Binding Rarity, Converter={StaticResource A_Converter_RarityToPrizeBackgroundGradientPreset}}">
                                        <local:FZMaterial Color="#4D000000"
                                                          Width="12"
                                                          HorizontalAlignment="Left" />
                                    </local:FZMaterial>
                                </StackPanel>
                                <local:FZMaterial GreedyMeasure="True"
                                                  CaptureSubgraph="True"
                                                  Margin="12,0,0,0"
                                                  Preset="{StaticResource A_FZMaterialPresetStreak_TitleShadow_LevelBox}">
                                    <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/PostRace/Reward_Horn.png"
                                                      Height="170"
                                                      Width="170" />
                                </local:FZMaterial>
                            </Grid>
                        </ControlTemplate>

                        <ControlTemplate x:Key="A_Template_RewardBox_QuickChatPhrase"
                                         TargetType="Control">
                            <Grid Width="278">
                                <StackPanel Orientation="Horizontal"
                                            RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Width="12" />
                                    <local:FZMaterial Width="350">
                                        <local:FZMaterial.Preset>
                                            <local:FZMaterialPresetRoundtangle BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                                                               GradientColorA="#0AAA5E"
                                                                               GradientColorB="#1CEA79"
                                                                               GradientAngle="0" />
                                        </local:FZMaterial.Preset>
                                        <local:FZMaterial Color="#4D000000"
                                                          Width="12"
                                                          HorizontalAlignment="Left" />
                                    </local:FZMaterial>
                                </StackPanel>
                                <local:FZMaterial GreedyMeasure="True"
                                                  CaptureSubgraph="True"
                                                  Margin="24,0,0,0"
                                                  Preset="{StaticResource A_FZMaterialPresetStreak_TitleShadow_LevelBox}">
                                    <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/PostRace/Reward_QuickChat.png"
                                                      Height="170"
                                                      Width="170" />
                                </local:FZMaterial>
                            </Grid>
                        </ControlTemplate>

                        <ControlTemplate x:Key="A_Template_RewardBox_Car"
                                         TargetType="Control">
                            <Grid Width="278">
                                <StackPanel Orientation="Horizontal"
                                            RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Width="12"
                                                      Panel.ZIndex="10" />
                                    <Grid>
                                        <StackPanel Orientation="Horizontal">
                                            <local:FZMaterial Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}">
                                                <local:FZMaterial Color="#1A000000"
                                                                  Width="12"
                                                                  HorizontalAlignment="Left" />
                                            </local:FZMaterial>
                                            <local:FZMaterial Width="350">
                                                <local:FZMaterial.Preset>
                                                    <local:FZMaterialPresetRoundtangle BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                                                                       GradientColorA="#9C9C9C"
                                                                                       GradientColorB="#FFFFFF"
                                                                                       GradientAngle="0" />
                                                </local:FZMaterial.Preset>
                                                <local:FZMaterial Preset="{Binding Rarity, Converter={StaticResource A_Converter_RarityToPrizeBackgroundGradientPreset}}"
                                                                  Height="82" />
                                            </local:FZMaterial>
                                        </StackPanel>
                                        <local:FZMaterial ImageSource="{Binding Thumbnail}"
                                                          RenderTransform="{StaticResource A_Transform_InvertSkew}"
                                                          Margin="-135,0,0,0"
                                                          HorizontalAlignment="Left"
                                                          Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_CarThumb_Ratio}}"
                                                          Height="230"
                                                          x:Name="Content" />
                                    </Grid>
                                </StackPanel>
                            </Grid>
                        </ControlTemplate>

                        <ControlTemplate x:Key="A_Template_RewardBox_ThumbnailWithRarity"
                                         TargetType="Control">
                            <Grid Width="278">
                                <StackPanel Orientation="Horizontal"
                                            RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Width="12" />
                                    <local:FZMaterial Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}">
                                        <local:FZMaterial Color="#1A000000"
                                                          Width="12"
                                                          HorizontalAlignment="Left" />
                                    </local:FZMaterial>
                                    <local:FZMaterial Width="350">
                                        <local:FZMaterial.Preset>
                                            <local:FZMaterialPresetRoundtangle BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                                                               GradientColorA="#9C9C9C"
                                                                               GradientColorB="#FFFFFF"
                                                                               GradientAngle="0" />
                                        </local:FZMaterial.Preset>
                                        <local:FZMaterial Preset="{Binding Rarity, Converter={StaticResource A_Converter_RarityToPrizeBackgroundGradientPreset}}"
                                                          Height="82" />
                                    </local:FZMaterial>
                                </StackPanel>
                                <local:FZMaterial ImageSource="{Binding Thumbnail}"
                                                  Margin="24,0,0,0"
                                                  Width="260"
                                                  Height="260"
                                                  HorizontalAlignment="Center"
                                                  x:Name="Content" />
                            </Grid>
                        </ControlTemplate>

                        <ControlTemplate x:Key="A_Template_RewardBox_Wheelspin"
                                         TargetType="Control">
                            <Grid Width="278">
                                <StackPanel Orientation="Horizontal"
                                            RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Width="12" />
                                    <local:FZMaterial Width="350">
                                        <local:FZMaterial.Preset>
                                            <local:FZMaterialPresetRoundtangle BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                                                               GradientColorA="#9400AC"
                                                                               GradientColorB="#FC025C"
                                                                               GradientAngle="0" />
                                        </local:FZMaterial.Preset>
                                        <local:FZMaterial Color="#4D000000"
                                                          Width="12"
                                                          HorizontalAlignment="Left" />
                                    </local:FZMaterial>
                                </StackPanel>
                                <local:FZMaterial GreedyMeasure="True"
                                                  CaptureSubgraph="True"
                                                  Margin="24,0,0,0"
                                                  Preset="{StaticResource A_FZMaterialPresetStreak_TitleShadow_LevelBox}">
                                    <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/PostRace/Wheelspin_Logo.png"
                                                      Height="210"
                                                      Width="210" />
                                </local:FZMaterial>
                            </Grid>
                        </ControlTemplate>

                        <ControlTemplate x:Key="A_Template_RewardBox_SuperWheelspin"
                                         TargetType="Control">
                            <Grid Width="278">
                                <StackPanel Orientation="Horizontal"
                                            RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Width="12" />
                                    <local:FZMaterial Width="350">
                                        <local:FZMaterial.Preset>
                                            <local:FZMaterialPresetRoundtangle BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                                                               GradientColorA="#9400AC"
                                                                               GradientColorB="#FC025C"
                                                                               GradientAngle="0" />
                                        </local:FZMaterial.Preset>
                                        <local:FZMaterial Color="#4D000000"
                                                          Width="12"
                                                          HorizontalAlignment="Left" />
                                    </local:FZMaterial>
                                </StackPanel>
                                <local:FZMaterial GreedyMeasure="True"
                                                  CaptureSubgraph="True"
                                                  Margin="24,0,0,0"
                                                  Preset="{StaticResource A_FZMaterialPresetStreak_TitleShadow_LevelBox}">
                                    <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/PostRace/Super_Wheelspin_Logo.png"
                                                      Height="210"
                                                      Width="210" />
                                </local:FZMaterial>
                            </Grid>
                        </ControlTemplate>

                        <Style TargetType="local:FZMaterial"
                               x:Key="A_Style_FZMaterial_PostRace_Hatching_CreditsRewardBox">
                            <Setter Property="ImageSource"
                                    Value="/ForzaUI;component/Textures/Data_Bound/PostRace/Stripe_Overlay_Vert.png" />
                            <Setter Property="TextureWrap"
                                    Value="True" />
                            <!-- The stripes in the texture are 20%, intended alpha is 10% -->
                            <Setter Property="Opacity"
                                    Value="{StaticResource A_Double_HatchingOpacity}" />
                            <Setter Property="local:FZMaterial.ImageTransform">
                                <Setter.Value>
                                    <TransformGroup>
                                        <!-- This scale transforms the image UVs so that instead of covering the whole page they are aspect correct:
                                     image aspect 0.469
                                     screen aspect 3.555 -->
                                        <ScaleTransform ScaleX="0.6125"
                                                        ScaleY="1" />

                                        <ScaleTransform ScaleX="0.18"
                                                        ScaleY="0.18" />
                                        <TranslateTransform X="-2" />
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Style>

                        <ControlTemplate x:Key="A_Template_RewardBox_Credits"
                                         TargetType="Control">
                            <Grid Width="278">
                                <StackPanel Orientation="Horizontal"
                                            RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Width="12" />
                                    <Grid>
                                        <local:FZMaterial Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}" />
                                        <local:FZMaterial Color="#1A000000"
                                                          Width="12" />
                                    </Grid>
                                    <local:FZMaterial Width="350"
                                                      Preset="{Binding Rarity, Converter={StaticResource A_Converter_RarityToPrizeBackgroundGradientPreset}}">
                                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_PostRace_Hatching_CreditsRewardBox}" />
                                    </local:FZMaterial>
                                </StackPanel>
                                <local:FZMaterial GreedyMeasure="True"
                                                  CaptureSubgraph="True"
                                                  Margin="25,0,0,0"
                                                  Preset="{StaticResource A_FZMaterialPresetStreak_TitleShadow_LevelBox}">
                                    <Viewbox StretchDirection="DownOnly"
                                             Margin="0,0,25,0">
                                        <StackPanel Orientation="Horizontal"
                                                    HorizontalAlignment="Center"
                                                    VerticalAlignment="Center"
                                                    Style="{StaticResource A_Style_Decorator_TombolaCreditsSkewTransform}">
                                            <local:FZMaterial Width="110"
                                                              Height="110"
                                                              ImageSource="/ForzaUI;component/Textures/Anthem/Icons/CRIcon/CR_110_FilledCircle.png"
                                                              VerticalAlignment="Center" />
                                            <Decorator Width="6" />
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_CreditPrizeDetails_PrizeValue}"
                                                               VerticalAlignment="Center" />
                                        </StackPanel>
                                    </Viewbox>
                                </local:FZMaterial>
                            </Grid>
                        </ControlTemplate>

                        <ControlTemplate x:Key="A_Template_RewardBox_Placeholder">
                            <Grid Width="278">
                                <local:FZMaterial RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Margin="12,0,0,0"
                                                      Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}">
                                        <Grid>
                                            <local:FZMaterial Margin="12,0,0,0" />
                                            <local:FZMaterial Height="100"
                                                              Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}" />
                                        </Grid>
                                    </local:FZMaterial>
                                </local:FZMaterial>
                                <local:FZMaterial Width="135"
                                                  HorizontalAlignment="{TemplateBinding HorizontalAlignment}" />
                                <local:FZMaterial Height="100"
                                                  Width="135"
                                                  HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                                  Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}" />
                                <local:FZMaterial GreedyMeasure="True"
                                                  CaptureSubgraph="True"
                                                  Margin="25,0,0,0"
                                                  Preset="{StaticResource A_FZMaterialPresetStreak_TitleShadow_LevelBox}">
                                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                       Color="{StaticResource A_Color_XPRewards_Content}"
                                                       TextWrapping="Wrap"
                                                       TextAlignment="Center"
                                                       CapHeight="24"
                                                       MaxWidth="220"
                                                       HorizontalAlignment="Center"
                                                       VerticalAlignment="Center">
                                        <local:FZRun Text="Placeholder " />
                                        <local:FZRun Text="{Binding Description}" />
                                    </local:FZTextBlock>
                                </local:FZMaterial>
                            </Grid>
                        </ControlTemplate>

                        <local:MappingConverter x:Key="A_Converter_RewardBox"
                                                Default="{StaticResource A_Template_RewardBox_Placeholder}">
                            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Horn}"
                                                         Value="{StaticResource A_Template_RewardBox_Horn}" />
                            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.QuickChatPhrase}"
                                                         Value="{StaticResource A_Template_RewardBox_QuickChatPhrase}" />
                            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Car}"
                                                         Value="{StaticResource A_Template_RewardBox_Car}" />
                            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Clothing}"
                                                         Value="{StaticResource A_Template_RewardBox_ThumbnailWithRarity}" />
                            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Emote}"
                                                         Value="{StaticResource A_Template_RewardBox_ThumbnailWithRarity}" />
                            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Wheelspin}"
                                                         Value="{StaticResource A_Template_RewardBox_Wheelspin}" />
                            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.SuperWheelspin}"
                                                         Value="{StaticResource A_Template_RewardBox_SuperWheelspin}" />
                            <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Credits}"
                                                         Value="{StaticResource A_Template_RewardBox_Credits}" />
                        </local:MappingConverter>

                        <Style TargetType="FrameworkElement"
                               x:Key="A_Style_Translatable">
                            <Setter Property="RenderTransform">
                                <Setter.Value>
                                    <TranslateTransform />
                                </Setter.Value>
                            </Setter>
                        </Style>

                    </Grid.Resources>

                    <local:FZMaterial Color="{StaticResource A_Color_XPRewards_Content}"
                                      Grid.Row="0"
                                      Grid.RowSpan="3"
                                      x:Name="BarsDivider"
                                      Opacity="0"
                                      Panel.ZIndex="0" />

                    <Grid Grid.Row="0"
                          x:Name="RewardBarContainer"
                          Panel.ZIndex="1"
                          Effect="{StaticResource A_MotionBlurEffect}"
                          ClipToBounds="True"
                          local:MotionBlurEffect.MotionBlurPositionXControl="{Binding RenderTransform.X, RelativeSource={RelativeSource Self}}">
                        <Grid.RenderTransform>
                            <TranslateTransform X="1920" />
                        </Grid.RenderTransform>
                        <local:EventFire.FzTriggers>
                            <local:BeginUIStoryboard local:EventFireTrigger.Event="LevelUp"
                                                     Storyboard="{StaticResource A_Storyboard_PostRace_RewardUp}"
                                                     Name="RewardUp" />
                        <local:BeginUIStoryboard local:EventFireTrigger.Event="SkipToReward_Bar"
                                                 Name="A_BeginStoryboard_SkipTo_RewardUp"
                                                 Storyboard="{StaticResource A_Storyboard_PostRace_SkipTo_RewardUp}" />
                        
                        <local:StartAudioTrigger EventName="/Master/UI/UI_Nav_Accept"
                                                 local:EventFireTrigger.Event="SkipToReward_Bar" />
                            <local:RaiseEntityModelEvent local:EventFireTrigger.Event="LevelUp"
                                                     EventName="PostRaceThreadLevelUp" />
                        <local:RaiseEntityModelEvent local:EventFireTrigger.Event="SkipToReward_Bar"
                                                 EventName="PostRaceThreadLevelUp" />
                        </local:EventFire.FzTriggers>
                        <DockPanel>
                            <StackPanel DockPanel.Dock="Left"
                                        Orientation="Horizontal"
                                        x:Name="RewardLeftBox"
                                        DataContext="{Binding ThreadLevel}">
                                <Control Template="{StaticResource A_Template_RewardsTierBox}"
                                         HorizontalAlignment="Left" />
                                <Grid RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Width="9"
                                                      Color="{Binding InfluenceThread.Color, RelativeSource={RelativeSource AncestorType=Page}}" />
                                    <local:FZMaterial Width="9"
                                                      Opacity="0"
                                                      Color="#000000" />
                                </Grid>
                            </StackPanel>

                            <StackPanel DockPanel.Dock="Right"
                                        Orientation="Horizontal"
                                        x:Name="RewardRightBox">
                                <Grid RenderTransform="{StaticResource A_Transform_Skew}"
                                      Panel.ZIndex="10">
                                    <local:FZMaterial Width="9"
                                                      Color="{Binding InfluenceThread.Color, RelativeSource={RelativeSource AncestorType=Page}}" />
                                    <local:FZMaterial Width="9"
                                                      Opacity="0"
                                                      Color="#000000" />
                                </Grid>
                                <Control Template="{Binding RewardType, Converter={StaticResource A_Converter_RewardBox}}"
                                         DataContext="{Binding Reward}"
                                         HorizontalAlignment="Right" />
                            </StackPanel>

                            <Grid>
                                <!-- Have to duplicate these elements outside the progress bar for use during the level up animation, because we can't
                            scale the progress bar itself over 1920 since it contains a subgraph capture -->
                                <Grid RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Color="{Binding InfluenceThread.Color, RelativeSource={RelativeSource AncestorType=Page}}" />
                                    <local:FZMaterial Color="{StaticResource A_Color_ProgressBackground_Overlay}" />
                                </Grid>

                                <Grid RenderTransform="{StaticResource A_Transform_Skew}"
                                      x:Name="RewardFull">
                                    <local:FZMaterial Color="{Binding InfluenceThread.Color, RelativeSource={RelativeSource AncestorType=Page}}" />
                                    <UniformGrid Columns="2">
                                        <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_LevelDarkGradient}"
                                                          Opacity="0.2" />
                                        <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_LevelLightGradient}"
                                                          Opacity="0.2" />
                                    </UniformGrid>
                                </Grid>

                                <ProgressBar x:Name="PART_RewardBar"
                                             Style="{StaticResource A_Style_ProgressBar_XPRewardBarMask}"
                                             Tag="{Binding InfluenceThread.Color, RelativeSource={RelativeSource AncestorType=Page}}"
                                             Value="{Binding ThreadLevelBar.InitialValue, Converter={StaticResource A_IntToFloatConverter}}"
                                             Minimum="{Binding ThreadLevelBar.LevelBarMinimum, Converter={StaticResource A_IntToFloatConverter}}"
                                             Maximum="{Binding ThreadLevelBar.LevelBarMaximum, Converter={StaticResource A_IntToFloatConverter}}" />
                            </Grid>
                        </DockPanel>
                    </Grid>

                    <Grid Grid.Row="2"
                          x:Name="LevelBarContainer"
                          Panel.ZIndex="1"
                          Effect="{StaticResource A_MotionBlurEffect}"
                          ClipToBounds="True"
                          local:MotionBlurEffect.MotionBlurPositionXControl="{Binding RenderTransform.X, RelativeSource={RelativeSource Self}}">
                        <Grid.RenderTransform>
                            <TranslateTransform X="1920" />
                        </Grid.RenderTransform>
                        <local:EventFire.FzTriggers>
                            <local:BeginUIStoryboard local:EventFireTrigger.Event="LevelUp"
                                                 Name="BeginLevelUp"
                                                     Storyboard="{StaticResource A_Storyboard_PostRace_LevelUp}" />
                        <local:BeginUIStoryboard local:EventFireTrigger.Event="SkipToReward_Bar"
                                                    Name="Begin_SkipTo_LevelUp"
                                                     Storyboard="{StaticResource A_Storyboard_PostRace_SkipTo_LevelUp}" />
                        </local:EventFire.FzTriggers>
                        <DockPanel>
                            <StackPanel DockPanel.Dock="Left"
                                        Orientation="Horizontal"
                                        x:Name="LevelLeftBox"
                                        DataContext="{Binding XPLevelBar.LevelBarMinimum}">
                                <Control Template="{StaticResource A_Template_LevelBox}"
                                         HorizontalAlignment="Left" />
                                <Grid RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Width="9"
                                                      Color="{Binding Converter={StaticResource A_XPConverter}}"
                                                      x:Name="BgBaseColor" />
                                    <local:FZMaterial Width="9"
                                                      Opacity="0"
                                                      Color="#000000" />
                                </Grid>
                            </StackPanel>

                            <StackPanel DockPanel.Dock="Right"
                                        Orientation="Horizontal"
                                        x:Name="LevelRightBox"
                                        DataContext="{Binding XPLevelBar.LevelBarMaximum}"
                                        HorizontalAlignment="Right">
                                <Grid RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Width="9"
                                                      Color="{Binding Converter={StaticResource A_XPConverter}}" />
                                    <local:FZMaterial Width="9"
                                                      Opacity="0"
                                                      Color="#000000" />
                                </Grid>
                                <Control Template="{StaticResource A_Template_LevelBox}"
                                         HorizontalAlignment="Right" />
                            </StackPanel>

                            <Grid>
                                <!-- Have to duplicate these elements outside the progress bar for use during the level up animation, because we can't
                            scale the progress bar itself over 1920 since it contains a subgraph capture -->
                                <Grid RenderTransform="{StaticResource A_Transform_Skew}">
                                    <local:FZMaterial Color="{Binding XPLevelBar.LevelBarMinimum, Converter={StaticResource A_XPConverter}}" />
                                    <local:FZMaterial Color="{StaticResource A_Color_ProgressBackground_Overlay}" />
                                </Grid>

                                <Grid RenderTransform="{StaticResource A_Transform_Skew}"
                                      x:Name="LevelFull">
                                    <local:FZMaterial Color="{Binding XPLevelBar.LevelBarMinimum, Converter={StaticResource A_XPConverter}}" />
                                    <UniformGrid Columns="2">
                                        <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_LevelDarkGradient}"
                                                          Opacity="0.2" />
                                        <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_LevelLightGradient}"
                                                          Opacity="0.2" />
                                    </UniformGrid>
                                </Grid>

                                <ProgressBar x:Name="PART_LevelBar"
                                             Style="{StaticResource A_Style_ProgressBar_XPLevelBarMask}"
                                             Tag="{Binding Color, ElementName=BgBaseColor}"
                                             Value="{Binding XPLevelBar.InitialValue, Converter={StaticResource A_IntToFloatConverter}}"
                                             Minimum="{Binding XPLevelBar.LevelBarMinimum, Converter={StaticResource A_IntToFloatConverter}}"
                                             Maximum="{Binding XPLevelBar.LevelBarMaximum, Converter={StaticResource A_IntToFloatConverter}}" />
                            </Grid>
                        </DockPanel>
                    </Grid>

                    <!--Level up / reward up glow elements-->
                    <local:FZMaterial Color="#fff"
                                      IsHitTestVisible="False"
                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_BarEdge}"
                                      x:Name="RewardUpGlow"
                                      Grid.Row="0"
                                      Panel.ZIndex="2"
                                      Opacity="0">
                        <local:FZMaterial Color="#fff"
                                          Opacity="0.5"
                                          Preset="{StaticResource A_FZMaterialPresetRoundtangle_BarEdgeGlow}"
                                          Margin="-100,-50" />
                    </local:FZMaterial>

                    <local:FZMaterial Color="#fff"
                                      IsHitTestVisible="False"
                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_BarEdge}"
                                      x:Name="LevelUpGlow"
                                      Grid.Row="2"
                                      Panel.ZIndex="2"
                                      Opacity="0">
                        <local:FZMaterial Color="#fff"
                                          Opacity="0.5"
                                          Preset="{StaticResource A_FZMaterialPresetRoundtangle_BarEdgeGlow}"
                                          Margin="-100,-50" />
                    </local:FZMaterial>

                    <Grid Grid.Row="0"
                          Panel.ZIndex="2"
                          ClipToBounds="True"
                          IsHitTestVisible="False">
                        <Decorator RenderTransform="{StaticResource A_Transform_Skew}"
                                   RenderTransformOrigin="0.5,0.5">
                            <Control Style="{StaticResource A_Style_RewardFlash}"
                                     x:Name="RewardUpFlash"
                                     Tag="{Binding InfluenceThread.Color, RelativeSource={RelativeSource AncestorType=Page}}">
                                <UIElement.RenderTransform>
                                    <TranslateTransform />
                                </UIElement.RenderTransform>
                            </Control>
                        </Decorator>
                    </Grid>
                    <Grid Grid.Row="2"
                          Panel.ZIndex="2"
                          ClipToBounds="True"
                          IsHitTestVisible="False">
                        <Decorator RenderTransform="{StaticResource A_Transform_Skew}"
                                   RenderTransformOrigin="0.5,0.5">
                            <Control Style="{StaticResource A_Style_RewardFlash}"
                                     x:Name="LevelUpFlash"
                                     Tag="{Binding Color, ElementName=BgBaseColor}"
                                     RenderTransformOrigin="0.5,0.5">
                                <UIElement.RenderTransform>
                                    <TranslateTransform />
                                </UIElement.RenderTransform>
                            </Control>
                        </Decorator>
                    </Grid>
                    <!--Level up / reward up text elements-->

                    <local:FZMaterial Grid.Row="0"
                                      CaptureSubgraph="True"
                                      Panel.ZIndex="3">
                        <Grid ClipToBounds="True">
                            <StackPanel HorizontalAlignment="Center"
                                        Margin="0,0,0,30"
                                        VerticalAlignment="Center"
                                        RenderTransformOrigin="0.5,0.5">
                                <StackPanel.RenderTransform>
                                    <RotateTransform Angle="-6" />
                                </StackPanel.RenderTransform>
                                <Decorator Effect="{StaticResource A_MotionBlurEffect}"
                                           Style="{StaticResource A_Style_Translatable}"
                                           Opacity="0"
                                           local:MotionBlurEffect.MotionBlurPositionXControl="{Binding RenderTransform.X, RelativeSource={RelativeSource Self}}"
                                           x:Name="RewardUpTitle">
                                    <Decorator RenderTransform="{StaticResource A_Transform_Italic}"
                                               HorizontalAlignment="Left">
                                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HorizonB}"
                                                           CapHeight="42"
                                                           Color="#FFF"
                                                           Text="{local:Loc InGame.IDS_PostRace_Promoted}"
                                                           Effect="{StaticResource A_Effect_HighContrastModeDropShadow_Large}" />
                                    </Decorator>
                                </Decorator>
                                <Decorator Height="15" />
                                <Decorator Effect="{StaticResource A_MotionBlurEffect}"
                                           Style="{StaticResource A_Style_Translatable}"
                                           Opacity="0"
                                           local:MotionBlurEffect.MotionBlurPositionXControl="{Binding RenderTransform.X, RelativeSource={RelativeSource Self}}"
                                           x:Name="RewardUpDesc">
                                    <Decorator RenderTransform="{StaticResource A_Transform_Italic}"
                                               HorizontalAlignment="Left">
                                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_TotalText}"
                                                           CapHeight="96"
                                                           Color="#FFF"
                                                           MaxWidth="900"
                                                           Text="{Binding ThreadLevelBarCurrentLevelString, Converter={StaticResource A_StringToUpper}}" />
                                    </Decorator>
                                </Decorator>
                            </StackPanel>

                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition />
                                    <ColumnDefinition />
                                    <ColumnDefinition />
                                    <ColumnDefinition />
                                    <ColumnDefinition />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>

                                <Viewbox HorizontalAlignment="Center"
                                         Grid.Column="1"
                                         Grid.ColumnSpan="4"
                                         Margin="0,30">
                                    <Control DataContext="{Binding LastReward}"
                                             x:Name="RewardTextBits"
                                             Template="{StaticResource A_Template_RewardTextBits}" />

                                </Viewbox>
                            </Grid>

                        </Grid>
                    </local:FZMaterial>

                    <Decorator Grid.Row="2"
                               ClipToBounds="True"
                               Panel.ZIndex="3">
                        <StackPanel HorizontalAlignment="Center"
                                    Margin="0,0,0,30"
                                    VerticalAlignment="Center"
                                    RenderTransformOrigin="0.5,0.5">
                            <StackPanel.RenderTransform>
                                <RotateTransform Angle="-6" />
                            </StackPanel.RenderTransform>
                            <Decorator Effect="{StaticResource A_MotionBlurEffect}"
                                       Style="{StaticResource A_Style_Translatable}"
                                       Opacity="0"
                                       local:MotionBlurEffect.MotionBlurPositionXControl="{Binding RenderTransform.X, RelativeSource={RelativeSource Self}}"
                                       x:Name="LevelUpTitle">
                                <Decorator RenderTransform="{StaticResource A_Transform_Italic}"
                                           HorizontalAlignment="Left"
                                           x:Name="Testee">
                                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HorizonB}"
                                                       CapHeight="42"
                                                       Color="{Binding XPLevelBar.LevelBarMinimum, Converter={StaticResource A_XPConverter_Text}}"
                                                       Text="{local:Loc InGame.IDS_PostRace_LevelUp}" />
                                </Decorator>
                            </Decorator>
                            <Decorator Height="15" />
                            <Decorator Effect="{StaticResource A_MotionBlurEffect}"
                                       Style="{StaticResource A_Style_Translatable}"
                                       Opacity="0"
                                       local:MotionBlurEffect.MotionBlurPositionXControl="{Binding RenderTransform.X, RelativeSource={RelativeSource Self}}"
                                       x:Name="LevelUpDesc">
                                <Decorator RenderTransform="{StaticResource A_Transform_Italic}"
                                           HorizontalAlignment="Left">
                                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_TotalText}"
                                                       CapHeight="96"
                                                       Color="{Binding XPLevelBar.LevelBarMinimum, Converter={StaticResource A_XPConverter_Text}}"
                                                       Text="{Binding LevelBarCurrentLevelString}"
                                                       Effect="{x:Null}" />
                                </Decorator>
                            </Decorator>
                        </StackPanel>
                    </Decorator>
                </Grid>
            </Grid>

            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_PostRacePanel_Vignette}"
                              IsHitTestVisible="False" />

            <local:EventFire x:Name="EventFire" />
            <Grid x:Name="IE"
                  ClipToBounds="True">
                <Grid.Resources>
                    <local:MappingConverter x:Key="A_Converter_SeasonToGradientA"
                                            Default="#000">
                        <local:MappingConverterEntry Key="{x:Static local:Season.Spring}"
                                                     Value="#bbd024" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Summer}"
                                                     Value="#ffb800" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}"
                                                     Value="#ed7208" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Winter}"
                                                     Value="#2ad5ff" />
                    </local:MappingConverter>
                    <local:MappingConverter x:Key="A_Converter_SeasonToGradientB"
                                            Default="#000">
                        <local:MappingConverterEntry Key="{x:Static local:Season.Spring}"
                                                     Value="#258c39" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Summer}"
                                                     Value="#ff6500" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}"
                                                     Value="#9e0001" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Winter}"
                                                     Value="#0361c3" />
                    </local:MappingConverter>

                    <local:MappingConverter x:Key="A_Converter_SeasonToVideo">
                        <local:MappingConverterEntry Key="{x:Static local:Season.Spring}"
                                                     Value="game:/Media/UI/Videos/IE_Summer_Unlock.bk2" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Summer}"
                                                     Value="game:/Media/UI/Videos/IE_Autumn_Unlock.bk2" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}"
                                                     Value="game:/Media/UI/Videos/IE_Winter_Unlock.bk2" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Winter}"
                                                     Value="game:/Media/UI/Videos/IE_Spring_Unlock.bk2" />
                    </local:MappingConverter>

                    <local:MappingConverter x:Key="A_Converter_RewardIdToShowcaseIcon">
                        <local:MappingConverterEntry Key="MotoX"
                                                     Value="game:/Media/UI/Textures/Data_Bound/PostRace/Prologue_MotoX.png" />
                        <local:MappingConverterEntry Key="Train"
                                                     Value="game:/Media/UI/Textures/Data_Bound/PostRace/Prologue_Train.png" />
                        <local:MappingConverterEntry Key="Hovercraft"
                                                     Value="game:/Media/UI/Textures/Data_Bound/PostRace/Prologue_Hovercraft.png" />
                    </local:MappingConverter>

                    <local:MappingConverter x:Key="A_Converter_RewardIdToShowcaseDisplayName">
                        <local:MappingConverterEntry Key="MotoX"
                                                     Value="{local:Loc EventBlueprint.IDS_Motox}" />
                        <local:MappingConverterEntry Key="Train"
                                                     Value="{local:Loc EventBlueprint.IDS_Train}" />
                        <local:MappingConverterEntry Key="Hovercraft"
                                                     Value="{local:Loc EventBlueprint.IDS_Hovercraft}" />
                    </local:MappingConverter>

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

                    <local:MappingConverter x:Key="A_Converter_SeasonToStripe">
                        <local:MappingConverterEntry Key="{x:Static local:Season.Spring}"
                                                     Value="game:/Media/UI/Textures/Data_Bound/PostRace/Season_Banner_Summer.png" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Summer}"
                                                     Value="game:/Media/UI/Textures/Data_Bound/PostRace/Season_Banner_Autumn.png" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}"
                                                     Value="game:/Media/UI/Textures/Data_Bound/PostRace/Season_Banner_Winter.png" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Winter}"
                                                     Value="game:/Media/UI/Textures/Data_Bound/PostRace/Season_Banner_Spring.png" />
                    </local:MappingConverter>

                    <local:MappingConverter x:Key="A_Converter_SeasonToLogo">
                        <local:MappingConverterEntry Key="{x:Static local:Season.Spring}"
                                                     Value="game:/Media/UI/Textures/Data_Bound/PostRace/EN/Season_Logo_Summer.png" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Summer}"
                                                     Value="game:/Media/UI/Textures/Data_Bound/PostRace/EN/Season_Logo_Autumn.png" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Autumn}"
                                                     Value="game:/Media/UI/Textures/Data_Bound/PostRace/EN/Season_Logo_Winter.png" />
                        <local:MappingConverterEntry Key="{x:Static local:Season.Winter}"
                                                     Value="game:/Media/UI/Textures/Data_Bound/PostRace/EN/Season_Logo_Spring.png" />
                    </local:MappingConverter>

                    <Style x:Key="A_Style_IEProgressBar"
                           TargetType="{x:Type ProgressBar}">
                        <Setter Property="Focusable"
                                Value="False" />
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="{x:Type ProgressBar}">
                                    <Grid>
                                        <local:FZMaterial x:Name="PART_Track"
                                                          Color="#0000"
                                                          Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}" />
                                        <Grid x:Name="PART_Indicator"
                                              HorizontalAlignment="Left"
                                              ClipToBounds="True">
                                            <local:FZMaterial Width="{TemplateBinding ActualWidth}">
                                                <local:FZMaterial.Preset>
                                                    <local:FZMaterialPresetRoundtangle GradientAngle="90"
                                                                                       GradientColorA="{Binding IESeason, Converter={StaticResource A_Converter_SeasonToGradientA}}"
                                                                                       GradientColorB="{Binding IESeason, Converter={StaticResource A_Converter_SeasonToGradientB}}" />
                                                </local:FZMaterial.Preset>
                                            </local:FZMaterial>

                                            <!-- Bar tips are currently tbd -->
                                            <Decorator Visibility="Hidden"
                                                       HorizontalAlignment="Right">
                                                <local:FZMaterial Color="#fff"
                                                                  Preset="{StaticResource A_FZMaterialPresetRoundtangle_BarEdge}"
                                                                  Width="8" />
                                            </Decorator>

                                        </Grid>


                                    </Grid>

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

                    <local:LinearTransformConverter x:Key="A_Converter_Identity" />

                    <local:UIStoryboard x:Key="A_Storyboard_BlendIEProgress">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:BlendValue.Blend)">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                    Value="0" />
                            <EasingDoubleKeyFrame KeyTime="0:0:2"
                                                  Value="1"
                                                  EasingFunction="{local:QuadraticEasing EasingMode=EaseInOut}" />
                        </DoubleAnimationUsingKeyFrames>
                    </local:UIStoryboard>


                    <local:UIStoryboard x:Key="A_Storyboard_IELevelUp">
                        <local:UIStoryboard.TriggerAnimation>
                            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.1"
                                                EventName="TransitionToIERewardReveal" />
                            <local:StopAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0"
                                                    EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_CashRewardsCount_lp_01" />
                            <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0"
                                                     EventName="AudioUITrigger_XPRewardsTotalComplete" />
                        </local:UIStoryboard.TriggerAnimation>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                    Value="0" />
                            <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                                  Value="1"
                                                  EasingFunction="{local:LinearEasing}" />
                            <EasingDoubleKeyFrame KeyTime="0:0:1.1"
                                                  Value="1"
                                                  EasingFunction="{local:LinearEasing}" />
                            <EasingDoubleKeyFrame KeyTime="0:0:1.9"
                                                  Value="0"
                                                  EasingFunction="{local:LinearEasing}" />
                        </DoubleAnimationUsingKeyFrames>
                    </local:UIStoryboard>
                </Grid.Resources>
                <UIElement.RenderTransform>
                    <TranslateTransform X="1920" />
                </UIElement.RenderTransform>

                <local:FZMaterial x:Name="MovingBarsBackgroundColor"
                                  Color="#ff262626" />
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_PostRace_Hatching}"
                                  Opacity="0.125" />

                <FrameworkElement x:Name="BlendHelper"
                                  local:MinValue.A="{Binding IEBeforeXP, Converter={StaticResource A_Converter_Identity}}"
                                  local:MinValue.B="{Binding IEAfterXP, Converter={StaticResource A_Converter_Identity}}" />

                <FrameworkElement x:Name="ValueHelper"
                                  local:BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_BlendIEProgress}"
                                  local:BlendValue.SkipInitialInputChanges="2"
                                  local:BlendValue.Blend="0"
                                  local:BlendValue.BlendFromPreviousOutput="True"
                                  local:BlendValue.Input="{Binding Path=(local:MinValue.Result), Converter={StaticResource A_Converter_Identity}, ElementName=BlendHelper}"
                                  local:MinValue.A="{Binding IETargetXP}"
                                  local:MinValue.B="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}}" />


                <ProgressBar Tag="UnSkipped"
                             x:Name="IEProgressBar"
                             Minimum="{Binding IEStartXP, Converter={StaticResource A_Converter_Identity}}"
                             Maximum="{Binding IETargetXP, Converter={StaticResource A_Converter_Identity}}">
                    <FrameworkElement.Style>
                        <Style TargetType="ProgressBar"
                               BasedOn="{StaticResource A_Style_IEProgressBar}">
                            <Setter Property="Value"
                         Value="{Binding Path=(local:MinValue.Result), Converter={StaticResource A_Converter_Identity}, ElementName=ValueHelper}" />
                            <Style.Triggers>
                                <Trigger Property="Tag"
                                         Value="Skipped">
                                    <Setter Property="Value"
                                            Value="{Binding (local:MinValue.Result), Converter={StaticResource A_Converter_Identity}, ElementName=MaxValueHelper}" />
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </FrameworkElement.Style>
                </ProgressBar>
                <StackPanel HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            RenderTransformOrigin="0.5,0.5"
                            x:Name="IEProgressInfo">
                    <UIElement.RenderTransform>
                        <RotateTransform Angle="-6" />
                    </UIElement.RenderTransform>
                    <Decorator x:Name="IEBarTitleSlide"
                               HorizontalAlignment="Left">
                        <UIElement.RenderTransform>
                            <TranslateTransform />
                        </UIElement.RenderTransform>
                        <Decorator Style="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}"
                                   x:Name="IEBarTitle">
                            <Decorator RenderTransformOrigin="0.5,0.5"
                                       RenderTransform="{StaticResource A_Transform_Italic}">
                                <local:FZTextBlock Text="{local:Loc CareerRaceObjectives.IDS_Influence_Objective_Title}"
                                                   Style="{StaticResource A_Style_FZTextBlock_HorizonB}"
                                                   CapHeight="52"
                                                   Color="#fff" />
                            </Decorator>
                        </Decorator>
                    </Decorator>

                    <Decorator Height="28" />

                    <Decorator Style="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}"
                               HorizontalAlignment="Left"
                               x:Name="IETotal">
                        <StackPanel Orientation="Horizontal"
                                    RenderTransformOrigin="0.5,0.5"
                                    RenderTransform="{StaticResource A_Transform_Italic}">
                            <Decorator Height="0">
                                <local:FZMaterial ImageSource="game:/Media/UI/Textures/Data_Bound/PostRace/INF_85_FilledCircle.png"
                                                  Stretch="Uniform"
                                                  Height="158"
                                                  VerticalAlignment="Center"
                                                  Width="158" />
                            </Decorator>
                            <Decorator Width="14" />
                            <Grid>
                                <FrameworkElement x:Name="MaxValueHelper"
                                                  local:MinValue.A="{Binding IETargetXP}"
                                                  local:MinValue.B="{Binding IEAfterXP}" />

                                <local:FZTextBlock Text="{Binding Value, ElementName=IEProgressBar, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                   Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                   CapHeight="136"
                                                   VerticalAlignment="Center"
                                                   HorizontalAlignment="Left"
                                                   Color="#fff" />
                                <local:FZTextBlock Text="{Binding Path=(local:MinValue.Result), ElementName=MaxValueHelper, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                   Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                   CapHeight="136"
                                                   VerticalAlignment="Center"
                                                   Visibility="Hidden"
                                                   Color="#fff" />
                            </Grid>
                        </StackPanel>
                    </Decorator>

                    <Decorator Height="42" />

                    <Decorator x:Name="IEBalanceSlide"
                               HorizontalAlignment="Right">
                        <UIElement.RenderTransform>
                            <TranslateTransform />
                        </UIElement.RenderTransform>
                        <Decorator Style="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}"
                                   x:Name="IETarget">
                            <StackPanel Orientation="Horizontal"
                                        RenderTransformOrigin="0.5,0.5"
                                        RenderTransform="{StaticResource A_Transform_Italic}">
                                <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"
                                                  CaptureSubgraph="True">
                                    <local:FZMaterial>
                                        <local:FZTextBlock Text="{Binding IEObjectiveText}"
                                                           Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                           CapHeight="32"
                                                           VerticalAlignment="Center"
                                                           Color="#fff"
                                                           Preset="{StaticResource A_FZMaterialPreset_Cutout}"
                                                           Margin="24,15" />
                                    </local:FZMaterial>
                                </local:FZMaterial>

                                <Decorator Width="13" />

                                <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"
                                                  CaptureSubgraph="True">
                                    <local:FZMaterial>
                                        <StackPanel Orientation="Horizontal"
                                                    Margin="24,15">
                                            <Decorator Height="32"
                                                       Width="32">
                                                <local:FZMaterial ImageSource="game:/Media/UI/Textures/Data_Bound/PostRace/INF_85_FilledCircle.png"
                                                                  Stretch="Uniform"
                                                                  Height="43"
                                                                  HorizontalAlignment="Center"
                                                                  VerticalAlignment="Center"
                                                                  Preset="{StaticResource A_FZMaterialPreset_Cutout}"
                                                                  Width="43" />
                                            </Decorator>
                                            <Decorator Width="12" />
                                            <local:FZTextBlock Text="{Binding IETargetXP, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                               Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                               CapHeight="32"
                                                               VerticalAlignment="Center"
                                                               Color="#fff"
                                                               Preset="{StaticResource A_FZMaterialPreset_Cutout}" />
                                        </StackPanel>
                                    </local:FZMaterial>
                                </local:FZMaterial>
                            </StackPanel>
                        </Decorator>
                    </Decorator>

                </StackPanel>

                <!--Other type of IE rewards that are not IENextSeason -->
                <Grid x:Name="IEObjectiveShowcaseReward"
                      Visibility="Hidden">
                    <local:FZMaterial x:Name="DarkenedPanel"
                                      Color="#33000000"
                                      GreedyMeasure="True" />
                    <Grid Height="540"
                          Width="1500"
                          HorizontalAlignment="Left"
                          Style="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}"
                          local:UIPageTransitionManager.TransitionIndex="0"
                          x:Name="ShowcaseIconBlock">
                        <Decorator HorizontalAlignment="Left">
                            <DockPanel Width="626"
                                       HorizontalAlignment="Center"
                                       RenderTransform="{StaticResource A_Transform_Skew}">
                                <local:FZMaterial DockPanel.Dock="Left"
                                                  Width="12" />
                                <local:FZMaterial DockPanel.Dock="Right"
                                                  Width="12" />
                                <Grid DockPanel.Dock="Left">
                                    <local:FZMaterial Color="{StaticResource A_Color_ShowcaseGradientB}" />
                                    <local:FZMaterial Color="#1A000000"
                                                      Width="12" />
                                </Grid>
                                <Grid DockPanel.Dock="Right">
                                    <local:FZMaterial Color="{StaticResource A_Color_ShowcaseGradientA}" />
                                    <local:FZMaterial Color="#1A000000"
                                                      Width="12" />
                                </Grid>

                                <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_PostRace_Showcase}">
                                    <local:FZMaterial CaptureSubgraph="True"
                                                      Preset="{StaticResource A_FZMaterialPresetStreak_TitleShadow_LevelBox}">
                                        <local:FZMaterial x:Name="ShowcaseLogo"
                                                          RenderTransform="{StaticResource A_Transform_InvertSkew}"
                                                          VerticalAlignment="Center"
                                                          HorizontalAlignment="Center"
                                                          Width="321"
                                                          Height="321"
                                                          RenderTransformOrigin="0.5,0.5"
                                                          Margin="120,0,0,0"
                                                          ClipToBounds="True"
                                                          ImageSource="{Binding IERewardId, Converter={StaticResource A_Converter_RewardIdToShowcaseIcon}}" />
                                    </local:FZMaterial>
                                </local:FZMaterial>
                            </DockPanel>
                        </Decorator>
                    </Grid>

                    <Decorator HorizontalAlignment="Right"
                               VerticalAlignment="Center"
                               Margin="0,50,0,-50"
                               x:Name="IEShowcaseInfo"
                               Width="1100">
                        <local:ZPanel.Transform>
                            <local:Transform3DGroup>
                                <local:ZRotation Angle="-6" />
                            </local:Transform3DGroup>
                        </local:ZPanel.Transform>
                        <StackPanel Orientation="Vertical"
                                    MaxWidth="900"
                                    HorizontalAlignment="Center"
                                    RenderTransform="{StaticResource A_Transform_Italic}">
                            <Control x:Name="ShowcaseQualifyText"
                                     Margin="20,0,0,0"
                                     HorizontalAlignment="Left"
                                     Style="{StaticResource A_Style_Control_PostRace_TotalLabelBlock}"
                                     Tag="{Binding Source={local:Loc CareerRaceObjectives.IDS_PostRace_Unlocked_Showcase}, Converter={StaticResource A_StringToUpper}}">
                                <Control.Resources>
                                    <Style x:Key="A_Style_FZTextBlock_PostRace_TotalText"
                                           TargetType="local:FZTextBlock"
                                           BasedOn="{StaticResource A_Style_FZTextBlock_PostRace_TotalText}">
                                        <Setter Property="FontFamily"
                                                Value="Horizon_B" />
                                    </Style>
                                </Control.Resources>
                            </Control>

                            <Decorator Height="22" />

                            <Control x:Name="ShowcaseNameText"
                                     Margin="0,0,0,0"
                                     HorizontalAlignment="Left"
                                     Style="{StaticResource A_Style_Control_PostRace_TotalLabelBlock_Large}"
                                     Tag="{Binding IERewardId, Converter={StaticResource A_Converter_RewardIdToShowcaseDisplayName_Upper}}">
                                <Control.Resources>
                                    <System:Double x:Key="A_Double_TotalLabelTextSize">93</System:Double>
                                </Control.Resources>
                            </Control>
                        </StackPanel>
                    </Decorator>

                    <local:FZMaterial Color="#000000"
                                      Opacity="0.3"
                                      Height="27"
                                      VerticalAlignment="Bottom" />
                    <local:FZMaterial Color="#000000"
                                      Opacity="0.3"
                                      Height="27"
                                      VerticalAlignment="Top" />
                </Grid>

                <Grid x:Name="IENextSeason"
                      Visibility="Hidden">
                    <local:FZMaterial />

                    <local:FZMediaElement Stretch="UniformToFill"
                                          LoadedBehavior="Stop"
                                          UnloadedBehavior="Stop"
                                          x:Name="IEVideo">
                        <local:FZMediaElement.Style>
                            <Style TargetType="local:FZMediaElement">
                                <Setter Property="Source"
                                        Value="{Binding IESeason, Converter={StaticResource A_Converter_SeasonToVideo}}" />
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding IERewardId}"
                                                 Value="Roster">
                                        <Setter Property="Source"
                                                Value="game:/Media/UI/Videos/Horizon_Life.bk2" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </local:FZMediaElement.Style>
                    </local:FZMediaElement>

                    <local:FZMaterial GetSizeFromTexture="True"
                                      VerticalAlignment="Bottom">
                        <local:FZMaterial.Style>
                            <Style TargetType="local:FZMaterial">
                                <Setter Property="ImageSource"
                                        Value="{Binding IESeason, Converter={StaticResource A_Converter_SeasonToStripe}}" />
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding IERewardId}"
                                                 Value="Roster">
                                        <Setter Property="ImageSource"
                                                Value="game:/Media/UI/Textures/Data_Bound/PostRace/Season_Banner_HorizonLife.png" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </local:FZMaterial.Style>
                    </local:FZMaterial>
                    <Decorator Margin="0,0,0,-20"
                               VerticalAlignment="Bottom"
                               HorizontalAlignment="Right">
                        <Decorator RenderTransformOrigin="0.5,0.5">
                            <UIElement.RenderTransform>
                                <RotateTransform Angle="-8" />
                            </UIElement.RenderTransform>
                            <Decorator x:Name="SeasonLogo"
                                       Effect="{StaticResource A_MotionBlurEffect}"
                                       local:MotionBlurEffect.MotionBlurPositionXControl="{Binding Path=(UIElement.RenderTransform).(TranslateTransform.X), RelativeSource={RelativeSource Self}}">
                                <UIElement.RenderTransform>
                                    <TranslateTransform />
                                </UIElement.RenderTransform>
                                <Grid>
                                    <local:FZMaterial GetSizeFromTexture="True"
                                                      RenderTransformOrigin="0.5,0.5"
                                                      ImageSource="{Binding IESeason, Converter={StaticResource A_Converter_SeasonToLogo}}">
                                        <UIElement.RenderTransform>
                                            <RotateTransform Angle="8" />
                                        </UIElement.RenderTransform>
                                        <local:FZMaterial.Style>
                                            <Style TargetType="local:FZMaterial">
                                                <Style.Triggers>
                                                    <DataTrigger Binding="{Binding IERewardId}"
                                                                 Value="Roster">
                                                        <Setter Property="Visibility"
                                                                Value="Collapsed" />
                                                    </DataTrigger>
                                                </Style.Triggers>
                                            </Style>
                                        </local:FZMaterial.Style>
                                    </local:FZMaterial>
                                    <Decorator VerticalAlignment="Top"
                                               Margin="0,-190,74,0">
                                        <Decorator.RenderTransform>
                                            <TransformGroup>
                                                <SkewTransform AngleX="-8" />
                                                <RotateTransform Angle="1.2" />
                                            </TransformGroup>
                                        </Decorator.RenderTransform>
                                        <local:FZTextBlock Text="{local:Loc CareerRaceObjectives.IDS_PostRace_SeasonVideo_Roster}"
                                                           RenderTransformOrigin="0.5,0.5"
                                                           CapHeight="84"
                                                           Color="#fff"
                                                           Effect="{StaticResource A_Effect_HighContrastModeDropShadow_Large}">
                                            <local:FZTextBlock.Style>
                                                <Style TargetType="local:FZTextBlock"
                                                       BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
                                                    <Setter Property="Visibility"
                                                            Value="Collapsed" />
                                                    <Style.Triggers>
                                                        <DataTrigger Binding="{Binding IERewardId}"
                                                                     Value="Roster">
                                                            <Setter Property="Visibility"
                                                                    Value="Visible" />
                                                        </DataTrigger>
                                                    </Style.Triggers>
                                                </Style>
                                            </local:FZTextBlock.Style>
                                        </local:FZTextBlock>
                                    </Decorator>
                                </Grid>
                            </Decorator>
                        </Decorator>
                    </Decorator>
                    <Decorator RenderTransformOrigin="0.5,0.5"
                               VerticalAlignment="Bottom"
                               HorizontalAlignment="Center">
                        <UIElement.RenderTransform>
                            <RotateTransform Angle="-8" />
                        </UIElement.RenderTransform>
                        <Decorator x:Name="QualifyText"
                                   Effect="{StaticResource A_MotionBlurEffect}"
                                   local:MotionBlurEffect.MotionBlurPositionXControl="{Binding Path=(UIElement.RenderTransform).(TranslateTransform.X), RelativeSource={RelativeSource Self}}">
                            <UIElement.RenderTransform>
                                <TranslateTransform />
                            </UIElement.RenderTransform>
                            <Decorator RenderTransformOrigin="0.5,0.5"
                                       RenderTransform="{StaticResource A_Transform_Italic}">
                                <Decorator.Style>
                                    <Style TargetType="Decorator">
                                        <Setter Property="Margin"
                                                Value="142" />
                                        <Style.Triggers>
                                            <DataTrigger Binding="{Binding IERewardId}"
                                                         Value="Roster">
                                                <Setter Property="Margin"
                                                        Value="142,142,-600,142" />
                                            </DataTrigger>
                                        </Style.Triggers>
                                    </Style>
                                </Decorator.Style>
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                   CapHeight="67"
                                                   Color="#fff"
                                                   Text="{local:Loc InGame.IDS_PostRace_IE_Qualified}"
                                                   Effect="{StaticResource A_Effect_HighContrastModeDropShadow_Large}" />
                            </Decorator>
                        </Decorator>
                    </Decorator>
                </Grid>

                <local:FZMaterial x:Name="IEFLash"
                                  Opacity="0"
                                  local:CompareValue.A="{Binding Maximum, ElementName=IEProgressBar}"
                                  local:CompareValue.B="{Binding Value, ElementName=IEProgressBar}">
                    <local:FZMaterial.Style>
                        <Style>
                            <Style.Triggers>
                                <Trigger Property="local:CompareValue.Result"
                                         Value="0">
                                    <Trigger.EnterActions>
                                        <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_IELevelUp}"
                                                                 Name="IEUp" />
                                    </Trigger.EnterActions>
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </local:FZMaterial.Style>
                </local:FZMaterial>

                <!-- Useful for when the bar has finished but we haven't reached the target -->
                <FrameworkElement x:Name="BarFinishedHelper">
                    <FrameworkElement.Style>
                        <Style TargetType="FrameworkElement">
                            <Setter Property="Tag"
                                    Value="IEBarNotFinished" />
                            <Style.Triggers>
                                <MultiDataTrigger>
                                    <MultiDataTrigger.Conditions>
                                        <Condition Binding="{Binding Path=(local:BlendValue.Blend), Converter={StaticResource A_Converter_Identity}, ElementName=ValueHelper}"
                                                   Value="1" />
                                    </MultiDataTrigger.Conditions>
                                    <MultiDataTrigger.EnterActions>
                                        <local:StopAudioTrigger EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_CashRewardsCount_lp_01"
                                                                local:TriggerAnimation.KeyTime="0:0:0" />
                                    </MultiDataTrigger.EnterActions>
                                    <Setter Property="Tag"
                                            Value="IEBarFinished" />

                                </MultiDataTrigger>
                            </Style.Triggers>
                        </Style>
                    </FrameworkElement.Style>
                </FrameworkElement>

                <FrameworkElement x:Name="DidProgressHelper"
                                  Tag="{Binding Tag, ElementName=BarFinishedHelper}">
                    <FrameworkElement.Style>
                        <Style TargetType="FrameworkElement">
                            <Style.Triggers>
                                <Trigger Property="Tag"
                                         Value="IEBarFinished">
                                    <Setter Property="local:CompareValue.A"
                                            Value="{Binding IEAfterXP}" />
                                    <Setter Property="local:CompareValue.B"
                                            Value="{Binding IETargetXP}" />
                                </Trigger>
                                <Trigger Property="local:CompareValue.Result"
                                         Value="-1">
                                    <Trigger.EnterActions>
                                        <local:BeginUIStoryboard Name="IEBarFinishedNoUnlock">
                                            <local:UIStoryboard>
                                                <local:UIStoryboard.TriggerAnimation>
                                                    <local:RaiseFzEvent EventName="DisableSkip"
                                                                        local:TriggerAnimation.KeyTime="0:0:0.0"/>
                                                    <local:RaiseEntityModelEvent local:TriggerAnimation.KeyTime="0:0:1"
                                                                                 EventName="UISequenceComplete" />
                                                </local:UIStoryboard.TriggerAnimation>
                                            </local:UIStoryboard>
                                        </local:BeginUIStoryboard>
                                    </Trigger.EnterActions>
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </FrameworkElement.Style>
                </FrameworkElement>
            </Grid>


            <Grid x:Name="DLC1"
                  ClipToBounds="True">
                <Grid.Resources>
                    <Style x:Key="A_Style_DLC1ProgressBar"
                           TargetType="{x:Type ProgressBar}">
                        <Setter Property="Focusable"
                                Value="False" />
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="{x:Type ProgressBar}">
                                    <Grid>
                                        <local:FZMaterial x:Name="PART_Track"
                                                          Color="#0000"
                                                          Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_InnerAll}" />
                                        <Grid x:Name="PART_Indicator"
                                              HorizontalAlignment="Left"
                                              ClipToBounds="True">
                                            <local:FZMaterial Width="{TemplateBinding ActualWidth}">
                                                <local:FZMaterial.Preset>
                                                        <local:FZMaterialPresetRoundtangle GradientAngle="105"
                                                                                       GradientColorA="{StaticResource A_Color_TrackSpecificCurrency_ExpansionOne_PostRace_B}"
                                                                                       GradientColorB="{StaticResource A_Color_TrackSpecificCurrency_ExpansionOne_PostRace_A}" />
                                                </local:FZMaterial.Preset>
                                            </local:FZMaterial>

                                            <!-- Bar tips are currently tbd -->
                                            <Decorator Visibility="Hidden"
                                                       HorizontalAlignment="Right">
                                                <local:FZMaterial Color="#fff"
                                                                  Preset="{StaticResource A_FZMaterialPresetRoundtangle_BarEdge}"
                                                                  Width="8" />
                                            </Decorator>

                                        </Grid>


                                    </Grid>

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

                    <local:LinearTransformConverter x:Key="A_Converter_Identity" />

                    <local:UIStoryboard x:Key="A_Storyboard_DLC1LevelUp">
                        <local:UIStoryboard.TriggerAnimation>
                            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.1"
                                                EventName="TransitionToDLC1RewardReveal" />
                            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.1"
                                                EventName="DisableSkip" />
                            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.1"
                                                EventName="IERewardReached" />
                            <local:StopAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0"
                                                    EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_CashRewardsCount_lp_01" />
                            <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0"
                                                     EventName="AudioUITrigger_XPRewardsTotalComplete" />
                        </local:UIStoryboard.TriggerAnimation>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                    Value="0" />
                            <EasingDoubleKeyFrame EasingFunction="{local:LinearEasing}"
                                                  KeyTime="0:0:0.2"
                                                  Value="1" />
                            <EasingDoubleKeyFrame EasingFunction="{local:LinearEasing}"
                                                  KeyTime="0:0:0.3"
                                                  Value="1" />
                            <EasingDoubleKeyFrame EasingFunction="{local:LinearEasing}"
                                                  KeyTime="0:0:0.5"
                                                  Value="0" />
                        </DoubleAnimationUsingKeyFrames>
                    </local:UIStoryboard>

                </Grid.Resources>
                <UIElement.RenderTransform>
                    <TranslateTransform X="1920" />
                </UIElement.RenderTransform>

                <local:FZMaterial Color="#ff262626" />
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_PostRace_Hatching}"
                                  Opacity="0.125" />

                <FrameworkElement x:Name="DLC1ValueHelper"
                                  local:BlendValue.Source="{Binding DLC1BeforeXP, Converter={StaticResource A_Converter_Identity}}"
                                  local:BlendValue.Target="{Binding DLC1AfterXP, Converter={StaticResource A_Converter_Identity}}"
                                  local:BlendValue.Blend="0"
                                  local:MinValue.A="{Binding DLC1TargetXP}"
                                  local:MinValue.B="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}}"
                                  local:BlendValue.Output="{Binding DLC1BeforeXP, Converter={StaticResource A_Converter_Identity}}" />


                <ProgressBar Tag="UnSkipped"
                             x:Name="DLC1ProgressBar"
                             Minimum="{Binding DLC1StartXP, Converter={StaticResource A_Converter_Identity}}"
                             Maximum="{Binding DLC1TargetXP, Converter={StaticResource A_Converter_Identity}}">
                    <FrameworkElement.Style>
                        <Style TargetType="ProgressBar"
                               BasedOn="{StaticResource A_Style_DLC1ProgressBar}">
                            <Setter Property="Value"
                                    Value="{Binding Path=(local:MinValue.Result), Converter={StaticResource A_Converter_Identity}, ElementName=DLC1ValueHelper}" />
                            <Style.Triggers>
                                <Trigger Property="Tag"
                                         Value="Skipped">
                                    <Setter Property="Value"
                                            Value="{Binding (local:MinValue.Result), Converter={StaticResource A_Converter_Identity}, ElementName=DLC1MaxValueHelper}" />
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </FrameworkElement.Style>
                </ProgressBar>
                <StackPanel HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            RenderTransformOrigin="0.5,0.5"
                            x:Name="DLC1ProgressInfo">
                    <UIElement.RenderTransform>
                        <RotateTransform Angle="-6" />
                    </UIElement.RenderTransform>
                    <Decorator x:Name="DLC1BarTitleSlide"
                               HorizontalAlignment="Left">
                        <UIElement.RenderTransform>
                            <TranslateTransform />
                        </UIElement.RenderTransform>
                        <Decorator Style="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}"
                                   x:Name="DLC1BarTitle">
                            <Decorator RenderTransformOrigin="0.5,0.5"
                                       RenderTransform="{StaticResource A_Transform_Italic}">
                                <local:FZTextBlock Text="{local:Loc CareerRaceObjectives.IDS_DLC1_Influence_Objective_Title}"
                                                   Style="{StaticResource A_Style_FZTextBlock_HorizonB}"
                                                   CapHeight="44"
                                                   Color="#fff" />
                            </Decorator>
                        </Decorator>
                    </Decorator>

                    <Decorator Height="28" />

                    <Decorator Style="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}"
                               HorizontalAlignment="Left"
                               x:Name="DLC1Total">
                        <StackPanel Orientation="Horizontal"
                                    RenderTransformOrigin="0.5,0.5"
                                    RenderTransform="{StaticResource A_Transform_Italic}">
                            <Decorator Height="0">
                                <local:FZMaterial ImageSource="game:/Media/UI/Textures/Data_Bound/PostRace/INF_85_FilledCircle.png"
                                                  Stretch="Uniform"
                                                  Height="158"
                                                  VerticalAlignment="Center"
                                                  Width="158" />
                            </Decorator>
                            <Decorator Width="14" />
                            <Grid>
                                <FrameworkElement x:Name="DLC1MaxValueHelper"
                                                  local:MinValue.A="{Binding DLC1TargetXP}"
                                                  local:MinValue.B="{Binding DLC1AfterXP}" />

                                <local:FZTextBlock Text="{Binding Value, ElementName=DLC1ProgressBar, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                   Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                   CapHeight="136"
                                                   VerticalAlignment="Center"
                                                   HorizontalAlignment="Left"
                                                   Color="#fff" />
                                <local:FZTextBlock Text="{Binding Path=(local:MinValue.Result), ElementName=DLC1MaxValueHelper, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                   Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                   CapHeight="136"
                                                   VerticalAlignment="Center"
                                                   Visibility="Hidden"
                                                   Color="#fff" />
                            </Grid>
                        </StackPanel>
                    </Decorator>

                    <Decorator Height="42" />

                    <Decorator x:Name="DLC1BalanceSlide"
                               HorizontalAlignment="Right">
                        <UIElement.RenderTransform>
                            <TranslateTransform />
                        </UIElement.RenderTransform>
                        <Decorator Style="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}"
                                   x:Name="DLC1Target"
                                   Margin="0,0,25,0">
                            <StackPanel Orientation="Horizontal"
                                        RenderTransformOrigin="0.5,0.5"
                                        RenderTransform="{StaticResource A_Transform_Italic}">
                                <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"
                                                  CaptureSubgraph="True">
                                    <local:FZMaterial>
                                        <local:FZTextBlock Text="{local:Loc CareerRaceObjectives.IDS_DLC1_Objective_NextRound}" Tag="{Binding DLC1ObjectiveText}"
                                                           Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                           CapHeight="32"
                                                           VerticalAlignment="Center"
                                                           Color="#fff"
                                                           Preset="{StaticResource A_FZMaterialPreset_Cutout}"
                                                           Margin="24,15" />
                                    </local:FZMaterial>
                                </local:FZMaterial>

                                <Decorator Width="13" />

                                <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"
                                                  CaptureSubgraph="True">
                                    <local:FZMaterial>
                                        <StackPanel Orientation="Horizontal"
                                                    Margin="24,15">
                                            <Decorator Height="32"
                                                       Width="32">
                                                <local:FZMaterial ImageSource="game:/Media/UI/Textures/Data_Bound/PostRace/INF_85_FilledCircle.png"
                                                                  Stretch="Uniform"
                                                                  Height="43"
                                                                  HorizontalAlignment="Center"
                                                                  VerticalAlignment="Center"
                                                                  Preset="{StaticResource A_FZMaterialPreset_Cutout}"
                                                                  Width="43" />
                                            </Decorator>
                                            <Decorator Width="12" />
                                            <local:FZTextBlock Text="{Binding DLC1TargetXP, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                               Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                               CapHeight="32"
                                                               VerticalAlignment="Center"
                                                               Color="#fff"
                                                               Preset="{StaticResource A_FZMaterialPreset_Cutout}" />
                                        </StackPanel>
                                    </local:FZMaterial>
                                </local:FZMaterial>
                            </StackPanel>
                        </Decorator>
                    </Decorator>

                </StackPanel>

                <local:FZMediaElement Stretch="UniformToFill"
                                      LoadedBehavior="Play"
                                      UnloadedBehavior="Stop"
                                      Tag="SourceNotSet"
                                      x:Name="DLC1Video"
                                      Preset="{StaticResource A_FZMaterialPresetAdditive}">
                    <local:FZMediaElement.Style>
                        <Style TargetType="local:FZMediaElement">
                            <Style.Triggers>
                                <Trigger Property="Tag"
                                             Value="SourceSet">
                                    <Setter Property="Source"
                                            Value="game:/Media/UI/Videos/Stars_Particles.bk2" />
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </local:FZMediaElement.Style>
                </local:FZMediaElement>

                <Grid x:Name="DLC1ObjectiveReward">
                    <Decorator HorizontalAlignment="Center"
                               VerticalAlignment="Center"
                               Margin="0,50,0,-50"
                               x:Name="DLC1UnlockInfo"
                               Width="1500">
                        <local:ZPanel.Transform>
                            <local:Transform3DGroup>
                                <local:ZRotation Angle="-6" />
                            </local:Transform3DGroup>
                        </local:ZPanel.Transform>
                        <StackPanel Orientation="Vertical"
                                    MaxWidth="1500"
                                    HorizontalAlignment="Center"
                                    RenderTransform="{StaticResource A_Transform_Italic}">
                            <Control x:Name="DLC1QualifyText"
                                     Margin="60,0,0,0"
                                     HorizontalAlignment="Left"
                                     Style="{StaticResource A_Style_Control_PostRace_TotalLabelBlock}"
                                     Tag="{Binding Source={local:Loc CareerRaceObjectives.IDS_DLC1_Influence_Objective_Title}, Converter={StaticResource A_StringToUpper}}">
                                <Control.Resources>
                                    <Style x:Key="A_Style_FZTextBlock_PostRace_TotalText"
                                           TargetType="local:FZTextBlock"
                                           BasedOn="{StaticResource A_Style_FZTextBlock_PostRace_TotalText}">
                                        <Setter Property="FontFamily"
                                                Value="Horizon_B" />
                                    </Style>
                                </Control.Resources>
                            </Control>

                            <Decorator Height="22" />

                            <Control x:Name="DLC1QualifyNameText"
                                     Margin="0,0,0,0"
                                     HorizontalAlignment="Left"
                                     Style="{StaticResource A_Style_Control_PostRace_TotalLabelBlock_Large}"
                                     Tag="{Binding DLC1ObjectiveAchievedText}">
                                <Control.Resources>
                                    <System:Double x:Key="A_Double_TotalLabelTextSize">96</System:Double>
                                </Control.Resources>
                            </Control>
                        </StackPanel>
                    </Decorator>
                </Grid>


                <local:FZMaterial x:Name="DLC1FLash"
                                  Opacity="0"
                                  local:CompareValue.A="{Binding Maximum, ElementName=DLC1ProgressBar}"
                                  local:CompareValue.B="{Binding Value, ElementName=DLC1ProgressBar}">
                    <local:FZMaterial.Style>
                        <Style>
                            <Style.Triggers>
                                <MultiDataTrigger>
                                    <MultiDataTrigger.Conditions>
                                        <Condition Binding="{Binding Path=(local:BlendValue.Blend), Converter={StaticResource A_CompareConverter}, ConverterParameter=0.0, ElementName=DLC1ValueHelper}"
                                                   Value="1" />
                                        <Condition Binding="{Binding Path=(local:CompareValue.Result), RelativeSource={RelativeSource Self}}"
                                                   Value="0" />
                                    </MultiDataTrigger.Conditions>
                                    <MultiDataTrigger.EnterActions>
                                        <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_DLC1LevelUp}"
                                                                 Name="DLC1Up" />
                                    </MultiDataTrigger.EnterActions>
                                </MultiDataTrigger>
                            </Style.Triggers>
                        </Style>
                    </local:FZMaterial.Style>
                </local:FZMaterial>

                <!-- Useful for when the bar has finished but we haven't reached the target -->
                <FrameworkElement x:Name="DLC1BarFinishedHelper">
                    <FrameworkElement.Style>
                        <Style TargetType="FrameworkElement">
                            <Setter Property="Tag"
                                    Value="DLC1BarNotFinished" />
                            <Style.Triggers>
                                <MultiDataTrigger>
                                    <MultiDataTrigger.Conditions>
                                        <Condition Binding="{Binding Path=(local:BlendValue.Blend), Converter={StaticResource A_Converter_Identity}, ElementName=DLC1ValueHelper}"
                                                   Value="1" />
                                    </MultiDataTrigger.Conditions>
                                    <MultiDataTrigger.EnterActions>
                                        <local:StopAudioTrigger EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_CashRewardsCount_lp_01"
                                                                local:TriggerAnimation.KeyTime="0:0:0" />
                                    </MultiDataTrigger.EnterActions>
                                    <Setter Property="Tag"
                                            Value="DLC1BarFinished" />

                                </MultiDataTrigger>
                            </Style.Triggers>
                        </Style>
                    </FrameworkElement.Style>
                </FrameworkElement>

                <FrameworkElement x:Name="DLC1DidProgressHelper"
                                  Tag="{Binding Tag, ElementName=DLC1BarFinishedHelper}">
                    <FrameworkElement.Style>
                        <Style TargetType="FrameworkElement">
                            <Style.Triggers>
                                <Trigger Property="Tag"
                                         Value="DLC1BarFinished">
                                    <Setter Property="local:CompareValue.A"
                                            Value="{Binding DLC1AfterXP}" />
                                    <Setter Property="local:CompareValue.B"
                                            Value="{Binding DLC1TargetXP}" />
                                </Trigger>
                                <Trigger Property="local:CompareValue.Result"
                                         Value="-1">
                                    <Trigger.EnterActions>
                                        <local:BeginUIStoryboard Name="DLC1BarFinishedNoUnlock">
                                            <local:UIStoryboard>
                                                <local:UIStoryboard.TriggerAnimation>
                                                    <local:RaiseFzEvent EventName="DisableSkip"
                                                                        local:TriggerAnimation.KeyTime="0:0:0.0" />
                                                    <local:RaiseEntityModelEvent local:TriggerAnimation.KeyTime="0:0:1"
                                                                                 EventName="UISequenceComplete" />
                                                </local:UIStoryboard.TriggerAnimation>
                                            </local:UIStoryboard>
                                        </local:BeginUIStoryboard>
                                    </Trigger.EnterActions>
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </FrameworkElement.Style>
                </FrameworkElement>

            </Grid>
        </Grid>
        <FrameworkElement x:Name="animhelp" />
        <local:FZTextBlock Tag="SKIP"
                           CapHeight="100"
                           VerticalAlignment="Bottom"
                           HorizontalAlignment="Center"
                           Visibility="{Binding EnableSkip, Converter={StaticResource A_Converter_BoolToVis}}"/>
    </Grid>

    <local:EventFire.FzTriggers>
        <local:BeginUIStoryboard local:EventFireTrigger.Event="TransitionToDLC1RewardReveal"
                                 HandoffBehavior="Compose"
                                 Name="BeginTransitionToDLC1RewardReveal">
            <local:UIStoryboard>
                <local:UIStoryboard.TriggerAnimation>
                    <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.1"
                                             EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsTotalOn_01" />
                    <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0.1"
                                             Storyboard.TargetName="DLC1QualifyText"
                                             Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromLeft_Slide}"
                                             Name="BeginShowDLC1Qualify" />
                    <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0.1" 
                                             Storyboard.TargetName="DLC1QualifyNameText"
                                             Name="BeginShowDLC1NameText"
                                             Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromRight_Slide}" />

                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.1"
                                        EventName="IERewardReached" />
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.1"
                                        EventName="DisableSkip" />
                    
                    <local:RaiseEntityModelEvent local:TriggerAnimation.KeyTime="0:0:4"
                                                 EventName="UISequenceComplete" />
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1ProgressInfo"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.1"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DLC1Video"
                                               Storyboard.TargetProperty="Tag"
                                               FillBehavior="Stop">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="SourceSet" />
                    <DiscreteObjectKeyFrame KeyTime="0:0:4.0"
                                            Value="SourceNotSet" />
                </ObjectAnimationUsingKeyFrames>
            </local:UIStoryboard>
        </local:BeginUIStoryboard>
        <local:BeginUIStoryboard local:EventFireTrigger.Event="DontShowIEObjective"
                                 Name="DontShowIEObjective">
            <local:UIStoryboard>
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.5"
                                        EventName="DisableSkip" />
                    <local:RaiseEntityModelEvent EventName="UISequenceComplete"
                                                 local:TriggerAnimation.KeyTime="0:0:0.7" />
                </local:UIStoryboard.TriggerAnimation>
            </local:UIStoryboard>
        </local:BeginUIStoryboard>
        <local:BeginUIStoryboard local:EventFireTrigger.Event="ShowIEObjective"
                                 Name="ShowIEObjectiveEnableSkip"
                                 local:EventFireTrigger.TargetName="animhelp">
            <local:UIStoryboard>
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent EventName="DisableSkip"
                                        local:TriggerAnimation.KeyTime="0:0:0.0" />
                    <local:RaiseFzEvent EventName="EnableSkip"
                                        local:TriggerAnimation.KeyTime="0:0:0.6" />
                </local:UIStoryboard.TriggerAnimation>
            </local:UIStoryboard>
        </local:BeginUIStoryboard>
        <local:BeginUIStoryboard local:EventFireTrigger.Event="ShowDLC1Objective"
                                 Name="ShowDLC1ObjectiveEnableSkip"
                                 local:EventFireTrigger.TargetName="animhelp">
            <local:UIStoryboard>
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent EventName="DisableSkip"
                                        local:TriggerAnimation.KeyTime="0:0:0.0" />
                    <local:RaiseFzEvent EventName="EnableSkip"
                                        local:TriggerAnimation.KeyTime="0:0:0.6" />
                </local:UIStoryboard.TriggerAnimation>
            </local:UIStoryboard>
        </local:BeginUIStoryboard>
        <local:BeginUIStoryboard local:EventFireTrigger.Event="ShowIEObjective"
                                 Name="ShowIEObjective">
            <local:UIStoryboard BeginTime="0:0:0.75">
                <local:UIStoryboard.TriggerAnimation>
                    <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromLeft}"
                                             HandoffBehavior="Compose"
                                             Storyboard.TargetName="IEBarTitle"
                                             local:TriggerAnimation.KeyTime="0:0:0.4"
                                             Name="BeginIEBarTitle"/>
                    <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromLeft}"
                                             Storyboard.TargetName="IETotal"
                                             local:TriggerAnimation.KeyTime="0:0:0.4"
                                             Name="BeginIETotal" />
                    <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromRight}"
                                             Storyboard.TargetName="IETarget"
                                             local:TriggerAnimation.KeyTime="0:0:0.4"
                                             Name="BeginIETarget" />
                    <local:StartAudioTrigger EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsTitleOn_01"
                                    local:TriggerAnimation.KeyTime="0:0:0.2"/>

                    <local:StartAudioTrigger EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_CashRewardsCount_lp_01"
                                    local:TriggerAnimation.KeyTime="0:0:1.7"/>
                </local:UIStoryboard.TriggerAnimation>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IENextSeason"
                                               Storyboard.TargetProperty="Visibility">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Hidden}" />
                </ObjectAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BlendHelper"
                                               Storyboard.TargetProperty="(local:MinValue.A)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:1.7"
                                            Value="999999999" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IEBarTitleSlide"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                    <EasingDoubleKeyFrame KeyTime="0:0:5"
                                          Value="20"
                                          EasingFunction="{local:LinearEasing}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IEBalanceSlide"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                    <EasingDoubleKeyFrame KeyTime="0:0:5"
                                          Value="-20"
                                          EasingFunction="{local:LinearEasing}" />
                </DoubleAnimationUsingKeyFrames>


                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IE"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <SplineDoubleKeyFrame KeyTime="0:0:0.6"
                                          Value="0"
                                          KeySpline="0.8,0.0,0.3,0.0"/>
                </DoubleAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IEBlur"
                                               Storyboard.TargetProperty="Tag">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="IETransitionMotionBlur" />
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.6"
                                            Value="" />
                </ObjectAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="NewStyleBits"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <SplineDoubleKeyFrame KeyTime="0:0:0.6"
                                          Value="-1920"
                                          KeySpline="0.8,0.0,0.3,0.0"/>
                </DoubleAnimationUsingKeyFrames>

            </local:UIStoryboard>
        </local:BeginUIStoryboard>

        <local:BeginUIStoryboard local:EventFireTrigger.Event="ShowDLC1Objective"
                                 Name="ShowDLC1Objective">
            <local:UIStoryboard BeginTime="0:0:0.75">
                <local:UIStoryboard.TriggerAnimation>
                    <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromLeft}"
                                             HandoffBehavior="Compose"
                                             Storyboard.TargetName="DLC1BarTitle"
                                             local:TriggerAnimation.KeyTime="0:0:0.4"
                                             Name="BeginDLC1BarTitle" />
                    <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromLeft}"
                                             Storyboard.TargetName="DLC1Total"
                                             local:TriggerAnimation.KeyTime="0:0:0.4"
                                             Name="BeginDLC1Total" />
                    <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromRight}"
                                             Storyboard.TargetName="DLC1Target"
                                             local:TriggerAnimation.KeyTime="0:0:0.4"
                                             Name="BeginDLC1Target" />
                    <local:StartAudioTrigger EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsTitleOn_01"
                                             local:TriggerAnimation.KeyTime="0:0:0.2" />

                    <local:StartAudioTrigger EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_CashRewardsCount_lp_01"
                                             local:TriggerAnimation.KeyTime="0:0:1.7" />
                    <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:1.7"
                                             Storyboard.TargetName="DLC1ValueHelper"
                                             Name="BeginBlendDLC1Progress">
                        <local:UIStoryboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:BlendValue.Blend)">
                                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                        Value="0" />
                                <EasingDoubleKeyFrame KeyTime="0:0:2"
                                                      Value="1"
                                                      EasingFunction="{local:QuadraticEasing EasingMode=EaseInOut}" />
                            </DoubleAnimationUsingKeyFrames>
                        </local:UIStoryboard>
                    </local:BeginUIStoryboard>
                </local:UIStoryboard.TriggerAnimation>
                <!--DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1BarTitleSlide"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                    <EasingDoubleKeyFrame KeyTime="0:0:5"
                                          Value="20"
                                          EasingFunction="{local:LinearEasing}" />
                </>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1BalanceSlide"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                    <EasingDoubleKeyFrame KeyTime="0:0:5"
                                          Value="-20"
                                          EasingFunction="{local:LinearEasing}" />
                </DoubleAnimationUsingKeyFrames-->


                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <SplineDoubleKeyFrame KeyTime="0:0:0.6"
                                          Value="0"
                                          KeySpline="0.8,0.0,0.3,0.0" />
                </DoubleAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IEBlur"
                                               Storyboard.TargetProperty="Tag">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="IETransitionMotionBlur" />
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.6"
                                            Value="" />
                </ObjectAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="NewStyleBits"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <SplineDoubleKeyFrame KeyTime="0:0:0.6"
                                          Value="-1920"
                                          KeySpline="0.8,0.0,0.3,0.0" />
                </DoubleAnimationUsingKeyFrames>

            </local:UIStoryboard>
        </local:BeginUIStoryboard>

        <local:BeginUIStoryboard local:EventFireTrigger.Event="FinalThreadObjective"
                                 Name="BeginFinalThreadObjective"
                                 Storyboard="{StaticResource A_Storyboard_PostRace_FinalRewardUp}" />

        <local:BeginUIStoryboard local:EventFireTrigger.Event="TransitionToIERewardReveal_Showcase"
                                 Name="BeginTransitionToIERewardReveal_Showcase">
            <local:UIStoryboard>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IEProgressBar"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IEProgressInfo"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>

                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MovingBarsBackgroundColor"
                                               Storyboard.TargetProperty="Preset">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource A_FZMaterialPresetRoundtangle_PostRace_Showcase}"/>
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MovingBarsBackgroundColor"
                                               Storyboard.TargetProperty="Color">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource A_Color_White}"/>
                </ObjectAnimationUsingKeyFrames>

                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IEObjectiveShowcaseReward"
                                               Storyboard.TargetProperty="Visibility">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Visible}" />
                </ObjectAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                           Storyboard.TargetName="ShowcaseQualifyText"
                                           BeginTime="0:0:0">
                    <EasingDoubleKeyFrame KeyTime="0:0:0.2"
                                      Value="{StaticResource A_Double_PostRace_WhooshInFromLeft_StartPositionXOffset}"
                                      EasingFunction="{local:LinearEasing}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="ShowcaseQualifyText"
                                           BeginTime="0:0:0.0">
                    <LinearDoubleKeyFrame KeyTime="0:0:0.2"
                                      Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                           Storyboard.TargetName="ShowcaseNameText"
                                           BeginTime="0:0:0.0">
                    <EasingDoubleKeyFrame KeyTime="0:0:0.2"
                                      Value="{StaticResource A_Double_PostRace_WhooshInFromRight_StartPositionXOffset}"
                                      EasingFunction="{local:LinearEasing}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                           Storyboard.TargetName="ShowcaseNameText"
                                           BeginTime="0:0:0.0">
                    <LinearDoubleKeyFrame KeyTime="0:0:0.2"
                                      Value="0" />
                </DoubleAnimationUsingKeyFrames>

                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                                           Storyboard.TargetName="ShowcaseIconBlock">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="-1000" />
                    <EasingDoubleKeyFrame KeyTime="0:0:0.43"
                                          Value="280"
                                          EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"  Storyboard.TargetName="ShowcaseIconBlock">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0" />
                    <LinearDoubleKeyFrame KeyTime="0:0:0.129" Value="1" />
                </DoubleAnimationUsingKeyFrames>

                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.43"
                                        EventName="IERewardReached" />
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.43"
                                        EventName="DisableSkip" />
                    <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.233" 
                                             EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsTotalOn_01" />
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.233"
                                        EventName="ShowIEShowcaseQualify"/>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.233"
                                        EventName="ShowIENameText" />
                    <local:RaiseEntityModelEvent local:TriggerAnimation.KeyTime="0:0:4"
                                                 EventName="UISequenceComplete" />
                </local:UIStoryboard.TriggerAnimation>
            </local:UIStoryboard>
        </local:BeginUIStoryboard>

        <local:BeginUIStoryboard local:EventFireTrigger.Event="TransitionToIERewardReveal_Video"
                                 Name="BeginTransitionToIERewardReveal_Video">
            <local:UIStoryboard>
                <local:UIStoryboard.TriggerAnimation>
                    <local:PlayVideoTrigger Storyboard.TargetName="IEVideo"
                                            local:TriggerAnimation.KeyTime="0:0:0" />
                    <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.4"
                                             EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsTotalOn_01" />
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.75"
                                        EventName="IERewardReached" />
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.75"
                                        EventName="DisableSkip" />
                    <local:RaiseEntityModelEvent local:TriggerAnimation.KeyTime="0:0:6"
                                                 EventName="UISequenceComplete"/>
                </local:UIStoryboard.TriggerAnimation>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IENextSeason"
                                               Storyboard.TargetProperty="Visibility">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Visible}" />
                </ObjectAnimationUsingKeyFrames>
                
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="SeasonLogo"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="800" />
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.5"
                                            Value="800" />
                    <EasingDoubleKeyFrame KeyTime="0:0:0.75"
                                            Value="0" 
                                          EasingFunction="{local:QuadraticEasing EasingMode=EaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="SeasonLogo"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.6"
                                            Value="0" />
                    <EasingDoubleKeyFrame KeyTime="0:0:0.75"
                                            Value="1" 
                                          EasingFunction="{local:LinearEasing}"/>
                </DoubleAnimationUsingKeyFrames>

                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="QualifyText"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="-800" />
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.5"
                                            Value="-800" />
                    <EasingDoubleKeyFrame KeyTime="0:0:0.75"
                                            Value="0" 
                                          EasingFunction="{local:QuadraticEasing EasingMode=EaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="QualifyText"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.6"
                                            Value="0" />
                    <EasingDoubleKeyFrame KeyTime="0:0:0.75"
                                            Value="1" 
                                          EasingFunction="{local:LinearEasing}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>
        </local:BeginUIStoryboard>

        <local:RaiseFzEvent local:EventFireTrigger.Event="ShowBonusItem1"
                            EventName="EnableSkip" />

        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem1"
                         local:EventFireTrigger.TargetName="BonusLabel1"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn}"
                         Name="BeginBonusLabel1"/>
        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem1"
                         local:EventFireTrigger.TargetName="BonusValue1"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn_Value}"
                         Name="BeginBonusValue1" />
        <local:StartAudioTrigger local:EventFireTrigger.Event="ShowBonusItem1"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsItemOn_01" />

        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem2"
                         local:EventFireTrigger.TargetName="BonusLabel2"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn}"
                         Name="BeginBonusLabel2" />
        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem2"
                         local:EventFireTrigger.TargetName="BonusValue2"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn_Value}"
                         Name="BeginBonusValue2" />
        <local:StartAudioTrigger local:EventFireTrigger.Event="ShowBonusItem2"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsItemOn_01" />

        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem3"
                         local:EventFireTrigger.TargetName="BonusLabel3"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn}"
                         Name="BeginBonusLabel3" />
        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem3"
                         local:EventFireTrigger.TargetName="BonusValue3"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn_Value}"
                         Name="BeginBonusValue3" />
        <local:StartAudioTrigger local:EventFireTrigger.Event="ShowBonusItem3"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsItemOn_01" />

        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem4"
                         local:EventFireTrigger.TargetName="BonusLabel4"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn}"
                         Name="BeginBonusLabel4" />
        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem4"
                         local:EventFireTrigger.TargetName="BonusValue4"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn_Value}"
                         Name="BeginBonusValue4" />
        <local:StartAudioTrigger local:EventFireTrigger.Event="ShowBonusItem4"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsItemOn_01" />

        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem5"
                         local:EventFireTrigger.TargetName="BonusLabel5"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn}"
                         Name="BeginBonusLabel5" />
        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem5"
                         local:EventFireTrigger.TargetName="BonusValue5"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn_Value}"
                         Name="BeginBonusValue5" />
        <local:StartAudioTrigger local:EventFireTrigger.Event="ShowBonusItem5"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsItemOn_01" />

        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem6"
                         local:EventFireTrigger.TargetName="BonusLabel6"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn}"
                         Name="BeginBonusLabel6" />
        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem6"
                         local:EventFireTrigger.TargetName="BonusValue6"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn_Value}"
                         Name="BeginBonusValue6" />
        <local:StartAudioTrigger local:EventFireTrigger.Event="ShowBonusItem6"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsItemOn_01" />

        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem7"
                         local:EventFireTrigger.TargetName="BonusLabel7"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn}"
                         Name="BeginBonusLabel7" />
        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem7"
                         local:EventFireTrigger.TargetName="BonusValue7"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn_Value}"
                         Name="BeginBonusValue7" />
        <local:StartAudioTrigger local:EventFireTrigger.Event="ShowBonusItem7"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsItemOn_01" />

        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem8"
                         local:EventFireTrigger.TargetName="BonusLabel8"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn}"
                         Name="BeginBonusLabel8" />
        <BeginStoryboard local:EventFireTrigger.Event="ShowBonusItem8"
                         local:EventFireTrigger.TargetName="BonusValue8"
                         Storyboard="{StaticResource A_Storyboard_PostRace_RowIn_Value}"
                         Name="BeginBonusValue8" />
        <local:StartAudioTrigger local:EventFireTrigger.Event="ShowBonusItem8"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsItemOn_01" />

        <local:BeginUIStoryboard local:EventFireTrigger.Event="ShowTotal"
                                 local:EventFireTrigger.TargetName="TotalLabel"
                                 Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromLeft_Slide_XPTotal}"
                                 Name="BeginShowTotalTotalLabel"/>
        <local:BeginUIStoryboard local:EventFireTrigger.Event="ShowTotal"
                                 local:EventFireTrigger.TargetName="TotalValue"
                                 Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromRight_Slide_XPTotal}" 
                                 Name="BeginShowTotalTotalValue"/>
        <local:StartAudioTrigger local:EventFireTrigger.Event="ShowTotal"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsTotalOn_01" />
        <local:BeginUIStoryboard local:EventFireTrigger.Event="ShowLevelBar"
                                Storyboard="{StaticResource A_Storyboard_PostRace_ShowLevelBar}"
                                 local:EventFireTrigger.TargetName="EventFire"
                                 Name="BeginShowLevelBar"/>
        <local:StartAudioTrigger local:EventFireTrigger.Event="ShowLevelBar"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsXPBarAppear_01" />
        <local:BeginUIStoryboard local:EventFireTrigger.Event="RewardUp"
                                 local:EventFireTrigger.TargetName="RewardBarContainer"
                                 Name="BeginRewardUpRewardBarContainer"
                                 Storyboard="{StaticResource A_Storyboard_PostRace_RewardUp}" />
        <local:StartAudioTrigger local:EventFireTrigger.Event="LevelUp"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsXPBarLevelUp_01" />
        <local:StartAudioTrigger local:EventFireTrigger.Event="LevelUp"
                                 EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsXPBarLevelUpFlip_01" />

        <local:BeginUIStoryboard local:EventFireTrigger.Event="ShowIEShowcaseQualify"
                                 local:EventFireTrigger.TargetName="ShowcaseQualifyText"
                                Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromLeft_Slide}"
                                 Name="BeginShowIEShowcaseQualify"/>
        <local:BeginUIStoryboard local:EventFireTrigger.Event="ShowIENameText"
                                 local:EventFireTrigger.TargetName="ShowcaseNameText"
                                 Name="BeginShowIENameText"
                                Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromRight_Slide}" />

        <local:StartAudioTrigger local:EventFireTrigger.Event="TickerComplete"
                                 EventName="AudioUITrigger_XPRewardsTotalComplete"/>

        <BeginStoryboard local:EventFireTrigger.Event="TickerComplete"
                         local:EventFireTrigger.TargetName="FinalValue"
                         Name="BeginTickerCompleteFinalValue">
            <local:UIStoryboard DurationOverride="0:0:0.8" FillBehavior="Stop">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1.0" />
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0"
                                          Value="0"
                                          EasingFunction="{local:ExponentialEasing EasingMode=EaseOut}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1.0" />
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0"
                                          Value="{StaticResource A_Double_FinalTotalScale}"
                                          EasingFunction="{local:LinearEasing}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1.0" />
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0"
                                          Value="{StaticResource A_Double_FinalTotalScale}"
                                          EasingFunction="{local:LinearEasing}" />
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>
        </BeginStoryboard>
        
        <BeginStoryboard local:EventFireTrigger.Event="TickerComplete"
                         local:EventFireTrigger.TargetName="TotalValue"
                         Name="BeginTickerCompleteTotalValue">
            <local:UIStoryboard DurationOverride="0:0:0.6"
                                FillBehavior="HoldEnd">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[2].(ScaleTransform3D.ScaleX)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1.05" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[2].(ScaleTransform3D.ScaleY)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1.05" />
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>
        </BeginStoryboard>
        
        <BeginStoryboard local:EventFireTrigger.Event="TickerComplete"
                         local:EventFireTrigger.TargetName="TotalGlow"
                         Name="BeginTickerCompleteTotalGlow">
            <local:UIStoryboard DurationOverride="0:0:0.6" FillBehavior="Stop">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                    <LinearDoubleKeyFrame KeyTime="0:0:0.1"
                                          Value="2.0" />
                    <LinearDoubleKeyFrame KeyTime="0:0:1.5"
                                          Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="2.5" />
                    <EasingDoubleKeyFrame KeyTime="0:0:1.5"
                                          Value="3.6"
                                          EasingFunction="{local:LinearEasing}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="3.0" />
                    <EasingDoubleKeyFrame KeyTime="0:0:1.5"
                                          Value="3.6"
                                          EasingFunction="{local:LinearEasing}" />
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>
        </BeginStoryboard>
        <local:RaiseEntityModelEvent local:EventFireTrigger.Event="StartPanelAnimation"
                                        EventName="PostRaceXPPanel" />
        <local:BeginUIStoryboard local:EventFireTrigger.Event="StartPanelAnimation"
                                 Storyboard="{StaticResource GamerPicBlock_transition_in}"
                                 local:EventFireTrigger.TargetName="GamerPicBlock" />
        <local:BeginUIStoryboard local:EventFireTrigger.Event="StartPanelAnimation"
                                 Storyboard="{StaticResource TitleContainer_transition_in}"
                                 local:EventFireTrigger.TargetName="TitleContainer" />
        <local:RaiseEntityModelEvent local:EventFireTrigger.Event="ShowIEObjective"
                                        EventName="PostRaceXPPanel_IE" />


        <local:BeginUIStoryboard local:EventFireTrigger.Event="SkipToTotal"
                                 Name="BeginSkipToTotal">
            <local:UIStoryboard FillBehavior="HoldEnd">
                <local:UIStoryboard.TriggerAnimation>
                    <!-- Don't need to worry about firing this after the bookmark has been moved to because the stateflow won't be listening for it any more -->
                    <local:RaiseEntityModelEvent EventName="Panel_ShowTotal"
                                                 local:TriggerAnimation.KeyTime="0:0:0" />
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:2"
                                        Storyboard.TargetName="EventFire"
                                        EventName="ShowLevelBar" />
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:3"
                                        Storyboard.TargetName="PART_LevelBar"
                                        EventName="StartLevelBarFillAnimation" />
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:3"
                                        Storyboard.TargetName="PART_RewardBar"
                                        EventName="StartLevelBarFillAnimation" />
                    <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0"
                                             Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromLeft_Slide_XPTotal_Skip}"
                                             Storyboard.TargetName="TotalLabel" />
                    <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0"
                                             Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromRight_Slide_XPTotal_Skip}"
                                             Storyboard.TargetName="TotalValue" />
                    <local:RaiseFzEvent EventName="DisableSkip"
                                        local:TriggerAnimation.KeyTime="0:0:0" />
                    <local:RaiseFzEvent EventName="EnableSkip"
                                        local:TriggerAnimation.KeyTime="0:0:0.6" />
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="GamerPicBlock"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="GamerPicBlock"
                                               Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                               FillBehavior="HoldEnd">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TotalValue"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="{StaticResource A_Double_FinalTotalScale}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TotalValue"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="{StaticResource A_Double_FinalTotalScale}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TitleContainer"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TitleContainer"
                                               Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                               FillBehavior="HoldEnd">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusLabel1"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusLabel2"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusLabel3"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusLabel4"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusLabel5"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusLabel6"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusLabel7"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusLabel8"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusValue1"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusValue2"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusValue3"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusValue4"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusValue5"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusValue6"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusValue7"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BonusValue8"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>
        </local:BeginUIStoryboard>

        <local:BeginUIStoryboard local:EventFireTrigger.Event="SkipToRewards"
                                 Name="BeginSkipToRewards">
            <local:UIStoryboard FillBehavior="HoldEnd">
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent EventName="DisableSkip"
                                        local:TriggerAnimation.KeyTime="0:0:0.0" />
                    <local:StartAudioTrigger EventName="/Master/UI/UI_Nav_Accept"
                                             local:TriggerAnimation.KeyTime="0:0:0" />
                </local:UIStoryboard.TriggerAnimation>

                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="LevelBarContainer"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="RewardBarContainer"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BarsDivider"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                
            </local:UIStoryboard>
        </local:BeginUIStoryboard>

        <local:BeginUIStoryboard local:EventFireTrigger.Event="SkipToFinalBars"
                                 Name="BeginSkipToFinalBars">
            <local:UIStoryboard FillBehavior="HoldEnd">
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent EventName="DisableSkip"
                                        local:TriggerAnimation.KeyTime="0:0:0.0" />
                    <local:StartAudioTrigger EventName="/Master/UI/UI_Nav_Accept"
                                             local:TriggerAnimation.KeyTime="0:0:0" />
                    <!-- Raise these twice, one for each bar -->
                    <local:RaiseFzEvent EventName="Complete"
                                        local:TriggerAnimation.KeyTime="0:0:0.0" />
                    <local:RaiseFzEvent EventName="Complete"
                                        local:TriggerAnimation.KeyTime="0:0:0.0" />
                </local:UIStoryboard.TriggerAnimation>

                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="LevelBarContainer"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="RewardBarContainer"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BarsDivider"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>

            </local:UIStoryboard>
        </local:BeginUIStoryboard>

        <local:BeginUIStoryboard local:EventFireTrigger.Event="SkipToIEFinalBar"
                                 Name="BeginSkipToIEFinalBar">
            <local:UIStoryboard FillBehavior="HoldEnd">
                <local:UIStoryboard.TriggerAnimation>
                    <local:StartAudioTrigger EventName="/Master/UI/UI_Nav_Accept"
                                             local:TriggerAnimation.KeyTime="0:0:0" />
                    <local:StopAudioTrigger EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_CashRewardsCount_lp_01"
                                            local:TriggerAnimation.KeyTime="0:0:0" />
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IE"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IEBarTitle"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IETotal"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IETarget"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IEProgressBar"
                                               Storyboard.TargetProperty="Tag">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="Skipped" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BarFinishedHelper"
                                               Storyboard.TargetProperty="Tag">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="IEBarFinished" />
                </ObjectAnimationUsingKeyFrames>
            </local:UIStoryboard>
        </local:BeginUIStoryboard>

        <local:BeginUIStoryboard local:EventFireTrigger.Event="SkipToIEReward_Video"
                                 Name="BeginSkipToIEReward_Video">
            <local:UIStoryboard FillBehavior="HoldEnd">
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0"
                                                 EventName="DisableSkip" />
                    <local:StartAudioTrigger EventName="/Master/UI/UI_Nav_Accept"
                                             local:TriggerAnimation.KeyTime="0:0:0" />
                    <local:StopAudioTrigger EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_CashRewardsCount_lp_01"
                                            local:TriggerAnimation.KeyTime="0:0:0" />
                    <local:PlayVideoTrigger Storyboard.TargetName="IEVideo"
                                                local:TriggerAnimation.KeyTime="0:0:0" />
                    <local:RaiseEntityModelEvent local:TriggerAnimation.KeyTime="0:0:5"
                                                 EventName="UISequenceComplete" />
                </local:UIStoryboard.TriggerAnimation>
                <local:UIStoryboard>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IE"
                                                   Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                        <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                                Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DidProgressHelper"
                                                   Storyboard.TargetProperty="Style">
                        <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                                Value="{x:Null}" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IEFLash"
                                                   Storyboard.TargetProperty="(local:CompareValue.B)">
                        <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                                Value="-1.0" />
                    </ObjectAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IENextSeason"
                                                   Storyboard.TargetProperty="Visibility">
                        <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                                Value="{x:Static Visibility.Visible}" />
                    </ObjectAnimationUsingKeyFrames>

                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="SeasonLogo"
                                                   Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                        <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                              Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="SeasonLogo"
                                                   Storyboard.TargetProperty="Opacity">
                        <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                Value="1" />
                    </DoubleAnimationUsingKeyFrames>

                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="QualifyText"
                                                   Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                        <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                Value="0" />
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="QualifyText"
                                                   Storyboard.TargetProperty="Opacity">
                        <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                Value="1" />
                    </DoubleAnimationUsingKeyFrames>
                </local:UIStoryboard>
            </local:UIStoryboard>
        </local:BeginUIStoryboard>

        <local:BeginUIStoryboard local:EventFireTrigger.Event="SkipToIEReward_Showcase"
                                 Name="BeginSkipToIEReward_Showcase">
            <local:UIStoryboard>
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0"
                                        EventName="DisableSkip" />
                    <local:StartAudioTrigger EventName="/Master/UI/UI_Nav_Accept"
                                             local:TriggerAnimation.KeyTime="0:0:0" />
                    <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.233"
                                             EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsTotalOn_01" />
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.233"
                                        EventName="ShowIEShowcaseQualify" />
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.233"
                                        EventName="ShowIENameText" />
                    <local:RaiseEntityModelEvent local:TriggerAnimation.KeyTime="0:0:4"
                                                 EventName="UISequenceComplete" />
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IE"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DidProgressHelper"
                                               Storyboard.TargetProperty="Style">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IEFLash"
                                               Storyboard.TargetProperty="(local:CompareValue.B)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="-1.0" />
                </ObjectAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IEProgressBar"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="IEProgressInfo"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>

                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MovingBarsBackgroundColor"
                                               Storyboard.TargetProperty="Preset">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{StaticResource A_FZMaterialPresetRoundtangle_PostRace_Showcase}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MovingBarsBackgroundColor"
                                               Storyboard.TargetProperty="Color">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{StaticResource A_Color_White}" />
                </ObjectAnimationUsingKeyFrames>

                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="IEObjectiveShowcaseReward"
                                               Storyboard.TargetProperty="Visibility">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Visible}" />
                </ObjectAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                               Storyboard.TargetName="ShowcaseQualifyText"
                                               BeginTime="0:0:0">
                    <EasingDoubleKeyFrame KeyTime="0:0:0.2"
                                          Value="{StaticResource A_Double_PostRace_WhooshInFromLeft_StartPositionXOffset}"
                                          EasingFunction="{local:LinearEasing}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                               Storyboard.TargetName="ShowcaseQualifyText"
                                               BeginTime="0:0:0.0">
                    <LinearDoubleKeyFrame KeyTime="0:0:0.2"
                                          Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                               Storyboard.TargetName="ShowcaseNameText"
                                               BeginTime="0:0:0.0">
                    <EasingDoubleKeyFrame KeyTime="0:0:0.2"
                                          Value="{StaticResource A_Double_PostRace_WhooshInFromRight_StartPositionXOffset}"
                                          EasingFunction="{local:LinearEasing}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                               Storyboard.TargetName="ShowcaseNameText"
                                               BeginTime="0:0:0.0">
                    <LinearDoubleKeyFrame KeyTime="0:0:0.2"
                                          Value="0" />
                </DoubleAnimationUsingKeyFrames>

                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                               Storyboard.TargetName="ShowcaseIconBlock">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="-1000" />
                    <EasingDoubleKeyFrame KeyTime="0:0:0.43"
                                          Value="280"
                                          EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                               Storyboard.TargetName="ShowcaseIconBlock">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="0" />
                    <LinearDoubleKeyFrame KeyTime="0:0:0.129"
                                          Value="1" />
                </DoubleAnimationUsingKeyFrames>

            </local:UIStoryboard>
        </local:BeginUIStoryboard>

        <local:BeginUIStoryboard local:EventFireTrigger.Event="SkipToDLC1FinalBar"
                                 Name="BeginSkipToDLC1FinalBar">
            <local:UIStoryboard FillBehavior="HoldEnd">
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.0"
                                        EventName="DisableSkip" />
                    <local:StartAudioTrigger EventName="/Master/UI/UI_Nav_Accept"
                                             local:TriggerAnimation.KeyTime="0:0:0" />
                    <local:StopAudioTrigger EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_CashRewardsCount_lp_01"
                                            local:TriggerAnimation.KeyTime="0:0:0" />
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1BarTitle"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1Total"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1Target"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DLC1ProgressBar"
                                               Storyboard.TargetProperty="Tag">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="Skipped" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DLC1BarFinishedHelper"
                                               Storyboard.TargetProperty="Tag">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="DLC1BarFinished" />
                </ObjectAnimationUsingKeyFrames>
            </local:UIStoryboard>
        </local:BeginUIStoryboard>

        <local:BeginUIStoryboard local:EventFireTrigger.Event="SkipToDLC1Reward"
                                 HandoffBehavior="Compose"
                                 Name="BeginSkipToDLC1RewardReveal">
            <local:UIStoryboard>
                <local:UIStoryboard.TriggerAnimation>
                    <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0"
                                             EventName="/Master/UI/PostRace/HZ2_SFX_HUD_PostRace_XPRewardsTotalOn_01" />
                    <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0.0"
                                             Storyboard.TargetName="DLC1QualifyText"
                                             Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromLeft_Slide}"
                                             Name="BeginSkipDLC1Qualify" />
                    <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0.0"
                                             Storyboard.TargetName="DLC1QualifyNameText"
                                             Name="BeginSkipDLC1NameText"
                                             Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromRight_Slide}" />

                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:0.0"
                                        EventName="DisableSkip" />

                    <local:RaiseEntityModelEvent local:TriggerAnimation.KeyTime="0:0:4"
                                                 EventName="UISequenceComplete" />
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1"
                                               Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DLC1DidProgressHelper"
                                               Storyboard.TargetProperty="Style">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DLC1FLash"
                                               Storyboard.TargetProperty="(local:CompareValue.B)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="-1.0" />
                </ObjectAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1ProgressBar"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1ProgressInfo"
                                               Storyboard.TargetProperty="Opacity">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.1"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DLC1Video"
                                               Storyboard.TargetProperty="Tag"
                                               FillBehavior="Stop">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0"
                                            Value="SourceSet" />
                    <DiscreteObjectKeyFrame KeyTime="0:0:4.0"
                                            Value="SourceNotSet" />
                </ObjectAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1ProgressBar"
                                               Storyboard.TargetProperty="Minimum">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1ProgressBar"
                                               Storyboard.TargetProperty="Maximum">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DLC1ProgressBar"
                                               Storyboard.TargetProperty="Value">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                            Value="1" />
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>
        </local:BeginUIStoryboard>
        
        <local:RaiseEntityModelEvent local:EventFireTrigger.Event="ShowDLC1Objective"
                                        EventName="PostRaceXPPanel_DLC1" />
        <local:StartAudioTrigger EventName="/Master/UI/UI_Nav_Accept"
                                 local:EventFireTrigger.Event="SkipToEnd" />
        <local:RaiseEntityModelEvent EventName="UISequenceComplete"
                                     local:EventFireTrigger.Event="SkipToEnd" />
    </local:EventFire.FzTriggers>
</Page>
