<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="DigitalGauge.MCL_MP412C_11"
	 >
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG1_Arial"/>
            <Setter Property="Foreground" Value="#FFCEC2EA"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="True" UseDegreesF="False" UseMPH="False" UsePsi="False" 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="9000"></local:DigitalGaugeConfig>
        
		<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>
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Fuel_meter_center">
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="66"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Fuel_meter_center">
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="65"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Fuel_meter_endcapR">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="132"/>
			</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>
        <Canvas x:Name="Background" Height="100" Width="100" >
        	<Rectangle x:Name="MFD_Left" Height="250" Canvas.Left="10" Canvas.Top="375.25" Width="400" Fill="Black"/>
        	<Rectangle x:Name="MFD_Right1" Fill="Black" Height="250" Canvas.Left="870" Canvas.Top="375" Width="400"/>
        	<Rectangle x:Name="Gear_Background" Fill="Black" Height="100" Canvas.Left="648" Canvas.Top="397" Width="200"/>
        	<Rectangle x:Name="Gear_Background2" Fill="Black" Height="100" Canvas.Left="440" Canvas.Top="236.667" Width="400"/>
        </Canvas>
        <Image x:Name="MFD_L01" Height="128" Canvas.Left="72" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_MFD_L01.png" Stretch="Fill" Canvas.Top="424" Width="128"/>
        <Path x:Name="Line1" Data="M67.498155,438 L252.17152,438" Height="3" Canvas.Left="67" Stretch="Fill" Canvas.Top="439" Width="188" StrokeThickness="3" Stroke="#FFCEC2EA" />
        <Image x:Name="km" Height="32" Canvas.Left="170.75" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_KM.png" Stretch="Fill" Canvas.Top="469.25" Width="64"/>
		<Image x:Name="km2" Height="32" Canvas.Left="170.75" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_KM.png" Stretch="Fill" Canvas.Top="535.25" Width="64"/>
        <Image x:Name="MFD_L02" Height="128" Canvas.Left="233" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_MFD_L02.png" Stretch="Fill" Canvas.Top="433.75" Width="128"/>
        <Canvas x:Name="Oil_Pressure" Height="15" Canvas.Left="1054" Canvas.Top="445" Width="138.25">
        	<Image x:Name="OilPressure_meter_endcapL" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_meter_endcapL.png" Stretch="None" Canvas.Left="0" Canvas.Top="0" Width="3" Height="15"/>
        	<Image x:Name="OilPressure_meter_center" Height="15" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_meter_center.png" Stretch="Fill" Width="73" Canvas.Left="3" RenderTransformOrigin="0.5,0.5" Canvas.Top="0">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="OilPressure_meter_endcapR" Height="15" Canvas.Left="76" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_meter_endcapR.png" Stretch="Fill" Width="4" RenderTransformOrigin="0.5,0.5">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        </Canvas>
        <Canvas x:Name="Water_Temp" Height="15" Canvas.Left="1054" Canvas.Top="490" Width="138.25">
        	<Image x:Name="WaterTemp_meter_endcapL" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_meter_endcapL.png" Stretch="None" Canvas.Left="0" Canvas.Top="0" Width="3" Height="15"/>
        	<Image x:Name="WaterTemp_meter_center" Height="15" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_meter_center.png" Stretch="Fill" Width="55" Canvas.Left="3" RenderTransformOrigin="0.5,0.5" Canvas.Top="0">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="WaterTemp_meter_endcapR" Height="15" Canvas.Left="58" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_meter_endcapR.png" Stretch="Fill" Width="4" RenderTransformOrigin="0.5,0.5">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        </Canvas>
        <Canvas x:Name="Fuel" Height="15" Canvas.Left="1054" Canvas.Top="535" Width="138.25">
        	<Image x:Name="Fuel_meter_endcapL" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_meter_endcapL.png" Stretch="None" Canvas.Left="0" Canvas.Top="0" Width="3" Height="15"/>
        	<Image x:Name="Fuel_meter_center" Height="15" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_meter_center.png" Stretch="Fill" Width="2" Canvas.Left="3" RenderTransformOrigin="0.5,0.5" Canvas.Top="0">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="Fuel_meter_endcapR" Height="15" Canvas.Left="3" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_meter_endcapR.png" Stretch="Fill" Width="4" RenderTransformOrigin="0.5,0.5">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        </Canvas>
        <Image x:Name="MFD_Right" Height="140" Canvas.Left="905.5" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_MFD_Right.png" Stretch="Fill" Canvas.Top="424.5" Width="300"/>
        <Image x:Name="kph" Height="16" Canvas.Left="777.5" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_KPH.png" Stretch="Fill" Canvas.Top="464.5" Width="32" />
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="256" Canvas.Top="472" Text="{Binding ExternalTemp}" FontSize="24" Style="{StaticResource TextBlockStyle}" Width="63.45"/>
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="50.75" Canvas.Top="472" Width="124" FontSize="24" Style="{StaticResource TextBlockStyle}" Text="{Binding Odometer}"/>
            <local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="74.75" Canvas.Top="535" Text="{Binding TripMeter}" Width="100" FontSize="24" Style="{StaticResource TextBlockStyle}"/>
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="266" Canvas.Top="416" Text="{Binding Time}" FontSize="24" Style="{StaticResource TextBlockStyle}" FontFamily="Moire"/>
            <local:FastTextBlock x:Name="Text_Speed" Canvas.Left="648" Canvas.Top="400.25" Text="{Binding Speed}" Width="168" FontSize="64" Style="{StaticResource TextBlockStyle}" FontFamily="Moire" Foreground="#FFFFB210"/>
            <local:FastTextBlock x:Name="Text_Gear" TextAlignment="Center" Canvas.Left="748" Canvas.Top="251" Text="{Binding Gear}" Width="67.626" FontSize="64" Style="{StaticResource TextBlockStyle}" FontFamily="Moire" Foreground="#FFFFB210"/>
            <Image x:Name="GEAR2" Height="64" Canvas.Left="475.663" Source="game:/media/cars/MCL_MP412C_11/UI/Textures/MCL_MP412C_11_Gear.png" Stretch="Fill" Canvas.Top="257.657" Width="64"/>
		</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>