<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.AUD_R8GT_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" HasClock="True" HasExternalTemp="True" UseDegreesF="False" UseMPH="False" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="100.08" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="True" HasGAccelY="True" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="True" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20.0" MinGear="-1" MaxGear="7" MaxRpm="10000"/>

        <Storyboard x:Key="Tach">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Tach_Needle">
                <EasingDoubleKeyFrame KeyTime="0" Value="-471.676"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="-449.5094"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="-427.3428"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="-405.1762"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="-382.794"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-360.843"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="-338.45977777777779"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="-316.07655555555556"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="-293.69333333333333"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="-271.505"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-247.669"/>
            </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="Fuel Gauge">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Fuel">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.001"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Fuel">
                <EasingDoubleKeyFrame KeyTime="0" Value="63.086"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Boost Analog">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Boost_001">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.125" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Boost_002">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Boost_003">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.375" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Boost_004">
                <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.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
        </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="-113"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <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="115"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
            <BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
            <BeginStoryboard Storyboard="{StaticResource Boost 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_Black" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Image x:Name="Textures_AUD_RS3Sedan_20_BGLayout_png" Height="720" Source="game:/media/cars/AUD_R8GT_23/UI/Textures/AUD_RS3Sedan_20_BGLayout.png" Stretch="Fill" Width="1280" RenderTransformOrigin="0.5,0.5" Canvas.Top="-90">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_AUD_RS3Sedan_20_dial_light_b_png_Copy" Height="186" Source="game:/media/cars/AUD_R8GT_23/UI/Textures/AUD_RS3Sedan_20_dial light_a.png" Stretch="Fill" Width="189.432" RenderTransformOrigin="0.5,0.5" Canvas.Top="177.75" Canvas.Left="784.284">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform X="120" Y="-0.75"/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_AUD_RS3Sedan_20_dial_light_a_png" Height="186" Source="game:/media/cars/AUD_R8GT_23/UI/Textures/AUD_RS3Sedan_20_dial light_a.png" Stretch="Fill" Width="189.432" RenderTransformOrigin="0.5,0.5" Canvas.Top="177.75" Canvas.Left="784.284">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform X="-0.75" Y="-0.75"/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <ed:Arc x:Name="Dial_Light_B" ArcThickness="1" ArcThicknessUnit="Percent" EndAngle="540" Fill="Black" Height="128" Stretch="None" Stroke="Black" StartAngle="180" Width="128" RenderTransformOrigin="0.5,0.5" Canvas.Top="205.25" Canvas.Left="814.875">
            <ed:Arc.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform X="120"/>
                </TransformGroup>
            </ed:Arc.RenderTransform>
        </ed:Arc>
        <ed:Arc x:Name="Dial_Light_A" ArcThickness="1" ArcThicknessUnit="Percent" EndAngle="540" Fill="Black" Height="128" Stretch="None" Stroke="Black" StartAngle="180" Width="128" Canvas.Top="205.25" Canvas.Left="814.875" RenderTransformOrigin="0.5,0.5">
            <ed:Arc.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </ed:Arc.RenderTransform>
        </ed:Arc>
        <Image x:Name="Textures_AUD_RS3Sedan_20_dials_png" Height="720" Source="game:/media/cars/AUD_R8GT_23/UI/Textures/AUD_RS3Sedan_20_dials.png" Stretch="Fill" Width="1280" RenderTransformOrigin="0.5,0.5" Canvas.Top="-90">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Canvas x:Name="Tach" Height="471" Width="616" Canvas.Top="40.125" Canvas.Left="335" RenderTransformOrigin="0.5,0.5">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Image x:Name="Tach_Needle" Height="303" Canvas.Left="192.5" Source="game:/media/cars/AUD_R8GT_23/UI/Textures/AUD_RS3Sedan_20_Needle.png" Stretch="Fill" Canvas.Top="40" Width="228" RenderTransformOrigin="0.5,0.626">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform Angle="-472.047"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
        </Canvas>
        <Image x:Name="Textures_AUD_RS3Sedan_20_face_png" Height="300" Source="game:/media/cars/AUD_R8GT_23/UI/Textures/AUD_RS3Sedan_20_face.png" Stretch="Fill" Width="300" RenderTransformOrigin="0.5,0.5" Canvas.Left="123.625" Canvas.Top="-37.5">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform X="366" Y="160.5"/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Canvas x:Name="TransTemp" Height="4.833" Width="21.5" RenderTransformOrigin="0.5,0.5" Canvas.Top="380.021" Canvas.Left="889.312">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.82500000000000007" ScaleX="0.82500000000000007"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform X="8.25" Y="-2.25"/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Rectangle x:Name="Boost_001" Height="4.833" Width="21.5" Fill="White" Canvas.Top="-0.334" Canvas.Left="-0.334"/>
            <Rectangle x:Name="Boost_002" Height="4.833" Width="21.5" Fill="White" Canvas.Top="-0.334" Canvas.Left="23.666"/>
            <Rectangle x:Name="Boost_003" Height="4.833" Width="21.5" Fill="White" Canvas.Top="-0.334" Canvas.Left="47.666"/>
            <Rectangle x:Name="Boost_004" Height="4.833" Width="21.5" Fill="White" Canvas.Top="-0.334" Canvas.Left="71.416"/>


        </Canvas>
        <Canvas x:Name="G_Meter" Height="18" Width="18" RenderTransformOrigin="0.5,0.5" Canvas.Top="301.192" Canvas.Left="876.25">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform X="-574.5" Y="15"/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Canvas x:Name="Vertical" Height="18" Canvas.Left="0" Canvas.Top="0" Width="18" RenderTransformOrigin="0.5,0.5">
                <Canvas.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Canvas.RenderTransform>
                <Canvas x:Name="Horizontal" Height="18" Canvas.Left="0" Canvas.Top="0" Width="18" RenderTransformOrigin="0.5,0.5">
                    <Canvas.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Canvas.RenderTransform>
                    <Image x:Name="Marker" Height="18" Canvas.Left="0" Source="game:/media/cars/AUD_R8GT_23/UI/Textures/AUD_R8V10Plus_16_G_Meter.png" Stretch="Fill" Canvas.Top="0" Width="18"/>
                </Canvas>
            </Canvas>
        </Canvas>
        <Image x:Name="Textures_AUD_R8GT_23_DriverLeft_png" Height="300" Source="game:/media/cars/AUD_R8GT_23/UI/Textures/AUD_R8GT_23_DriverLeft.png" Stretch="Fill" Width="300" RenderTransformOrigin="0.5,0.5" Canvas.Left="-60" Canvas.Top="105">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.60000000000000009" ScaleX="0.60000000000000009"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Rectangle x:Name="DriverRightBG" Fill="#FF1A1A1A" Height="162.5" Width="120" Canvas.Top="160.75" Canvas.Left="1119" RenderTransformOrigin="0.5,0.5">
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.8" ScaleX="0.8"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Rectangle.RenderTransform>
        </Rectangle>
        <Rectangle x:Name="Fuel" Fill="White" Height="126.333" Width="120" RenderTransformOrigin="0.5,0.5" Canvas.Top="182.367" Canvas.Left="1119">
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.8" ScaleX="0.8"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Rectangle.RenderTransform>
        </Rectangle>
        <Image x:Name="Textures_AUD_R8GT_23_DriverRight_png" Height="300" Source="game:/media/cars/AUD_R8GT_23/UI/Textures/AUD_R8GT_23_DriverRight.png" Stretch="Fill" Width="300" RenderTransformOrigin="0.5,0.5" Canvas.Left="1041" Canvas.Top="105">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.60000000000000009" ScaleX="0.60000000000000009"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Canvas x:Name="Text" Height="185.29" Canvas.Left="322.833" Canvas.Top="216.375" Width="413.334">
            <local:FastTextBlock x:Name="Text_Odometer" Height="18.667" Text="{Binding Odometer}" Canvas.Left="203.836"   Canvas.Top="138.959" Width="71.585" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="18" RenderTransformOrigin="0.5,0.5">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.85" ScaleY="0.85"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Clock" Height="18.667" Text="{Binding Time}" Canvas.Left="220"   Canvas.Top="166.623" Width="62.167" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="18"/>
            <local:FastTextBlock x:Name="Text_External_Temp" Text="{Binding ExternalTemp}" Height="18.667" Canvas.Left="351.167"   Canvas.Top="166.623" Width="62.167" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="18"/>
            <local:FastTextBlock x:Name="Text_GMeter" Height="18.667" Text="{Binding GAccelText}"   Width="62.167" FontFamily="DG1_Arial" Foreground="Red" TextAlignment="Center" FontSize="14"/>
            <local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="55" Canvas.Left="262.167"   Canvas.Top="27.548" Width="110" Foreground="White" FontFamily="Moire" FontSize="48" TextAlignment="Center"/>
            <local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" Height="42.75" Canvas.Left="262.167"   Canvas.Top="72.625" Width="110" Foreground="White" FontFamily="Moire" FontSize="36" TextAlignment="Center"/>
        </Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0"/>

        <!-- Storyboard binding controllers -->
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
        <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
        <local:StoryboardController SeekPct="{Binding BoostAnim}" Target="{StaticResource Boost Analog}"/>
        <local:StoryboardController SeekPct="{Binding GAccelY}" Target="{StaticResource G Accel Vertical}"/>
        <local:StoryboardController SeekPct="{Binding GAccelX}" Target="{StaticResource G Accel Horizontal}"/>


    </Canvas>
</Page>