<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_650SSpider_14"
	 >
	
    <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="True" UseMPH="True" 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>
        <Rectangle x:Name="Background_Blank" Fill="Black" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280"/>

        <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="135" 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_650SSpider_14/UI/Textures/MCL_650S_15_MFD_L01.png" Stretch="Fill" Canvas.Top="424" Width="128"/>
		<Rectangle x:Name="Line_Left_Aliasing_01" Fill="#FFCEC2EA" Height="3" Canvas.Left="68.5" StrokeThickness="3" Canvas.Top="441.75" Width="185" Opacity="0.3"/>
		<Rectangle x:Name="Line_Left_Aliasing_02" Fill="#FFCEC2EA" Height="3" Canvas.Left="68.5" StrokeThickness="3" Canvas.Top="436.5" Width="185" Opacity="0.3"/>
		<Rectangle x:Name="Line_Left" Fill="#FFCEC2EA" Height="3" Canvas.Left="68.5" StrokeThickness="3" Canvas.Top="439" Width="185"/>
		<Image x:Name="mi" Height="32" Canvas.Left="179.75" Source="game:/media/cars/MCL_650SSpider_14/UI/Textures/MCL_650S_15_Mi.png" Stretch="Fill" Canvas.Top="469.25" Width="64"/>
		<Image x:Name="mi2" Height="32" Canvas.Left="179.75" Source="game:/media/cars/MCL_650SSpider_14/UI/Textures/MCL_650S_15_Mi.png" Stretch="Fill" Canvas.Top="535.25" Width="64"/>
		<Image x:Name="MFD_L02" Height="128" Canvas.Left="235" Source="game:/media/cars/MCL_650SSpider_14/UI/Textures/MCL_650S_15_MFD_L02.png" Stretch="Fill" Canvas.Top="433.75" Width="140"/>
        <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_650SSpider_14/UI/Textures/MCL_650S_15_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_650SSpider_14/UI/Textures/MCL_650S_15_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_650SSpider_14/UI/Textures/MCL_650S_15_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_650SSpider_14/UI/Textures/MCL_650S_15_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_650SSpider_14/UI/Textures/MCL_650S_15_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_650SSpider_14/UI/Textures/MCL_650S_15_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_650SSpider_14/UI/Textures/MCL_650S_15_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_650SSpider_14/UI/Textures/MCL_650S_15_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_650SSpider_14/UI/Textures/MCL_650S_15_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_650SSpider_14/UI/Textures/MCL_650S_15_MFD_Right.png" Stretch="Fill" Canvas.Top="424.5" Width="300"/>
		<Image x:Name="mph" Height="16" Canvas.Left="777.5" Source="game:/media/cars/MCL_650SSpider_14/UI/Textures/MCL_650S_15_MPH.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="254" Canvas.Top="470" Text="{Binding ExternalTemp}" FontSize="24" Style="{StaticResource TextBlockStyle}" Width="63.45"/>
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="49.75" Canvas.Top="470" Width="124" FontSize="24" Style="{StaticResource TextBlockStyle}" Text="{Binding Odometer}"/>
            <local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="73.75" Canvas.Top="535" Text="{Binding TripMeter}" Width="100" FontSize="24" Style="{StaticResource TextBlockStyle}"/>
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="74.25" Canvas.Top="412" Text="{Binding Time}" FontSize="24" Style="{StaticResource TextBlockStyle}" FontFamily="Moire" Width="180"/>
            <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="259.5" 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_650SSpider_14/UI/Textures/MCL_650S_15_Gear.png" Stretch="Fill" Canvas.Top="265.157" Width="64"/>
		</Canvas>
        <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>