<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"
    xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
    mc:Ignorable="d"
	x:Class="DigitalGauge.FOR_RangerRaptor_19"
	 >
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
        	<Setter Property="FontFamily" Value="DG5_QuartzMS"/>
        	<Setter Property="Foreground" Value="#FFFF6E2D"/>
        	 
        	<Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="True" UseDegreesF="True" UseMPH="True" UsePsi="True" MaxBoost="0" MinBoost="0" MaxSpeed="00" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="True" MaxFuel="20" MinGear="-1" MaxGear="8" MaxRpm="8000"/>
		<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_D_png">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.11" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="gear_R_png">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.1" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>

				<Storyboard x:Key="Fuel Gauge">
					<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.Top)" Storyboard.TargetName="fuel_needle_grp">
						<EasingDoubleKeyFrame KeyTime="0" Value="162"/>
						<EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="125"/>
						<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="82"/>
						<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>

	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Gear Analog}"/>
		</EventTrigger>
	</Page.Triggers>
	  

	<Canvas x:Name="LayoutRoot" Width="1280" Height="720" Background="#FF080808">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="NightDaySplit">
				<VisualState x:Name="Day"/>
				<VisualState x:Name="Night"/>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<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 AnalogGear}" Target="{StaticResource Gear Analog}" />
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}" />
		<Canvas x:Name="main_grp" Height="0" Canvas.Left="0" Canvas.Top="0" Width="0">
			<Image x:Name="image_main_png" Height="460" Canvas.Left="540" Source="game:/media/cars/JEE_Gladiator_20/UI/Textures/JEE_Gladiator_20_main.png" Stretch="Fill" Canvas.Top="136" Width="720"/>
 <Image x:Name="needle_png_temp" Height="6" Canvas.Left="707.146" Source="game:/media/cars/JEE_Gladiator_20/UI/Textures/JEE_Gladiator_20_needle.png" Stretch="Fill" Canvas.Top="339.709" Width="36" RenderTransformOrigin="0.5,0.5">
 	<Image.RenderTransform>
 		<TransformGroup>
 			<ScaleTransform ScaleY="1" ScaleX="-1"/>
 			<SkewTransform AngleY="0" AngleX="0"/>
 			<RotateTransform Angle="0"/>
 			<TranslateTransform/>
 		</TransformGroup>
 	</Image.RenderTransform>
 </Image>
 <Canvas x:Name="fuel_needle_grp" Height="0" Canvas.Left="0" Canvas.Top="0" Width="0">
 	<Image x:Name="needle_png_fuel" Height="6" Canvas.Left="1078" Source="game:/media/cars/JEE_Gladiator_20/UI/Textures/JEE_Gladiator_20_needle.png" Stretch="Fill" Canvas.Top="257.875" Width="36"/>
 </Canvas>
 <Canvas x:Name="gear_grp" Height="0" Canvas.Left="0" Canvas.Top="0" Width="0"> 
 	<Image x:Name="gear_R_png" Height="20" Canvas.Left="887" Source="game:/media/cars/JEE_Gladiator_20/UI/Textures/JEE_Gladiator_20_R.png" Stretch="Fill" Canvas.Top="408" Width="17" RenderTransformOrigin="0.412,0.4"/>
 	<Image x:Name="gear_D_png" Height="20" Canvas.Left="938" Source="game:/media/cars/JEE_Gladiator_20/UI/Textures/JEE_Gladiator_20_D.png" Stretch="Fill" Canvas.Top="408" Width="20"/>
 </Canvas>
		</Canvas>
		<Canvas x:Name="CenterStack_grp" Height="0" Canvas.Left="0" Canvas.Top="0" Width="0">
			<Image x:Name="image_nav" Height="534" Canvas.Left="-94" Source="game:/media/cars/JEE_Gladiator_20/UI/Textures/JEE_Gladiator_20_nav.png" Stretch="Fill" Canvas.Top="93" Width="720" RenderTransformOrigin="0.5,0.5">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-90"/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
		</Canvas>
		<Canvas x:Name="bound_txt" Height="0" Canvas.Left="0" Canvas.Top="0" Width="0">
			<local:FastTextBlock x:Name="clock_txt" Height="37" Canvas.Left="-34"   Canvas.Top="336" Width="122" Foreground="#FFF0F0F0" Text="{Binding Time}" FontFamily="DG1_Arial" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontSize="30">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-90"/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="temp_cs_txt" Height="37" Canvas.Left="-31"   Canvas.Top="226" Width="122" Foreground="#FFF0F0F0" Text="{Binding ExternalTemp}" FontFamily="DG1_Arial" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontSize="24">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-90"/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="temp_main_txt" Height="37" Canvas.Left="1000"   Canvas.Top="149" Width="122" Foreground="#FFF0F0F0" Text="{Binding ExternalTemp}" FontFamily="DG1_Arial" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontSize="28"/>
			<local:FastTextBlock x:Name="speedo_txt" Height="135" Canvas.Left="851"   Canvas.Top="236" Width="122" Foreground="#FFF0F0F0" Text="{Binding Speed}" FontFamily=" " TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontSize="105"/>
			<local:FastTextBlock x:Name="trip_txt" Height="37" Canvas.Left="838"   Canvas.Top="435" Width="122" Foreground="#FFF0F0F0" Text="{Binding TripMeter}" FontFamily="DG1_Arial" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontSize="24"/>
		</Canvas>	

	
	</Canvas>
</Page>