<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_CTSVCoupe_11">
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="Moire"/>
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="False" 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="False" MaxFuel="20" MaxGear="8" 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="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Wedge_1">
				<EasingDoubleKeyFrame KeyTime="0" Value="-103.282"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="-82.395"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="-61.671"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="-41.786"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="-21.229"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Wedge_2">
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="-41.786"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="-21.229"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="20.601"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="41.328"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="60.973"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Wedge_2">
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Wedge_3">
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="41.328"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="60.973"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="81.588"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="102.601"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Wedge_3">
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<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="Background_Grey" Fill="#FF3B3B3B" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Background_Odo" Fill="Black" Height="150" Width="300" Canvas.Left="489.5" Canvas.Top="11"/>
		<Image x:Name="Text_Baked" Height="64" Canvas.Left="574" Source="game:/media/cars/CAD_CTSVCoupe_11/UI/Textures/CAD_CTSVCoupe_11_txt_odo2.png" Stretch="Fill" Canvas.Top="53" Width="128"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<TextBlock x:Name="Text_Odometer" Canvas.Left="476" Canvas.Top="79.511" Text="{Binding Odometer}" Width="180" FontSize="21.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
		</Canvas>
        <Canvas x:Name="Tach_Dial" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280">
        	<Rectangle x:Name="Background" Fill="Black" Height="478.333" Canvas.Left="378" Canvas.Top="214" Width="524"/>
        	<Image x:Name="Wedge_1" Height="221" Canvas.Left="419.168" Source="game:/media/cars/CAD_CTSVCoupe_11/UI/Textures/CAD_CTSVCoupe_11_tach_wedge.png" Stretch="Fill" Canvas.Top="224.001" Width="221" RenderTransformOrigin="1,1">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="-103.282"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="Wedge_2" Height="221" Canvas.Left="419.168" Source="game:/media/cars/CAD_CTSVCoupe_11/UI/Textures/CAD_CTSVCoupe_11_tach_wedge.png" Stretch="Fill" Canvas.Top="224.001" Width="221" RenderTransformOrigin="1,1" Opacity="0">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="-41.786"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="Wedge_3" Height="221" Canvas.Left="419.168" Source="game:/media/cars/CAD_CTSVCoupe_11/UI/Textures/CAD_CTSVCoupe_11_tach_wedge.png" Stretch="Fill" Canvas.Top="224.001" Width="221" RenderTransformOrigin="1,1" Opacity="0">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="41.328"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Rectangle x:Name="Foreground" Fill="Black" Height="193.333" Canvas.Left="378" Canvas.Top="499" Width="524"/>
        	<Image x:Name="Alpha_Mask" Height="291" Canvas.Left="378" Source="game:/media/cars/CAD_CTSVCoupe_11/UI/Textures/CAD_CTSVCoupe_11_tach_alpha.png" Stretch="Fill" Canvas.Top="214" Width="524"/>
        </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 Tach}" Target="{StaticResource Tach}"/>
	</Canvas>
</Page>
