<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.MIN_JCWGP_13">
	
    <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="True" HasExternalTemp="True" UseDegreesF="True" 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="20" MaxGear="8" MaxRpm="10000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Fuel Gauge">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="OrangeTic_10">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="OrangeTic_1">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="OrangeTic_2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="OrangeTic_3">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.3" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="OrangeTic_4">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.4" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="OrangeTic_5">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="OrangeTic_6">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.6" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="OrangeTic_7">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.7" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="OrangeTic_8">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.8" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="OrangeTic_9">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.9" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Orange_Empty_Icon">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</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="Grey_Background" Fill="#FF414141" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Background_Odo" Height="126.06" Canvas.Left="106.698" Canvas.Top="469" Width="381.784" Fill="Black"/>
		<Rectangle x:Name="Background_Speedo" Fill="Black" Height="116.912" Canvas.Left="230" Canvas.Top="354.544" Width="136"/>
        <Canvas x:Name="Fuel" Canvas.Left="913.5" Canvas.Top="230" Height="168" Width="256">
            <Rectangle x:Name="BlackTic_1" Height="32" Canvas.Left="125.333" Canvas.Top="133" Width="32" Fill="Black"/>
            <Rectangle x:Name="BlackTic_2" Height="32" Canvas.Left="77.668" Canvas.Top="128.834" Width="32" Fill="Black" RenderTransformOrigin="0.5,0.5">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="27.316"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="BlackTic_3" Height="32" Canvas.Left="37.308" Canvas.Top="109.502" Width="32" Fill="Black" RenderTransformOrigin="0.5,0.5">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="54.689"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="BlackTic_4" Height="32" Canvas.Left="23.318" Canvas.Top="68.168" Width="32" Fill="Black" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="90.365"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="BlackTic_5" Height="32" Canvas.Left="35.485" Canvas.Top="28.475" Width="32" Fill="Black" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="123.191"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="BlackTic_6" Height="32" Canvas.Left="67.834" Canvas.Top="0.808" Width="32" Fill="Black" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="150.398"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="BlackTic_7" Height="32" Canvas.Left="109.354" Canvas.Top="-12.194" Width="32" Fill="Black" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="180.745"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="BlackTic_8" Height="32" Canvas.Left="151.881" Canvas.Top="-1.694" Width="32" Fill="Black" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="212.777"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="BlackTic_9" Height="32" Canvas.Left="181.376" Canvas.Top="27.478" Width="32" Fill="Black" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="240.516"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="BlackTic_10" Height="32" Canvas.Left="193.542" Canvas.Top="67.322" Width="32" Fill="Black" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="267.777"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="OrangeTic_1" Height="32" Canvas.Left="125.333" Canvas.Top="133" Width="32" Fill="#FFFB2E19" Visibility="Hidden"/>
            <Rectangle x:Name="OrangeTic_2" Height="32" Canvas.Left="77.669" Canvas.Top="128.833" Width="32" Fill="#FFFB2E19" RenderTransformOrigin="0.5,0.5" Visibility="Hidden">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="27.316"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="OrangeTic_3" Height="32" Canvas.Left="37.641" Canvas.Top="109.502" Width="32" Fill="#FFFB2E19" RenderTransformOrigin="0.5,0.5" Visibility="Hidden">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="54.689"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="OrangeTic_4" Height="32" Canvas.Left="23.318" Canvas.Top="68.168" Width="32" Fill="#FFFB2E19" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}" Visibility="Hidden">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="90.365"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="OrangeTic_5" Height="32" Canvas.Left="35.485" Canvas.Top="28.808" Width="32" Fill="#FFFB2E19" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}" Visibility="Hidden">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="123.191"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="OrangeTic_6" Height="32" Canvas.Left="68.167" Canvas.Top="1.141" Width="32" Fill="#FFFB2E19" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}" Visibility="Hidden">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="150.398"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="OrangeTic_7" Height="32" Canvas.Left="109.354" Canvas.Top="-12.194" Width="32" Fill="#FFFB2E19" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}" Visibility="Hidden">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="180.745"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="OrangeTic_8" Height="32" Canvas.Left="152.214" Canvas.Top="-1.694" Width="32" Fill="#FFFB2E19" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}" Visibility="Hidden">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="212.777"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="OrangeTic_9" Height="32" Canvas.Left="181.709" Canvas.Top="27.478" Width="32" Fill="#FFFB2E19" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}" Visibility="Hidden">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="240.516"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="OrangeTic_10" Height="32" Canvas.Left="193.208" Canvas.Top="67.322" Width="32" Fill="#FFFB2E19" RenderTransformOrigin="0.5,0.5" OpacityMask="{x:Null}" Visibility="Hidden">
            	<Rectangle.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform Angle="267.777"/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle x:Name="Black_Empty_Icon" Fill="Black" Height="36.334" Canvas.Left="178.999" Canvas.Top="123.666" Width="27.667"/>
            <Rectangle x:Name="Orange_Empty_Icon" Fill="#FFFB2E19" Height="36.334" Canvas.Left="178.999" Canvas.Top="123.666" Width="27.667"/>
		</Canvas>
        <Image x:Name="texture_radio" Canvas.Left="676.5" Canvas.Top="398" Height="64" Source="game:/media/cars/MIN_JCWGP_13/UI/Textures/MIN_JCWGP_13_radio.PNG" Stretch="Fill" Width="512"/>
        <Image x:Name="txt_mi_baked" Canvas.Left="296.5" Canvas.Top="508.5" Height="32" Source="game:/media/cars/MIN_JCWGP_13/UI/Textures/MIN_JCWGP_13_txt_mi.PNG" Stretch="Fill" Width="32"/>
        <Image x:Name="txt_mph_baked" Canvas.Left="277.5" Canvas.Top="428" Height="32" Source="game:/media/cars/MIN_JCWGP_13/UI/Textures/MIN_JCWGP_13_txt_mph.PNG" Stretch="Fill" Width="64"/>
        <Image x:Name="txt_temp_baked" Height="32" Canvas.Left="287.5" Source="game:/media/cars/MIN_JCWGP_13/UI/Textures/MIN_JCWGP_13_txt_temp.png" Stretch="Fill" Canvas.Top="486.5" Width="32" RenderTransformOrigin="0.5,0.5">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="0.9" ScaleY="0.9"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
		<Canvas x:Name="Text" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0">
			<TextBlock x:Name="Text_External_Temp" Canvas.Left="170.5" Canvas.Top="484.5" Text="{Binding ExternalTemp}" FontSize="25.333" Style="{StaticResource TextBlockStyle}" Foreground="#FFFB2E19" FontFamily="DG1_Arial" Width="120"/>
			<TextBlock x:Name="Text_Clock" Canvas.Left="1093.164" Canvas.Top="407.5" Text="{Binding Time}" FontSize="18.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFFB2E19"/>
			<TextBlock x:Name="Text_Speed" Canvas.Left="238.192" Canvas.Top="383.023" Text="{Binding Speed}" Width="100" FontSize="45.333" Style="{StaticResource TextBlockStyle}" Foreground="#FFFB2E19" FontFamily="DG1_Arial" TextAlignment="Right"/>
			<TextBlock x:Name="Text_Trip_Odo" Canvas.Left="307.59" Canvas.Top="510.5" Text="{Binding TripMeter}" Width="80" FontSize="21.333" Style="{StaticResource TextBlockStyle}" Foreground="#FFFB2E19" FontFamily="DG1_Arial"/>
			<TextBlock x:Name="Text_Odometer" Canvas.Left="199.59" Canvas.Top="510.5" Text="{Binding Odometer}" Width="100" FontSize="21.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="#FFFB2E19"/>
		</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>