<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.CAD_Escalade_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="False" 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="True" HasLapPlaceInfo="True" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="-1" MaxGear="1" MaxRpm="7500"></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="Gear Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Reticle">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="79"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="159"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Gear Analog}"/>
		</EventTrigger>
	</Page.Triggers>
	  

	<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="Neutral_Background" Fill="#FF414040" Height="720" Width="1280" Canvas.Top="0"/>
        <Rectangle x:Name="MFD_Background" Fill="Black" Height="541" Width="680" Canvas.Left="300" Canvas.Top="59"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <Image x:Name="Graphic_Odo" Height="100" Canvas.Left="512.333" Source="game:/media/cars/CAD_Escalade_12/UI/Textures/CAD_Escalade_12_Odo.png" Stretch="Fill" Canvas.Top="323.333" Width="256"/>
            <Image x:Name="Graphic_Temp_Glyph" Height="40" Canvas.Left="500.458" Source="game:/media/cars/CAD_Escalade_12/UI/Textures/CAD_Escalade_12_temp.png" Stretch="Fill" Canvas.Top="495.334" Width="40"/>
            <Image x:Name="Graphic_Mph" Height="30" Canvas.Left="697.351" Source="game:/media/cars/CAD_Escalade_12/UI/Textures/CAD_Escalade_12_MPH.png" Stretch="Fill" Canvas.Top="500.331" Width="70"/>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="777.793" Canvas.Top="463" Text="{Binding Gear}" Width="200" FontSize="48" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" TextAlignment="Center" Foreground="White"/>
			<local:FastTextBlock x:Name="Text_Temperature" Canvas.Left="312.793" Canvas.Top="468" Text="{Binding ExternalTemp}" Width="180" FontSize="42.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="506.793" Canvas.Top="463" Text="{Binding Speed}" Width="180" FontSize="48" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="371" Canvas.Top="351.993" Text="{Binding Odometer}" Width="300" FontSize="48" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" FontFamily="DG4_PF_Ronda_Seven" Foreground="White"/>
			<Canvas x:Name="PRND_Animation" Height="48.127" Canvas.Left="422" Canvas.Top="641" Width="191">
				<Rectangle x:Name="Reticle" Fill="#FFFC293E" Height="12" Canvas.Left="118.917" Canvas.Top="-414.917" Width="30" RenderTransformOrigin="0.5,0.5">
					<Rectangle.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</Rectangle.RenderTransform>
				</Rectangle>
			</Canvas>
			<Image x:Name="Graphic_PRND" Height="50" Canvas.Left="450.67" Source="game:/media/cars/CAD_Escalade_12/UI/Textures/CAD_Escalade_12_PRND.png" Stretch="Fill" Canvas.Top="129.333" Width="380"/>
		</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 AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>