<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="DigitalGauge.KTM_XBowGT4_18"
	 >
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG1_Arial"/>
            <Setter Property="Foreground" Value="White"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="True" UseDegreesF="False" UseMPH="False" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="120" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="True" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="False" HasTextFuel="True" MaxFuel="18.5" MinGear="-1" MaxGear="1" 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="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Color_Fill">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.124" Value="0.145"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Tach}"/>
		</EventTrigger>
	</Page.Triggers>
	  

	<Canvas x:Name="LayoutRoot" Background="Black" 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_Light_Grey" Fill="#FFD4D7D3" Height="352" Canvas.Left="344" Canvas.Top="184" Width="592"/>
		<Rectangle x:Name="Background_1" Fill="#FFD4D7D3" Height="352" Canvas.Left="304" Canvas.Top="184" Width="672"/>
		<Canvas x:Name="Tach_Animation" Height="558" Canvas.Left="138" Canvas.Top="92" Width="1030">
			<Rectangle x:Name="Color_Fill" Fill="Black" Height="88" Canvas.Left="228" Canvas.Top="164" Width="548" RenderTransformOrigin="0,0.5">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
		</Canvas>
		<Image x:Name="Tach_Mask" Height="280" Canvas.Left="348.828" Source="game:/media/cars/KTM_XBowGT4_18/UI/Textures/KTM_XBowGT4_18_Tach_Mask.png" Stretch="Fill" Canvas.Top="246" Width="582"/>
		<Rectangle x:Name="Top_Banner" Fill="#FF918A94" Height="72" Canvas.Left="304" Canvas.Top="184" Width="672"/>
		<Canvas x:Name="Lines" Height="416" Canvas.Left="304" Canvas.Top="144" Width="672">
			<Rectangle x:Name="Speedo_Line" Fill="Black" Height="2" Canvas.Left="140.338" Canvas.Top="256.742" Width="120"/>
			<Rectangle x:Name="Speedo_Line_AntiAlias" Fill="Black" Height="4" Canvas.Left="140.338" Canvas.Top="255.614" Width="120" Opacity="0.25"/>
			<Rectangle x:Name="Temperature_Line" Fill="Black" Height="2" Canvas.Left="74.219" Canvas.Top="299.804" Width="120"/>
			<Rectangle x:Name="Temperature_Line_AntiAlias" Fill="Black" Height="4" Canvas.Left="74.219" Canvas.Top="298.853" Width="120" Opacity="0.25"/>
			<Rectangle x:Name="Clock_Line" Fill="Black" Height="2" Canvas.Left="74.219" Canvas.Top="351.158" Width="120"/>
			<Rectangle x:Name="Clock_Line_AntiAlias" Fill="Black" Height="4" Canvas.Left="74.219" Canvas.Top="350.207" Width="120" Opacity="0.25"/>
			<Rectangle x:Name="Gear_Line" Fill="Black" Height="2" Canvas.Left="260.872" Canvas.Top="355.147" Width="120"/>
			<Rectangle x:Name="Gear_Line_AntiAliasing" Fill="Black" Height="4" Canvas.Left="260.872" Canvas.Top="354.196" Width="120" Opacity="0.25"/>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="349.706" Canvas.Top="353.084" Text="{Binding Speed}" FontSize="37.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="180" Foreground="Black" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.15"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Temperature" Canvas.Left="348.438" Canvas.Top="412.263" Text="{Binding ExternalTemp}" FontSize="25.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="100" Foreground="Black" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.15"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Lap_Time" Canvas.Left="336.075" Canvas.Top="466.589" Text="{Binding CurLapTime}" FontSize="24" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="160" Foreground="Black" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.05"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="544" Canvas.Top="403.702" Text="{Binding Gear}" FontSize="85.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="160" Foreground="Black" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.15"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Null_1" Canvas.Left="771.487" Canvas.Top="363.404" Text="21" FontSize="25.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="100" Foreground="Black" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Null_2" Canvas.Left="771.487" Canvas.Top="393.822" Text="22" FontSize="25.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="100" Foreground="Black" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Null_3" Canvas.Left="762.294" Canvas.Top="429.156" Text="3" FontSize="25.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="100" Foreground="Black" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Fuel" Canvas.Left="810.974" Canvas.Top="456.086" Text="{Binding FuelText}" FontSize="29.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="100" Foreground="Black" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.15"/>
						<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 Tach}" Target="{StaticResource Tach}"/>
	</Canvas>
</Page>