<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"
    mc:Ignorable="d"
	x:Class="ForzaUI.NIS_370Z_10">
	
    <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="True" UseDegreesF="True" UseMPH="True" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="120" HasAbsLight="True" HasStmLight="True" HasTcsLight="True" HasGAccelX="True" HasGAccelY="True" HasShiftLights="True" HasTextTach="True" HasLapPlaceInfo="True" HasTextBoost="True" HasTextGAccel="True" HasTextOdometer="True" HasTextFuel="True" MaxFuel="20" MaxGear="8" MaxRpm="10000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_1">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.063" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_2">
				<EasingDoubleKeyFrame KeyTime="0:0:0.063" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.125" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_3">
				<EasingDoubleKeyFrame KeyTime="0:0:0.125" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.188" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_4">
				<EasingDoubleKeyFrame KeyTime="0:0:0.188" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_5">
				<EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.313" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_6">
				<EasingDoubleKeyFrame KeyTime="0:0:0.313" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.375" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_7">
				<EasingDoubleKeyFrame KeyTime="0:0:0.375" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.438" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_8">
				<EasingDoubleKeyFrame KeyTime="0:0:0.438" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_9">
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.563" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_10">
				<EasingDoubleKeyFrame KeyTime="0:0:0.563" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_11">
				<EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.688" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_12">
				<EasingDoubleKeyFrame KeyTime="0:0:0.688" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_13">
				<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.813" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_14">
				<EasingDoubleKeyFrame KeyTime="0:0:0.813" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_15">
				<EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.938" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_Light_16">
				<EasingDoubleKeyFrame KeyTime="0:0:0.938" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<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>
	</Page.Resources>
	  

	<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_Grey" Fill="#FF4E4E4E" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Background_Gear" Fill="#FF1C0000" Height="70" Canvas.Left="599" Canvas.Top="439.006" Width="98"/>
		<Rectangle x:Name="Background_Clock" Fill="#FF1C0000" Height="56" Canvas.Left="590.5" Canvas.Top="304.334" Width="116"/>
        <Rectangle x:Name="Background_Black" Fill="Black" Height="300" Stroke="Black" Width="300" Canvas.Left="23.997" Canvas.Top="304.334"/>
        <Rectangle x:Name="Background_Odo" Fill="#FF1C0000" Height="56" Canvas.Left="1103.5" Canvas.Top="506.66" Width="116"/>
        <Rectangle x:Name="MFD_Background" Fill="#FF1C0000" Height="110" Stroke="Black" Width="250" Canvas.Left="48.75" Canvas.Top="398"/>
        <Canvas x:Name="Water_Temp" Canvas.Left="33.7" Canvas.Top="508.991" Width="280" Height="20" >
        	<Image x:Name="WaterTemp_Base" Canvas.Top="2.331" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_Lightsbase.PNG" Stretch="Fill" Width="256" Canvas.Left="12.654"/>
        	<Image x:Name="Light" Canvas.Left="151.315" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="2.331"/>
        </Canvas>
        <Canvas x:Name="Fuel" Canvas.Left="34.357" Canvas.Top="370.639" Height="30" Width="280">
        	<Image x:Name="Fuel_Base" Canvas.Top="6.66" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_Lightsbase.PNG" Stretch="Fill" Width="256" Canvas.Left="12.321"/>
        	<Image x:Name="Fuel_Light_1" Canvas.Left="33.766" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_2" Canvas.Left="46.753" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_3" Canvas.Left="60.073" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_4" Canvas.Left="73.06" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_5" Canvas.Left="86.047" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_6" Canvas.Left="99.034" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_7" Canvas.Left="112.021" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_8" Canvas.Left="125.008" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_9" Canvas.Left="137.662" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_10" Canvas.Left="150.982" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_11" Canvas.Left="163.969" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_12" Canvas.Left="176.956" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_13" Canvas.Left="189.943" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_14" Canvas.Left="202.93" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_15" Canvas.Left="216.25" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        	<Image x:Name="Fuel_Light_16" Canvas.Left="228.904" Height="16" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_LightRollover.PNG" Stretch="Fill" Width="16" Canvas.Top="6.66" Opacity="0"/>
        </Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="110.5" Canvas.Top="447.5" Text="{Binding ExternalTemp}" FontSize="32" Style="{StaticResource TextBlockStyle}" Width="110" Foreground="#FFFF0100"/>
            <local:FastTextBlock x:Name="Text_Gear" Canvas.Left="572.126" Canvas.Top="445.5" Text="{Binding Gear}" Width="80" FontSize="48" Style="{StaticResource TextBlockStyle}" Foreground="#FFFF0100"/>
            <local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="1110.192" Canvas.Top="535.5" Text="{Binding TripMeter}" Width="98.333" FontSize="24" Style="{StaticResource TextBlockStyle}" FontFamily="DG2_LCD" Foreground="#FFFF0100"/>
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="1087.525" Canvas.Top="508.511" Text="{Binding Odometer}" Width="120" FontSize="24" Style="{StaticResource TextBlockStyle}" FontFamily="DG2_LCD" Foreground="#FFFF0100"/>
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="585.5" Canvas.Top="310.5" Text="{Binding Time}" FontSize="32" Style="{StaticResource TextBlockStyle}" Width="110" Foreground="#FFFF0100" FontFamily="DG5_QuartzMS"/>
		</Canvas>
        <Image x:Name="Odo_Graphics" Canvas.Left="1102.5" Canvas.Top="525" Height="32" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_odo_graphic.PNG" Stretch="Fill" Width="32"/>
        <Image x:Name="Txt_Gear_Baked" Height="32" Canvas.Left="663.402" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_txt_gear.png" Stretch="Fill" Canvas.Top="442.006" Width="32"/>
        <Image x:Name="Icon_Txt_Baked" Height="38" Canvas.Left="220.659" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_txt_temp.png" Stretch="Fill" Canvas.Top="449.34" Width="38"/>
        <Image x:Name="Txt_Temp_Baked" Height="20" Canvas.Left="67.999" Source="game:/media/cars/NIS_370Z_10/UI/Textures/NIS_370Z_10_Fuel_Bckgd.png" Stretch="Fill" Canvas.Top="420.004" Width="170"/>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0"/>
		
		        <!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
	</Canvas>
</Page>