<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.ROL_Dawn_16">
	
    <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="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="Gear_R">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_N">
				<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.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_D">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</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_Black" Fill="Black" Height="273" Canvas.Left="22" Canvas.Top="306" Width="1236" />
        <Rectangle x:Name="White_Line" Fill="#FFA5B9E8" Height="3" Canvas.Left="38" Canvas.Top="384" Width="1206"/>
		<Rectangle x:Name="White_Line_Alias" Fill="#FFA5B9E8" Height="7" Canvas.Left="38" Canvas.Top="381.996" Width="1206" Opacity="0.4"/>
        <Canvas x:Name="Gear_Analog" Height="536" Canvas.Left="864" Canvas.Top="152" Width="416">
        	<Image x:Name="Gear_R" Height="135" Canvas.Left="331" Source="game:/media/cars/rol_dawn_16/UI/Textures/ROL_Dawn_16_gear_R.png" Stretch="Fill" Canvas.Top="201" Width="48"/>
        	<Image x:Name="Gear_N" Height="135" Canvas.Left="331.666" Source="game:/media/cars/rol_dawn_16/UI/Textures/ROL_Dawn_16_gear_N.png" Stretch="Fill" Canvas.Top="201" Width="48" Visibility="Hidden"/>
        	<Image x:Name="Gear_D" Height="135" Canvas.Left="331.666" Source="game:/media/cars/rol_dawn_16/UI/Textures/ROL_Dawn_16_gear_D.png" Stretch="Fill" Canvas.Top="201" Width="48" Visibility="Hidden"/>
        </Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<TextBlock x:Name="Text_Odometer" Canvas.Left="389.183" Canvas.Top="345.011" Text="{Binding Odometer}" Width="250" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White" Opacity="0.995">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Text_TripMeter" Canvas.Left="644.683" Canvas.Top="345.011" Text="{Binding TripMeter}" Width="150" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Text_Speed" Canvas.Left="177.183" Canvas.Top="345.011" Text="{Binding Speed}" Width="150" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Text_External_Temp" Canvas.Left="928.683" Canvas.Top="345.011" Text="{Binding ExternalTemp}" Width="150" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<Image x:Name="Icon_Clock" Height="30" Canvas.Left="206" Source="game:/media/cars/rol_dawn_16/UI/Textures/ROL_Dawn_16_icon_clock.png" Stretch="Fill" Canvas.Top="349.5" Width="30"/>
			<Image x:Name="graphics_km" Height="21" Canvas.Left="661" Source="game:/media/cars/rol_dawn_16/UI/Textures/ROL_Dawn_16_text_km.png" Stretch="Fill" Canvas.Top="358" Width="34"/>
			<Image x:Name="graphics_kmh" Height="21" Canvas.Left="336" Source="game:/media/cars/rol_dawn_16/UI/Textures/ROL_Dawn_16_text_kmh.png" Stretch="Fill" Canvas.Top="358.5" Width="60" Opacity="0.995"/>
			<Image x:Name="graphics_temperature" Height="22" Canvas.Left="994" Source="game:/media/cars/rol_dawn_16/UI/Textures/ROL_Dawn_16_text_temp.png" Stretch="Fill" Canvas.Top="354" Width="120"/>
		</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>