<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.POR_911GT3RS_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="False" MaxBoost="13" MinBoost="1" MaxSpeed="97.22" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="True" HasGAccelY="True" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="True" HasTextBoost="False" HasTextGAccel="True" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20.0" MinGear="-1" MaxGear="1" MaxRpm="8000"/>

        <Storyboard x:Key="Speedo Analog">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_POR_911GT3RS_23_SpeedoNeedle_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-479.7"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.143" Value="-444.595"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.286" Value="-409.578"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.429" Value="-374.618"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.571" Value="-339.859"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.714" Value="-304.972"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.857" Value="-270.063"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-249"/>
            </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)[2].(RotateTransform.Angle)" Storyboard.TargetName="FuelFill1">
                <EasingDoubleKeyFrame KeyTime="0" Value="45"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-45.156"/>
            </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="88.639"/>
            </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.1" Value="-89.723"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Gear Analog">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Textures_POR_911GT3RS_23_GearD_png">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Textures_POR_911GT3RS_23_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_POR_911GT3RS_23_GearR_png">
                <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" SourceName="LayoutRoot">
            <BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
            <BeginStoryboard Storyboard="{StaticResource G Accel Horizontal}"/>
            <BeginStoryboard Storyboard="{StaticResource G Accel Vertical}"/>
            <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_Black" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Image x:Name="Textures_POR_911GT3RS_23_Center_png" Height="520" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_Center.png" Stretch="Fill" Width="1280" RenderTransformOrigin="0.5,0.5" Canvas.Top="319.667">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.5" ScaleY="0.5"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Canvas x:Name="Driver" Height="290" Width="1187" RenderTransformOrigin="0.5,0.5" Canvas.Left="46.521" Canvas.Top="45">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.9" ScaleY="0.9"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Image x:Name="Textures_POR_911GT3RS_23_Driver1_png" Height="190" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_Driver1.png" Stretch="Fill" Width="190" Canvas.Top="45" Canvas.Left="-73.19"/>
            <Canvas x:Name="Driver_2" Height="246" Width="246" Canvas.Left="127.144">
                <Image x:Name="Textures_POR_911GT3RS_23_Driver2_png" Height="246" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_Driver2.png" Stretch="Fill" Width="246"/>
                <Image x:Name="Textures_POR_911GT3RS_23_SpeedoNeedle_png" Height="138" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_SpeedoNeedle.png" Stretch="Fill" Width="30" Canvas.Left="107.502" RenderTransformOrigin="0.508,0.891" Canvas.Top="0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform Angle="-479.7"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
            </Canvas>
            <Canvas x:Name="Driver_3" Height="246" Width="246" Canvas.Left="813.259">
                <Image x:Name="Textures_POR_911GT3RS_23_Driver3_png" Height="246" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_Driver3.png" Stretch="Fill" Width="246"/>
            </Canvas>
            <Canvas x:Name="GMeter" Height="14" Canvas.Left="885.032" Canvas.Top="161.667" Width="14">
                <Canvas x:Name="Vertical" Height="14" Width="14" RenderTransformOrigin="0.5,0.5">
                    <Canvas.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Canvas.RenderTransform>
                    <Canvas x:Name="Horizontal" Height="14" Width="14" RenderTransformOrigin="0.5,0.5">
                        <Canvas.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Canvas.RenderTransform>
                        <Image x:Name="Textures_POR_911GT3RS_23_GBall_png" Height="14" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_GBall.png" Stretch="Fill" Width="14"/>
                    </Canvas>
                </Canvas>
            </Canvas>
            <Canvas x:Name="Driver_4" Height="245" Canvas.Top="45" Width="243.666" Canvas.Left="1069.259">
                <Image x:Name="Textures_POR_911Dakar_23_Driver4BG_png" Height="190" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_Driver4BG.png" Stretch="Fill" Width="190"/>
                <Image x:Name="FuelFill1" Height="166" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_Arc.png" Stretch="Fill" Width="166" RenderTransformOrigin="0,0" Canvas.Top="79" Canvas.Left="77.666">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleY="0.55" ScaleX="0.55"/>
                            <SkewTransform/>
                            <RotateTransform Angle="45"/>
                            <TranslateTransform X="16.595" Y="16.594"/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="Textures_POR_911GT3RS_23_Driver4_png" Height="190" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_Driver4.png" Stretch="Fill" Width="190"/>
            </Canvas>
            <Canvas x:Name="Driver_Gear" Height="80" Width="196" Canvas.Left="471.334" Canvas.Top="155">
                <Image x:Name="Textures_POR_911GT3RS_23_DriverTach_png" Height="80" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_DriverTach.png" Stretch="Fill" Width="196"/>
                <Image x:Name="Textures_POR_911GT3RS_23_GearD_png" Height="32" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_GearD.png" Stretch="Fill" Width="28" Canvas.Top="20" Canvas.Left="130"/>
                <Image x:Name="Textures_POR_911GT3RS_23_GearN_png" Height="32" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_GearN.png" Stretch="Fill" Width="28" Canvas.Top="20" Canvas.Left="130"/>
                <Image x:Name="Textures_POR_911GT3RS_23_GearR_png" Height="32" Source="game:/media/cars/POR_911GT3RS_23/UI/Textures/POR_911GT3RS_23_GearR.png" Stretch="Fill" Width="28" Canvas.Top="20" Canvas.Left="130"/>


            </Canvas>
            <local:FastTextBlock x:Name="Text_Clock" Text="{Binding Time}" Height="23.809"   Width="61.905" FontFamily="DG1_Arial" Foreground="#FFB2D0FF" FontSize="20" TextAlignment="Center" Canvas.Left="-8.83" Canvas.Top="114.286"/>
            <local:FastTextBlock x:Name="Text_External_Temp" Text="{Binding ExternalTemp}" Height="23.809"   Width="61.905" FontFamily="DG1_Arial" Foreground="#FFB2D0FF" FontSize="20" TextAlignment="Right" Canvas.Top="145.001" Canvas.Left="-29.139"/>
            <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}" Height="17.857" Canvas.Left="188.255"   Canvas.Top="209.571" Width="77.733" FontFamily="DG1_Arial" Foreground="#FFB2D0FF" FontSize="16" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="33.334" Canvas.Left="531.575"   Canvas.Top="170.904" Width="61.905" FontFamily="DG1_Arial" Foreground="#FFB2D0FF" FontSize="32" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_GMeter" Text="{Binding GAccelText}" Height="12.125" Canvas.Left="921.922"   Canvas.Top="61.074" Width="28.125" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Center"/>
        </Canvas>

        <!-- Storyboard binding controllers -->
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0"/>
        <local:StoryboardController SeekPct="{Binding AnalogSpeed}" Target="{StaticResource Speedo Analog}"/>
        <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
        <local:StoryboardController SeekPct="{Binding GAccelX}" Target="{StaticResource G Accel Horizontal}"/>
        <local:StoryboardController SeekPct="{Binding GAccelY}" Target="{StaticResource G Accel Vertical}"/>
        <local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>


    </Canvas>
</Page>