<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="ForzaUI.CHE_CorvetteERay_23">
    <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" HasTachMem="False" HasClock="True" HasExternalTemp="True" UseDegreesF="True" UseMPH="True" UsePsi="False" MinBoost="0" MaxBoost="2.05" MaxSpeed="194" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="True" HasGAccelY="True" HasShiftLights="false" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="True" HasTextOdometer="True" HasTextFuel="True" MaxFuel="70" MinGear="-1" MaxGear="8" MaxRpm="7000"/>
        <BooleanToVisibilityConverter x:Key="BoolVisConverter" />
        <Storyboard x:Key="G Accel Horizontal">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Horizontal">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="105.682"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="G Accel Vertical">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Vertical">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-105.551"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Vertical">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Tach">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Textures_CHE_CorvetteZ06_23_TachBar2_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.013"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.143" Value="0.05"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.286" Value="0.11"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.429" Value="0.202"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.571" Value="0.329"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.714" Value="0.469"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.857" Value="0.608"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.75"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Textures_CHE_CorvetteZ06_23_TachBar2_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-326.562"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.143" Value="-310.055"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.286" Value="-283.485"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.429" Value="-242.927"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.571" Value="-186.574"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.714" Value="-124.932"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.857" Value="-63.333"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.Left)" Storyboard.TargetName="TachBarMove">
                <EasingDoubleKeyFrame KeyTime="0" Value="303.833"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="401.91650000000004"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="500"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="TachBarMove">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.144" Value="4.705"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="23.938"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.286" Value="30.189"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.429" Value="83.129"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="126.375"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.571" Value="167.661"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.715" Value="263.319"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="287.812"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.858" Value="359.043"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="456.75"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="TachBarMove">
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.571" Value="-0.062"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.715" Value="-0.012"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Fuel Gauge">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="FuelLevel">
                <EasingDoubleKeyFrame KeyTime="0" Value="-110.981"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="FuelLevel">
                <EasingDoubleKeyFrame KeyTime="0" Value="-0.375"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.ClipToBounds)" Storyboard.TargetName="FuelBar">
                <DiscreteBooleanKeyFrame KeyTime="0" Value="True"/>
                <DiscreteBooleanKeyFrame KeyTime="0:0:1" Value="True"/>
            </BooleanAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="FuelBar">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="112.825"/>
            </DoubleAnimationUsingKeyFrames>
        </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>
        </Storyboard>
        <Storyboard x:Key="Speed Analog"/>

    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard x:Name="Speed_Analog_BeginStoryboard" Storyboard="{StaticResource Speed Analog}"/>
        </EventTrigger>
    </Page.Triggers>


    <local:EventFire.FzTriggers>
        <local:EventFireTrigger Event="StartUp" Storyboard="{StaticResource Start Up Animation}"/>
    </local:EventFire.FzTriggers>


    <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="BG" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="BG_Grey" Fill="#FF002852" Height="362.656" Width="959.125" Canvas.Left="157.375" Canvas.Top="60.594"/>
        <Image x:Name="Textures_CHE_CorvetteZ06_23_Center_png" Height="484" Source="game:/media/cars/CHE_CorvetteERay_23/UI/Textures/CHE_CorvetteZ06_23_Center.png" Stretch="Fill" Width="812" Canvas.Left="235" RenderTransformOrigin="0.5,0.5" Canvas.Top="345">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.45" ScaleX="0.45"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_CHE_CorvetteZ06_23_TachBar_png" Height="50" Source="game:/media/cars/CHE_CorvetteERay_23/UI/Textures/CHE_CorvetteZ06_23_TachBar.png" Stretch="Fill" Width="886" RenderTransformOrigin="0.5,0.5" Canvas.Top="102" Canvas.Left="188">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.75" ScaleY="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_CHE_CorvetteZ06_23_TachBar2_png" Height="50" Source="game:/media/cars/CHE_CorvetteERay_23/UI/Textures/CHE_CorvetteZ06_23_TachBar2.png" Stretch="Fill" Width="886" RenderTransformOrigin="0.5,0.5" Canvas.Top="101.875" Canvas.Left="182.5">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.75" ScaleY="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_CHE_CorvetteZ06_23_Driver_png" Height="484" Source="game:/media/cars/CHE_CorvetteERay_23/UI/Textures/CHE_CorvetteZ06_23_Driver.png" Stretch="Fill" Width="1280" Canvas.Left="-3" RenderTransformOrigin="0.5,0.502">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform Y="-0.242"/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Rectangle x:Name="TachBarMove" Fill="White" Height="34" Canvas.Left="303.833" Canvas.Top="112.208" Width="2" RenderTransformOrigin="0.5,0.5">
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Rectangle.RenderTransform>
        </Rectangle>
        <Canvas x:Name="GMeter" Height="24" Canvas.Left="826.668" Canvas.Top="325" Width="24">
            <Canvas x:Name="Vertical" Height="24" Width="24" RenderTransformOrigin="0.5,0.5">
                <Canvas.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Canvas.RenderTransform>
                <Canvas x:Name="Horizontal" Height="24" Width="24" RenderTransformOrigin="0.5,0.5">
                    <Canvas.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Canvas.RenderTransform>
                    <Image x:Name="Textures_CHE_CorvetteZ06_23_GBall_png" Height="24" Source="game:/media/cars/CHE_CorvetteERay_23/UI/Textures/CHE_CorvetteZ06_23_GBall.png" Stretch="Fill" Width="24" RenderTransformOrigin="0.5,0.5">
                        <Image.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Image.RenderTransform>
                    </Image>
                </Canvas>
            </Canvas>
        </Canvas>
        <Canvas x:Name="FuelBar" Height="4.156" Canvas.Left="791.281" Canvas.Top="373.125" Width="112.825" ClipToBounds="True">
            <Rectangle x:Name="FuelBar1" Fill="White" Height="4.156" Width="27.375"/>
            <Rectangle x:Name="FuelBar2" Fill="White" Height="4.156" Canvas.Left="28.47" Width="27.375"/>
            <Rectangle x:Name="FuelBar3" Fill="White" Height="4.156" Canvas.Left="57.052" Width="27.375"/>
            <Rectangle x:Name="FuelBar4" Fill="White" Height="4.156" Canvas.Left="85.45" Width="27.375"/>
        </Canvas>
        <Rectangle x:Name="FuelLevel" Fill="Red" Height="10.375" Width="1.792" RenderTransformOrigin="0.5,0.5" Canvas.Top="369.811" Canvas.Left="902.314">
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Rectangle.RenderTransform>
        </Rectangle>
        <Canvas x:Name="Text" Height="720" Canvas.Left="2" Canvas.Top="-0.667" Width="1280">
            <local:FastTextBlock x:Name="Text_Speed" Height="75" Text="{Binding Speed}" Canvas.Left="544.164"   Canvas.Top="277.667" Width="183.334" FontFamily="Moire" FontSize="72" Foreground="White" TextAlignment="Center" RenderTransformOrigin="0.5,0.5">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.75" ScaleY="0.75"/>
                        <SkewTransform AngleX="-14"/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" Height="69.212" Canvas.Left="568"   Canvas.Top="168" Width="135" FontFamily="DG1_Arial" Foreground="White" FontSize="60" TextAlignment="Center" RenderTransformOrigin="0.5,0.5">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1.9" ScaleY="1.9"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0"  RenderTransformOrigin="0.5,0.5">
                <Rectangle.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.85" ScaleY="0.85"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Rectangle.RenderTransform>
            </Rectangle>
        </Canvas>
        <local:StoryboardController SeekPct="{Binding GAccelX}" Target="{StaticResource G Accel Horizontal}"/>
        <local:StoryboardController SeekPct="{Binding GAccelY}" Target="{StaticResource G Accel Vertical}"/>
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
        <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
        <local:StoryboardController SeekPct="{Binding AnalogSpeed}" Target="{StaticResource Speed Analog}"/>
    </Canvas>

</Page>

