<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="ForzaUI.A_PreraceCutscene_ReadyupRight"
    xmlns:local="clr-namespace:ForzaUI"
    x:Name="Page"
    WindowTitle="Page"
    Style="{StaticResource A_Style_Page_Generic}">

    <Page.Resources>
        <Color x:Key="A_Color_Cutscene_Title_Foreground">#FFF5F5F5</Color>

        <Style x:Key="A_Style_FZTextBlock_Cutscene_ReadyText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Title}" >
            <Setter Property="FontSize" Value="400"/>
            <Setter Property="StretchDirection" Value="Both"/>
        </Style>

        <QuadraticEase x:Key="A_EasingFunction_EaseOut" EasingMode="EaseOut"/>
        <QuadraticEase x:Key="A_EasingFunction_EaseIn" EasingMode="EaseIn"/>

        <Storyboard x:Key="ShowStoryboard">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                           Storyboard.TargetName="LayoutRoot">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.03375" Value="0" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.27" Value="1" EasingFunction="{StaticResource 
                A_EasingFunction_EaseOut}" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

        <Storyboard x:Key="HideStoryboard">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                           Storyboard.TargetName="LayoutRoot">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="1" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.16875" Value="0" EasingFunction="{StaticResource A_EasingFunction_EaseIn}" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>

    <local:EventFire.FzTriggers>
        <local:EventFireTrigger Event="show"
                                Storyboard="{StaticResource ShowStoryboard}" />
        <local:EventFireTrigger Event="hide"
                                Storyboard="{StaticResource HideStoryboard}" />
    </local:EventFire.FzTriggers>

    <Grid x:Name="LayoutRoot" Opacity="0">
        <Grid Height="523" VerticalAlignment="Center" HorizontalAlignment="Center">
            <local:FZTextBlock Text="{local:Loc PreRaceMenu.IDS_GetReady2}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_ReadyText}" Color="{StaticResource A_Color_Cutscene_Title_Foreground}"/>
        </Grid>
    </Grid>
</Page>