<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.KOE_Gemera_24"
	 >

    <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="True" 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="True" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="-1" MaxGear="1" MaxRpm="8000"/>
        <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="Tach">
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="TachMask">
        		<EasingDoubleKeyFrame KeyTime="0" Value="1.002"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="0.778"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.556"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="0.356"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="0.224"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
        	</DoubleAnimationUsingKeyFrames>
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="TachMask">
        		<EasingDoubleKeyFrame KeyTime="0" Value="-1"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="141.052"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="282.586"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="409.879"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="494.526"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="637.173"/>
        	</DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Gear Analog">
        	<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="HON_AccordAerodeck_89_GearD">
        		<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
        		<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
        	</ObjectAnimationUsingKeyFrames>
        	<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="HON_AccordAerodeck_89_GearN">
        		<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="HON_AccordAerodeck_89_GearR">
        		<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
        		<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
        		<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
        	</ObjectAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<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="KOE_Logo" Height="720" Source="game:/media/cars/KOE_Gemera_24/UI/Textures/KOe Logo.png" Stretch="Fill" Width="1280"/>
<Rectangle x:Name="TachMask" Fill="Black" Height="32.056" Canvas.Left="5.222" Stroke="Black" Canvas.Top="652.444" Width="1274.778" RenderTransformOrigin="0.5,0.5">
	<Rectangle.RenderTransform>
		<TransformGroup>
			<ScaleTransform/>
			<SkewTransform/>
			<RotateTransform/>
			<TranslateTransform/>
		</TransformGroup>
	</Rectangle.RenderTransform>
</Rectangle>

        <!-- Storyboard binding controllers -->
<local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="94.388" Canvas.Left="66.979"   Canvas.Top="125.859" Width="194.444" FontFamily="DG1_Arial" FontSize="96" Foreground="White" TextAlignment="Center"/>
<local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" Height="58.278" Canvas.Left="90.09"   Canvas.Top="30.081" Width="154" FontFamily="DG1_Arial" FontSize="53.333" Foreground="White" TextAlignment="Center"/>
        <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 Tach}" Target="{StaticResource Tach}"/>

    </Canvas>
</Page>