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

    <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="False" MaxBoost="22" MinBoost="0" MaxSpeed="107.29" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="-1" MaxGear="1" MaxRpm="7500"></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="Gear Analog">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Textures_TOY_TacomaTRDPro_19_S_png">
                <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_TOY_TacomaTRDPro_19_N_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_TOY_TacomaTRDPro_19_R_png">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <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="Neutral_Background" Fill="Black" Height="720" Width="1280" Canvas.Top="0"/>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0"/>
        <Image x:Name="Textures_TOY_TacomaTRDPro_19_Center_png" Height="495" Source="game:/media/cars/TOY_TacomaTRDPro_19/UI/Textures/TOY_TacomaTRDPro_19_Center.png" Stretch="Fill" Width="839.62" Canvas.Left="432.38" Canvas.Top="181.31"/>
        <Image x:Name="Textures_TOY_TacomaTRDPro_19_Climate_png" Height="144.31" Source="game:/media/cars/TOY_TacomaTRDPro_19/UI/Textures/TOY_TacomaTRDPro_19_Climate.png" Stretch="Fill" Width="839.62" Canvas.Left="427.88" Canvas.Top="12.5"/>
        <Image x:Name="Textures_TOY_TacomaTRDPro_19_Driver_png" Height="695" Source="game:/media/cars/TOY_TacomaTRDPro_19/UI/Textures/TOY_TacomaTRDPro_19_Driver.png" Stretch="Fill" Width="421" Canvas.Left="10" Canvas.Top="12"/>
        <Image x:Name="Textures_TOY_TacomaTRDPro_19_ClimateSides_png" Height="144.31" Source="game:/media/cars/TOY_TacomaTRDPro_19/UI/Textures/TOY_TacomaTRDPro_19_ClimateSides.png" Stretch="Fill" Width="85.333" Canvas.Left="1182.167" Canvas.Top="562.69"/>
        <Canvas x:Name="Text" Height="516.559" Canvas.Left="106.667" Canvas.Top="123.334" Width="867.833">
            <local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="107"   Canvas.Top="187.333" Width="189" FontSize="100" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Center"/>
            <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}" Height="39.81" Canvas.Left="86.501"   Canvas.Top="481.566" Width="156.665" FontFamily="DG1_Arial" FontSize="32" Foreground="White" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_External_Temp" Text="{Binding ExternalTemp}" Height="40.666" Canvas.Left="55.001"   Width="73.333" Foreground="White" FontSize="36" FontFamily="DG1_Arial" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_Clock" Text="{Binding Time}" Height="36" Canvas.Left="768.833"   Canvas.Top="144.833" Width="99" FontSize="30" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Center"/>
        </Canvas>
        <Canvas x:Name="Gear_Analog" Height="83" Canvas.Left="83.25" Canvas.Top="582.25" Width="52">
            <Image x:Name="Textures_TOY_TacomaTRDPro_19_S_png" Height="83" Source="game:/media/cars/TOY_TacomaTRDPro_19/UI/Textures/TOY_TacomaTRDPro_19_S.png" Stretch="Fill" Width="52"/>
            <Image x:Name="Textures_TOY_TacomaTRDPro_19_N_png" Height="83" Source="game:/media/cars/TOY_TacomaTRDPro_19/UI/Textures/TOY_TacomaTRDPro_19_N.png" Stretch="Fill" Width="52"/>
            <Image x:Name="Textures_TOY_TacomaTRDPro_19_R_png" Height="83" Source="game:/media/cars/TOY_TacomaTRDPro_19/UI/Textures/TOY_TacomaTRDPro_19_R.png" Stretch="Fill" Width="52"/>
        </Canvas>

        <!-- Storyboard binding controllers -->
        <local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
    </Canvas>
</Page>