<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.CAD_XTSLimo_13"
	 >
	
    <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="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="Gear Analog">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Shift_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="Shift_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="Shift_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>
	</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="Background_Grey" Fill="#FF454545" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280" />
		<Rectangle x:Name="Background_border" Fill="Black" Height="168.666" Canvas.Left="359.333" Canvas.Top="253.335" Width="612" />
		<Image x:Name="Background_Graphics" Height="151" Canvas.Left="367" Source="game:/media/cars/CAD_XTSLimo_13/UI/Textures/CAD_XTSLimo_13_background.png" Stretch="Fill" Canvas.Top="262" Width="596" />
		<Canvas x:Name="Shift_Animation" Height="214" Canvas.Left="274" Canvas.Top="218" Width="726">
			<Image x:Name="Shift_R" Height="16" Canvas.Left="647.5" Source="game:/media/cars/CAD_XTSLimo_13/UI/Textures/CAD_XTSLimo_13_Shift_R.png" Stretch="Fill" Canvas.Top="174.5" Width="15"/>
			<Image x:Name="Shift_N" Height="16" Canvas.Left="647" Source="game:/media/cars/CAD_XTSLimo_13/UI/Textures/CAD_XTSLimo_13_Shift_N.png" Stretch="Fill" Canvas.Top="174.5" Width="17" Visibility="Hidden"/>
			<Image x:Name="Shift_D" Height="16" Canvas.Left="648" Source="game:/media/cars/CAD_XTSLimo_13/UI/Textures/CAD_XTSLimo_13_Shift_D.png" Stretch="Fill" Canvas.Top="174.5" Width="16" Visibility="Hidden"/>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280" Canvas.Top="49">
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="350.619" Canvas.Top="338.75" Text="{Binding Odometer}" Width="100" FontSize="16" Style="{StaticResource TextBlockStyle}" FontFamily="Moire"   RenderTransformOrigin="0.5,0.5" Foreground="#FFEADF99">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.8"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_TripMeter" Canvas.Left="343.416" Canvas.Top="272.248" Text="{Binding TripMeter}" FontSize="40" Style="{StaticResource TextBlockStyle}" FontFamily="Moire" Foreground="#FF6378FD" RenderTransformOrigin="0.5,0.5" TextAlignment="Right" Width="150">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.85"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Speedo" Canvas.Left="771.277" Canvas.Top="270.082" Text="{Binding Speed}" Width="250" FontSize="45.333" Style="{StaticResource TextBlockStyle}" FontFamily="Moire"   RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Center">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Radio_Null" Canvas.Left="467.944" Canvas.Top="236.083" Text="101.5" Width="100" FontSize="21.333" Style="{StaticResource TextBlockStyle}" FontFamily="Moire"   RenderTransformOrigin="0.5,0.5" Foreground="White">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="62" Canvas.Top="52" Opacity="0"/>
		
				<!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>