<Page
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:local="clr-namespace:ForzaUI"
    xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
    mc:Ignorable="d"
	x:Class="DigitalGauge.NIS_SilviaKs_89"
	 >

    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="Moire"/>
            <Setter Property="Foreground" Value="White"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>

        <local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="False" UseDegreesF="False" UseMPH="False" UsePsi="False" MaxBoost="40" MinBoost="1" MaxSpeed="160" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False"  HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="False" HasTextFuel="False" MaxFuel="20" MinGear="-1" MaxGear="1" MaxRpm="8000"/>
        <Storyboard x:Key="Start Up Animation">
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Start_Up_Animation">
        		<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
        	</DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Fuel Gauge">
        	<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Low_Fuel_Light">
        		<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
        		<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
        	</ObjectAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard x:Name="Fuel_Gauge_BeginStoryboard" Storyboard="{StaticResource Fuel Gauge}"/>
		</EventTrigger>
	</Page.Triggers>


    <Canvas x:Name="LayoutRoot" Background="Transparent" Width="1280" Height="720">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="NightDaySplit">
                <VisualState x:Name="Day"/>
                <VisualState x:Name="Night"/>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>

        <Image x:Name="NIS_SilviaKs_89_BG" Height="720" Source="game:/media/cars/NIS_SilviaKs_89/UI/Textures/NIS_SilviaKs_89_BackGround.png" Stretch="Fill" Width="1280"/>
        <Image x:Name="Low_Fuel_Light" Height="208" Source="game:/media/cars/NIS_SilviaKs_89/UI/Textures/CAP_T1_13_YellowLight_Off.PNG" Stretch="Fill" Width="208" Canvas.Left="3" Canvas.Top="-37.5"/>
        <local:FastTextBlock x:Name="Text_Clock" Text="{Binding Time}" FontSize="266.667" Style="{StaticResource TextBlockStyle}" Foreground="Black" FontFamily="DG2_LCD" Width="768.222" RenderTransformOrigin="0.5,0.5" TextAlignment="Center" Height="270.664" Canvas.Left="254.111" Canvas.Top="231.001" FontWeight="Bold"><local:FastTextBlock.RenderTransform><TransformGroup><ScaleTransform ScaleY="1.5" ScaleX="1.5"/><SkewTransform/><RotateTransform/><TranslateTransform/></TransformGroup>
        	</local:FastTextBlock.RenderTransform></local:FastTextBlock>
        <Rectangle x:Name="Start_Up_Animation" Fill="Black" Height="720.5" Stroke="Black" Width="1281.049" Visibility="Hidden"/>

        <!-- Storyboard binding controllers --> 
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
    </Canvas>
</Page>