<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="DigitalGauge.HEN_Velociraptor6x6_18"
	 >
	
    <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="False" HasExternalTemp="False" UseDegreesF="False" UseMPH="True" UsePsi="True" MaxBoost="20" MinBoost="0" 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="Gear Analog">
			<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_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_D">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</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">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Fuel_Color">
				<EasingDoubleKeyFrame KeyTime="0" Value="-31.1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="32.884"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_Color_2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Boost Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Temp_Color">
				<EasingDoubleKeyFrame KeyTime="0" Value="-43.677"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="36.332"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
			<BeginStoryboard Storyboard="{StaticResource Boost 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" Fill="Black" Height="720" Width="804" Canvas.Left="233"/>
        <Rectangle x:Name="Background_Dark" Fill="Black" Height="720" Canvas.Top="0.5" Width="1280"/>
		<Image x:Name="CenterGraphics" Height="395" Canvas.Left="480" Source="game:/media/cars/HEN_Velociraptor6x6_18/UI/Textures/FOR_F150Raptor_17_CenterGraphics.png" Stretch="Fill" Canvas.Top="269" Width="733"/>
		<Image x:Name="Side_Shift" Height="12" Canvas.Left="832" Source="game:/media/cars/HEN_Velociraptor6x6_18/UI/Textures/FOR_F150Raptor_17_Gear.png" Stretch="Fill" Canvas.Top="64" Width="16" RenderTransformOrigin="0.5,0.5">
			<Image.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="-90"/>
					<TranslateTransform/>
				</TransformGroup>
			</Image.RenderTransform>
		</Image>
		<Canvas x:Name="Rotate" Height="720" Canvas.Left="-416" Canvas.Top="-12" Width="1280" RenderTransformOrigin="0.5,0.5">
			<Canvas.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="-90"/>
					<TranslateTransform/>
				</TransformGroup>
			</Canvas.RenderTransform>
			<Rectangle x:Name="Water_Color" Fill="White" Height="81.014" Canvas.Left="513.49" Canvas.Top="186.341" Width="51.333" RenderTransformOrigin="1,1">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-15"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
			<Rectangle x:Name="Oil_Pressure_Color" Fill="White" Height="81.014" Canvas.Left="378.49" Canvas.Top="186.341" Width="51.333" RenderTransformOrigin="1,1">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-15"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
			<Canvas x:Name="Boost_Gauge" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280">
				<Rectangle x:Name="Temp_Color" Fill="White" Height="81.014" Canvas.Left="760" Canvas.Top="187.673" Width="66.827" RenderTransformOrigin="1,1">
					<Rectangle.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform Angle="-43.677"/>
							<TranslateTransform/>
						</TransformGroup>
					</Rectangle.RenderTransform>
				</Rectangle>
			</Canvas>
			<Canvas x:Name="Fuel_Gauge" Height="250" Canvas.Top="96" Width="250" Canvas.Left="569">
				<Rectangle x:Name="Fuel_Color_2" Fill="#FF469AC6" Height="76.667" Canvas.Left="60.667" Canvas.Top="86.333" Width="62.333" Visibility="Hidden"/>
				<Rectangle x:Name="Fuel_Color" Fill="#FF469AC6" Height="92.988" Canvas.Left="70.664" Canvas.Top="92.037" Width="51.333" RenderTransformOrigin="1,1">
					<Rectangle.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform Angle="-31.1"/>
							<TranslateTransform/>
						</TransformGroup>
					</Rectangle.RenderTransform>
				</Rectangle>
			</Canvas>
			<Image x:Name="Graphics" Height="340" Canvas.Left="351" Source="game:/media/cars/HEN_Velociraptor6x6_18/UI/Textures/FOR_F150Raptor_17_Graphics.png" Stretch="Fill" Canvas.Top="168" Width="551"/>
			<Image x:Name="Extension_Left" Height="340" Canvas.Left="291" Source="game:/media/cars/HEN_Velociraptor6x6_18/UI/Textures/FOR_F150Raptor_17_Extension.png" Stretch="Fill" Canvas.Top="168" Width="60"/>
			<Image x:Name="Extension_Right" Height="340" Canvas.Left="902" Source="game:/media/cars/HEN_Velociraptor6x6_18/UI/Textures/FOR_F150Raptor_17_Extension.png" Stretch="Fill" Canvas.Top="168" Width="60"/>
			<Canvas x:Name="Text" Height="720" Width="1280" Canvas.Top="49">
				<local:FastTextBlock x:Name="Text_TripMeter" Canvas.Left="290.111" Canvas.Top="413.25" Text="{Binding TripMeter}" Width="221.528" FontSize="24" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"   RenderTransformOrigin="0.5,0.5"/>
				<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="430.472" Canvas.Top="271.606" Text="{Binding Speed}" Width="221.528" FontSize="56" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"   RenderTransformOrigin="0.5,0.5">
					<local:FastTextBlock.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1.1"/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</local:FastTextBlock.RenderTransform>
				</local:FastTextBlock>
			</Canvas>
			<Canvas x:Name="Gear_Analog" Height="92" Width="538" Canvas.Left="333" Canvas.Top="436">
				<Image x:Name="Gear_D" Height="21" Canvas.Left="288.96" Source="game:/media/cars/HEN_Velociraptor6x6_18/UI/Textures/FOR_F150Raptor_17_Shift_D.png" Stretch="Fill" Canvas.Top="32.991" Width="17" Visibility="Hidden"/>
				<Image x:Name="Gear_N" Height="21" Canvas.Left="271.009" Source="game:/media/cars/HEN_Velociraptor6x6_18/UI/Textures/FOR_F150Raptor_17_Shift_N.png" Stretch="Fill" Canvas.Top="32.991" Width="17" Visibility="Hidden"/>
				<Image x:Name="Gear_R" Height="21" Canvas.Left="254.009" Source="game:/media/cars/HEN_Velociraptor6x6_18/UI/Textures/FOR_F150Raptor_17_Shift_R.png" Stretch="Fill" Canvas.Top="32.991" Width="17"/>
			</Canvas>
		</Canvas>
        <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 BoostAnim}" Target="{StaticResource Boost Analog}"/>
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>