<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.LAM_GallardoLP570Spyder_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="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="True" MaxFuel="20" MinGear="1" MaxGear="6" MaxRpm="10000"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Gear Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Gear1">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Gear2">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Gear3">
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Gear4">
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Gear5">
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Gear6">
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</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_Black" Fill="Black" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280"/>
        <Rectangle x:Name="Background_MFD" Fill="Black" Height="512" Canvas.Left="511.999" Canvas.Top="207.669" Width="256"/>
        <Rectangle x:Name="Background_Odo" Fill="#FF200001" Height="100" Canvas.Left="928" Canvas.Top="562" Width="256"/>
        <Rectangle x:Name="Background_Clock" Fill="#FF200001" Height="100" Canvas.Left="96" Canvas.Top="562" Width="256"/>
        <Rectangle x:Name="Background_Gear" Fill="#FFEE091E" Height="26" Canvas.Left="726" Canvas.Top="487.713" Width="20"/>
        <Rectangle x:Name="Red_line_1" Fill="#FFEE091E" Height="3" Canvas.Left="533.999" Canvas.Top="400.671" Width="212"/>
        <Rectangle x:Name="Red_line_2" Fill="#FFEE091E" Height="3" Canvas.Left="533.999" Canvas.Top="485.38" Width="212"/>
        <Rectangle x:Name="Red_line_3" Fill="#FFEE091E" Height="3" Canvas.Left="533.999" Canvas.Top="569.422" Width="212"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="919.445" Canvas.Top="616.916" Text="{Binding Odometer}" Width="221.528" FontSize="26.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS"   RenderTransformOrigin="0.5,0.5" Foreground="#FFFC2135">
				<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="965.651" Canvas.Top="586.246" Text="{Binding TripMeter}" Width="165.35" FontSize="32" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS"   Foreground="#FFFC2135"/>
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="53.417" Canvas.Top="580.252" Text="{Binding Time}" FontSize="37.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" Width="220" Foreground="#FFFC2135"/>
            <local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="534" Canvas.Top="415.749" Text="{Binding ExternalTemp}" FontSize="40" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="126.5"/>
			<local:FastTextBlock x:Name="Radio_NULL" Canvas.Left="554.666" Canvas.Top="321.376" Text="107.5" FontSize="32" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="126.5"/>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="717.649" Canvas.Top="486.247" Text="{Binding Gear}" Width="25" FontSize="24" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"  />
		</Canvas>
        <Canvas x:Name="Gear_Analog" Height="60" Width="392" Canvas.Left="437" Canvas.Top="558">
        	<Image x:Name="Gear_Background" Height="32" Canvas.Left="75.371" Source="game:/media/cars/LAM_GallardoLP570Spyder_12/UI/Textures/LAM_GallardoLP570_11_Gear.png" Stretch="Fill" Canvas.Top="17.342" Width="256"/>
        	<Image x:Name="Gear1" Height="64" Canvas.Left="110.722" Source="game:/media/cars/LAM_GallardoLP570Spyder_12/UI/Textures/LAM_GallardoLP570_11_1_Rollover.png" Stretch="Fill" Canvas.Top="0" Width="32"/>
        	<Image x:Name="Gear2" Height="64" Canvas.Left="140.721" Source="game:/media/cars/LAM_GallardoLP570Spyder_12/UI/Textures/LAM_GallardoLP570_11_2_Rollover.png" Stretch="Fill" Canvas.Top="0" Width="32" Opacity="0"/>
        	<Image x:Name="Gear3" Height="64" Canvas.Left="170.72" Source="game:/media/cars/LAM_GallardoLP570Spyder_12/UI/Textures/LAM_GallardoLP570_11_3_Rollover.png" Stretch="Fill" Canvas.Top="0" Width="32" Opacity="0"/>
        	<Image x:Name="Gear4" Height="64" Canvas.Left="201.434" Source="game:/media/cars/LAM_GallardoLP570Spyder_12/UI/Textures/LAM_GallardoLP570_11_4_Rollover.png" Stretch="Fill" Canvas.Top="0" Width="32" Opacity="0"/>
        	<Image x:Name="Gear5" Height="64" Canvas.Left="230.099" Source="game:/media/cars/LAM_GallardoLP570Spyder_12/UI/Textures/LAM_GallardoLP570_11_5_Rollover.png" Stretch="Fill" Canvas.Top="0" Width="32" Opacity="0"/>
        	<Image x:Name="Gear6" Height="64" Canvas.Left="260.765" Source="game:/media/cars/LAM_GallardoLP570Spyder_12/UI/Textures/LAM_GallardoLP570_11_6_Rollover.png" Stretch="Fill" Canvas.Top="0" Width="32" Opacity="0"/>
        </Canvas>
        <Image x:Name="Text_Temperature_Glyph" Height="46" Canvas.Left="660" Source="game:/media/cars/LAM_GallardoLP570Spyder_12/UI/Textures/LAM_GallardoLP570_11_glyph.png" Stretch="Fill" Canvas.Top="419" Width="46"/>
        <Image x:Name="Text_Radio_baked" Height="20" Canvas.Left="628" Source="game:/media/cars/LAM_GallardoLP570Spyder_12/UI/Textures/LAM_GallardoLP570_11_text_FM.png" Stretch="Fill" Canvas.Top="360" Width="36"/>
        <Image x:Name="Text_miles_baked" Height="32" Canvas.Left="987" Source="game:/media/cars/LAM_GallardoLP570Spyder_12/UI/Textures/LAM_GallardoLP570_11_bckgd_1.png" Stretch="Fill" Canvas.Top="599" Width="64"/>
        <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 AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>