<PostRacePodiumFinish 
    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_PostRacePodiumFinish"
    mc:Ignorable="d"
    x:Name="Page"
    DataContext="{Binding RelativeSource={RelativeSource Self}}"
    Style="{StaticResource A_Style_Page_Generic}">
    <PostRacePodiumFinish.Resources>

        <UIPageTransition x:Key="A_UIPageTransition_PostRace_CustomIn"
            DurationSpread="{StaticResource A_Duration_Transition_Spread_PostRace_InOnly}"
            TransitionDelay="{StaticResource A_Duration_Transition_Delay_PostRace_InOnly}"
            AudioEvent="UI_PostRace_PodiumPositionOn"/>

        <UIPageTransition x:Key="A_UIPageTransition_PostRace_CustomOut"
            DurationSpread="{StaticResource A_Duration_Transition_Spread}"
            TransitionDelay="{StaticResource A_Duration_Transition_Delay}"
            AudioEvent="UI_PostRace_PodiumPositionOff"/>

    </PostRacePodiumFinish.Resources>
    <UIPageTransitionManager.TransitionManager>
        <UIPageTransitionManager>
            <UIPageTransitionManager.Preset>
                <UIPageTransitionManagerPreset
                    TransitionInForwards="{StaticResource A_UIPageTransition_PostRace_CustomIn}"
                    TransitionInBack="{StaticResource A_UIPageTransition_PostRace_CustomIn}"
                    TransitionOutForwards="{StaticResource A_UIPageTransition_PostRace_CustomOut}"
                    TransitionOutBack="{StaticResource A_UIPageTransition_PostRace_CustomOut}"/>
            </UIPageTransitionManager.Preset>
        </UIPageTransitionManager>
    </UIPageTransitionManager.TransitionManager>

    <Grid>

        <ContentControl x:Name="BottomBar" Style="{StaticResource A_Style_ButtonBar}">
            <ContentControl x:Name="PART_DefaultHelpPanel"
                    ControllerButtonPanel.ADescription="{Loc HelpButtons.IDS_Continue}"
                    Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}" />
        </ContentControl>

        <Decorator Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <StackPanel HorizontalAlignment="Left"
                        VerticalAlignment="Bottom"
                        Margin="81,0,0,160">
                <Decorator Style="{StaticResource A_Style_FrameworkElement_SlideLeftToRightTransition_0}"
                           Margin="0,0,0,22"
                           HorizontalAlignment="Center">
                    <Decorator Style="{StaticResource H_Style_PostRaceItalicise}">
                        <FZTextBlock Style="{StaticResource H_Style_PostRace_TitleText}"
                                     Text="{Binding FinishPosText}" />
                    </Decorator>
                </Decorator>

                <Decorator Style="{StaticResource A_Style_FrameworkElement_SlideRightToLeftTransition_0}">
                   <ContentControl
                        Margin="65,0,0,0"
                        Content="{Binding UserProfile}"
                        ContentTemplate="{StaticResource H_DataTemplate_PostRaceUserProfile}"/>
                </Decorator>
            </StackPanel>
        </Decorator>

    </Grid>
</PostRacePodiumFinish>
