<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.LAM_LP6704SV_10"
	 >
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG4_PF_Rhonda"/>
            <Setter Property="Foreground" Value="#FF8CF512"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="False" UseDegreesF="True" 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="6" MaxRpm="10000"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Gear Analog">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_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_N">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.1" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.214" 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.357" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_2">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.357" 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: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: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: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: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>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_N">
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	  

	<Canvas x:Name="LayoutRoot" Background="#00000000" Width="1280" Height="720">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="NightDaySplit">
				<VisualState x:Name="Day"/>
				<VisualState x:Name="Night"/>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
        <Rectangle x:Name="MainBG" Fill="Black" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280"/>
        <Rectangle x:Name="BG_Clock" Fill="Black" Height="79.5" Canvas.Left="511.875" Canvas.Top="133.125" Width="256"/>
        <Rectangle x:Name="BG_Gear" Height="132.125" Canvas.Left="589.774" Canvas.Top="208" Width="100.125" Fill="Black"/>
        <Rectangle x:Name="BG_Odo" Fill="Black" Height="100" Canvas.Left="877.875" Canvas.Top="445.938" Width="150"/>
        <Image x:Name="txt_miles" Height="32" Canvas.Left="879.75" Source="game:/media/cars/LAM_LP6704SV_10/UI/Textures/LAM_LP6704SV_10_bckgd_1.png" Stretch="Fill" Canvas.Top="470.625" Width="64"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="406" Canvas.Top="143" Text="{Binding Time}" FontSize="32" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" RenderTransformOrigin="0.5,0.5" Foreground="#FF1EEA15" Width="300" TextAlignment="Right">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="915.817" Canvas.Top="460.656" Text="{Binding TripMeter}" Width="100" FontSize="22.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven"   RenderTransformOrigin="0.5,0.5" Foreground="#FF1EEA15">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="876" Canvas.Top="488.5" Text="{Binding Odometer}" Width="145" FontSize="22.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven"   Foreground="#FF1EEA15" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
		</Canvas>
        <Canvas x:Name="Gear_Analog" Height="64" Width="64" Canvas.Left="611.5" Canvas.Top="248.5">
        	<Image x:Name="Gear_R" Height="58" Canvas.Left="0" Source="game:/media/cars/LAM_LP6704SV_10/UI/Textures/LAM_LP6704SV_10_Gear_R.png" Stretch="Fill" Canvas.Top="0" Width="58" Panel.ZIndex="-1"/>
        	<Image x:Name="Gear_N" Height="58" Canvas.Left="0" Source="game:/media/cars/LAM_LP6704SV_10/UI/Textures/LAM_LP6704SV_10_Gear_N.png" Stretch="Fill" Canvas.Top="0" Width="58" Panel.ZIndex="-1" Visibility="Hidden"/>
        	<Image x:Name="Gear_1" Height="58" Canvas.Left="0" Source="game:/media/cars/LAM_LP6704SV_10/UI/Textures/LAM_LP6704SV_10_Gear_1.png" Stretch="Fill" Canvas.Top="0" Width="58" Panel.ZIndex="-1" Visibility="Hidden"/>
        	<Image x:Name="Gear_2" Height="58" Canvas.Left="0" Source="game:/media/cars/LAM_LP6704SV_10/UI/Textures/LAM_LP6704SV_10_Gear_2.png" Stretch="Fill" Canvas.Top="0" Width="58" Panel.ZIndex="-1" Visibility="Hidden"/>
        	<Image x:Name="Gear_3" Height="58" Canvas.Left="0" Source="game:/media/cars/LAM_LP6704SV_10/UI/Textures/LAM_LP6704SV_10_Gear_3.png" Stretch="Fill" Canvas.Top="0" Width="58" Panel.ZIndex="-1" Visibility="Hidden"/>
        	<Image x:Name="Gear_4" Height="58" Canvas.Left="0" Source="game:/media/cars/LAM_LP6704SV_10/UI/Textures/LAM_LP6704SV_10_Gear_4.png" Stretch="Fill" Canvas.Top="0" Width="58" Panel.ZIndex="-1" Visibility="Hidden"/>
        	<Image x:Name="Gear_5" Height="58" Canvas.Left="0" Source="game:/media/cars/LAM_LP6704SV_10/UI/Textures/LAM_LP6704SV_10_Gear_5.png" Stretch="Fill" Canvas.Top="0" Width="58" Panel.ZIndex="-1" Visibility="Hidden"/>
        	<Image x:Name="Gear_6" Height="58" Canvas.Left="0" Source="game:/media/cars/LAM_LP6704SV_10/UI/Textures/LAM_LP6704SV_10_Gear_6.png" Stretch="Fill" Canvas.Top="0" Width="58" Panel.ZIndex="-1" Visibility="Hidden"/>
        </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 AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>