<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_RS6_03">
	
    <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="False" 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" MinGear="-1" MaxGear="1" MaxRpm="10000"></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">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Graphics_D">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Graphics_R">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</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="Background_Grey" Fill="#FF3B3B3B" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0" />
        <Rectangle x:Name="Background_Center" Fill="Black" Height="270" Width="202" Canvas.Left="538.665" Canvas.Top="272.334"/>
        <Rectangle x:Name="Background_Left" Fill="Black" Height="78" Width="166" Canvas.Left="190" Canvas.Top="467.5"/>
        <Rectangle x:Name="Background_Right" Fill="Black" Height="78" Stroke="Black" Width="166" Canvas.Left="925" Canvas.Top="467.5"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="188.329" Canvas.Top="479.286" Text="{Binding Time}" FontSize="42.667" Style="{StaticResource TextBlockStyle}" Width="140" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS" Foreground="#FFFC2135"/>
			<local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="954.834" Canvas.Top="472.974" Text="{Binding TripMeter}" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" Width="120" Foreground="#FFFC2135"/>
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="877.667" Canvas.Top="500.684" Text="{Binding Odometer}" Width="200" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="#FFFC2135"/>
			<local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="558.168" Canvas.Top="349.665" Text="{Binding ExternalTemp}" FontSize="32" Style="{StaticResource TextBlockStyle}" Width="100" RenderTransformOrigin="0.5,0.5" FontFamily="DG4_PF_Ronda_Seven" Foreground="#FFFC2135"/>
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="466.833" Canvas.Top="424.331" Text="{Binding Speed}" FontSize="32" Style="{StaticResource TextBlockStyle}" Width="180" RenderTransformOrigin="0.5,0.5" FontFamily="DG4_PF_Ronda_Seven" Foreground="#FFFC2135"/>
			<Image x:Name="Graphics_km" Height="17" Canvas.Left="936.666" Source="game:/media/cars/AUD_RS6_03/UI/Textures/AUD_RS6_03_txt_km.png" Stretch="Fill" Canvas.Top="487.686" Width="29"/>
			<Image x:Name="Graphics_kmh" Height="17" Canvas.Left="651.5" Source="game:/media/cars/AUD_RS6_03/UI/Textures/AUD_RS6_03_txt_kmh.png" Stretch="Fill" Canvas.Top="452.667" Width="48"/>
			<Image x:Name="Graphics_temp" Height="25" Canvas.Left="660.5" Source="game:/media/cars/AUD_RS6_03/UI/Textures/AUD_RS6_03_txt_temp.png" Stretch="Fill" Canvas.Top="369.5" Width="34"/>
		</Canvas>
        <Canvas x:Name="Shift_Animation" Height="85" Canvas.Left="514.667" Canvas.Top="469.667" Width="240">
        	<Image x:Name="Graphics_Base" Height="21" Canvas.Left="62.667" Source="game:/media/cars/AUD_RS6_03/UI/Textures/AUD_RS6_03_Shift_Base.png" Stretch="Fill" Canvas.Top="38" Width="127"/>
        	<Image x:Name="Graphics_D" Height="33" Canvas.Left="140.333" Source="game:/media/cars/AUD_RS6_03/UI/Textures/AUD_RS6_03_Shift_D.png" Stretch="Fill" Canvas.Top="32.333" Width="26" Visibility="Hidden"/>
        	<Image x:Name="Graphics_R" Height="33" Canvas.Left="84.667" Source="game:/media/cars/AUD_RS6_03/UI/Textures/AUD_RS6_03_Shift_R.png" Stretch="Fill" Canvas.Top="32.333" Width="26"/>
        </Canvas>
        <Rectangle x:Name="Line1" Fill="#FFFC2135" Height="4" Canvas.Left="538.665" Canvas.Top="338.334" Width="202"/>
        <Rectangle x:Name="Line2" Fill="#FFFC2135" Height="4" Canvas.Left="538.665" Canvas.Top="415" Width="202"/>
        <Rectangle x:Name="Line3" Fill="#FFFC2135" Height="4" Canvas.Left="538.665" Canvas.Top="490.333" Width="202"/>
        <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>