<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.BMW_M5_12">
	
    <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="False" UseMPH="False" 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="Shift Lights Progress">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="One_Fill">
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Two_Fill">
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Three_Fill">
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Four_Fill">
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Five_Fill">
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Shift Lights Flash">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Five_Fill">
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Four_Fill">
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Three_Fill">
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Two_Fill">
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="One_Fill">
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</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="#FF4D4D4D" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0" />
        <Rectangle x:Name="Background_Clock" Fill="Black" Height="92" Stroke="Black" Width="150" Canvas.Left="564.499" Canvas.Top="350.362"/>
        <Rectangle x:Name="Background_Shift" Fill="Black" Height="124" Stroke="Black" Width="190" Canvas.Left="545.001" Canvas.Top="452.356"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="577.183" Canvas.Top="367.5" Text="{Binding ExternalTemp}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFEB3F24" Width="80" FontFamily="DG1_Arial"/>
            <local:FastTextBlock x:Name="Text_Gear" Canvas.Left="561.126" Canvas.Top="453.209" Text="{Binding Gear}" Width="100" FontSize="66.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFEB3F24" RenderTransformOrigin="0.5,0.5" FontFamily="DG1_Arial">
            	<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="645.192" Canvas.Top="537.5" Text="{Binding TripMeter}" Width="70" FontSize="21.333" Style="{StaticResource TextBlockStyle}" Foreground="#FFEB3F24" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.95"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="512.183" Canvas.Top="537.5" Text="{Binding Odometer}" Width="140" FontSize="21.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="#FFEB3F24" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.95"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="579.164" Canvas.Top="400.5" Text="{Binding Time}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" Width="100" RenderTransformOrigin="0.5,0.5" FontFamily="DG1_Arial" Foreground="#FFEB3F24">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <Image x:Name="Text_Temp_Baked" Height="26" Canvas.Left="657.183" Source="game:/media/cars/BMW_M3E92_08/UI/Textures/BMW_M3E92_08_txt_temp.png" Stretch="Fill" Canvas.Top="370.163" Width="26"/>
            <Image x:Name="Text_Km_Baked" Height="14" Canvas.Left="558.183" Source="game:/media/cars/BMW_M3E92_08/UI/Textures/BMW_M3E92_08_txt_km.png" Stretch="Fill" Canvas.Top="525.5" Width="28"/>
		</Canvas>
        <Canvas x:Name="Shift_Lights" Height="50" Width="120" Canvas.Left="613" Canvas.Top="478.994">
        	<Rectangle x:Name="One_Bracket_Top" Fill="#FFEB3F24" Height="1" Canvas.Left="48" Canvas.Top="22" Width="4"/>
        	<Rectangle x:Name="One_Bracket_Bottom" Fill="#FFEB3F24" Height="1" Canvas.Left="48" Canvas.Top="35.031" Width="4"/>
        	<Rectangle x:Name="One_Bracket_Left" Fill="#FFEB3F24" Height="13" Canvas.Left="48" Canvas.Top="22.581" Width="1"/>
        	<Rectangle x:Name="One_Bracket_Right" Fill="#FFEB3F24" Height="13" Canvas.Left="50.988" Canvas.Top="22.747" Width="1"/>
        	<Rectangle x:Name="One_Fill" Fill="#FFEB3F24" Height="13" Canvas.Left="48.996" Canvas.Top="22.664" Width="2" Opacity="0"/>
        	<Rectangle x:Name="Two_Bracket_Bottom" Fill="#FFEB3F24" Height="1" Canvas.Left="55.968" Canvas.Top="35.031" Width="4"/>
        	<Rectangle x:Name="Two_Bracket_Top" Fill="#FFEB3F24" Height="1" Canvas.Left="55.968" Canvas.Top="20.921" Width="4"/>
        	<Rectangle x:Name="Two_Bracket_Left" Fill="#FFEB3F24" Height="14" Canvas.Left="55.968" Canvas.Top="21.668" Width="1"/>
        	<Rectangle x:Name="Two_Bracket_Right" Fill="#FFEB3F24" Height="14" Canvas.Left="58.956" Canvas.Top="21.668" Width="1"/>
        	<Rectangle x:Name="Two_Fill" Fill="#FFEB3F24" Height="14" Canvas.Left="56.383" Canvas.Top="21.668" Width="3" Opacity="0"/>
        	<Rectangle x:Name="Three_Bracket_Bottom" Fill="#FFEB3F24" Height="1" Canvas.Left="65.347" Canvas.Top="35.031" Width="4"/>
        	<Rectangle x:Name="Three_Bracket_Top" Fill="#FFEB3F24" Height="1" Canvas.Left="65.347" Canvas.Top="19.012" Width="4"/>
        	<Rectangle x:Name="Three_Bracket_Right" Fill="#FFEB3F24" Height="17" Canvas.Left="64.434" Canvas.Top="19.012" Width="1"/>
        	<Rectangle x:Name="Three_Bracket_Left" Fill="#FFEB3F24" Height="17" Canvas.Left="68.667" Canvas.Top="19.012" Width="1"/>
        	<Rectangle x:Name="Three_Fill" Fill="#FFEB3F24" Height="17" Canvas.Left="65" Canvas.Top="19.012" Width="3.763" Opacity="0"/>
        	<Rectangle x:Name="Four_Bracket_Bottom" Fill="#FFEB3F24" Height="1" Canvas.Left="75.639" Canvas.Top="35.031" Width="4"/>
        	<Rectangle x:Name="Four_Bracket_Top" Fill="#FFEB3F24" Height="1" Canvas.Left="75.639" Canvas.Top="18.016" Width="4"/>
        	<Rectangle x:Name="Four_Bracket_Left" Fill="#FFEB3F24" Height="18" Canvas.Left="75.141" Canvas.Top="18.016" Width="1"/>
        	<Rectangle x:Name="Four_Bracket_Right" Fill="#FFEB3F24" Height="18" Canvas.Left="78.959" Canvas.Top="18.016" Width="1"/>
        	<Rectangle x:Name="Four_Fill" Fill="#FFEB3F24" Height="18" Canvas.Left="75.892" Canvas.Top="18.016" Width="3.32" Opacity="0"/>
        	<Rectangle x:Name="Five_Bracket_Bottom" Fill="#FFEB3F24" Height="1" Canvas.Left="86.512" Canvas.Top="35.031" Width="4"/>
        	<Rectangle x:Name="Five_Bracket_Top" Fill="#FFEB3F24" Height="1" Canvas.Left="86.512" Canvas.Top="16.024" Width="4"/>
        	<Rectangle x:Name="Five_Bracket_Left" Fill="#FFEB3F24" Height="20" Canvas.Left="85.931" Canvas.Top="16.024" Width="1"/>
        	<Rectangle x:Name="Five_Bracket_Right" Fill="#FFEB3F24" Height="20" Canvas.Left="89.998" Canvas.Top="16.024" Width="1"/>
        	<Rectangle x:Name="Five_Fill" Fill="#FFEB3F24" Height="20" Canvas.Left="86.682" Canvas.Top="16.024" Width="3.486" Opacity="0"/>
        </Canvas>
        <Rectangle x:Name="Line_1" Fill="#FFEB3F24" Height="2" Canvas.Left="544.002" Canvas.Top="532.994" Width="14"/>
        <Rectangle x:Name="Line_2" Fill="#FFEB3F24" Height="2" Canvas.Left="584.628" Canvas.Top="532.994" Width="160"/>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="53" Opacity="0"/>
	</Canvas>
</Page>