<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_00_VT18X_18">

    <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="True" HasStmLight="True" HasTcsLight="True" HasGAccelX="True" HasGAccelY="True" HasShiftLights="True" HasTextTach="True" HasLapPlaceInfo="True" HasTextBoost="True" HasTextGAccel="True" HasTextOdometer="True" HasTextFuel="True" MaxFuel="11.2" MaxGear="8" MaxRpm="11500"></local:DigitalGaugeConfig>
        <Storyboard x:Key="Shift Lights Progress"/>
        <Storyboard x:Key="Shift Lights Flash" RepeatBehavior="Forever"/>
        <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="Tach">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Textures_SUB_00_VT18X_18_tach_bar_mask_animate">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.013"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Textures_SUB_00_VT18X_18_tach_bar_mask_animate">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="257.167"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
            <BeginStoryboard Storyboard="{StaticResource Shift Lights Flash}"/>
            <BeginStoryboard x:Name="Tach_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>
        <Canvas Height="720" Width="1280">
            <Rectangle x:Name="bg" Fill="Black" Height="720" Stroke="Black" Width="1280"/>
            <Image x:Name="Textures_SUB_00_VT18X_18_template_png" Height="720" Source="game:/media/cars/SUB_00_VT18X_18/UI/Textures/SUB_00_VT18X_18_template.png" Stretch="Fill" Width="956.598"/>
            <Image x:Name="Textures_SUB_00_VT18X_18_tach_bar_mask_png" Height="720" Source="game:/media/cars/SUB_00_VT18X_18/UI/Textures/SUB_00_VT18X_18_tach bar mask.png" Stretch="Fill" Width="956.598"/>
            <Image x:Name="Textures_SUB_00_VT18X_18_tach_bar_png" Height="720" Source="game:/media/cars/SUB_00_VT18X_18/UI/Textures/SUB_00_VT18X_18_tach bar.png" Stretch="Fill" Width="956.598"/>
            <Rectangle x:Name="Textures_SUB_00_VT18X_18_tach_bar_mask_animate" Fill="Black" Height="305" Canvas.Left="207" Stroke="Black" Canvas.Top="52" Width="521" RenderTransformOrigin="0.5,0.5">
                <Rectangle.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Rectangle.RenderTransform>
            </Rectangle>
            <Image x:Name="Textures_SUB_00_VT18X_18_text_png" Height="720" Source="game:/media/cars/SUB_00_VT18X_18/UI/Textures/SUB_00_VT18X_18_text.png" Stretch="Fill" Width="956.598"/>
            <Canvas x:Name="Text" Height="596.495" Canvas.Left="97.002" Canvas.Top="103.006" Width="798.16">
                <local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" Height="251" Canvas.Left="648.16"   Canvas.Top="345.495" Width="150" Foreground="#FFFB1C5B" FontSize="225" RenderTransformOrigin="0.5,0.5" FontFamily="DG2_LCD" TextAlignment="Center">
                    <local:FastTextBlock.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform X="132"/>
                        </TransformGroup>
                    </local:FastTextBlock.RenderTransform></local:FastTextBlock>
                <local:FastTextBlock x:Name="Text_Current_Lap" Text="{Binding CurLapTime}" Height="123" Canvas.Left="11.501"   Canvas.Top="397.995" Width="427.333" Foreground="#FF0188B1" FontFamily="DG1_Arial" FontWeight="Bold" RenderTransformOrigin="0.5,0.5" FontSize="100" TextAlignment="Right">
                    <local:FastTextBlock.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform X="3" Y="6"/>
                        </TransformGroup>
                    </local:FastTextBlock.RenderTransform>
                </local:FastTextBlock>
                <local:FastTextBlock x:Name="Text_Lap_Min" Text="{Binding LapMin}" Height="60" Canvas.Left="447.998"   Canvas.Top="481.494" Width="53.5" Foreground="#FF0188B1" FontFamily="DG1_Arial" FontWeight="Bold" FontSize="25"/>
                <local:FastTextBlock x:Name="Text_Boost" Text="{Binding BoostTest}" Height="33.166" Canvas.Left="18.831"   Canvas.Top="181.667" Width="35.667" Foreground="#FF0188B1" FontFamily="DG1_Arial" FontWeight="Bold" FontSize="45"/>
                <local:FastTextBlock x:Name="Text_Tach" Text="{Binding TachText}" Height="37.75" Canvas.Left="605.75"   Canvas.Top="283.5" Width="162.25" Foreground="#FF0188B1" FontSize="34" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
                    <local:FastTextBlock.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform X="-120" Y="-129"/>
                        </TransformGroup>
                    </local:FastTextBlock.RenderTransform>
                </local:FastTextBlock>


            </Canvas>


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

        <!-- Storyboard binding controllers -->
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Shift Lights Progress}"/>
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>


    </Canvas>
</Page>