<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="ForzaUI.A_PreraceCutscene_ReadyupLeft"
    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_EaseIn" EasingMode="EaseIn"/>

        <Storyboard x:Key="ShowStoryboard">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                           Storyboard.TargetName="LayoutRoot">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="1" />
            </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.1" 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="744" VerticalAlignment="Center" HorizontalAlignment="Center">
            <local:FZTextBlock Text="{local:Loc PreRaceMenu.IDS_GetReady1}" Style="{StaticResource A_Style_FZTextBlock_Cutscene_ReadyText}" Color="{StaticResource A_Color_Cutscene_Title_Foreground}"/>
        </Grid>
    </Grid>
</Page>