<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.FOR_ShelbyRaptor_13">
	
    <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="False" UseDegreesF="False" UseMPH="True" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="120" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="True" 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="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="M">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" 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>
	</Page.Resources>
	  

	<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="Shift_Background" Fill="#FF272729" Height="538" Canvas.Left="24" Canvas.Top="75" Width="681"/>
        <Image x:Name="MFD_Graphics" Height="240" Canvas.Left="776.5" Source="game:/media/cars/FOR_ShelbyRaptor_13/UI/Textures/FOR_ShelbyRaptor_13_MFD.png" Stretch="Fill" Canvas.Top="149.5" Width="420"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <TextBlock x:Name="Text_Odometer" Canvas.Left="688.192" Canvas.Top="343.5" Text="{Binding Odometer}" Width="250" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" 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="807.192" Canvas.Top="264.5" Text="{Binding TripMeter}" Width="170" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" 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_Current_Lap" Canvas.Left="831.192" Canvas.Top="207.5" Text="{Binding CurLapTime}" Width="170" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="1.1"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
		</Canvas>
        <Canvas x:Name="Gear_Analog" Height="80" Width="378" Canvas.Left="178" Canvas.Top="500">
        	<Rectangle x:Name="Background" Fill="Black" Height="74" StrokeThickness="0" Width="374" Canvas.Top="3.5" Canvas.Left="1.5"/>
        	<Image x:Name="Gear_Base" Height="20" Canvas.Left="124" Source="game:/media/cars/FOR_ShelbyRaptor_13/UI/Textures/FOR_ShelbyRaptor_13_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/FOR_ShelbyRaptor_13/UI/Textures/FOR_ShelbyRaptor_13_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/FOR_ShelbyRaptor_13/UI/Textures/FOR_ShelbyRaptor_13_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>
        </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>