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

    <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="False" HasExternalTemp="False" UseDegreesF="False" UseMPH="False" UsePsi="True" MaxBoost="32" MinBoost="-11" MaxSpeed="160" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False"  HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="True" HasTextGAccel="False" HasTextOdometer="False" HasTextFuel="True" MaxFuel="100" MinGear="-1" MaxGear="1" MaxRpm="10000"/>
        <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 Level">
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="TOY_00_Supra_WTA_FUEL">
        		<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.001"/>
        	</DoubleAnimationUsingKeyFrames>
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="TOY_00_Supra_WTA_FUEL">
        		<EasingDoubleKeyFrame KeyTime="0" Value="92"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-1.437"/>
        	</DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Tach">
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="TOY_00_Supra_WTA_Needle">
        		<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="23.472"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="49.001"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="76.87"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="105.694"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="132.484"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="158.97050000000002"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="185.457"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="213.064"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="241.931"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="268.765"/>
        	</DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Boost Gauge">
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="TOY_00_Supra_WTA_BOOST">
        		<EasingDoubleKeyFrame KeyTime="0" Value="-6.078"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-99.074"/>
        	</DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Fuel Level}"/>
			<BeginStoryboard Storyboard="{StaticResource Tach}"/>
			<BeginStoryboard Storyboard="{StaticResource Boost Gauge}"/>
		</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.5" Stroke="Black" Width="1281.049"/>
        <Image x:Name="TOY_00_Supra_WTA_FUEL" Height="210" Source="game:/media/cars/TOY_00_SupraWTA_95/UI/Textures/TOY_00_Supra_WTA_FUEL.png" Stretch="Fill" Width="51" Canvas.Left="1108.228" Canvas.Top="398.083" RenderTransformOrigin="0.5,0.5">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
        <Image x:Name="TOY_00_Supra_WTA_BOOST" Height="210" Source="game:/media/cars/TOY_00_SupraWTA_95/UI/Textures/TOY_00_Supra_WTA_FUEL.png" Stretch="Fill" Width="51" Canvas.Left="120" Canvas.Top="116.083" RenderTransformOrigin="0.5,0.5">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
        <Image x:Name="TOY_00_Supra_WTA_BG" Height="720" Source="game:/media/cars/TOY_00_SupraWTA_95/UI/Textures/TOY_00_Supra_WTA_BG.png" Stretch="Fill" Width="1280"/>
        <Image x:Name="TOY_00_Supra_WTA_Needle" Height="255" Source="game:/media/cars/TOY_00_SupraWTA_95/UI/Textures/TOY_00_Supra_WTA_Needle.png" Stretch="Fill" Width="30" Canvas.Left="625.3" Canvas.Top="350.086" RenderTransformOrigin="0.509,0.057">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
        <local:FastTextBlock x:Name="Text_Boost_Shadow25" Text="{Binding BoostText}" FontSize="93.333" Style="{StaticResource TextBlockStyle}" Foreground="Black" FontFamily=" DG1_Arial Bold" Width="245.827" TextAlignment="Center" Height="93.969" Canvas.Left="170.648" Canvas.Top="99.581" Opacity="0.1">
        	<local:FastTextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="0.8"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_Boost_Shadow50" Text="{Binding BoostText}" FontSize="93.333" Style="{StaticResource TextBlockStyle}" Foreground="Black" FontFamily=" DG1_Arial Bold" Width="245.827" TextAlignment="Center" Height="93.969" Canvas.Left="169.816" Canvas.Top="98.582" Opacity="0.24">
        	<local:FastTextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="0.8"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_Boost_Shadow75" Text="{Binding BoostText}" FontSize="93.333" Style="{StaticResource TextBlockStyle}" Foreground="Black" FontFamily=" DG1_Arial Bold" Width="245.827" TextAlignment="Center" Height="93.969" Canvas.Left="168.815" Canvas.Top="97.247" Opacity="0.25">
        	<local:FastTextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="0.8"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_Boost_Shadow100" Text="{Binding BoostText}" FontSize="93.333" Style="{StaticResource TextBlockStyle}" Foreground="Black" FontFamily=" DG1_Arial Bold" Width="245.827" TextAlignment="Center" Height="93.969" Canvas.Left="168.317" Canvas.Top="96.081">
        	<local:FastTextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="0.8"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_Boost" Text="{Binding BoostText}" FontSize="93.333" Style="{StaticResource TextBlockStyle}" Foreground="White" FontFamily=" DG1_Arial Bold" Width="245.827" TextAlignment="Center" Height="93.969" Canvas.Left="166.313" Canvas.Top="97.227">
        	<local:FastTextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="0.8"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
    	<local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" FontSize="48" Style="{StaticResource TextBlockStyle}" Foreground="White" FontFamily="DG1_Arial" Width="48.166" RenderTransformOrigin="0.5,0.5" TextAlignment="Center" Height="65.293" Canvas.Left="671.666" Canvas.Top="407.158"><local:FastTextBlock.RenderTransform><TransformGroup><ScaleTransform ScaleY="1.5"/><SkewTransform/><RotateTransform/><TranslateTransform/></TransformGroup>
    		</local:FastTextBlock.RenderTransform></local:FastTextBlock>
    	<local:FastTextBlock x:Name="Text_Fuel" Text="{Binding FuelText}" FontSize="48" Style="{StaticResource TextBlockStyle}" Foreground="White" FontFamily="DG1_Arial" Width="103.629" RenderTransformOrigin="0.5,0.5" TextAlignment="Left" Height="54.219" Canvas.Left="948.074" Canvas.Top="514.222"><local:FastTextBlock.RenderTransform><TransformGroup><ScaleTransform ScaleY="1.5" ScaleX="1.5"/><SkewTransform/><RotateTransform/><TranslateTransform/></TransformGroup>
    		</local:FastTextBlock.RenderTransform></local:FastTextBlock>
    	<local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" FontSize="48" Style="{StaticResource TextBlockStyle}" Foreground="White" FontFamily="DG1_Arial" Width="83.925" RenderTransformOrigin="0.5,0.5" TextAlignment="Left" Height="55.849" Canvas.Left="757.482" Canvas.Top="398.074"><local:FastTextBlock.RenderTransform><TransformGroup><ScaleTransform ScaleY="1.5" ScaleX="1.5"/><SkewTransform/><RotateTransform/><TranslateTransform/></TransformGroup>
    		</local:FastTextBlock.RenderTransform></local:FastTextBlock>

        <!-- Storyboard binding controllers -->
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="-8" Canvas.Top="3.917" Opacity="0"/>
        <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Level}"/>
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
		<local:StoryboardController SeekPct="{Binding BoostAnim}" Target="{StaticResource Boost Gauge}"/>
    </Canvas>
</Page>