<Page xmlns:local="clr-namespace:ForzaUI"
      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" 
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      x:Class="ForzaUI.A_PostJobSummary"
      mc:Ignorable="d"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}"
      Margin="0">

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

    <Page.Resources>
        <ResourceDictionary>
            <Color x:Key="A_Color_Job_Yellow_Highlight">#F8EB02</Color>
            <Color x:Key="A_Color_Job_Summary_Rating_Highlight">#FFFFF200</Color>
            <Color x:Key="A_Color_Job_Summary_Divider">#7E8589</Color>

            <System:Double x:Key="A_Double_New_Thumbs_Up_Earned_InitialStarScale">1.4</System:Double>

            <local:MotionBlurEffect x:Key="A_MotionBlurEffect_Winning"/>

            <local:LinearTransformConverter x:Key="A_LinearTransformConverter_SlotMenu_RowsToHeight"
                                            Add="-8"/>

            <TransformGroup x:Key="A_TransformGroup_Post_Job_Summary">
                <TranslateTransform/>
            </TransformGroup>

            <KeyTime x:Key="A_KeyTime_Winnings_Step">0:0:0.3</KeyTime>

            <local:OffsetKeyTime x:Key="A_KeyTime_Thumbs_Up_Slam_AlphaOn_Begin"
                         KeyTime="0:0:0"
                         Offset="0:0:0" />
            <local:OffsetKeyTime x:Key="A_KeyTime_Thumbs_Up_Slam_AlphaOn_End"
                         KeyTime="{StaticResource A_KeyTime_Thumbs_Up_Slam_AlphaOn_Begin}"
                         Offset="0:0:0.2" />

            <local:OffsetKeyTime x:Key="A_KeyTime_Thumbs_Up_Slam_MotionOn_Begin"
                         KeyTime="{StaticResource A_KeyTime_Thumbs_Up_Slam_AlphaOn_Begin}"
                         Offset="0:0:0.0" />
            <local:OffsetKeyTime x:Key="A_KeyTime_Thumbs_Up_Slam_MotionOn_End"
                         KeyTime="{StaticResource A_KeyTime_Thumbs_Up_Slam_MotionOn_Begin}"
                         Offset="0:0:0.3" />

            <Style x:Key="A_Style_FZTextBlock_Totals" TargetType="{x:Type FZTextBlock}">
                <Setter Property="FontFamily" Value="Horizon_C"/>
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}" />
                <Setter Property="CapHeight" Value="24"/>
                <Setter Property="TextWrapping" Value="Wrap"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_Session_Rating_Digit" TargetType="{x:Type FZTextBlock}">
                <Setter Property="FontFamily" Value="Horizon_A"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="HorizontalAlignment" Value="Right"/>
                <Setter Property="FontFamily" Value="Horizon_A"/>
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"  />
                <Setter Property="CapHeight" Value="33"/>
                <Setter Property="TextWrapping" Value="Wrap"/>
                <Setter Property="TextAlignment" Value="Center"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Winning" TargetType="{x:Type FZMaterial}" BasedOn="{StaticResource H_Style_Container_GlassHighBlur_Description}">
                <Setter Property="Opacity" Value="0"/>
                <Setter Property="RenderTransform" Value="{StaticResource A_TransformGroup_Post_Job_Summary}"/>
                <Setter Property="Effect" Value="{StaticResource A_MotionBlurEffect_Winning}"/>
            </Style>

            <local:UIStoryboard x:Key="PART_Storyboard_Post_Job_Summary_Reveal">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent EventName="PART_Reveal_Thumbs_Up" TriggerAnimation.KeyTime="0:0:1.0"/>
                </UIStoryboard.TriggerAnimation>
                <Int32AnimationUsingKeyFrames Storyboard.TargetProperty="(BlendValue.SkipInitialInputChanges)" Storyboard.TargetName="Reward_Reveal_ProgressBar" FillBehavior="HoldEnd">
                    <DiscreteInt32KeyFrame KeyTime="0:0:0.0" Value="0"/>
                </Int32AnimationUsingKeyFrames>
            </local:UIStoryboard>

            <ExponentialEase x:Key="A_EasingFunction_ExponentialEaseOut" EasingMode="EaseOut" />

            <KeyTime x:Key="A_KeyTime_LevelUp_PromotionFlash">0:0:0.1</KeyTime>
            <OffsetKeyTime x:Key="A_KeyTime_LevelUp_PromotionFlashEnd" KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlash}" Offset="0:0:0.9"/>
            <OffsetKeyTime x:Key="A_KeyTime_LevelUp_PromotionFadeOutStart" KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlashEnd}" Offset="0:0:3.0"/>
            <OffsetKeyTime x:Key="A_KeyTime_LevelUp_IconSlamStart" KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFadeOutStart}" Offset="0:0:0.5"/>
            <OffsetKeyTime x:Key="A_KeyTime_LevelUp_IconSlamHit" KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamStart}" Offset="0:0:0.15"/>
            <OffsetKeyTime x:Key="A_KeyTime_LevelUp_IconSlamEnd" KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamHit}" Offset="0:0:0.2"/>
            <OffsetKeyTime x:Key="A_KeyTime_LevelUp_IconMoveStart" KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamEnd}" Offset="0:0:0.55"/>
            <OffsetKeyTime x:Key="A_KeyTime_LevelUp_IconMoveEnd" KeyTime="{StaticResource A_KeyTime_LevelUp_IconMoveStart}" Offset="0:0:0.5"/>
            <OffsetKeyTime x:Key="A_KeyTime_LevelUp_ProgressBarFadeInStart" KeyTime="{StaticResource A_KeyTime_LevelUp_IconMoveEnd}" Offset="0:0:0.1"/>
            <OffsetKeyTime x:Key="A_KeyTime_LevelUp_ProgressBarFadeInEnd" KeyTime="{StaticResource A_KeyTime_LevelUp_ProgressBarFadeInStart}" Offset="0:0:0.5"/>
            <OffsetKeyTime x:Key="A_KeyTime_LevelUp_ProgressBarSetValue" KeyTime="{StaticResource A_KeyTime_LevelUp_ProgressBarFadeInEnd}" Offset="0:0:0.2"/>
            <!-- Duration of A_Storyboard_ProgressBar_BlendValueInputChanged later than A_KeyTime_LevelUp_ProgressBarSetValue -->
            <OffsetKeyTime x:Key="A_KeyTime_LevelUp_ProgressBarUpdateFinished" KeyTime="{StaticResource A_KeyTime_LevelUp_ProgressBarSetValue}" Offset="0:0:2.0"/> 

            <local:UIStoryboard x:Key="PART_Storyboard_Level_Up">
                <UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger EventName="UI_JobPromotion" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlash}"/>
                    <!-- This event will update the job title to the new one -->
                    <RaiseFzEvent EventName="PART_Update_Progress_Bar_Value" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlash}"/>
                    <RaiseFzEvent EventName="PART_Reset_Progress_Bar_Value" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlash}"/>
                    <StartAudioTrigger EventName="UI_JobThumbnailAppear" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamStart}"/>
                    <StartAudioTrigger EventName="UI_JobThumbnailSlide" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_LevelUp_IconMoveStart}"/>
                    <StartAudioTrigger EventName="UI_JobLevelUpCountStart" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_LevelUp_ProgressBarSetValue}"/>
                    <RaiseFzEvent EventName="PART_Set_Progress_Bar_Value" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_LevelUp_ProgressBarSetValue}"/>
                    <StartAudioTrigger EventName="UI_JobLevelUpCountEnd" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_LevelUp_ProgressBarUpdateFinished}"/>
                </UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                       Storyboard.TargetName="Level_Up_Reveal_Cover">
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlash}" Value="1" />
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlashEnd}" Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Storyboard.TargetName="Level_Up_Reveal_Cover" FillBehavior="Stop">
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlashEnd}" Value="1.03"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Storyboard.TargetName="Level_Up_Reveal_Cover" FillBehavior="Stop">
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlashEnd}" Value="1.16"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PromotionPanel" FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlash}" Value="0" />
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlashEnd}" Value="1" />
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFadeOutStart}" Value="1" />
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamStart}" Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LevelUpPanel" FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_PromotionFlash}" Value="0" />
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamStart}" Value="0" />
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamHit}" Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Storyboard.TargetName="LevelUpPanelIcon" FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamStart}" Value="1.5"/>
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamHit}" Value="0.85" EasingFunction="{StaticResource A_EasingFunction_ExponentialEaseOut}"/>
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamEnd}" Value="1.0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LevelUpPanelNoIcon" FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamStart}" Value="0" />
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_ProgressBarFadeInStart}" Value="0" />
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_ProgressBarFadeInEnd}" Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Width" Storyboard.TargetName="LevelUpPanelNoIcon" FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamStart}" Value="0" />
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconMoveStart}" Value="0" />
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconMoveEnd}" Value="324" EasingFunction="{StaticResource A_EasingFunction_ExponentialEaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Width" Storyboard.TargetName="LevelUpPanelIconPadding" FillBehavior="Stop">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconSlamStart}" Value="0" />
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconMoveStart}" Value="0" />
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_IconMoveEnd}" Value="22" EasingFunction="{StaticResource A_EasingFunction_ExponentialEaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
                <Int32AnimationUsingKeyFrames Storyboard.TargetProperty="(BlendValue.SkipInitialInputChanges)" Storyboard.TargetName="Reward_Reveal_ProgressBar" FillBehavior="HoldEnd">
                    <DiscreteInt32KeyFrame KeyTime="0:0:0.0" Value="100"/>
                    <!-- This just needs to be reset before we make the call to PART_Set_Progress_Bar_Value -->
                    <DiscreteInt32KeyFrame KeyTime="{StaticResource A_KeyTime_LevelUp_ProgressBarFadeInStart}" Value="0"/>
                </Int32AnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_Thumbs_Up_Earned">
                <UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger EventName="UI_JobRating" TriggerAnimation.KeyTime="0:0:0.0"/>
                    <RaiseFzEvent EventName="PART_Reveal_Thumbs_Up" TriggerAnimation.KeyTime="0:0:0.5"/>
                    <RaiseFzEvent EventName="Reveal_Thumbs_Up_Stop" TriggerAnimation.KeyTime="0:0:0.6"/>
                </UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                       Storyboard.TargetName="ThumbsUpForeground">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0" />
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Thumbs_Up_Slam_AlphaOn_Begin}"
                                    Value="0" />
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Thumbs_Up_Slam_AlphaOn_End}"
                                  Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"
                                       Storyboard.TargetName="ThumbsUpForeground">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="{StaticResource A_Double_New_Thumbs_Up_Earned_InitialStarScale}" />
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Thumbs_Up_Slam_MotionOn_Begin}"
                                    Value="{StaticResource A_Double_New_Thumbs_Up_Earned_InitialStarScale}" />
                    <SplineDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Thumbs_Up_Slam_MotionOn_End}"
                                  Value="1"
                                  KeySpline="0.9,0.0,0.9,0.0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"
                                       Storyboard.TargetName="ThumbsUpForeground">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="{StaticResource A_Double_New_Thumbs_Up_Earned_InitialStarScale}" />
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Thumbs_Up_Slam_MotionOn_Begin}"
                                    Value="{StaticResource A_Double_New_Thumbs_Up_Earned_InitialStarScale}" />
                    <SplineDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Thumbs_Up_Slam_MotionOn_End}"
                                  Value="1"
                                  KeySpline="0.9,0.0,0.9,0.0" />
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Reveal_Winning">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
                    <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
                    <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
                    <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="-100" />
                    <LinearDoubleKeyFrame KeyTime="0:0:0.1" Value="0" />
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>

            <UIStoryboard x:Key="PART_Storyboard_Reveal_Rating_Bonus_Multiplier">
                <UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger EventName="UI_JobRatingBonusMultiplier" TriggerAnimation.KeyTime="0:0:0.5"/>
                    <RaiseFzEvent EventName="PART_Add_Rating_Multiplier_Bonus" TriggerAnimation.KeyTime="0:0:0.8"/>
                </UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)"  Storyboard.TargetName="Rating_Bonus_Multiplier">
                    <LinearDoubleKeyFrame KeyTime="0:0:0.5" Value="50" />
                    <LinearDoubleKeyFrame KeyTime="0:0:0.6" Value="0" />
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Rating_Bonus_Multiplier">
                    <LinearDoubleKeyFrame KeyTime="0:0:0.5" Value="0" />
                    <LinearDoubleKeyFrame KeyTime="0:0:0.6" Value="1" />
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>

            <UIStoryboard x:Key="PART_Storyboard_Reveal_Base_Pay">
                <UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger EventName="UI_JobBasePay" TriggerAnimation.KeyTime="0:0:0.0"/>
                    <BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_Reveal_Winning}" Storyboard.TargetName="Base_Pay"/>
                    <RaiseFzEvent EventName="PART_Try_Reveal_Next_Winning" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Winnings_Step}"/>
                </UIStoryboard.TriggerAnimation>
            </UIStoryboard>

            <UIStoryboard x:Key="PART_Storyboard_Reveal_Career_Driver">
                <UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger EventName="UI_JobCareerDriver" TriggerAnimation.KeyTime="0:0:0.0"/>
                    <BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_Reveal_Winning}" Storyboard.TargetName="Career_Driver"/>
                    <RaiseFzEvent EventName="PART_Try_Reveal_Next_Winning" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Winnings_Step}"/>
                </UIStoryboard.TriggerAnimation>
            </UIStoryboard>

            <UIStoryboard x:Key="PART_Storyboard_Reveal_Title_Bonus">
                <UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger EventName="UI_JobTitleBonus" TriggerAnimation.KeyTime="0:0:0.0"/>
                    <BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_Reveal_Winning}" Storyboard.TargetName="Title_Bonus"/>
                    <RaiseFzEvent EventName="PART_Try_Reveal_Next_Winning" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Winnings_Step}"/>
                </UIStoryboard.TriggerAnimation>
            </UIStoryboard>

            <UIStoryboard x:Key="PART_Storyboard_Reveal_Rating_Bonus">
                <UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger EventName="UI_JobRatingBonus" TriggerAnimation.KeyTime="0:0:0.0"/>
                    <BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_Reveal_Winning}" Storyboard.TargetName="Rating_Bonus"/>
                    <RaiseFzEvent EventName="PART_Try_Reveal_Next_Winning" TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Winnings_Step}"/>
                </UIStoryboard.TriggerAnimation>
            </UIStoryboard>

            <UIStoryboard x:Key="PART_Storyboard_Set_Progress_Bar">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent EventName="PART_Set_Progress_Bar_Value" TriggerAnimation.KeyTime="0:0:0.3"/>
                </UIStoryboard.TriggerAnimation>
            </UIStoryboard>

            <DoubleAnimationUsingKeyFrames x:Key="A_DoubleAnimationUsingKeyFrames_Amount_BlendValueInputChanged"
                                           Storyboard.TargetProperty="(BlendValue.Blend)">
                <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
                <LinearDoubleKeyFrame KeyTime="0:0:0.3" Value="1" />
            </DoubleAnimationUsingKeyFrames>

            <UIStoryboard x:Key="A_Storyboard_Total_Winnings_Amount_BlendValueInputChanged">
                <UIStoryboard.TriggerAnimation>
                    <RaiseFzEvent EventName="PART_Increment_Sub_Total_Winnings_Amount" TriggerAnimation.KeyTime="0:0:0.3"/>
                </UIStoryboard.TriggerAnimation>
                <StaticResourceExtension ResourceKey="A_DoubleAnimationUsingKeyFrames_Amount_BlendValueInputChanged"/>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_Rating_Bonus_Amount_BlendValueInputChanged">
                <UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger EventName="UI_JobRatingBonusCountStart" TriggerAnimation.KeyTime="0:0:0.0"/>
                    <StartAudioTrigger EventName="UI_JobRatingBonusCountEnd" TriggerAnimation.KeyTime="0:0:0.3"/>
                    <BeginUIStoryboard Storyboard="{StaticResource PART_Storyboard_Set_Progress_Bar}" TriggerAnimation.KeyTime="0:0:0.7"/>
                </UIStoryboard.TriggerAnimation>
                <StaticResourceExtension ResourceKey="A_DoubleAnimationUsingKeyFrames_Amount_BlendValueInputChanged"/>
            </UIStoryboard>

            <UIStoryboard x:Key="A_Storyboard_ProgressBar_BlendValueInputChanged">
                <UIStoryboard.TriggerAnimation>
                    <StartAudioTrigger EventName="UI_JobLevelUpBarStart" TriggerAnimation.KeyTime="0:0:0.0"/>
                    <RaiseFzEvent EventName="PART_On_Progress_Bar_End" TriggerAnimation.KeyTime="0:0:2.0"/>
                    <StartAudioTrigger EventName="UI_JobLevelUpBarEnd" TriggerAnimation.KeyTime="0:0:2.0"/>
                </UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(BlendValue.Blend)">
                    <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
                    <LinearDoubleKeyFrame KeyTime="0:0:2.0" Value="1" />
                </DoubleAnimationUsingKeyFrames>
                <Int32AnimationUsingKeyFrames Storyboard.TargetProperty="(BlendValue.SkipInitialInputChanges)" Storyboard.TargetName="Reward_Reveal_ProgressBar" FillBehavior="HoldEnd">
                    <DiscreteInt32KeyFrame KeyTime="0:0:2.0" Value="100"/>
                </Int32AnimationUsingKeyFrames>
            </UIStoryboard>

            <ItemsPanelTemplate x:Key="A_PanelTemplate_Job_Thumbs_Up">
                <StackPanel Orientation="Horizontal" IsItemsHost="True"/>
            </ItemsPanelTemplate>

            <DataTemplate x:Key="A_DataTemplate_Session_Ratings_Digits_Entry">
                <Decorator Height="65">
                    <FZTextBlock Text="{Binding}" Height="33"  Style="{StaticResource A_Style_FZTextBlock_Session_Rating_Digit}"/>
                </Decorator>
            </DataTemplate>

            <ControlTemplate x:Key="A_ControlTemplate_CommonListBox_Session_Ratings_Digits" 
                             TargetType="{Type ItemsControl}">
                <StackPanel x:Name="Digits_Parent"
                            Orientation="Vertical" 
                            IsItemsHost="True"  
                            MultiDataConversion.Value="{Binding (BlendValue.Output), RelativeSource={RelativeSource Self}}"
                            MultiDataConversion.Parameter="-65"
                            MultiDataConversion.TargetType="{Type Double}"
                            MultiDataConversion.Converter="{MathOperationConverter Operation=Multiply}"
                            local:BlendValue.SkipInitialInputChanges="2"
                            local:BlendValue.BlendFromPreviousOutput="True"
                            local:BlendValue.Input="{Binding Count}"
                            local:BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_Carousel_SmoothScroll}">
                    <StackPanel.RenderTransform>
                        <TranslateTransform Y="{Binding (MultiDataConversion.Output), ElementName=Digits_Parent, Converter={LinearTransformConverter Add=65}}"/>
                    </StackPanel.RenderTransform>
                </StackPanel>
            </ControlTemplate>

            <ControlTemplate x:Key="A_Template_Job_Thumbs_Up">
                <Grid Width="60" Height="60" Margin="7,0,0,0">
                    <local:FZMaterial x:Name="ThumbsUpEmpty"
                              ImageSource="/ForzaUI;component/Textures/Anthem/Icons/Stories/job_rating_grey_thumb.png" />
                    <Decorator x:Name="ThumbsUpForeground" 
                               Opacity="0"
                               RenderTransformOrigin="0.5,0.5">
                        <UIElement.RenderTransform>
                            <ScaleTransform ScaleX="1" ScaleY="1" />
                        </UIElement.RenderTransform>
                        <local:FZMaterial x:Name="ThumbsUpGold"
                                          ImageSource="/ForzaUI;component/Textures/Anthem/Icons/Stories/job_rating_gold_thumb.png"/>
                    </Decorator>
                </Grid>
                <ControlTemplate.Triggers>
                    <DataTrigger Binding="{Binding Path=(local:TickerItemsControlItem.Reached)}"
                         Value="True">
                        <DataTrigger.EnterActions>
                            <local:BeginUIStoryboard x:Name="AnimateThumbsUp"
                                             Storyboard="{StaticResource A_Storyboard_Thumbs_Up_Earned}" />
                        </DataTrigger.EnterActions>
                    </DataTrigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>

            <Style x:Key="A_Style_Control_Job_Thumbs_Up" TargetType="Control">
                <Setter Property="Template" Value="{StaticResource A_Template_Job_Thumbs_Up}" />
            </Style>

            <DataTemplate x:Key="A_ItemTemplate_Job_Thumbs_Up">
                <Control Style="{StaticResource A_Style_Control_Job_Thumbs_Up}" />
            </DataTemplate>

            <Style x:Key="A_Style_ProgressBar_Jobs" TargetType="{x:Type ProgressBar}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type ProgressBar}">
                            <DockPanel x:Name="PART_Track">
                                <Grid x:Name="PART_Indicator" HorizontalAlignment="Left" ClipToBounds="True">
                                    <FZMaterial Width="{Binding ActualWidth, ElementName=PART_Track}" 
                                       Preset="{Roundtangle CornerRadius=8}" 
                                       Height="15" 
                                       Color="{StaticResource H_Color_Primary_Green}"/>
                                </Grid>
                            </DockPanel>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

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

            <MappingConverter x:Key="A_MappingConverter_Yellow_Title">
                <MappingConverterEntry Key="{NoCase YELLOW}" Value="{StaticResource A_Style_FZRun_Description_Yellow}"/>
            </MappingConverter>

            <AutoScrollSettings x:Key="H_AutoScrollSettings_JobSummary" 
                                ScrollSeparation="50"
                                ScrollOrientation="Horizontal"
                                Speed="20"
                                InitialPause="0:0:1.0"/>
            
            <Style x:Key="A_Style_FZTextBlock_Base" TargetType="FZTextBlock">
                <Setter Property="CapHeight" Value="20"/>
                <Setter Property="FontFamily" Value="Horizon_A"  />
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_Base_AutoScrolling" TargetType="FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Base}">
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Stretch" Value="None"/>
                <Setter Property="AutoScroll" Value="{StaticResource H_AutoScrollSettings_JobSummary}"/>
                <Setter Property="AutoScroll.AllowScrolling" Value="True"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_PayoutTitle" TargetType="FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Base_AutoScrolling}">
                <Setter Property="MaxWidth" Value="280"/>
            </Style>

        </ResourceDictionary>
    </Page.Resources>

    <Grid x:Name="PART_LayoutRoot">
        <ContentControl Style="{StaticResource A_Style_ButtonBar}"  
                     x:Name="BottomBar">
            <ControllerButtonPanel x:Name="PART_HelpPanel"
                              Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
            </ControllerButtonPanel>
        </ContentControl>
        <Border Style="{StaticResource A_Style_Border_ScenePadding}"
                Padding="72,201"
                ClipToBounds="false">
            <Grid Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}">
                <StackPanel Width="512" HorizontalAlignment="Left">
                    <ContentControl x:Name="ContentControl_SceneTitle"
                                            Content="{local:Loc BucketList.IDS_HorizonJob_Job_Summary}"
                                            Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock}" />
                    <FZMaterial Width="512" 
                                Height="{Binding ActualHeight, ElementName=Content}"
                                Color="{StaticResource H_Color_Glass_Purple_20pc}" 
                                Style="{StaticResource H_Style_Container_GlassHighBlur_Description}">
                        <Grid Width="472">
                            <StackPanel Orientation="Vertical" x:Name="Content" VerticalAlignment="Top">
                                <Grid Height="110" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,26,0,24" Width="470">
                                    <StackPanel x:Name="LevelUpPanel" Orientation="Horizontal" HorizontalAlignment="Center">
                                        <FZMaterial x:Name="LevelUpPanelIcon" 
                                                    Height="135" 
                                                    Width="151.2" 
                                                    ImageSource="{Binding JobLevelIcon}" 
                                                    VerticalAlignment="Center" 
                                                    RenderTransformOrigin="0.5,0.5"
                                                    Margin="-10,-67.5,-20,-56">
                                            <UIElement.RenderTransform>
                                                <ScaleTransform ScaleX="1" ScaleY="{Binding ScaleX, RelativeSource={RelativeSource Self}}" />
                                            </UIElement.RenderTransform>
                                        </FZMaterial>
                                        <FrameworkElement x:Name="LevelUpPanelIconPadding" Width="22"/>
                                        <StackPanel x:Name="LevelUpPanelNoIcon" Orientation="Vertical" Margin="0,4,0,0" VerticalAlignment="Center">
                                            <FZTextBlock Text="{Binding JobLevelTitle}"
                                                         FontFamily="Horizon_B" 
                                                         HorizontalAlignment="Left"
                                                         Color="{StaticResource H_Color_Primary_White}"
                                                         CapHeight="22"
                                                         Margin="0,0,0,16"
                                                         MaxWidth="{Binding Width, ElementName=Reward_Reveal_ProgressBar}"
                                                         Stretch="None"
                                                         AutoScroll="{StaticResource H_AutoScrollSettings_JobSummary}"
                                                         AutoScroll.AllowScrolling="True"/>
                                            <FZTextBlock Text="{local:Loc BucketList.IDS_HorizonJob_Max_Level}"
                                                         HorizontalAlignment="Left" 
                                                         Color="{StaticResource H_Color_Primary_White}"
                                                         Style="{StaticResource A_Style_FZTextBlock_Heading_Medium}" 
                                                         Margin="0,0,0,12"
                                                         Visibility="{Binding IsMaxLevel, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                         MarkupConverter="{StaticResource A_MappingConverter_Yellow_Title}"/>
                                            <StackPanel HorizontalAlignment="Left"  
                                                        Orientation="Horizontal" 
                                                        Margin="0,0,0,12"  
                                                        Visibility="{Binding IsMaxLevel, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}">
                                                <Control Style="{StaticResource H_Style_Control_CreditsIcon}" Margin="-4,-4,4,-4"/>
                                                <StackPanel Orientation="Horizontal">
                                                    <Grid>
                                                        <!-- Using this to allocate the proper amount of space for credits so that text doesn't move during animation -->
                                                        <FZTextBlock Text="{Binding FinalProgressAmount, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}" Style="{StaticResource A_Style_FZTextBlock_Heading_Medium}" FontFamily="Horizon_A_tf" Visibility="Hidden"/>
                                                        <FZTextBlock Text="{Binding Value, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}, ElementName=Reward_Reveal_ProgressBar}" Color="{StaticResource A_Color_Job_Yellow_Highlight}" Style="{StaticResource A_Style_FZTextBlock_Heading_Medium}" FontFamily="Horizon_A_tf" HorizontalAlignment="Right"/>
                                                    </Grid>
                                                    <FZTextBlock VerticalAlignment="Center"   
                                                                 HorizontalAlignment="Center" 
                                                                 Style="{StaticResource A_Style_FZTextBlock_Heading_Medium}" 
                                                                 Color="{StaticResource H_Color_Primary_White}"
                                                                 FontFamily="Horizon_A_tf">
                                                        <FZRun Text=" / "/>
                                                        <FZRun Text="{Binding Maximum, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}, ElementName=Reward_Reveal_ProgressBar}"/>
                                                    </FZTextBlock>
                                                </StackPanel>
                                            </StackPanel>
                                            <FZMaterial Width="324" 
                                                        Height="23"
                                                        Color="{StaticResource H_Color_Primary_Black}" 
                                                        HorizontalAlignment="Left"        
                                                        Preset="{Roundtangle CornerRadius=12}">
                                                <FZMaterial Width="316" 
                                                            Height="15" 
                                                            Color="#4D4D4D" 
                                                            Preset="{Roundtangle CornerRadius=8}">
                                                    <ProgressBar x:Name="Reward_Reveal_ProgressBar" 
                                                                 Style="{StaticResource A_Style_ProgressBar_Jobs}" 
                                                                 Width="316" 
                                                                 Height="15"   
                                                                 Minimum="{Binding MinProgressAmount, Converter={StaticResource A_IntToFloatConverter}}"
                                                                 Maximum="{Binding MaxProgressAmount, Converter={StaticResource A_IntToFloatConverter}}"
                                                                 local:BlendValue.BlendFromPreviousOutput="True"
                                                                 local:BlendValue.Input="{Binding CurrentProgressAmount}"    
                                                                 local:BlendValue.SkipInitialInputChanges="100"
                                                                 BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_ProgressBar_BlendValueInputChanged}" 
                                                                 Value="{Binding (BlendValue.Output), RelativeSource={RelativeSource Self},Converter={StaticResource A_IntToFloatConverter}}"/>
                                                </FZMaterial>
                                            </FZMaterial>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel x:Name="PromotionPanel" 
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                Opacity="0">
                                        <FZTextBlock Text="{Loc BucketList.IDS_PromotionTitle}"
                                                     TextAlignment="Center"
                                                     CapHeight="21"
                                                     Color="{StaticResource H_Color_Primary_White}"
                                                     FontFamily="Horizon_C"/>
                                        <FrameworkElement Height="13"/>
                                        <FZTextBlock Text="{Binding JobLevelTitle}"
                                                     TextAlignment="Center"
                                                     CapHeight="33"
                                                     Color="{StaticResource H_Color_Primary_Yellow}"
                                                     FontFamily="Horizon_B"/>
                                    </StackPanel>
                                </Grid>
                                <FZMaterial Color="{StaticResource H_Color_Secondary_Positive}" Height="54" Margin="0,0,0,4">
                                    <Grid>
                                        <FZTextBlock Text="{local:Loc BucketList.IDS_HorizonJob_Shift}" 
                                                     Style="{StaticResource A_Style_FZTextBlock_Totals}"
                                                     HorizontalAlignment="Left"
                                                     Margin="18,0,0,0"/>
                                        <FZTextBlock Text="{Binding ShiftProgress}"                      
                                                     Style="{StaticResource A_Style_FZTextBlock_Totals}"
                                                     HorizontalAlignment="Right"
                                                     Margin="0,0,18,0"/>
                                    </Grid>
                                </FZMaterial>
                                <FZMaterial Height="136"
                                            Color="{StaticResource H_Color_Glass_Purple_40pc}" 
                                            Preset="{GlassRoundtangle BlurAmount=High}">
                                    <Grid>
                                        <FZMaterial Color="{StaticResource A_Color_Job_Summary_Divider}" HorizontalAlignment="Center" VerticalAlignment="Center"  Height="90" Width="2"/>
                                        <Grid VerticalAlignment="Top">
                                            <StackPanel HorizontalAlignment="Left" Margin="18,15,0,0" Width="201">
                                                <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_Base_AutoScrolling}"
                                                             Text="{local:Loc BucketList.IDS_HorizonJob_Job_Rating}"
                                                             HorizontalAlignment="Center" 
                                                             Margin="0,0,0,18"/>
                                                <Decorator Height="60" Visibility="{Binding Failed, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
                                                    <FZTextBlock Text="{local:Loc BucketList.IDS_HorizonJob_Failed}" 
                                                                 FontFamily="Horizon_C"
                                                                 Color="{StaticResource A_Color_Job_Yellow_Highlight}"
                                                                 CapHeight="23"
                                                                 LineAdjust="-0.8"
                                                                 HorizontalAlignment="Center"
                                                                 VerticalAlignment="Center"
                                                                 Margin="0,4,0,0"
                                                                 AutoScroll="{StaticResource H_AutoScrollSettings_JobSummary}"
                                                                 AutoScroll.AllowScrolling="True"/>
                                                    </Decorator>
                                                <local:TickerItemsControl x:Name="ThumbsUpTicker" 
                                                                          Max="3" 
                                                                          Value="{Binding CurrentThumbsUpEarned}"
                                                                          x:Name="TickerThumbsUp"
                                                                          ItemsPanel="{StaticResource A_PanelTemplate_Job_Thumbs_Up}"
                                                                          ItemTemplate="{StaticResource A_ItemTemplate_Job_Thumbs_Up}"
                                                                          Visibility="{Binding Failed, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"/>
                                            </StackPanel>
                                            <StackPanel HorizontalAlignment="Right" Margin="0,15,18,0">
                                                <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_Base_AutoScrolling}"
                                                             Text="{local:Loc BucketList.IDS_HorizonJob_Session_Ratings}"
                                                             HorizontalAlignment="Center" 
                                                             Margin="0,0,0,15"
                                                             MaxWidth="200"/>
                                                <Grid Width="195" Height="60">
                                                    <FZMaterial Color="{StaticResource H_Color_Primary_Black}" HorizontalAlignment="Left" Width="65" Height="65">
                                                        <FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/Icons/Stories/job_session_ratings_thumb.png" Width="60" Height="60"/>
                                                    </FZMaterial>
                                                    <FZMaterial Height="65" 
                                                                Width="130" 
                                                                HorizontalAlignment="Right"
                                                                Color="{StaticResource H_Color_Glass_Purple_60pc}" 
                                                                Preset="{StaticResource A_FZMaterialPresetGlass_High}">
                                                        <StackPanel Orientation="Horizontal" ClipToBounds="True" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,15,0">
                                                            <ItemsControl  x:Name="PART_Hundreds" 
                                                                           ItemTemplate="{StaticResource A_DataTemplate_Session_Ratings_Digits_Entry}" 
                                                                           ItemsSource="{Binding}"
                                                                           DataContext="{Binding SessionThumbsUpEarnedHundreds}" 
                                                                           Template="{StaticResource A_ControlTemplate_CommonListBox_Session_Ratings_Digits}"/>
                                                            <ItemsControl  x:Name="PART_Tens" 
                                                                           ItemTemplate="{StaticResource A_DataTemplate_Session_Ratings_Digits_Entry}" 
                                                                           ItemsSource="{Binding}"
                                                                           DataContext="{Binding SessionThumbsUpEarnedTens}" 
                                                                           Template="{StaticResource A_ControlTemplate_CommonListBox_Session_Ratings_Digits}"/>
                                                            <ItemsControl  x:Name="PART_Ones"
                                                                           ItemTemplate="{StaticResource A_DataTemplate_Session_Ratings_Digits_Entry}" 
                                                                           ItemsSource="{Binding}"
                                                                           DataContext="{Binding SessionThumbsUpEarnedOnes}"
                                                                           Template="{StaticResource A_ControlTemplate_CommonListBox_Session_Ratings_Digits}"/>
                                                        </StackPanel>
                                                    </FZMaterial>
                                                </Grid>
                                            </StackPanel>
                                        </Grid>
                                    </Grid>
                                </FZMaterial>
                                <Decorator Margin="0,0,0,20">
                                    <StackPanel Visibility="{Binding Failed, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}">
                                        <FZMaterial Color="{StaticResource H_Color_Secondary_Positive}" Height="54" Margin="0,8,0,4">
                                            <Grid>
                                                <FZTextBlock Text="{local:Loc BucketList.IDS_HorizonJob_Total}" 
                                                             Style="{StaticResource A_Style_FZTextBlock_Totals}"
                                                             HorizontalAlignment="Left"
                                                             Margin="18,0,0,0"/>

                                                <Grid>
                                                    <FZMaterial Preset="{Roundtangle CornerRadius={CornerRadius TopLeft=22, BottomLeft=22}}" Color="{StaticResource H_Color_Primary_Black}" Width="200" Height="44" Margin="0,0,5,0"  HorizontalAlignment="Right" VerticalAlignment="Center">
                                                        <DockPanel>
                                                            <Control Style="{StaticResource H_Style_Control_CreditsIcon}" Margin="4" DockPanel.Dock="Left"/>
                                                            <FZTextBlock HorizontalAlignment="Right"
                                                                         Color="{StaticResource H_Color_Primary_White}" 
                                                                         CapHeight="24"
                                                                         FontFamily="Horizon_A_tf" 
                                                                         Text="{Binding (BlendValue.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                                         local:BlendValue.Input="{Binding TotalWinningsAmount}"   
                                                                         local:BlendValue.SkipInitialInputChanges="1"
                                                                         BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_Total_Winnings_Amount_BlendValueInputChanged}"
                                                                         VerticalAlignment="Center" 
                                                                         Margin="0,0,15,0"/>
                                                        </DockPanel>
                                                    </FZMaterial>
                                                </Grid>
                                            </Grid>
                                        </FZMaterial>
                                        <FZMaterial Height="44" 
                                            Color="{StaticResource H_Color_Glass_Purple_40pc}" 
                                            Style="{StaticResource H_Style_Container_GlassHighBlur_Description}"
                                            Margin="0,0,0,4"
                                            Visibility="{Binding BasePayAmount, Converter={StaticResource H_CollapseIfLessThanZero}}">
                                            <FZMaterial x:Name="Base_Pay"
                                                Color="{StaticResource H_Color_Glass_Purple_60pc}" 
                                                Style="{StaticResource A_Style_FZMaterial_Winning}">
                                                <Grid>
                                                    <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PayoutTitle}"
                                                         HorizontalAlignment="Left" 
                                                         Margin="12,0,0,0" 
                                                         VerticalAlignment="Center" 
                                                         Text="{local:Loc BucketList.IDS_HorizonJob_Base_Pay}"/>
                                                    <FZMaterial Preset="{Roundtangle CornerRadius={CornerRadius TopLeft=22, BottomLeft=22}}" Color="{StaticResource H_Color_Primary_Black}" Width="160" HorizontalAlignment="Right">
                                                        <DockPanel>
                                                            <Control Style="{StaticResource H_Style_Control_CreditsIcon}" Margin="4" DockPanel.Dock="Left"/>
                                                            <FZTextBlock HorizontalAlignment="Right"
                                                                         Text="{Binding BasePayAmount, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}" 
                                                                         FontFamily="Horizon_A_tf"  
                                                                         Color="{StaticResource H_Color_Primary_White}" 
                                                                         CapHeight="20" 
                                                                         TextWrapping="Wrap"  
                                                                         VerticalAlignment="Center" 
                                                                         TextAlignment="Center"  
                                                                         Margin="0,0,20,0"/>
                                                        </DockPanel>
                                                    </FZMaterial>
                                                </Grid>
                                            </FZMaterial>
                                        </FZMaterial>
                                        <FZMaterial Height="44" 
                                            Color="{StaticResource H_Color_Glass_Purple_40pc}" 
                                            Style="{StaticResource H_Style_Container_GlassHighBlur_Description}"
                                            Margin="0,0,0,4"
                                            Visibility="{Binding CareerDriverAmount, Converter={StaticResource H_CollapseIfLessThanZero}}">
                                            <FZMaterial x:Name="Career_Driver"
                                                Color="{StaticResource H_Color_Glass_Purple_60pc}" 
                                                Style="{StaticResource A_Style_FZMaterial_Winning}">
                                                <Grid>
                                                    <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PayoutTitle}" 
                                                         HorizontalAlignment="Left" 
                                                         Margin="12,0,0,0" 
                                                         VerticalAlignment="Center" 
                                                         Text="{local:Loc BucketList.IDS_HorizonJob_Career_Driver}"/>
                                                    <FZMaterial Preset="{Roundtangle CornerRadius={CornerRadius TopLeft=22, BottomLeft=22}}" Color="{StaticResource H_Color_Primary_Black}" Width="160" HorizontalAlignment="Right">
                                                        <DockPanel>
                                                            <Control Style="{StaticResource H_Style_Control_CreditsIcon}" Margin="4" DockPanel.Dock="Left"/>
                                                            <FZTextBlock HorizontalAlignment="Right"
                                                                         Text="{Binding CareerDriverAmount, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}" 
                                                                         FontFamily="Horizon_A_tf"  
                                                                         Color="{StaticResource H_Color_Primary_White}" 
                                                                         CapHeight="20" 
                                                                         TextWrapping="Wrap"  
                                                                         VerticalAlignment="Center" 
                                                                         TextAlignment="Center"  
                                                                         Margin="0,0,20,0"/>
                                                        </DockPanel>
                                                    </FZMaterial>
                                                </Grid>
                                            </FZMaterial>
                                        </FZMaterial>
                                        <FZMaterial Height="44" 
                                            Color="{StaticResource H_Color_Glass_Purple_40pc}" 
                                            Style="{StaticResource H_Style_Container_GlassHighBlur_Description}"
                                            Margin="0,0,0,4"
                                            Visibility="{Binding TitleBonusAmount, Converter={StaticResource H_CollapseIfLessThanZero}}">
                                            <FZMaterial x:Name="Title_Bonus"
                                                Color="{StaticResource H_Color_Glass_Purple_60pc}" 
                                                Style="{StaticResource A_Style_FZMaterial_Winning}">
                                                <Grid>
                                                    <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PayoutTitle}" 
                                                                 HorizontalAlignment="Left" 
                                                                 Margin="12,0,0,0" 
                                                                 VerticalAlignment="Center" 
                                                                 Text="{local:Loc BucketList.IDS_HorizonJob_Title_Bonus}"/>
                                                    <FZMaterial Preset="{Roundtangle CornerRadius={CornerRadius TopLeft=22, BottomLeft=22}}" Color="{StaticResource H_Color_Primary_Black}" Width="160" HorizontalAlignment="Right">
                                                        <DockPanel>
                                                            <Control Style="{StaticResource H_Style_Control_CreditsIcon}" Margin="4" DockPanel.Dock="Left"/>
                                                            <FZTextBlock HorizontalAlignment="Right"
                                                                         Text="{Binding TitleBonusAmount, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}" 
                                                                         FontFamily="Horizon_A_tf"  
                                                                         Color="{StaticResource H_Color_Primary_White}" 
                                                                         CapHeight="20" 
                                                                         TextWrapping="Wrap"  
                                                                         VerticalAlignment="Center" 
                                                                         TextAlignment="Center"  
                                                                         Margin="0,0,20,0"/>
                                                        </DockPanel>
                                                    </FZMaterial>
                                                </Grid>
                                            </FZMaterial>
                                        </FZMaterial>
                                        <FZMaterial Height="44" 
                                            Color="{StaticResource H_Color_Glass_Purple_40pc}" 
                                            Style="{StaticResource H_Style_Container_GlassHighBlur_Description}"
                                            Margin="0,0,0,4"       
                                            Visibility="{Binding RatingBonusAmount, Converter={StaticResource H_CollapseIfLessThanZero}}">
                                            <FZMaterial x:Name="Rating_Bonus"
                                                Color="{StaticResource H_Color_Glass_Purple_60pc}" 
                                                Style="{StaticResource A_Style_FZMaterial_Winning}">
                                                <Grid>
                                                    <StackPanel Margin="12,0,0,0" Orientation="Horizontal" HorizontalAlignment="Left" >
                                                        <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_Base_AutoScrolling}"
                                                                     MaxWidth="234"
                                                                     Margin="0,0,9,0"
                                                                     Text="{local:Loc BucketList.IDS_HorizonJob_Rating_Bonus}"/>
                                                        <FZTextBlock x:Name="Rating_Bonus_Multiplier"
                                                             RenderTransform="{StaticResource A_TransformGroup_Post_Job_Summary}"
                                                             Text="{Binding RatingMultiplier}" 
                                                             Color="{StaticResource A_Color_Job_Summary_Rating_Highlight}"
                                                             FontFamily="Horizon_A"  
                                                             VerticalAlignment="Center"
                                                             CapHeight="20"
                                                             Opacity="0"/>
                                                    </StackPanel>
                                                    <FZMaterial Preset="{Roundtangle CornerRadius={CornerRadius TopLeft=22, BottomLeft=22}}" Color="{StaticResource H_Color_Primary_Black}" Width="160" HorizontalAlignment="Right">
                                                        <DockPanel>
                                                            <Control Style="{StaticResource H_Style_Control_CreditsIcon}" Margin="4" DockPanel.Dock="Left"/>
                                                            <FZTextBlock HorizontalAlignment="Right"
                                                                         Text="{Binding (BlendValue.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                                         FontFamily="Horizon_A_tf"  
                                                                         Color="{StaticResource H_Color_Primary_White}" 
                                                                         CapHeight="20" 
                                                                         TextWrapping="Wrap"  
                                                                         VerticalAlignment="Center" 
                                                                         TextAlignment="Center" 
                                                                         Margin="0,0,20,0"
                                                                         local:BlendValue.Input="{Binding RatingBonusAmount}"   
                                                                         local:BlendValue.BlendFromPreviousOutput="True"
                                                                         local:BlendValue.SkipInitialInputChanges="2"
                                                                         BlendValue.InputChangedStoryboard="{StaticResource A_Storyboard_Rating_Bonus_Amount_BlendValueInputChanged}"/>
                                                        </DockPanel>
                                                    </FZMaterial>
                                                </Grid>
                                            </FZMaterial>
                                        </FZMaterial>
                                    </StackPanel>
                                </Decorator>
                            </StackPanel>
                            <FZMaterial x:Name="Level_Up_Reveal_Cover" 
                                                Width="516"
                                                Height="160" 
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Top"
                                                Margin="0,4,0,0"
                                                RenderTransformOrigin="0.5,0.5"
                                                Opacity="0"
                                                Preset="{Roundtangle Softness=16}">
                                <UIElement.RenderTransform>
                                    <ScaleTransform />
                                </UIElement.RenderTransform>
                            </FZMaterial>
                        </Grid>
                    </FZMaterial>
                </StackPanel>

                <Decorator HorizontalAlignment="Right" 
                           VerticalAlignment="Bottom"
                           Margin="0,0,20,-147">
                    <Grid>
                        <StackPanel Orientation="Horizontal" Visibility="{Binding ShowWaitingForPartyLeaderMessage, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
                            <FZTextBlock Color="{StaticResource H_Color_Primary_White}"
                                            Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                            CapHeight="22"
                                            VerticalAlignment="Center"
                                            Text="{Loc Lobby.IDS_ConvoyInvite_WaitingForLeader}"/>
                            <ProgressBar Style="{StaticResource A_Style_ProgressBar_WaitSpinner}" Height="26" VerticalAlignment="Center" Margin="10,-13,0,-13"/>
                        </StackPanel>
                        <Decorator Visibility="{Binding ShowWaitingForPartyLeaderMessage, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}">
                            <NetworkCountdownControl Style="{StaticResource A_Style_NetworkCountdownControl_TimeRemaining}" 
                                                     Template="{StaticResource A_ControlTemplate_MultiplayerCountdown}"
                                                     HorizontalAlignment="Stretch"
                                                     CountdownType="LocalForUi"/>
                        </Decorator>
                    </Grid>
                </Decorator>
            </Grid>
        </Border>
    </Grid>
</Page>
