<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.AUD_R8_20">
	
    <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="100.08" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="True" HasGAccelY="True" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="True" HasTextOdometer="False" HasTextFuel="False" MaxFuel="20.0" MinGear="-1" MaxGear="6" MaxRpm="10000"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Tach_Needle">
				<EasingDoubleKeyFrame KeyTime="0" Value="-472.047"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-247.99"/>
			</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>
		<Storyboard x:Key="Fuel Gauge">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_1">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.125" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_3">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.375" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_4">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_5">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.625" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_6">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.75" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_7">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.875" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_8">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="G Accel Horizontal">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Horizontal">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="144.739"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="G Accel Vertical">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Vertical">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-144.072"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
			<BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
			<BeginStoryboard Storyboard="{StaticResource G Accel Horizontal}"/>
			<BeginStoryboard Storyboard="{StaticResource G Accel Vertical}"/>
		</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_Black" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
		<Rectangle x:Name="Background_Grey" Fill="Black" Height="600" Canvas.Top="7" Width="1280"/>
		<Image x:Name="Graphics" Height="405" Canvas.Left="58.333" Source="game:/media/cars/AUD_R8_20/UI/Textures/AUD_R8V10Plus_16_graphics.png" Stretch="Fill" Canvas.Top="149" Width="1160"/>
		<Canvas x:Name="Fuel_Animation" Height="105" Canvas.Left="902.667" Canvas.Top="607" Width="302.666">
			<Rectangle x:Name="Fuel_1" Fill="White" Height="6" Canvas.Left="58" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_2" Fill="White" Height="6" Canvas.Left="83" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_3" Fill="White" Height="6" Canvas.Left="108" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_4" Fill="White" Height="6" Canvas.Left="133" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_5" Fill="White" Height="6" Canvas.Left="158" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_6" Fill="White" Height="6" Canvas.Left="183" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_7" Fill="White" Height="6" Canvas.Left="208" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_8" Fill="White" Height="6" Canvas.Left="233" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
		</Canvas>
		<Canvas x:Name="Temperature_Graphics" Height="105" Canvas.Left="67.667" Canvas.Top="607" Width="302.666">
			<Rectangle x:Name="Fuel_9" Fill="White" Height="6" Canvas.Left="58" Canvas.Top="29.667" Width="22"/>
			<Rectangle x:Name="Fuel_10" Fill="White" Height="6" Canvas.Left="83" Canvas.Top="29.667" Width="22"/>
			<Rectangle x:Name="Fuel_11" Fill="White" Height="6" Canvas.Left="108" Canvas.Top="29.667" Width="22"/>
			<Rectangle x:Name="Fuel_12" Fill="White" Height="6" Canvas.Left="133" Canvas.Top="29.667" Width="22"/>
		</Canvas>
		<Canvas x:Name="Tach" Height="471" Canvas.Left="336" Canvas.Top="132" Width="616">
			<Image x:Name="Tach_Needle" Height="303" Canvas.Left="188" Source="game:/media/cars/AUD_R8_20/UI/Textures/AUD_R8V10Plus_16_Needle.png" Stretch="Fill" Canvas.Top="43" Width="228" RenderTransformOrigin="0.5,0.626">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-472.047"/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="450.818" Canvas.Top="508.057" Text="{Binding Time}" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right"/>
			<local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="644.479" Canvas.Top="508.057" Text="{Binding ExternalTemp}" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right"/>
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="536" Canvas.Top="330.743" Text="{Binding Speed}" FontSize="61.333" Style="{StaticResource TextBlockStyle}" Width="200" FontFamily="Moire" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center"/>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="562" Canvas.Top="390.373" Text="{Binding Gear}" FontSize="42.667" Style="{StaticResource TextBlockStyle}" Width="150" FontFamily="Moire" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<Image x:Name="Text_Center_Graphics" Height="202" Canvas.Left="589.5" Source="game:/media/cars/AUD_R8_20/UI/Textures/AUD_R8V10Plus_16_CenterText.png" Stretch="Fill" Canvas.Top="245" Width="98"/>
			<local:FastTextBlock x:Name="Text_G_Accel" Canvas.Left="978.5" Canvas.Top="216.27" Text="{Binding GAccelText}" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_G_Accel_Null_01" Canvas.Left="862.5" Canvas.Top="325.27" Text="0.0" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_G_Accel_Null_02" Canvas.Left="978.5" Canvas.Top="431.5" Text="0.0" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_G_Accel_Null_03" Canvas.Left="1095.5" Canvas.Top="325.27" Text="0.0" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Oil_Temp_Null" Canvas.Left="95" Canvas.Top="508.057" Text="150" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right"/>
		</Canvas>
		<Canvas x:Name="G_Meter" Height="18" Canvas.Left="958" Canvas.Top="404.59" Width="18">
			<Canvas x:Name="Vertical" Height="18" Canvas.Left="0" Canvas.Top="0" Width="18" RenderTransformOrigin="0.5,0.5">
				<Canvas.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Canvas.RenderTransform>
				<Canvas x:Name="Horizontal" Height="18" Canvas.Left="0" Canvas.Top="0" Width="18" RenderTransformOrigin="0.5,0.5">
					<Canvas.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</Canvas.RenderTransform>
					<Image x:Name="Marker" Height="18" Canvas.Left="0" Source="game:/media/cars/AUD_R8_20/UI/Textures/AUD_R8V10Plus_16_G_Meter.png" Stretch="Fill" Canvas.Top="0" Width="18"/>
				</Canvas>
			</Canvas>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0"/>
		
				<!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
		<local:StoryboardController SeekPct="{Binding GAccelX}" Target="{StaticResource G Accel Horizontal}"/>
		<local:StoryboardController SeekPct="{Binding GAccelY}" Target="{StaticResource G Accel Vertical}"/>
	
		
	</Canvas>
</Page>