<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_SkylineGTRVSpecII_00"
	 >

    <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="True" MaxBoost="26.3" MinBoost="-15" MaxSpeed="180" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False"  HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="-1" MaxGear="6" MaxRpm="10000"/>
        <Storyboard x:Key="Start Up Animation">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Start_Up_Mask">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Boost Gauge">
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="NIS_SkylineGTRVSpecII_00_needle">
        		<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="240.144"/>
        	</DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Boost 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>
        <Rectangle x:Name="Background_Black" Fill="Black" Height="720.5" Stroke="Black" Width="1281.049"/>
        <Image x:Name="NIS_SkylineGTRVSpecII_00_BG" Height="624" Source="game:/media/cars/NIS_SkylineGTRVSpecII_00/UI/Textures/NIS_SkylineGTRVSpecII_00_BG.png" Stretch="Fill" Width="1068" Canvas.Left="106"/>
        <Image x:Name="NIS_SkylineGTRVSpecII_00_Center_Console_Time" Height="76" Canvas.Left="11" Source="game:/media/cars/NIS_SkylineGTRVSpecII_00/UI/Textures/NIS_SkylineGTRVSpecII_00_Center Console Time.png" Stretch="Fill" Canvas.Top="637" Width="732"/>
        <Image x:Name="NIS_SkylineGTRVSpecII_00_ODO" Height="73" Canvas.Left="931" Source="game:/media/cars/NIS_SkylineGTRVSpecII_00/UI/Textures/NIS_SkylineGTRVSpecII_00_ODO.png" Stretch="Fill" Canvas.Top="638" Width="337"/>
        <local:FastTextBlock x:Name="Text_Clock" Text="{Binding Time}" FontSize="50.667" Style="{StaticResource TextBlockStyle}" Foreground="Black" FontFamily="DG2_LCD" Width="139.733" RenderTransformOrigin="0.5,0.5" TextAlignment="Center" Height="53.836" Canvas.Left="75.784" Canvas.Top="651.408">
        	<local:FastTextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="1.2"/>
        			<SkewTransform AngleX="8"/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <Rectangle x:Name="Clock_Mask_center" Height="49.5" Width="11.5" Canvas.Left="139.708" Canvas.Top="653.458" Fill="#FF38FF23"/>
        <local:FastTextBlock x:Name="Text_ClockNull" Text=":" FontSize="50.667" Style="{StaticResource TextBlockStyle}" Foreground="Black" FontFamily="DG2_LCD" Width="139.733" RenderTransformOrigin="0.5,0.5" TextAlignment="Center" Height="53.836" Canvas.Left="75.534" Canvas.Top="642.408">
        	<local:FastTextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="1.2" ScaleY="1.45"/>
        			<SkewTransform AngleX="6"/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}" FontSize="56" Style="{StaticResource TextBlockStyle}" Foreground="Black" FontFamily="DG2_LCD" Width="393.772" RenderTransformOrigin="0.5,0.5" TextAlignment="Right" Height="111.774" Canvas.Left="852.024" Canvas.Top="648">
        	<local:FastTextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="1.05"/>
        			<SkewTransform AngleX="8.5"/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <Image x:Name="NIS_SkylineGTRVSpecII_00_needle" Height="204" Source="game:/media/cars/NIS_SkylineGTRVSpecII_00/UI/Textures/NIS_SkylineGTRVSpecII_00_needle.png" Stretch="Fill" Width="22" RenderTransformOrigin="0.492,0.053" Canvas.Left="373.5" Canvas.Top="292.917">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="-8" Canvas.Top="4" Opacity="0" RenderTransformOrigin="0.5,0.5"/>

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