<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="DigitalGauge.TOY_Chaser_97"
	 >

    <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="False" UseDegreesF="False" UseMPH="true" UsePsi="False" MaxBoost="40" MinBoost="1" MaxSpeed="180" 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="8000"/>

        <Storyboard x:Key="Gear Analog">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Textures_TOY_Century_97_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_TOY_Century_97_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_TOY_Century_97_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>
        <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>
    </Page.Resources>


    <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.5" Stroke="Black" Width="1281.049" />
        <Image x:Name="TOY_Chaser_97_odometer" Height="220" Source="game:/media/cars/TOY_Chaser_97/UI/Textures/TOY_Chaser_97-odometer.png" Stretch="Fill" Width="1201" Canvas.Left="42" Canvas.Top="30"/>
        <Image x:Name="TOY_Chaser_97_radio" Height="204" Source="game:/media/cars/TOY_Chaser_97/UI/Textures/TOY_Chaser_97-radio.png" Stretch="Fill" Width="885" Canvas.Left="358" Canvas.Top="277.5"/>
        <Image x:Name="TOY_Chaser_97_ac" Height="186" Source="game:/media/cars/TOY_Chaser_97/UI/Textures/TOY_Chaser_97-ac.png" Stretch="Fill" Width="695" Canvas.Left="548" Canvas.Top="510"/>
        <local:FastTextBlock x:Name="Text_Odometer" Height="256.5" Canvas.Left="358"   Text="{Binding Odometer}" Width="861.5" FontFamily="DG5_QuartzMS" FontSize="200" Foreground="#FF3D3D3D" FontStyle="Italic"/>
        <Image x:Name="TOY_Chaser_97_time" Height="135" Source="game:/media/cars/TOY_Chaser_97/UI/Textures/TOY_Chaser_97-time.png" Stretch="Fill" Width="237" Canvas.Left="280.5" Canvas.Top="510"/>
        <local:FastTextBlock x:Name="Text_Clock" Height="66" Canvas.Left="280.5"   Canvas.Top="521.168" Width="237" FontSize="52" Foreground="#FFCCE792" FontFamily="DG5_QuartzMS" TextAlignment="Center" Text="{Binding Time}"/>

        <!-- Storyboard binding controllers -->
        <Canvas x:Name="Gear" Height="280" Canvas.Left="63" Canvas.Top="387.5" Width="110">
            <Image x:Name="Textures_TOY_Century_97_GearBG_png" Height="280" Source="game:/media/cars/TOY_Chaser_97/UI/Textures/TOY_Century_97_GearBG.png" Stretch="Fill" Width="110"/>
            <Image x:Name="Textures_TOY_Century_97_GearD_png" Height="42" Source="game:/media/cars/TOY_Chaser_97/UI/Textures/TOY_Century_97_GearD.png" Stretch="Fill" Width="42" Canvas.Top="143" Canvas.Left="13"/>
            <Image x:Name="Textures_TOY_Century_97_GearN_png" Height="42" Source="game:/media/cars/TOY_Chaser_97/UI/Textures/TOY_Century_97_GearN.png" Stretch="Fill" Width="42" Canvas.Top="94.507" Canvas.Left="13"/>
            <Image x:Name="Textures_TOY_Century_97_GearR_png" Height="42" Source="game:/media/cars/TOY_Chaser_97/UI/Textures/TOY_Century_97_GearR.png" Stretch="Fill" Width="42" Canvas.Left="13" Canvas.Top="48.507"/>
        </Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0" />
        <local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
    </Canvas>
</Page>