<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.VAU_VX220_04">
	
    <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="Fill_1">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.167" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fill_2">
				<EasingDoubleKeyFrame KeyTime="0:0:0.167" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fill_3">
				<EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fill_4">
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fill_5">
				<EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.833" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fill_6">
				<EasingDoubleKeyFrame KeyTime="0:0:0.833" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.994" 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="Top_Background" Fill="#FF373737" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Gauge_Background" Fill="#FF98A52B" Height="90" Canvas.Left="464" Canvas.Top="313" Width="300"/>
        <Canvas x:Name="Fuel" Canvas.Left="557.5" Canvas.Top="253" Height="168" Width="256">
            <Rectangle x:Name="Bracket_Left" Fill="Black" Height="31" Canvas.Left="65.5" Canvas.Top="72" Width="3"/>
            <Rectangle x:Name="Bracket_Right" Fill="Black" Height="31" Canvas.Left="187.5" Canvas.Top="72" Width="3"/>
            <Rectangle x:Name="Top_1" Fill="Black" Height="3" Canvas.Left="67" Canvas.Top="72" Width="14"/>
            <Rectangle x:Name="Top_2" Fill="Black" Height="3" Canvas.Left="90" Canvas.Top="72" Width="14"/>
            <Rectangle x:Name="Top_3" Fill="Black" Height="3" Canvas.Left="112" Canvas.Top="72" Width="14"/>
            <Rectangle x:Name="Top_4" Fill="Black" Height="3" Canvas.Left="132" Canvas.Top="72" Width="14"/>
            <Rectangle x:Name="Top_5" Fill="Black" Height="3" Canvas.Left="152" Canvas.Top="72" Width="14"/>
            <Rectangle x:Name="Top_6" Fill="Black" Height="3" Canvas.Left="174" Canvas.Top="72" Width="14"/>
            <Rectangle x:Name="Bottom_1" Fill="Black" Height="3" Canvas.Left="67" Canvas.Top="100" Width="14"/>
            <Rectangle x:Name="Bottom_2" Fill="Black" Height="3" Canvas.Left="90" Canvas.Top="100" Width="14"/>
            <Rectangle x:Name="Bottom_3" Fill="Black" Height="3" Canvas.Left="112" Canvas.Top="100" Width="14"/>
            <Rectangle x:Name="Bottom_4" Fill="Black" Height="3" Canvas.Left="132" Canvas.Top="100" Width="14"/>
            <Rectangle x:Name="Bottom_5" Fill="Black" Height="3" Canvas.Left="152" Canvas.Top="100" Width="14"/>
            <Rectangle x:Name="Bottom_6" Fill="Black" Height="3" Canvas.Left="174" Canvas.Top="100" Width="14"/>
            <Rectangle x:Name="Fill_1" Fill="Black" Height="26" Canvas.Left="67" Canvas.Top="75" Width="14" Opacity="0"/>
            <Rectangle x:Name="Fill_2" Fill="Black" Height="26" Canvas.Left="90" Canvas.Top="75" Width="14" Opacity="0"/>
            <Rectangle x:Name="Fill_3" Fill="Black" Height="26" Canvas.Left="112" Canvas.Top="75" Width="14" Opacity="0"/>
            <Rectangle x:Name="Fill_4" Fill="Black" Height="26" Canvas.Left="132" Canvas.Top="75" Width="14" Opacity="0"/>
            <Rectangle x:Name="Fill_5" Fill="Black" Height="26" Canvas.Left="152" Canvas.Top="75" Width="14" Opacity="0"/>
            <Rectangle x:Name="Fill_6" Fill="Black" Height="26" Canvas.Left="174" Canvas.Top="75" Width="14" Opacity="0"/>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="633.5" Canvas.Top="346.573" Text="{Binding ExternalTemp}" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="80" FontFamily="DG4_PF_Ronda_Seven" Foreground="Black" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="481.5" Canvas.Top="312.573" Text="{Binding TripMeter}" Width="140" FontSize="29.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" Foreground="Black" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="454.5" Canvas.Top="346.573" Text="000000.0" Width="180" FontSize="29.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" Foreground="Black" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
		</Canvas>
        <Image x:Name="Text_Temp" Canvas.Left="711.5" Canvas.Top="355.5" Height="40" Source="game:/media/cars/VAU_VX220_04/UI/Textures/LOT_2Eleven_09_txt_temp.PNG" Stretch="Fill" Width="40"/>
        <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>