<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.FOR_MustangDarkHorse_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="True" UseDegreesF="True" UseMPH="True" UsePsi="True" MaxBoost="40" MinBoost="1" MaxSpeed="71.52" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False"  HasShiftLights="False" HasTextTach="True" HasLapPlaceInfo="True" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="-1" MaxGear="6" MaxRpm="9000"/>
        <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 Gauge">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Textures_FOR_MustangGT_24_Fuel_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.04158"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1.26"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Textures_FOR_MustangGT_24_Fuel_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="37.950882"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Tach">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Textures_FOR_MustangGT_24_Needle_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.111" Value="39.152"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.222" Value="70.053"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="105.08"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.444" Value="142.773"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.556" Value="197.415"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="256.925"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.778" Value="333.224"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="465.518"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="540.375"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Textures_FOR_MustangGT_24_TachBar_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="28"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.111" Value="72.491"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.222" Value="94.482"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="128.911"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.444" Value="153.902"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.556" Value="198.435"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="251.046"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.778" Value="317.87"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="418.824"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="491.25"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Textures_FOR_MustangGT_24_TachBar_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.111" Value="-0.262"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.222" Value="-0.523"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="-0.784"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.444" Value="-1.046"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.556" Value="-1.31"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="-1.571"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.778" Value="-1.833"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Textures_FOR_MustangGT_24_TachBar_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.12"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.111" Value="0.058"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.222" Value="0.148"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="0.148"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.444" Value="0.278"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.556" Value="0.382"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="0.43"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.778" Value="0.522"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="0.857"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.866"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
            <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" Fill="Black" Height="720.5" Stroke="Black" Width="1281.049"/>
        <Image x:Name="Textures_FOR_MustangGT_24_Fuel_png" Height="62.271" Source="game:/media/cars/FOR_MustangDarkHorse_24/UI/Textures/FOR_MustangGT_24_Fuel.png" Stretch="Fill" Width="12.666" RenderTransformOrigin="0.5,0.5" Canvas.Top="308.674" Canvas.Left="868.1">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="1.26" ScaleX="2.0999999999999996"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_FOR_MustangGT_24_TachBar_png" Height="220" Source="game:/media/cars/FOR_MustangDarkHorse_24/UI/Textures/FOR_MustangGT_24_TachBar.png" Stretch="Fill" Width="200" RenderTransformOrigin="0.5,0.5" Canvas.Top="130" Canvas.Left="-60.5">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.6" ScaleX="0.4"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_FOR_MustangGT_24_Needle_png" Height="220" Source="game:/media/cars/FOR_MustangDarkHorse_24/UI/Textures/FOR_MustangGT_24_Needle.png" Stretch="Fill" Width="6" RenderTransformOrigin="0.5,0.5" Canvas.Left="75.25" Canvas.Top="130">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.6" ScaleX="0.4"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_FOR_MustangGT_24_Driver_png" Height="600" Source="game:/media/cars/FOR_MustangDarkHorse_24/UI/Textures/FOR_MustangGT_24_Driver.png" Stretch="Fill" Width="1280" Canvas.Left="-155" RenderTransformOrigin="0.5,0.5" Canvas.Top="11">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.7" ScaleX="0.7"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_FOR_MustangGT_24_Center_png" Height="640" Source="game:/media/cars/FOR_MustangDarkHorse_24/UI/Textures/FOR_MustangGT_24_Center.png" Stretch="Fill" Width="1280" RenderTransformOrigin="0.5,0.5" Canvas.Top="37.667" Canvas.Left="473">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.4" ScaleX="0.4"/>
                    <SkewTransform/>
                    <RotateTransform Angle="-90"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <local:FastTextBlock x:Name="Text_External_Temp_1" Text="{Binding ExternalTemp}" Height="15.37" Canvas.Left="335"   Canvas.Top="401.833" Width="40" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="16" RenderTransformOrigin="0.5,0.5">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1.05" ScaleY="1.05"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" Height="40" Canvas.Left="472.375"   Canvas.Top="288" Width="30" FontFamily="DG1_Arial" Foreground="White" FontSize="36" TextAlignment="Center"/>
        <local:FastTextBlock x:Name="Text_RPM" Text="{Binding TachText}" Height="44.667" Canvas.Left="621.333"   Canvas.Top="229" Width="115" FontFamily="DG1_Arial" Foreground="White" FontSize="26.667" TextAlignment="Right"/>
        <local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="40" Canvas.Left="279"   Canvas.Top="290" Width="68" FontFamily="DG1_Arial" Foreground="White" FontSize="36" TextAlignment="Center"/>
        <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}" Height="15.37" Canvas.Left="717.958"   Canvas.Top="402.375" Width="65.238" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="16" RenderTransformOrigin="0.5,0.5">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1.05" ScaleY="1.05"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_External_Temp_2" Text="{Binding ExternalTemp}" Height="15.37"   Width="40" FontFamily="DG1_Arial" Foreground="#FFFFB22B" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" Canvas.Left="988.676" Canvas.Top="139.63">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.99749999999999994" ScaleX="0.99749999999999994"/>
                    <SkewTransform/>
                    <RotateTransform Angle="-90"/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_Clock" Text="{Binding Time}" Height="15.37"   Width="40" FontFamily="DG1_Arial" Foreground="#FFFFB22B" RenderTransformOrigin="0.5,0.5" Canvas.Top="547" Canvas.Left="988.676">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.99749999999999994" ScaleX="0.99749999999999994"/>
                    <SkewTransform/>
                    <RotateTransform Angle="-90"/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="4.344" Opacity="0" RenderTransformOrigin="0.5,0.5">
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.95" ScaleX="0.95"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Rectangle.RenderTransform>
        </Rectangle>

        <!-- Storyboard binding controllers -->
        <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
    </Canvas>
</Page>