<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"
    xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
    mc:Ignorable="d"
	x:Class="DigitalGauge.HON_19_CRXWTA_90"
	 >

    <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="False" UsePsi="False" MaxBoost="40" MinBoost="1" MaxSpeed="160" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False"  HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="True" MaxFuel="20" MinGear="-1" MaxGear="1" MaxRpm="10400"/>
        <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 Level">
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="HON_19_CRXWTA_9_Fuel_Level">
        		<EasingDoubleKeyFrame KeyTime="0" Value="91.379"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-0.463"/>
        	</DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Tach">
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="HON_19_CRXWTA_90_Needle">
        		<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="268.6"/>
        	</DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Fuel Level}"/>
			<BeginStoryboard Storyboard="{StaticResource Tach}"/>
		</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_Black" Fill="Black" Height="720.5" Stroke="Black" Width="1281.049"/>
        <Image x:Name="HON_19_CRXWTA_9_Fuel_Level" Height="244" Source="game:/media/cars/HON_19_CRXWTA_90/UI/Textures/HON_19_CRXWTA_90_Fuel_Level.png" Stretch="Fill" Width="51" Canvas.Left="120.003" Canvas.Top="381.993" RenderTransformOrigin="0.5,0.5">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
        <Image x:Name="HON_19_CRXWTA_90_BG" Height="720" Source="game:/media/cars/HON_19_CRXWTA_90/UI/Textures/HON_19_CRXWTA_90_BG.png" Stretch="Fill" Width="1280"/>
        <Image x:Name="HON_19_CRXWTA_90_Needle" Height="255" Source="game:/media/cars/HON_19_CRXWTA_90/UI/Textures/HON_19_CRXWTA_90_Needle.png" Stretch="Fill" Width="30" Canvas.Left="625.3" Canvas.Top="349" RenderTransformOrigin="0.511,0.059">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
    	<local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" FontSize="64" Style="{StaticResource TextBlockStyle}" Foreground="White" FontFamily="DG1_Arial" Width="48.166" RenderTransformOrigin="0.5,0.5" TextAlignment="Center" Height="63.738" Canvas.Left="671.666" Canvas.Top="393.769"><local:FastTextBlock.RenderTransform><TransformGroup><ScaleTransform ScaleY="1.5"/><SkewTransform/><RotateTransform/><TranslateTransform/></TransformGroup>
    		</local:FastTextBlock.RenderTransform></local:FastTextBlock>
    	<local:FastTextBlock x:Name="Text_Fuel" Text="{Binding FuelText}" FontSize="48" Style="{StaticResource TextBlockStyle}" Foreground="#FFF794D1" FontFamily="DG1_Arial" Width="103.629" RenderTransformOrigin="0.5,0.5" TextAlignment="Left" Height="54.219" Canvas.Left="208.741" Canvas.Top="519.553"><local:FastTextBlock.RenderTransform><TransformGroup><ScaleTransform ScaleY="1.5" ScaleX="1.5"/><SkewTransform/><RotateTransform/><TranslateTransform/></TransformGroup>
    		</local:FastTextBlock.RenderTransform></local:FastTextBlock>
    	<local:FastTextBlock x:Name="Text_ODO" Text="{Binding Odometer}" FontSize="16" Style="{StaticResource TextBlockStyle}" Foreground="White" FontFamily="DG1_Arial" Width="73.702" RenderTransformOrigin="0.5,0.5" TextAlignment="Center" Height="20.959" Canvas.Left="689.63" Canvas.Top="528.686"><local:FastTextBlock.RenderTransform><TransformGroup><ScaleTransform ScaleY="1.5" ScaleX="1.5"/><SkewTransform/><RotateTransform/><TranslateTransform/></TransformGroup>
    		</local:FastTextBlock.RenderTransform></local:FastTextBlock>
    	<local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" FontSize="48" Style="{StaticResource TextBlockStyle}" Foreground="White" FontFamily="DG1_Arial" Width="83.925" RenderTransformOrigin="0.5,0.5" TextAlignment="Left" Height="55.849" Canvas.Left="754.482" Canvas.Top="401.074"><local:FastTextBlock.RenderTransform><TransformGroup><ScaleTransform ScaleY="1.5" ScaleX="1.5"/><SkewTransform/><RotateTransform/><TranslateTransform/></TransformGroup>
    		</local:FastTextBlock.RenderTransform></local:FastTextBlock>

        <!-- Storyboard binding controllers -->
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="-8" Canvas.Top="4" Opacity="0"/>
        <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Level}"/>
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
    </Canvas>
</Page>