<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_CampaignMilestoneReward"
      mc:Ignorable="d"
      DataContext="{Binding RelativeSource={RelativeSource Self}}"
      Style="{StaticResource A_Style_Page_Generic}">
    <UIPageTransitionManager.TransitionManager>
        <UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_Menu}"/>
    </UIPageTransitionManager.TransitionManager>
    <Page.Resources>

    <Style x:Key="A_Style_FrameworkElement_Transition_MoveInFadeOut" TargetType="{x:Type FrameworkElement}">
        <Style.Resources>
            <UIStoryboard x:Key="PART_transition_in" DurationOverride="{StaticResource A_Duration_Transition_ElementIn}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ZPanel.ZOffset)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1"
                        Value="0"
                        EasingFunction="{QuarticEasing EasingMode=EaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>
            <UIStoryboard x:Key="transition_in_forward_root" DurationOverride="{StaticResource A_Duration_Transition_ElementIn}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ZPanel.ZOffset)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1"
                        Value="0"
                        EasingFunction="{QuarticEasing EasingMode=EaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>
            <UIStoryboard x:Key="PART_transition_out_forward" DurationOverride="{StaticResource A_Duration_Transition_ElementOut}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>
            <UIStoryboard x:Key="PART_transition_out_back" DurationOverride="{StaticResource A_Duration_Transition_ElementOut}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>
            <UIStoryboard x:Key="transition_out_back_root" DurationOverride="{StaticResource A_Duration_Transition_ElementOut}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>
        </Style.Resources>
        <Setter Property="Opacity" Value="1" />
        <Setter Property="ZPanel.ZOffset" Value="0" />
    </Style>


        <EventFireTriggerCollection x:Key="H_EventFires_Festival">
            <BeginUIStoryboard EventFireTrigger.Event="play_video_page_enter">
                <BeginUIStoryboard.Storyboard>
                    <UIStoryboard>
                        <UIStoryboard.TriggerAnimation>
                            <StartAudioTrigger TriggerAnimation.KeyTime="0:0:0.0" EventName="UI_HorizonFestival_WristbandUnlock"/>
                            <PlayVideoTrigger TriggerAnimation.KeyTime="0:0:0.0" Storyboard.TargetName="video_element"/>
                            <PauseVideoTrigger TriggerAnimation.KeyTime="0:0:2.64" Storyboard.TargetName="video_element" />
                            <RaiseFzEvent TriggerAnimation.KeyTime="0:0:10" />
                        </UIStoryboard.TriggerAnimation>
                        <ObjectAnimationUsingKeyFrames FillBehavior="Stop" Storyboard.TargetName="continue_button" Storyboard.TargetProperty="Command">
                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0" Value="{x:Null}" />
                            <DiscreteObjectKeyFrame KeyTime="0:0:2.66" Value="{x:Null}" />
                        </ObjectAnimationUsingKeyFrames>
                    </UIStoryboard>
                </BeginUIStoryboard.Storyboard>
            </BeginUIStoryboard>
            <BeginUIStoryboard EventFireTrigger.Event="PART_continue" HandoffBehavior="SnapshotAndReplace">
                <BeginUIStoryboard.Storyboard>
                    <UIStoryboard>
                        <UIStoryboard.TriggerAnimation>
                            <StartAudioTrigger TriggerAnimation.KeyTime="0:0:0.0" EventName="UI_HorizonFestival_WristbandUnlock_End"/>
                            <PlayVideoTrigger TriggerAnimation.KeyTime="0:0:0.0" Storyboard.TargetName="video_element" />
                            <RaiseFzEvent TriggerAnimation.KeyTime="0:0:0.5" EventName="PART_leave_scene" />
                            <RaiseFzEvent TriggerAnimation.KeyTime="0:0:10" />
                        </UIStoryboard.TriggerAnimation>
                        <ObjectAnimationUsingKeyFrames FillBehavior="HoldEnd" Storyboard.TargetName="continue_button" Storyboard.TargetProperty="Command">
                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0" Value="{x:Null}" />
                        </ObjectAnimationUsingKeyFrames>
                    </UIStoryboard>
                </BeginUIStoryboard.Storyboard>
            </BeginUIStoryboard>
        </EventFireTriggerCollection>

        <EventFireTriggerCollection x:Key="H_EventFires_Discover">
            <BeginUIStoryboard EventFireTrigger.Event="play_video_page_enter">
                <BeginUIStoryboard.Storyboard>
                    <UIStoryboard>
                        <UIStoryboard.TriggerAnimation>
                            <StartAudioTrigger TriggerAnimation.KeyTime="0:0:0.0" EventName="UI_DiscoverJapan_StampUnlock"/>
                            <PlayVideoTrigger TriggerAnimation.KeyTime="0:0:0.0" Storyboard.TargetName="video_element"/>
                            <PauseVideoTrigger TriggerAnimation.KeyTime="0:0:3.432" Storyboard.TargetName="video_element" />
                            <RaiseFzEvent TriggerAnimation.KeyTime="0:0:10" />
                        </UIStoryboard.TriggerAnimation>
                        <ObjectAnimationUsingKeyFrames FillBehavior="Stop" Storyboard.TargetName="continue_button" Storyboard.TargetProperty="Command">
                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0" Value="{x:Null}" />
                            <DiscreteObjectKeyFrame KeyTime="0:0:3.432" Value="{x:Null}" />
                        </ObjectAnimationUsingKeyFrames>
                    </UIStoryboard>
                </BeginUIStoryboard.Storyboard>
            </BeginUIStoryboard>
            <BeginUIStoryboard EventFireTrigger.Event="PART_continue" HandoffBehavior="SnapshotAndReplace">
                <BeginUIStoryboard.Storyboard>
                    <UIStoryboard>
                        <UIStoryboard.TriggerAnimation>
                            <PlayVideoTrigger TriggerAnimation.KeyTime="0:0:0.0" Storyboard.TargetName="video_element" />
                            <RaiseFzEvent TriggerAnimation.KeyTime="0:0:0.1" EventName="PART_leave_scene" />
                            <RaiseFzEvent TriggerAnimation.KeyTime="0:0:10" />
                        </UIStoryboard.TriggerAnimation>
                        <ObjectAnimationUsingKeyFrames FillBehavior="HoldEnd" Storyboard.TargetName="continue_button" Storyboard.TargetProperty="Command">
                            <DiscreteObjectKeyFrame KeyTime="0:0:0.0" Value="{x:Null}" />
                        </ObjectAnimationUsingKeyFrames>
                    </UIStoryboard>
                </BeginUIStoryboard.Storyboard>
            </BeginUIStoryboard>
        </EventFireTriggerCollection>

        <MappingConverter x:Key="H_Converter_ObjectiveToAnimations">
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp1}" Value="{StaticResource H_EventFires_Discover}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp2}" Value="{StaticResource H_EventFires_Discover}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp3}" Value="{StaticResource H_EventFires_Discover}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp4}" Value="{StaticResource H_EventFires_Discover}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp5}" Value="{StaticResource H_EventFires_Discover}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp6}" Value="{StaticResource H_EventFires_Discover}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp7}" Value="{StaticResource H_EventFires_Discover}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band1}" Value="{StaticResource H_EventFires_Festival}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band2}" Value="{StaticResource H_EventFires_Festival}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band3}" Value="{StaticResource H_EventFires_Festival}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band4}" Value="{StaticResource H_EventFires_Festival}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band5}" Value="{StaticResource H_EventFires_Festival}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band6}" Value="{StaticResource H_EventFires_Festival}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band7}" Value="{StaticResource H_EventFires_Festival}" />
        </MappingConverter>
        <MappingConverter x:Key="H_Converter_ObjectiveToVideoMargin">
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp1}" Value="294,133,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp2}" Value="294,133,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp3}" Value="294,133,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp4}" Value="294,133,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp5}" Value="294,133,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp6}" Value="294,133,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp7}" Value="294,133,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band1}" Value="159,279,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band2}" Value="159,279,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band3}" Value="159,279,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band4}" Value="159,279,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band5}" Value="159,279,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band6}" Value="159,279,0,0" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band7}" Value="159,279,0,0" />
        </MappingConverter>
        <MappingConverter x:Key="H_Converter_ObjectiveToVideoWidth">
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp1}" Value="1350" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp2}" Value="1350" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp3}" Value="1350" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp4}" Value="1350" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp5}" Value="1350" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp6}" Value="1350" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp7}" Value="1350" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band1}" Value="1600" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band2}" Value="1600" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band3}" Value="1600" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band4}" Value="1600" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band5}" Value="1600" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band6}" Value="1600" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band7}" Value="1600" />
        </MappingConverter>
        <MappingConverter x:Key="H_Converter_ObjectiveToVideoHeight">
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp1}" Value="800" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp2}" Value="800" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp3}" Value="800" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp4}" Value="800" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp5}" Value="800" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp6}" Value="800" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp7}" Value="800" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band1}" Value="750" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band2}" Value="750" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band3}" Value="750" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band4}" Value="750" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band5}" Value="750" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band6}" Value="750" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band7}" Value="750" />
        </MappingConverter>

        <MappingConverter x:Key="H_Converter_ObjectiveToTitle">
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp1}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Stamp}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp2}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Stamp}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp3}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Stamp}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp4}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Stamp}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp5}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Stamp}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp6}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Stamp}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp7}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Stamp}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band1}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Wristband}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band2}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Wristband}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band3}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Wristband}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band4}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Wristband}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band5}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Wristband}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band6}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Wristband}" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band7}" Value="{Loc Campaign.IDS_CampaignMilestoneTitle_Wristband}" />
        </MappingConverter>

        <MappingConverter x:Key="H_Converter_ObjectiveToVideoPath">
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp1}" 
                Value="game:/Media/UI/Videos/Yellow_Stamp.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp2}" 
                Value="game:/Media/UI/Videos/Green_Stamp.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp3}" 
                Value="game:/Media/UI/Videos/Blue_Stamp.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp4}" 
                Value="game:/Media/UI/Videos/Pink_Stamp.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp5}" 
                Value="game:/Media/UI/Videos/Orange_Stamp.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp6}" 
                Value="game:/Media/UI/Videos/Purple_Stamp.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp7}" 
                Value="game:/Media/UI/Videos/Gold_Stamp.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band1}"
                Value="game:/Media/UI/Videos/Yellow_Wristband.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band2}"
                Value="game:/Media/UI/Videos/Green_Wristband.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band3}"
                Value="game:/Media/UI/Videos/Blue_Wristband.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band4}"
                Value="game:/Media/UI/Videos/Pink_Wristband.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band5}"
                Value="game:/Media/UI/Videos/Orange_Wristband.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band6}"
                Value="game:/Media/UI/Videos/Purple_Wristband.bk2" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band7}"
                Value="game:/Media/UI/Videos/Gold_Wristband.bk2" />
        </MappingConverter>

        <MappingConverter x:Key="H_Converter_ObjectiveToTitleMargin">
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp1}" Value="469,0,0,905" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp2}" Value="469,0,0,905" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp3}" Value="469,0,0,905" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp4}" Value="469,0,0,905" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp5}" Value="469,0,0,905" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp6}" Value="469,0,0,905" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp7}" Value="469,0,0,905" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band1}" Value="419,0,0,675" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band2}" Value="419,0,0,675" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band3}" Value="419,0,0,675" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band4}" Value="419,0,0,675" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band5}" Value="419,0,0,675" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band6}" Value="419,0,0,675" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band7}" Value="419,0,0,675" />
        </MappingConverter>

        <MappingConverter x:Key="H_Converter_ObjectiveToNameMargin">
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp1}" Value="0,0,460,181" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp2}" Value="0,0,460,181" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp3}" Value="0,0,460,181" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp4}" Value="0,0,460,181" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp5}" Value="0,0,460,181" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp6}" Value="0,0,460,181" />
            <MappingConverterEntry Key="{StaticResource H_Key_Stamp7}" Value="0,0,460,181" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band1}" Value="0,0,600,395" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band2}" Value="0,0,600,395" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band3}" Value="0,0,600,395" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band4}" Value="0,0,600,395" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band5}" Value="0,0,600,395" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band6}" Value="0,0,600,395" />
            <MappingConverterEntry Key="{StaticResource H_Key_Band7}" Value="0,0,600,395" />
        </MappingConverter>

        <MappingConverter x:Key="H_MarkupConverter_RewardTitle">
            <MappingConverterEntry Key="{NoCase highlight}">
                <MappingConverterEntry.Value>
                    <Style TargetType="FZRun">
                        <Setter Property="Color"
                                Value="{StaticResource H_Color_Primary_Yellow}" />
                    </Style>
                </MappingConverterEntry.Value>
            </MappingConverterEntry>
        </MappingConverter>
    </Page.Resources>
    <Grid x:Name="PART_LayoutRoot">
        <Control Style="{StaticResource A_Style_Control_ScreenBackground}" />

        <PageInputHandler x:Name="continue_button" Button="A" Command="{Binding ContinueCommand}"/>

        <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <Decorator Style="{StaticResource A_Style_FrameworkElement_Transition_MoveInFadeOut}"
                UIPageTransitionManager.TransitionIndex="0">
                <Decorator.Effect>
                    <DropShadowEffect ShadowDepth="0" BlurRadius="15" Color="#80000000"/>
                </Decorator.Effect>
                <FZTextBlock 
                    Text="{Binding Objective, Converter={StaticResource H_Converter_ObjectiveToTitle}}"
                    CapHeight="53"
                    FontFamily="Horizon_C"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Bottom"
                    Color="{StaticResource H_Color_Primary_White}"
                    Margin="{Binding Objective, Converter={StaticResource H_Converter_ObjectiveToTitleMargin}}"
                    MaxWidth="1042"
                    RenderTransformOrigin="0,1"
                    RenderTransform="{RotateTransform Angle=4}"
                    MarkupConverter="{StaticResource H_MarkupConverter_RewardTitle}">
                </FZTextBlock>
            </Decorator>
            <FZMediaElement Source="{Binding Objective, Converter={StaticResource H_Converter_ObjectiveToVideoPath}}"
                            Margin="{Binding Objective, Converter={StaticResource H_Converter_ObjectiveToVideoMargin}}"
                            Width="{Binding Objective, Converter={StaticResource H_Converter_ObjectiveToVideoWidth}}"
                            Height="{Binding Objective, Converter={StaticResource H_Converter_ObjectiveToVideoHeight}}"
                            FzMediaElementExtension.Loop="False"
                            LoadedBehavior="Manual"
                            UnloadedBehavior="Close"
                            Stretch="UniformToFill"
                            HorizontalAlignment="Left"
                            VerticalAlignment="Top"
                            x:Name="video_element"
                            Panel.ZIndex="10">
            </FZMediaElement>

            <FZMaterial Style="{StaticResource A_Style_FrameworkElement_FadeOnlyTransition_0}"
                    Height="66"
                    Panel.ZIndex="0"
                    Color="{StaticResource H_Color_Primary_Black}"
                    Margin="{Binding Objective, Converter={StaticResource H_Converter_ObjectiveToNameMargin}}"
                    RenderTransform="{RotateTransform Angle=4}"
                    RenderTransformOrigin="1,0"
                    VerticalAlignment="Bottom"
                    HorizontalAlignment="Right"
                    MaxWidth="1042">
                <FZTextBlock Text="{Binding Objective, Converter={StaticResource H_Converter_ObjectiveToName}}"
                    CapHeight="32"
                    FontFamily="Horizon_C"
                    VerticalAlignment="Center"
                    Color="{StaticResource H_Color_Primary_White}"
                    Margin="43,0"
                    MarkupConverter="{StaticResource H_MarkupConverter_RewardTitle}"/>
            </FZMaterial>
        </Grid>

        <ContentControl
            x:Name="BottomBar"
            Panel.ZIndex="10"
            Style="{StaticResource A_Style_ButtonBar}">
            <ControllerButtonPanel
                x:Name="PART_HelpPanel"
                Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
                <ControllerButtonControl
                    Button="{Binding Button, ElementName=continue_button}"
                    Description="{Loc HelpButtons.IDS_Continue}"
                    Visibility="{Binding Command.Enabled, FallbackValue=Collapsed, Converter={FZBooleanToVisibilityConverter}, ElementName=continue_button}" />
            </ControllerButtonPanel>
        </ContentControl>
    </Grid>

    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <!--forward the event to fztriggers, where we can specify a targetname -->
            <RaiseFzEvent EventName="play_video_page_enter" />
        </EventTrigger>
    </Page.Triggers>

    <EventFire.FzTriggers>
        <Binding Path="Objective" Converter="{StaticResource H_Converter_ObjectiveToAnimations}"/>
    </EventFire.FzTriggers>
</Page>
