<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_BroncoRaptor_22"
	 >

    <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="62.58" 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="7000"/>
        <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="(ed:Arc.EndAngle)" Storyboard.TargetName="Fuel">
                <EasingDoubleKeyFrame KeyTime="0" Value="64"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="295"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Speed Analog">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ed:Arc.EndAngle)" Storyboard.TargetName="Speedo">
                <EasingDoubleKeyFrame KeyTime="0" Value="44"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.143" Value="83"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.286" Value="120"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.429" Value="158"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.571" Value="196"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.714" Value="235"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.857" Value="273"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="312"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_FOR_BroncoRaptop_22_Needle2_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-134.476"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.143" Value="-96.66"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.286" Value="-59.082"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.429" Value="-20.92"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.571" Value="16.461"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.714" Value="54.508"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.857" Value="92.165"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="130.91"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Tach">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ed:Arc.EndAngle)" Storyboard.TargetName="Tach">
                <EasingDoubleKeyFrame KeyTime="0" Value="44"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.143" Value="83"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.286" Value="121"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.429" Value="159"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.571" Value="197"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.714" Value="235"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.857" Value="273"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="311"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_FOR_BroncoRaptop_22_Needle1_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-134.278"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.143" Value="-96.559"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.286" Value="-58.603"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.429" Value="-20.959"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.571" Value="16.326"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.714" Value="54.184"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.857" Value="92.382"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="130.647"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Gear Analog">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Textures_FOR_BroncoRaptop_22_GearD_png">
                <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="Textures_FOR_BroncoRaptop_22_GearN_png">
                <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="Textures_FOR_BroncoRaptop_22_GearR_png">
                <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="Textures_FOR_BroncoRaptop_22_GearDLarge_png">
                <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="Textures_FOR_BroncoRaptop_22_GearNLarge_png">
                <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="Textures_FOR_BroncoRaptop_22_GearRLarge_png">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
            <BeginStoryboard x:Name="Speed_Analog_BeginStoryboard" Storyboard="{StaticResource Speed Analog}"/>
            <BeginStoryboard Storyboard="{StaticResource Tach}"/>
            <BeginStoryboard x:Name="Gear_Analog_BeginStoryboard" Storyboard="{StaticResource Gear Analog}"/>
        </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"/>
        <ed:Arc x:Name="Tach" ArcThickness="1" ArcThicknessUnit="Percent" EndAngle="44" Fill="#FF85E6FF" Height="247" Stretch="None" Stroke="Black" Width="247" RenderTransformOrigin="0.5,0.5" Canvas.Top="115.919" Canvas.Left="231.5">
            <ed:Arc.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.95" ScaleX="0.95"/>
                    <SkewTransform/>
                    <RotateTransform Angle="-180"/>
                    <TranslateTransform/>
                </TransformGroup>
            </ed:Arc.RenderTransform>
        </ed:Arc>
        <ed:Arc x:Name="Speedo" ArcThickness="1" ArcThicknessUnit="Percent" EndAngle="44" Fill="#FF85E6FF" Height="247" Stretch="None" Stroke="Black" Width="247" RenderTransformOrigin="0.5,0.5" Canvas.Top="115.919" Canvas.Left="802.925">
            <ed:Arc.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.95" ScaleX="0.95"/>
                    <SkewTransform/>
                    <RotateTransform Angle="-180"/>
                    <TranslateTransform/>
                </TransformGroup>
            </ed:Arc.RenderTransform>
        </ed:Arc>
        <ed:Arc x:Name="Fuel" ArcThickness="1" ArcThicknessUnit="Percent" Fill="#FF85E6FF" Height="70" Stretch="None" Width="70" Opacity="0.825" RenderTransformOrigin="0.5,0.5" EndAngle="64" Canvas.Top="75.699" Canvas.Left="733.567">
            <ed:Arc.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.95" ScaleX="0.95"/>
                    <SkewTransform/>
                    <RotateTransform Angle="-180"/>
                    <TranslateTransform/>
                </TransformGroup>
            </ed:Arc.RenderTransform>
        </ed:Arc>
        <Image x:Name="Textures_FOR_BroncoRaptop_22_Driver_png" Height="490" Source="game:/media/cars/FOR_BroncoRaptor_22/UI/Textures/FOR_BroncoRaptop_22_Driver.png" Stretch="Fill" Width="1280" RenderTransformOrigin="0.5,0.5" Canvas.Top="-14.844">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.71249999999999991" ScaleX="0.71249999999999991"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_FOR_BroncoRaptop_22_Center_png" Height="720" Source="game:/media/cars/FOR_BroncoRaptor_22/UI/Textures/FOR_BroncoRaptop_22_Center.png" Stretch="Fill" Width="1140" RenderTransformOrigin="0.5,0.5" Canvas.Top="194.344" Canvas.Left="72.375">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.35624999999999996" ScaleX="0.35624999999999996"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_FOR_BroncoRaptop_22_Needle1_png" Height="32" Source="game:/media/cars/FOR_BroncoRaptor_22/UI/Textures/FOR_BroncoRaptop_22_Needle.png" Stretch="Fill" Width="6" RenderTransformOrigin="0.583,5.042" Canvas.Top="114.027" Canvas.Left="351.619">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.71249999999999991" ScaleX="0.71249999999999991"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform X="-0.11779999999999999" Y="-34.5192"/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_FOR_BroncoRaptop_22_Needle2_png" Height="32" Source="game:/media/cars/FOR_BroncoRaptor_22/UI/Textures/FOR_BroncoRaptop_22_Needle.png" Stretch="Fill" Width="6" RenderTransformOrigin="0.556,5.042" Canvas.Top="114.027" Canvas.Left="921.746">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.71249999999999991" ScaleX="0.71249999999999991"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform X="-0.0798" Y="-34.5192"/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Canvas x:Name="Gears" Height="183.25" Width="96" Canvas.Top="172.612" Canvas.Left="309.533" RenderTransformOrigin="0.5,0.5">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.95" ScaleX="0.95"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Image x:Name="Textures_FOR_BroncoRaptop_22_GearD_png" Height="40" Source="game:/media/cars/FOR_BroncoRaptor_22/UI/Textures/FOR_BroncoRaptop_22_GearD.png" Stretch="Fill" Width="26" RenderTransformOrigin="0.5,0.5" Canvas.Top="143.25" Canvas.Left="48.501">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_FOR_BroncoRaptop_22_GearN_png" Height="40" Source="game:/media/cars/FOR_BroncoRaptor_22/UI/Textures/FOR_BroncoRaptop_22_GearN.png" Stretch="Fill" Width="26" RenderTransformOrigin="0.5,0.5" Canvas.Top="143.25" Canvas.Left="30.499">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_FOR_BroncoRaptop_22_GearR_png" Height="40" Source="game:/media/cars/FOR_BroncoRaptor_22/UI/Textures/FOR_BroncoRaptop_22_GearR.png" Stretch="Fill" Width="26" RenderTransformOrigin="0.5,0.5" Canvas.Top="143.25" Canvas.Left="12.001">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_FOR_BroncoRaptop_22_GearDLarge_png" Height="122" Source="game:/media/cars/FOR_BroncoRaptor_22/UI/Textures/FOR_BroncoRaptop_22_GearDLarge.png" Stretch="Fill" Width="96" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_FOR_BroncoRaptop_22_GearNLarge_png" Height="122" Source="game:/media/cars/FOR_BroncoRaptor_22/UI/Textures/FOR_BroncoRaptop_22_GearNLarge.png" Stretch="Fill" Width="96" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_FOR_BroncoRaptop_22_GearRLarge_png" Height="122" Source="game:/media/cars/FOR_BroncoRaptor_22/UI/Textures/FOR_BroncoRaptop_22_GearRLarge.png" Stretch="Fill" Width="96" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
        </Canvas>
        <local:FastTextBlock x:Name="Text_External_Temp1" Text="{Binding ExternalTemp}" Height="20"   Width="55" Foreground="White" FontFamily="DG1_Arial" FontSize="18" TextAlignment="Right" Canvas.Top="354.344" Canvas.Left="405.875" RenderTransformOrigin="0.5,0.5">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.95" ScaleX="0.95"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_External_Temp2" Text="{Binding ExternalTemp}" Height="15.25"   Width="27.25" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="11" Canvas.Top="434.975" Canvas.Left="805.569" RenderTransformOrigin="0.5,0.5">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.95" ScaleX="0.95"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_Clock" Text="{Binding Time}" Height="15.25" Canvas.Left="480.431"   Canvas.Top="433.669" Width="27.25" FontFamily="DG1_Arial" Foreground="White" FontSize="14" RenderTransformOrigin="0.5,0.5">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.95" ScaleX="0.95"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}" Height="20" Canvas.Left="899.875"   Canvas.Top="354.344" Width="55" Foreground="White" FontFamily="DG1_Arial" FontSize="18" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.95" ScaleX="0.95"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="81.666" Canvas.Left="850"   Canvas.Top="191.302" Width="150" FontFamily="DG1_Arial" FontSize="72" Foreground="White" TextAlignment="Center" RenderTransformOrigin="0.5,0.5">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.95" ScaleX="0.95"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <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}"/>
        <local:StoryboardController SeekPct="{Binding AnalogSpeed}" Target="{StaticResource Speed Analog}"/>
        <local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
    </Canvas>
</Page>