<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.AUD_TTRS_10">
	
    <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="False" UseMPH="False" UsePsi="True" MaxBoost="17.6" MinBoost="-11" MaxSpeed="120" HasAbsLight="True" HasStmLight="True" HasTcsLight="True" HasGAccelX="True" HasGAccelY="True" HasShiftLights="True" HasTextTach="True" HasLapPlaceInfo="True" HasTextBoost="True" HasTextGAccel="True" HasTextOdometer="True" HasTextFuel="True" MaxFuel="20" MaxGear="8" MaxRpm="10000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Boost Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Boost_Fill">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="80"/>
			</DoubleAnimationUsingKeyFrames>
		</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_Grey" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Background_Center" Fill="Black" Height="309" Width="230" Canvas.Left="525.5" Canvas.Top="280.5"/>
        <Rectangle x:Name="Background_Left" Fill="Black" Height="100" Width="170" Canvas.Left="246" Canvas.Top="492"/>
        <Rectangle x:Name="Background_Right" Fill="Black" Height="100" Width="170" Canvas.Left="877" Canvas.Top="496"/>
        <Image x:Name="Clock_Icon" Canvas.Left="260.5" Canvas.Top="515.5" Height="32" Source="game:/media/cars/AUD_TTRS_10/UI/Textures/AUD_TTRS_10_icon.PNG" Stretch="Fill" Width="32"/>
        <Image x:Name="Boost_Graphics" Canvas.Left="512.5" Canvas.Top="301.5" Height="64" Source="game:/media/cars/AUD_TTRS_10/UI/Textures/AUD_TTRS_10_boost.PNG" Stretch="Fill" Width="256"/>
        <Canvas x:Name="Boost_Analog" Height="128" Width="128" Canvas.Left="617" Canvas.Top="247.5">
        	<Rectangle x:Name="Boost_Fill" Fill="White" Height="10" Canvas.Left="29" Canvas.Top="58" Width="0"/>
        </Canvas>
        <Image x:Name="Text_OilTemp_Baked" Canvas.Left="665.5" Canvas.Top="342.5" Height="24" Source="game:/media/cars/AUD_TTRS_10/UI/Textures/AUD_TTRS_10_txt_temp.PNG" Stretch="Fill" Width="50"/>
        <Image x:Name="Text_kmh_baked" Canvas.Left="646.5" Canvas.Top="494.5" Height="20" Source="game:/media/cars/AUD_TTRS_10/UI/Textures/AUD_TTRS_10_txt_kmh.PNG" Stretch="Fill" Width="70"/>
        <Image x:Name="Text_km_baked" Canvas.Left="895.5" Canvas.Top="533" Height="18" Source="game:/media/cars/AUD_TTRS_10/UI/Textures/AUD_TTRS_10_txt_km.PNG" Stretch="Fill" Width="40"/>
        <Image x:Name="Text_ExteriorTemp_Baked" Canvas.Left="649.5" Canvas.Top="405.5" Height="30" Source="game:/media/cars/AUD_TTRS_10/UI/Textures/AUD_TTRS_10_txt_temp.PNG" Stretch="Fill" Width="64"/>
        <Rectangle x:Name="Line1" Fill="White" Height="3" Canvas.Left="536" Canvas.Top="378.5" Width="208"/>
		<Rectangle x:Name="Line1_Alias" Fill="White" Height="6" Canvas.Left="536" Canvas.Top="377" Width="208" Opacity="0.25"/>
        <Rectangle x:Name="Line2" Fill="White" Height="3" Canvas.Left="536" Canvas.Top="458.5" Width="208"/>
		<Rectangle x:Name="Line2_Alias" Fill="White" Height="6" Canvas.Left="536" Canvas.Top="457" Width="208" Opacity="0.25"/>
        <Rectangle x:Name="Line3" Fill="White" Height="3" Canvas.Left="536" Canvas.Top="539.5" Width="208"/>
		<Rectangle x:Name="Line3_Alias" Fill="White" Height="6" Canvas.Left="536" Canvas.Top="538" Width="208" Opacity="0.25"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<Rectangle x:Name="Gear_Background" Fill="White" Height="24" Canvas.Left="724" Canvas.Top="459" Width="20"/>
			<local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="509.5" Canvas.Top="400.5" Text="{Binding ExternalTemp}" FontSize="32" Style="{StaticResource TextBlockStyle}" Width="150" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.15"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="252.164" Canvas.Top="514.5" Text="{Binding Time}" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS"/>
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="513.793" Canvas.Top="481" Text="{Binding Speed}" Width="136.416" FontSize="34.667" Style="{StaticResource TextBlockStyle}"/>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="692.126" Canvas.Top="456.209" Text="{Binding Gear}" Width="50" FontSize="24" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Foreground="Black">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform Y="1" X="1"/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="895.192" Canvas.Top="525.5" Text="{Binding TripMeter}" FontSize="25.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" Width="120"/>
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="879.183" Canvas.Top="502.511" Text="{Binding Odometer}" Width="140" FontSize="25.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" Height="32.083" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.95"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_NULL_OilTemp" Height="35" Canvas.Left="594.164"   Text="87" Canvas.Top="338.5" Width="80" TextAlignment="Right" LineHeight="24" FontSize="26.667" Foreground="White" FontFamily="Moire" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.2"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
		</Canvas>
        <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 BoostAnim}" Target="{StaticResource Boost Analog}"/>
	</Canvas>
</Page>