<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_PostRaceDNF"
      mc:Ignorable="d"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}">
    
    <Page.Resources>
        <Style x:Key="A_Style_DNFText" 
               TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_AnthemA}">
            <Setter Property="FontSize" 
                    Value="400" />
            <Setter Property="VerticalAlignment"
                    Value="Center" />
            <Setter Property="HorizontalAlignment"
                    Value="Center" />
        </Style>

        <Storyboard x:Key="HideStoryboard">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Opacity)"
                                           Storyboard.TargetName="LayoutRoot">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="1" />
                <LinearDoubleKeyFrame KeyTime="0:0:0.25"
                                        Value="0" />
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>

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

    <Grid x:Name="LayoutRoot"
          Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
        <local:FZTextBlock Style="{StaticResource A_Style_DNFText}" 
                           Text="{local:Loc InGame.IDS_Place_DNF}"
                           Color="{StaticResource A_Color_Header_Background}"
                           Margin="4,4,0,0"/>
        <local:FZTextBlock Style="{StaticResource A_Style_DNFText}"
                           Text="{local:Loc InGame.IDS_Place_DNF}"
                           Color="{StaticResource A_Color_DNF_Foreground}"/>
    </Grid>
    
</Page>