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

    <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="False" UsePsi="False" MaxBoost="40" MinBoost="1" MaxSpeed="100" 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="7000"/>

        <Storyboard x:Key="Gear Analog">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Textures_TOY_CamryTRD_23_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_CamryTRD_23_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_CamryTRD_23_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="Textures_TOY_CamryTRD_23_Center_png" Height="720" Source="game:/media/cars/TOY_CamryTRD_23/UI/Textures/TOY_CamryTRD_23_Center.png" Stretch="Fill" Width="1200" RenderTransformOrigin="0.5,0.5" Canvas.Left="290.417" Canvas.Top="-69">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.55" ScaleX="0.55"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_TOY_CamryTRD_23_CenterCustom_png" Height="100" Source="game:/media/cars/TOY_CamryTRD_23/UI/Textures/TOY_CamryTRD_23_CenterCustom.png" Stretch="Fill" Width="700" Canvas.Top="557.5" Canvas.Left="542.5" RenderTransformOrigin="0.5,0.5">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.55" ScaleX="0.55"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_TOY_CamryTRD_23_Driver_png" Height="720" Source="game:/media/cars/TOY_CamryTRD_23/UI/Textures/TOY_CamryTRD_23_Driver.png" Stretch="Fill" Width="410" Canvas.Left="32.75" RenderTransformOrigin="0.5,0.5">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.55" ScaleX="0.55"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Canvas x:Name="Gears" Height="50" Canvas.Left="134.499" Canvas.Top="180.334" Width="50">
            <Image x:Name="Textures_TOY_CamryTRD_23_GearD_png" Height="50" Source="game:/media/cars/TOY_CamryTRD_23/UI/Textures/TOY_CamryTRD_23_GearD.png" Stretch="Fill" Width="50" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.55" ScaleX="0.55"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_TOY_CamryTRD_23_GearN_png" Height="50" Source="game:/media/cars/TOY_CamryTRD_23/UI/Textures/TOY_CamryTRD_23_GearN.png" Stretch="Fill" Width="50" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.55" ScaleX="0.55"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_TOY_CamryTRD_23_GearR_png" Height="50" Source="game:/media/cars/TOY_CamryTRD_23/UI/Textures/TOY_CamryTRD_23_GearR.png" Stretch="Fill" Width="50" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.55" ScaleX="0.55"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
        </Canvas>
        <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}" Height="20" Canvas.Left="180.708"   Canvas.Top="491.667" Width="115" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="20"/>
        <local:FastTextBlock x:Name="Text_Clock_1" Text="{Binding Time}" Height="20.937" Canvas.Left="249"   Canvas.Top="240" Width="75" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="22"/>
        <local:FastTextBlock x:Name="Text_External_Temp" Text="{Binding ExternalTemp}" Height="20.937" Canvas.Left="137.281"   Canvas.Top="240" Width="46.5" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="22"/>
        <local:FastTextBlock x:Name="Text_Clock_2"  Text="{Binding Time}" Height="25" Canvas.Left="980"   Canvas.Top="110" Width="80" FontFamily="DG1_Arial" Foreground="Black" FontSize="22"/>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0"/>

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