<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.ARM_GurkhaFF_14">
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="Moire"/>
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="True" UseDegreesF="True" UseMPH="True" UsePsi="True" MaxBoost="40" MinBoost="-11" MaxSpeed="120" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="True" HasLapPlaceInfo="True" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="-1" MaxGear="6" MaxRpm="5000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Gear Analog">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="R">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.1" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_1">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.214" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.356" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="M">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.1" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.214" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.356" 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_3">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.643" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_4">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.643" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.786" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_5">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.786" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.929" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_6">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.929" Value="{x:Static Visibility.Visible}"/>
				<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="Boost Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Boost_Needle">
				<EasingDoubleKeyFrame KeyTime="0" Value="-132.824"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="90"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<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="Neutral_Background" Fill="Black" Height="720" Width="1280" Canvas.Top="1" StrokeThickness="0"/>
		<Rectangle x:Name="Odo_Background" Fill="Black" Height="109.18" Canvas.Left="425" Canvas.Top="418.41" Width="412"/>
		<Rectangle x:Name="Boost_Background" Fill="Black" Height="339.5" Canvas.Left="403.88" Canvas.Top="65.91" Width="450.24"/>
		<Image x:Name="Boost_Graphics" Height="326" Canvas.Left="412" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Boost_Graphics.png" Stretch="Fill" Canvas.Top="72" Width="434"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <Image x:Name="Text_Graphics" Height="70" Canvas.Left="456" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Odo.png" Stretch="Fill" Canvas.Top="439" Width="336"/>
            <TextBlock x:Name="Text_Odometer" Canvas.Left="499.192" Canvas.Top="466.5" Text="{Binding Odometer}" Width="250" FontSize="29.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" Foreground="#FF4AEEFD" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="1.1"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_Tripmeter" Canvas.Left="532.192" Canvas.Top="425.5" Text="{Binding TripMeter}" Width="170" FontSize="29.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" Foreground="#FF4AEEFD" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="1.1"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_ExternalTemp" Canvas.Left="365.192" Canvas.Top="466.5" Text="{Binding ExternalTemp}" Width="170" FontSize="29.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" Foreground="#FF4AEEFD" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="1.1"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_Tach" Canvas.Left="361.192" Canvas.Top="202.5" Text="{Binding TachText}" Width="170" FontSize="50.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.87"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_OilTemp_NULL" Canvas.Left="358.192" Canvas.Top="268.5" Text="98" Width="170" FontSize="50.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_Coolant_NULL" Canvas.Left="358.192" Canvas.Top="335.5" Text="183" Width="170" FontSize="50.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
		</Canvas>
		<Canvas x:Name="Boost_Animation" Height="249" Canvas.Left="571.5" Canvas.Top="69" Width="249">
			<Image x:Name="Boost_Needle" Height="99" Canvas.Left="112.586" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Boost_Needle.png" Stretch="Fill" Canvas.Top="52.334" Width="27" RenderTransformOrigin="0.481,0.867">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-132.824"/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
		</Canvas>
        <Canvas x:Name="Gear_Analog" Height="80" Width="378" Canvas.Left="445" Canvas.Top="626">
        	<Rectangle x:Name="Background_1" Fill="Black" Height="74" StrokeThickness="0" Width="470" Canvas.Top="-85.5" Canvas.Left="-46.5"/>
        	<Rectangle x:Name="Background_2" Fill="Black" Height="74" StrokeThickness="0" Width="476" Canvas.Top="3.5" Canvas.Left="-49.5"/>
        	<Image x:Name="Gear_Base_2" Height="29" Canvas.Left="68" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Gear_Graphics.png" Stretch="Fill" Width="237" Canvas.Top="-62"/>
        	<Image x:Name="Gear_Base" Height="20" Canvas.Left="124" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Gear_Base.png" Stretch="Fill" Canvas.Top="31" Width="130" RenderTransformOrigin="0.5,0.5">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="2.5" ScaleY="2.5"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="R" Height="20" Canvas.Left="90" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Gear_R.png" Stretch="Fill" Canvas.Top="30.5" Width="14" RenderTransformOrigin="0.5,0.5">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="2.5" ScaleY="2.5"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="M" Height="20" Canvas.Left="234.5" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Gear_M.png" Stretch="Fill" Canvas.Top="30.5" Width="14" RenderTransformOrigin="0.5,0.5" Visibility="Hidden">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="2.5" ScaleY="2.5"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="Gear_1" Height="37" Canvas.Left="287.002" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Gear_1.png" Stretch="Fill" Canvas.Top="-66.167" Width="25" Opacity="0.995" Visibility="Hidden"/>
        	<Image x:Name="Gear_2" Height="37" Canvas.Left="242.998" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Gear_2.png" Stretch="Fill" Canvas.Top="-65.999" Width="25" Visibility="Hidden"/>
        	<Image x:Name="Gear_3" Height="37" Canvas.Left="198" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Gear_3.png" Stretch="Fill" Canvas.Top="-66" Width="25" Visibility="Hidden"/>
        	<Image x:Name="Gear_4" Height="37" Canvas.Left="153.999" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Gear_4.png" Stretch="Fill" Canvas.Top="-66.001" Width="25" Visibility="Hidden"/>
        	<Image x:Name="Gear_5" Height="37" Canvas.Left="109.006" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Gear_5.png" Stretch="Fill" Canvas.Top="-66" Width="25" Visibility="Hidden"/>
        	<Image x:Name="Gear_6" Height="37" Canvas.Left="64.991" Source="game:/media/cars/ARM_GurkhaFF_14/UI/Textures/ARM_GurkhaFF_14_Gear_6.png" Stretch="Fill" Canvas.Top="-66" Width="25" Visibility="Hidden"/>
        </Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="1" Canvas.Top="1" Opacity="0"/>
		
				<!-- Storyboard binding controllers -->
        <local:StoryboardController SeekPct="{Binding BoostAnim}" Target="{StaticResource Boost Analog}"/>
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>