<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"
    mc:Ignorable="d"
	x:Class="ForzaUI.SUB_BRZFE_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="13" MinBoost="1" MaxSpeed="120" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="True" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MaxGear="6" MaxRpm="9000"></local:DigitalGaugeConfig>
        <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)[3].(TranslateTransform.X)" Storyboard.TargetName="Textures_TOY_GR86_22_Fuel">
                <EasingDoubleKeyFrame KeyTime="0" Value="-70.948"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.083" Value="-65.517365333333331"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.167" Value="-60.021301333333334"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="-54.590666666666671"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="-49.160032000000008"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.417" Value="-43.663968000000011"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-38.233333333333341"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.583" Value="-32.802698666666672"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="-27.306634666666675"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="-21.876"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.833" Value="-16.245"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.917" Value="-11.303"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Textures_TOY_GR86_22_Fuel">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.234"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.083" Value="0.27572133333333337"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.167" Value="0.31794533333333336"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="0.35966666666666669"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="0.40138800000000008"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.417" Value="0.44361200000000006"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.48533333333333339"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.583" Value="0.52705466666666678"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="0.56927866666666671"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="0.611"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.833" Value="0.654"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.917" Value="0.7"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Tach">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Textures_TOY_GR86_22_Tach_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.049"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.111" Value="0.073"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.222" Value="0.098"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="0.122"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.444" Value="0.146"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.556" Value="0.268"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="0.391"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.778" Value="0.512"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="0.635"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.7"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Textures_TOY_GR86_22_Tach_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-188.836"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.111" Value="-181.998"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.222" Value="-174.661"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="-167.511"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.444" Value="-160.68"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.556" Value="-125.193"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="-89.594"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.778" Value="-54.59"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="-18.836"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Textures_TOY_GR86_22_TachRed_png">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.833" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Textures_TOY_GR86_22_TachRed_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.7"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.833" Value="0.001"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="0.062"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.127"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Textures_TOY_GR86_22_TachRed_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.833" Value="130.167"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="147.917"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="166.918"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard x:Name="Fuel_Gauge_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_Black" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Image x:Name="Textures_TOY_GR86_22_Center_png" Height="720" Source="game:/media/cars/SUB_BRZFE_22/UI/Textures/TOY_GR86_22_Center.png" Stretch="Fill" Width="1280" Canvas.Left="480" RenderTransformOrigin="0.5,0.5">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.4" ScaleX="0.4"/>
                    <SkewTransform/>
                    <RotateTransform Angle="-90"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_TOY_GR86_22_DriverBG_png" Height="720" Source="game:/media/cars/SUB_BRZFE_22/UI/Textures/TOY_GR86_22_DriverBG.png" Stretch="Fill" Width="1280" Canvas.Left="-155" RenderTransformOrigin="0.5,0.5">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.7" ScaleX="0.7"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_TOY_GR86_22_Fuel" Height="300" Source="game:/media/cars/SUB_BRZFE_22/UI/Textures/TOY_GR86_22_Tach.png" Stretch="Fill" Width="304.644" Canvas.Left="641.303" RenderTransformOrigin="0.5,0.5" Canvas.Top="260">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.7" ScaleX="0.7"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Rectangle x:Name="TachBG" Fill="#FF890000" Height="145" Canvas.Left="577.75" Canvas.Top="305.25" Width="85"/>
        <Image x:Name="Textures_TOY_GR86_22_Tach_png" Height="300" Source="game:/media/cars/SUB_BRZFE_22/UI/Textures/TOY_GR86_22_Tach.png" Stretch="Fill" Width="580" Canvas.Left="161.336" RenderTransformOrigin="0.5,0.5" Canvas.Top="225">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.7" ScaleX="0.7"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_TOY_GR86_22_TachRed_png" Height="300" Source="game:/media/cars/SUB_BRZFE_22/UI/Textures/TOY_GR86_22_TachRed.png" Stretch="Fill" Width="580" RenderTransformOrigin="0.5,0.5" Canvas.Left="160.999" Canvas.Top="225">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.7" ScaleY="0.7"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_TOY_GR86_22_Driver_png" Height="720" Source="game:/media/cars/SUB_BRZFE_22/UI/Textures/TOY_GR86_22_Driver.png" Stretch="Fill" Width="1280" Canvas.Left="-155" RenderTransformOrigin="0.5,0.5">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.7" ScaleX="0.7"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Texture_TOY_GR86_22_AC_Dirrection_png" Height="139.066" Canvas.Left="870.909" Source="game:/media/cars/SUB_BRZFE_22/UI/Textures/TOY_GR86_22_AC_Dirrection.png" Stretch="Fill" Width="123.614" Canvas.Top="11.583" Opacity="0.995"/>
        <Image x:Name="Texture_TOY_GR86_22_AC_Temp_png" Height="139.065" Canvas.Left="705.53" Source="game:/media/cars/SUB_BRZFE_22/UI/Textures/TOY_GR86_22_AC_Temp.png" Stretch="Fill" Width="123.613" Canvas.Top="12.911" Opacity="0.995"/>
        <Canvas x:Name="Text" Height="266.501" Canvas.Left="58" Canvas.Top="271.332" Width="979">
            <local:FastTextBlock x:Name="Text_Best_Lap" Text="{Binding BestLapTime}" Height="25"   Canvas.Top="88.668" Width="177" FontFamily="Moire" FontSize="20" Foreground="White" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_Current_Lap" Text="{Binding CurLapTime}" Height="25"   Canvas.Top="146.168" Width="177" FontFamily="Moire" FontSize="20" Foreground="White" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}" Height="19.165" Canvas.Left="67"   Canvas.Top="247.336" Width="87" FontFamily="Moire" FontSize="16" Foreground="White" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_External_Temp1" Text="{Binding ExternaTemp}" Height="50" Canvas.Left="645.292"   Width="89.082" FontFamily="DG5_QuartzMS" FontSize="36" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_External_Temp2" Text="{Binding ExternalTemp}" Height="11.665" Canvas.Left="931"   Canvas.Top="238.668" Width="32" FontFamily="Moire" FontSize="8" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform Angle="-90"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Clock" Text="{Binding Time}" Height="24.665" Canvas.Left="907"   Canvas.Top="68.668" Width="72" FontFamily="Moire" FontSize="20" Foreground="White" TextAlignment="Center" RenderTransformOrigin="0.5,0.5">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform Angle="-90"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Speed" Height="40" Canvas.Left="372"   Canvas.Top="186.665" Width="95" FontFamily="Moire" TextAlignment="Center" Foreground="White" FontSize="36" Text="{Binding Speed}"/>
        </Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="53" Opacity="0"/>
        <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
    </Canvas>
</Page>