<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.LOT_340R_00">
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="Moire"/>
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="False" UseDegreesF="False" UseMPH="True" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="120" 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="10.5" MaxGear="8" MaxRpm="10000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Fill_1">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="53.944"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Fill_1">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="79.417"/>
			</DoubleAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="Tick_01">
				<EasingColorKeyFrame KeyTime="0" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.123" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.125" Value="#FF79BB23"/>
				<EasingColorKeyFrame KeyTime="0:0:1" Value="#FF79BB23"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="Tick_02">
				<EasingColorKeyFrame KeyTime="0" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.248" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.25" Value="#FF79BB23"/>
				<EasingColorKeyFrame KeyTime="0:0:1" Value="#FF79BB23"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="Tick_03">
				<EasingColorKeyFrame KeyTime="0" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.373" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.375" Value="#FF79BB23"/>
				<EasingColorKeyFrame KeyTime="0:0:1" Value="#FF79BB23"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="Tick_04">
				<EasingColorKeyFrame KeyTime="0" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.498" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.5" Value="#FF79BB23"/>
				<EasingColorKeyFrame KeyTime="0:0:1" Value="#FF79BB23"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="Tick_05">
				<EasingColorKeyFrame KeyTime="0" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.623" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.625" Value="#FF79BB23"/>
				<EasingColorKeyFrame KeyTime="0:0:1" Value="#FF79BB23"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="Tick_06">
				<EasingColorKeyFrame KeyTime="0" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.748" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.75" Value="#FF79BB23"/>
				<EasingColorKeyFrame KeyTime="0:0:1" Value="#FF79BB23"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="Tick_07">
				<EasingColorKeyFrame KeyTime="0" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.873" Value="Black"/>
				<EasingColorKeyFrame KeyTime="0:0:0.875" Value="#FF79BB23"/>
				<EasingColorKeyFrame KeyTime="0:0:1" Value="#FF79BB23"/>
			</ColorAnimationUsingKeyFrames>
		</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="#FF79BB23" Height="114.5" Canvas.Left="411.554" Canvas.Top="302.75" Width="392.892" RenderTransformOrigin="0.5,0.5">
        	<Rectangle.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Rectangle.RenderTransform>
        </Rectangle>
        <Canvas x:Name="Fuel" Canvas.Left="416" Canvas.Top="288" 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="227" Canvas.Top="72" Width="3"/>
            <Rectangle x:Name="Bracket_Top" Fill="Black" Height="3" Canvas.Left="67" Canvas.Top="72" Width="160"/>
            <Rectangle x:Name="Bracket_Bottom" Fill="Black" Height="3" Canvas.Left="67" Canvas.Top="100" Width="160"/>
            <Rectangle x:Name="Fill_1" Fill="Black" Height="26" Canvas.Left="65.5" Canvas.Top="75" Width="3" RenderTransformOrigin="0.5,0.5">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="Tick_01" Fill="Black" Height="8.333" Canvas.Left="85.183" Canvas.Top="94.667" Width="3"/>
            <Rectangle x:Name="Tick_02" Fill="Black" Height="13.333" Canvas.Left="104" Canvas.Top="89.667" Width="3"/>
            <Rectangle x:Name="Tick_03" Fill="Black" Height="8.333" Canvas.Left="125" Canvas.Top="94.667" Width="3"/>
            <Rectangle x:Name="Tick_04" Fill="Black" Height="13.333" Canvas.Left="144" Canvas.Top="89.667" Width="3"/>
            <Rectangle x:Name="Tick_05" Fill="Black" Height="8.333" Canvas.Left="165" Canvas.Top="94.667" Width="3"/>
            <Rectangle x:Name="Tick_06" Fill="Black" Height="13.333" Canvas.Left="184" Canvas.Top="89.667" Width="3"/>
            <Rectangle x:Name="Tick_07" Fill="Black" Height="8.333" Canvas.Left="205" Canvas.Top="94.667" Width="3"/>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <TextBlock x:Name="Text_Trip_Odo" Canvas.Left="606.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">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_Odometer" Canvas.Left="450.75" Canvas.Top="312.573" Text="{Binding Odometer}" Width="180" FontSize="29.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" Foreground="Black" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="53" Opacity="0"/>
		
		
        <!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
	</Canvas>
</Page>