<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.FER_F8Tributo_20">

    <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="100.08" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="True" HasGAccelY="True" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="True" HasTextOdometer="False" HasTextFuel="True" MaxFuel="20.0" MinGear="-1" MaxGear="6" MaxRpm="8000"></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">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="F1">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.111" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="F2">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.222" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="F3">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.333" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="F4">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.444" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="F5">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.556" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="F6">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.667" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="F7">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.778" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="F8">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.889" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="F9">
                <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_FER_F8Tributo_20_GasIcon_png">
                <DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.3" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
        </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="130"/>
            </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="-61.667"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Vertical">
                <EasingDoubleKeyFrame KeyTime="0" Value="1.273"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Vertical">
                <EasingDoubleKeyFrame KeyTime="0" Value="1.273"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Tach">
            <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.ClipToBounds)" Storyboard.TargetName="Tach">
                <DiscreteBooleanKeyFrame KeyTime="0" Value="True"/>
            </BooleanAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Tach">
                <EasingDoubleKeyFrame KeyTime="0" Value="212"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="751"/>
            </DoubleAnimationUsingKeyFrames>
        </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 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_FER_F8Tributo_20_DriverLeft_png" Height="467.533" Source="game:/media/cars/FER_F8Tributo_20/UI/Textures/FER_F8Tributo_20_DriverLeft.png" Stretch="Fill" Width="584.415" Canvas.Top="2" Canvas.Left="24"/>
        <Image x:Name="Textures_FER_F8Tributo_20_DriverRight_png" Height="468.953" Source="game:/media/cars/FER_F8Tributo_20/UI/Textures/FER_F8Tributo_20_DriverRight.png" Stretch="Fill" Width="586.191" Canvas.Left="642.915" Canvas.Top="2"/>
        <Canvas x:Name="Gear" Height="187.666" Canvas.Left="1038.334" Canvas.Top="500.167" Width="187.666" RenderTransformOrigin="0.5,0.5">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Image x:Name="Textures_FER_F8Tributo_20_GearBG_png" Height="187.666" Source="game:/media/cars/FER_F8Tributo_20/UI/Textures/FER_F8Tributo_20_GearBG.png" Stretch="Fill" Width="187.666"/>
            <local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" Height="51" Canvas.Left="61.833"   Canvas.Top="72.5" Width="45.333" FontFamily="DG1_Arial" FontSize="48" TextAlignment="Center" Foreground="#FFF0A130"/>
        </Canvas>
        <Canvas x:Name="PassengerSide" Height="233" Canvas.Top="481.987" Width="1280" RenderTransformOrigin="0.5,0.5" Canvas.Left="-108">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Image x:Name="Textures_FER_F8Tributo_20_Passenger_png" Height="233" Source="game:/media/cars/FER_F8Tributo_20/UI/Textures/FER_F8Tributo_20_Passenger.png" Stretch="Fill" Width="1280"/>
            <local:FastTextBlock x:Name="Text_Gear_2" Text="{Binding Gear}" Height="85.166"   Width="70.5" Foreground="White" FontFamily="Moire" FontSize="72" TextAlignment="Center" Canvas.Left="343" Canvas.Top="93.68"/>
            <local:FastTextBlock x:Name="Text_Speed_3" Text="{Binding Speed}" Height="62" Canvas.Left="608.334"   Canvas.Top="108.27" Width="126.666" FontFamily="Moire" FontSize="48" Foreground="White" TextAlignment="Center"/>
            <Canvas x:Name="G_Meter" Height="22" Canvas.Left="940.833" Canvas.Top="127.721" Width="22">
                <Canvas x:Name="Vertical" Height="22" Width="22" RenderTransformOrigin="0.5,0.5">
                    <Canvas.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Canvas.RenderTransform>
                    <Canvas x:Name="Horizontal" Height="22" Width="22" RenderTransformOrigin="0.5,0.5">
                        <Canvas.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Canvas.RenderTransform>
                        <Ellipse x:Name="G_Ball" Fill="White" Height="22" Width="22"/>
                    </Canvas>
                </Canvas>
            </Canvas>
            <Canvas x:Name="Tach" Height="233" Width="1280">
                <Image x:Name="Textures_FER_F8Tributo_20_PassengerTach_png" Height="233" Source="game:/media/cars/FER_F8Tributo_20/UI/Textures/FER_F8Tributo_20_PassengerTach.png" Stretch="Fill" Width="1280"/>
            </Canvas>
        </Canvas>
        <Image x:Name="Textures_FER_F8Tributo_20_GasIcon_png" Height="26.666" Source="game:/media/cars/FER_F8Tributo_20/UI/Textures/FER_F8Tributo_20_GasIcon.png" Stretch="Fill" Width="26.666" Canvas.Left="1221.667" Canvas.Top="642.001"/>
        <Canvas x:Name="Text" Height="85.166" Canvas.Left="343" Canvas.Top="574.167" Width="70.5">
            <local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="274" Canvas.Left="326.106"   Canvas.Top="-424.573" Width="564" FontFamily="Moire" FontSize="250" Foreground="#FFA1C0FF" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_Speed_2" Text="{Binding Speed}" Height="39.667" Canvas.Left="-47.208"   Canvas.Top="-177.258" Width="101.667" FontFamily="Moire" FontSize="36" Foreground="#FFA1C0FF" TextAlignment="Center"/>
            <local:FastTextBlock x:Name="Text_External_Temp" Text="{Binding ExternalTemp}" Height="57"   Width="111.5" Canvas.Left="64" Canvas.Top="-560.833" FontFamily="Moire" FontSize="48" Foreground="#FFA1C0FF" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_Clock" Text="{Binding Time}" Height="72.667" Canvas.Left="318"   Canvas.Top="-571.774" Width="193" FontFamily="Moire" Foreground="#FFA1C0FF"/>
            <local:FastTextBlock x:Name="Text_Fuel" Text="{Binding FuelText}" Height="22.667" Canvas.Left="-186.333"   Canvas.Top="-150.5" Width="74" FontFamily="Moire" Foreground="#FFA1C0FF" FontSize="18" TextAlignment="Right"/>
        </Canvas>
        <Canvas x:Name="Fuel_Gauge" Height="32" Canvas.Left="73.419" Canvas.Top="387.584" Width="16.165">
            <Rectangle x:Name="F1" Fill="#FFF08C15" Height="32" Width="16.165"/>
            <Rectangle x:Name="F2" Fill="#FFF08C15" Height="32" Width="16.164" Canvas.Left="17.472"/>
            <Rectangle x:Name="F3" Fill="#FFF08C15" Height="32" Width="16.164" Canvas.Left="35"/>
            <Rectangle x:Name="F4" Fill="#FFF08C15" Height="32" Width="16.161" Canvas.Left="52.566"/>
            <Rectangle x:Name="F5" Fill="#FFF08C15" Height="32" Width="16.162" Canvas.Left="70.062"/>
            <Rectangle x:Name="F6" Fill="#FFF08C15" Height="32" Width="16.162" Canvas.Left="87.668"/>
            <Rectangle x:Name="F7" Fill="#FFF08C15" Height="32" Width="16.162" Canvas.Left="105.166"/>
            <Rectangle x:Name="F8" Fill="#FFF08C15" Height="32" Width="16.162" Canvas.Left="122.668"/>
            <Rectangle x:Name="F9" Fill="#FFF08C15" Height="32" Width="16.162" Canvas.Left="140.253"/>


        </Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0" Canvas.Left="-3.666" Canvas.Top="2.664"/>

        <!-- Storyboard binding controllers -->
        <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 Tach}" Target="{StaticResource Tach}"/>


    </Canvas>
</Page>