<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_GRCorolla_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="True" UsePsi="True" MaxBoost="26.3" MinBoost="-15" MaxSpeed="120" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="True" HasGAccelY="True" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="True" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" 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">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Textures_TOY_GRCorolla_23_FuelFill_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-150.243"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Tach">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="TachFill1">
                <EasingDoubleKeyFrame KeyTime="0" Value="-120"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.125" Value="-90"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="-60"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.375" Value="-30"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="30"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="60"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="90"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="120"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="TachFill2">
                <EasingDoubleKeyFrame x:Name="easingDoubleKeyFrame" KeyTime="0" Value="-120"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.375" Value="-120"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-90"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="-60"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="-30"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="30"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="TachFill3">
                <EasingDoubleKeyFrame x:Name="easingDoubleKeyFrame1" KeyTime="0" Value="-120"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="-120"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-60"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Boost Gauge">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_TOY_GRCorolla_23_BoostNeedle_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="207.096"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="G Accel Vertical">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Vertical">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Vertical">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-124"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="G Accel Horizontal">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Horizontal">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-0.625"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Horizontal">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="125.25"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard x:Name="Fuel_Gauge_BeginStoryboard" Storyboard="{StaticResource Fuel Gauge}"/>
            <BeginStoryboard Storyboard="{StaticResource Tach}"/>
            <BeginStoryboard x:Name="Boost_Gauge_BeginStoryboard" Storyboard="{StaticResource Boost Gauge}"/>
            <BeginStoryboard x:Name="G_Accel_Vertical_BeginStoryboard" Storyboard="{StaticResource G Accel Vertical}"/>
            <BeginStoryboard x:Name="G_Accel_Horizontal_BeginStoryboard" Storyboard="{StaticResource G Accel Horizontal}"/>
        </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"/>
        <Canvas x:Name="Driver" Height="720" Canvas.Left="-145" Canvas.Top="2" Width="1280" RenderTransformOrigin="0.5,0.5">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.75" ScaleY="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Rectangle x:Name="Background_Grey" Fill="#FF1A1A1A" Height="510" Width="910" Canvas.Left="185" Canvas.Top="103"/>
            <Canvas x:Name="Tach" Height="200" Canvas.Left="440" Canvas.Top="160" Width="200">
                <Image x:Name="TachFill1" Height="200" Source="game:/media/cars/TOY_GRCorolla_23/UI/Textures/Arc_Gray.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleY="0.819375" ScaleX="0.81937499999999985"/>
                            <SkewTransform/>
                            <RotateTransform Angle="-119.99999999999999"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="TachFill2" Height="200" Source="game:/media/cars/TOY_GRCorolla_23/UI/Textures/Arc_Gray.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleY="0.819375" ScaleX="0.81937499999999985"/>
                            <SkewTransform/>
                            <RotateTransform Angle="-119.99999999999999"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="TachFill3" Height="200" Source="game:/media/cars/TOY_GRCorolla_23/UI/Textures/Arc_Gray.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleY="0.819375" ScaleX="0.81937499999999985"/>
                            <SkewTransform/>
                            <RotateTransform Angle="-119.99999999999999"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="TachFill4" Height="200" Source="game:/media/cars/TOY_GRCorolla_23/UI/Textures/Arc_Gray.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleY="0.819375" ScaleX="0.81937499999999985"/>
                            <SkewTransform/>
                            <RotateTransform Angle="-119.99999999999999"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
            </Canvas>
            <Image x:Name="Textures_TOY_GRCorolla_23_FuelFill_png" Height="14" Source="game:/media/cars/TOY_GRCorolla_23/UI/Textures/TOY_GRCorolla_23_FuelFill.png" Stretch="Fill" Width="100" RenderTransformOrigin="0.5,0.5" Canvas.Top="470.208" Canvas.Left="900.652">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.71249999999999991" ScaleX="1.0687499999999999"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_TOY_GRCorolla_23_Driver_png" Height="720" Source="game:/media/cars/TOY_GRCorolla_23/UI/Textures/TOY_GRCorolla_23_Driver.png" Stretch="Fill" Width="1280" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.71249999999999991" ScaleX="0.71249999999999991"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_TOY_GRCorolla_23_BoostNeedle_png" Height="80" Source="game:/media/cars/TOY_GRCorolla_23/UI/Textures/TOY_GRCorolla_23_BoostNeedle.png" Stretch="Fill" Width="30" RenderTransformOrigin="0.5,-0.25" Canvas.Top="390.688" Canvas.Left="311.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.71249999999999991" ScaleX="0.71249999999999991"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Canvas x:Name="GMeter" Height="14" Width="14" RenderTransformOrigin="0.5,0.5" Canvas.Top="405.458" Canvas.Left="901.612">
                <Canvas.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.71249999999999991" ScaleX="0.71249999999999991"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Canvas.RenderTransform>
                <Canvas x:Name="Vertical" Height="14" Width="14" RenderTransformOrigin="0.5,0.5">
                    <Canvas.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Canvas.RenderTransform>
                    <Canvas x:Name="Horizontal" Height="14" Width="14" RenderTransformOrigin="0.5,0.5">
                        <Canvas.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Canvas.RenderTransform>
                        <Canvas x:Name="GBall" Height="14" Width="14">
                            <Image x:Name="Textures_TOY_GRCorolla_23_GMeterBall_png" Height="14" Source="game:/media/cars/TOY_GRCorolla_23/UI/Textures/TOY_GRCorolla_23_GMeterBall.png" Stretch="Fill" Width="14"/>
                        </Canvas>
                    </Canvas>
                </Canvas>
            </Canvas>
            <local:FastTextBlock x:Name="Text_ExternalTemp1" Text="{Binding ExternalTemp}" Height="35"   Width="83.111" Foreground="White" FontFamily="DG1_Arial" FontSize="36" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" Canvas.Top="238.475" Canvas.Left="270.299">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.71249999999999991" ScaleX="0.71249999999999991"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Clock1" Text="{Binding Time}" Height="35"   Width="85" Foreground="White" FontFamily="DG1_Arial" FontSize="36" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" Canvas.Top="238.475" Canvas.Left="910.406">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.71249999999999991" ScaleX="0.71249999999999991"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}" Height="16.333"   Width="76.75" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="16" Canvas.Top="489.425" Canvas.Left="281.831" RenderTransformOrigin="0.5,0.5">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.95" ScaleX="0.95"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="55"   Width="100" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Center" FontSize="48" RenderTransformOrigin="0.5,0.5" Canvas.Top="239.942" Canvas.Left="590">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.95" ScaleX="1.2349999999999999"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
        </Canvas>
        <local:FastTextBlock x:Name="Text_Clock2" Text="{Binding Time}" Height="15"   Width="40" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" Canvas.Left="919.54" Canvas.Top="203.833" FontSize="10">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="-90"/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <Image x:Name="Toyota_logo" Height="134.884" Source="game:/media/cars/TOY_GRCorolla_23/UI/Textures/Toyota logo.png" Stretch="Fill" Width="162.13" Canvas.Left="997.435" Canvas.Top="307.558" RenderTransformOrigin="0.5,0.5">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform Angle="-90"/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
        <local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" Height="86.579"   Width="55.735" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Center" FontSize="73.333" RenderTransformOrigin="0.5,0.5" Canvas.Top="321.375" Canvas.Left="468.798"><local:FastTextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleY="0.95" ScaleX="1.2349999999999999"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</local:FastTextBlock.RenderTransform></local:FastTextBlock>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="53" Opacity="0"/>
        <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
        <local:StoryboardController SeekPct="{Binding BoostAnim}" Target="{StaticResource Boost Gauge}"/>
        <local:StoryboardController SeekPct="{Binding GAccelX}" Target="{StaticResource G Accel Horizontal}"/>
        <local:StoryboardController SeekPct="{Binding GAccelY}" Target="{StaticResource G Accel Vertical}"/>
    </Canvas>
</Page>