<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.AST_VanquishZagato_18">
	
    <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="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="8000"></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)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Shift_R">
				<EasingDoubleKeyFrame KeyTime="0" Value="0.8"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.5"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Shift_R">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.65"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.Top)" Storyboard.TargetName="Shift_R">
				<EasingDoubleKeyFrame KeyTime="0" Value="8.167"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Shift_N">
				<EasingDoubleKeyFrame KeyTime="0" Value="0.5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.8"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.5"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Shift_N">
				<EasingDoubleKeyFrame KeyTime="0" Value="0.65"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.65"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.Top)" Storyboard.TargetName="Shift_N">
				<EasingDoubleKeyFrame KeyTime="0" Value="8"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Shift_D">
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.8"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Shift_D">
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.65"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Blue_Fill">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Gear Analog}"/>
			<BeginStoryboard Storyboard="{StaticResource Tach}"/>
		</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="Black" Height="720" Width="1280" Canvas.Top="0"/>
		<Canvas x:Name="Tach_Animation" Height="328" Canvas.Left="464" Canvas.Top="40" Width="352">
			<Rectangle x:Name="Blue_Fill" Fill="#FF77B3F5" Height="216" Canvas.Left="72" Canvas.Top="48" Width="208" RenderTransformOrigin="0.5,1">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="0"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
		</Canvas>
		<Image x:Name="CenterConsole" Height="348" Canvas.Left="313.176" Source="game:/media/cars/AST_VanquishZagato_18/UI/Textures/AST_VanquishZagato_18_CenterConsole.png" Stretch="Fill" Canvas.Top="57.977" Width="654"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_Gear" Canvas.Left="1022.793" Canvas.Top="522" Text="{Binding Gear}" Width="200" FontSize="96" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" TextAlignment="Center" Foreground="#FFA2C4EA"/>
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="605.793" Canvas.Top="525.501" Text="{Binding Speed}" Width="300" FontSize="104" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="282" Canvas.Top="544.5" Text="{Binding TripMeter}" Width="150" FontSize="41.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" Foreground="White">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="319" Canvas.Top="668" Text="{Binding Time}" Width="150" FontSize="18.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="233" Canvas.Top="580.993" Text="{Binding Odometer}" Width="200" FontSize="41.333" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" FontFamily="DG1_Arial" Foreground="White">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <Image x:Name="Baked_Sport" Height="20" Canvas.Left="253" Source="game:/media/cars/AST_VanquishZagato_18/UI/Textures/AST_V12Vantages_14_txt_Sport.png" Stretch="Fill" Canvas.Top="668" Width="64"/>
            <Image x:Name="Baked_T1" Height="15" Canvas.Left="257" Source="game:/media/cars/AST_VanquishZagato_18/UI/Textures/AST_V12Vantages_14_txt_T1.png" Stretch="Fill" Canvas.Top="556" Width="20"/>
            <Image x:Name="Baked_MPH" Height="20" Canvas.Left="838" Source="game:/media/cars/AST_VanquishZagato_18/UI/Textures/AST_V12Vantages_14_txt_MPH.png" Stretch="Fill" Canvas.Top="634.127" Width="50" RenderTransformOrigin="0.5,0.5">
            	<Image.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="1.3" ScaleY="1.3"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Image.RenderTransform>
            </Image>
            <Canvas x:Name="PRND_Animation" Height="48.127" Canvas.Left="642" Canvas.Top="651" Width="191">
            	<Image x:Name="Shift_R" Height="35" Canvas.Left="66.163" Source="game:/media/cars/AST_VanquishZagato_18/UI/Textures/AST_V12Vantages_14_Shift_R.png" Stretch="Fill" Canvas.Top="8.167" Width="35" RenderTransformOrigin="0.5,0.995">
            		<Image.RenderTransform>
            			<TransformGroup>
            				<ScaleTransform ScaleX="0.8"/>
            				<SkewTransform/>
            				<RotateTransform/>
            				<TranslateTransform/>
            			</TransformGroup>
            		</Image.RenderTransform>
            	</Image>
            	<Image x:Name="Shift_N" Height="35" Canvas.Left="96.993" Source="game:/media/cars/AST_VanquishZagato_18/UI/Textures/AST_V12Vantages_14_Shift_N.png" Stretch="Fill" Canvas.Top="8" Width="35" RenderTransformOrigin="0.5,1">
            		<Image.RenderTransform>
            			<TransformGroup>
            				<ScaleTransform ScaleX="0.5" ScaleY="0.65"/>
            				<SkewTransform/>
            				<RotateTransform/>
            				<TranslateTransform/>
            			</TransformGroup>
            		</Image.RenderTransform>
            	</Image>
            	<Image x:Name="Shift_D" Height="35" Canvas.Left="128.167" Source="game:/media/cars/AST_VanquishZagato_18/UI/Textures/AST_V12Vantages_14_Shift_D.png" Stretch="Fill" Canvas.Top="8" Width="35" RenderTransformOrigin="0.5,1">
            		<Image.RenderTransform>
            			<TransformGroup>
            				<ScaleTransform ScaleX="0.5" ScaleY="0.65"/>
            				<SkewTransform/>
            				<RotateTransform/>
            				<TranslateTransform/>
            			</TransformGroup>
            		</Image.RenderTransform>
            	</Image>
            </Canvas>
            <Image x:Name="Baked_mls" Height="14" Canvas.Left="438.666" Source="game:/media/cars/AST_VanquishZagato_18/UI/Textures/AST_V12Vantages_14_txt_mls.png" Stretch="Fill" Canvas.Top="607" Width="30"/>
            <local:FastTextBlock x:Name="Text_Clock_2" Canvas.Left="813" Canvas.Top="60.75" Text="{Binding Time}" Width="150" FontSize="18.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
            <local:FastTextBlock x:Name="Text_ExternalTemp" Canvas.Left="604.5" Canvas.Top="361.5" Text="{Binding ExternalTemp}" Width="150" FontSize="16" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
		</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 Tach}" Target="{StaticResource Tach}"/>
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>