<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.BMW_M4_14"
	DataContext="{Binding RelativeSource={x:Static RelativeSource.Self}}">
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="DG1_Arial"/>
            <Setter Property="Foreground" Value="#FFff2C3D"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="False" UseDegreesF="False" UseMPH="True" UsePsi="False" MaxBoost="13" MinBoost="1" MaxSpeed="00" 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" MaxGear="8" MaxRpm="10000"></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>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Start_Up_Mask">
				<EasingDoubleKeyFrame KeyTime="0" Value="1280"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1280"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="Start_Up_Mask">
				<EasingDoubleKeyFrame KeyTime="0" Value="720"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="720"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	  

	<Canvas x:Name="LayoutRoot" Background="#FF2D2D2D" Width="1280" Height="720">
		<Rectangle x:Name="Background_Black" Fill="Black" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280"/>
		<Canvas x:Name="Graphics" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280">
			<Image x:Name="BMW_Logo" Height="32" Canvas.Left="278" Source="game:/media/cars/BMW_M4_14/UI/Textures/MBW_M4_14_Logo.png" Stretch="Fill" Canvas.Top="497" Width="92"/>
			<Image x:Name="Tach_Graphics" Height="98" Canvas.Left="782" Source="game:/media/cars/BMW_M4_14/UI/Textures/MBW_M4_14_Shift_Graphics.png" Stretch="Fill" Canvas.Top="499" Width="366"/>
			<Image x:Name="Txt_Mi" Height="20" Canvas.Left="504.5" Source="game:/media/cars/BMW_M4_14/UI/Textures/MBW_M4_14_txt_mi.png" Stretch="Fill" Canvas.Top="615" Width="25"/>
			<Image x:Name="Txt_Mph" Height="25" Canvas.Left="668" Source="game:/media/cars/BMW_M4_14/UI/Textures/MBW_M4_14_txt_mph.png" Stretch="Fill" Canvas.Top="513" Width="50"/>
			<Rectangle x:Name="Odo_Line" Fill="White" Height="3" Canvas.Left="533.5" Canvas.Top="631.5" Width="225"/>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0">
			<TextBlock x:Name="Text_Time" Canvas.Left="555" Canvas.Top="562.165" Text="{Binding Time}" FontSize="37.333" Style="{StaticResource TextBlockStyle}" Width="150" Foreground="White" TextAlignment="Center"/>
			<TextBlock x:Name="Text_Speed" Canvas.Left="356.333" Canvas.Top="470.833" Text="{Binding Speed}" FontSize="64" Style="{StaticResource TextBlockStyle}" Width="300" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<TextBlock x:Name="Text_Odometer" Canvas.Left="488.834" Canvas.Top="638.5" Text="{Binding Odometer}" Width="300" FontSize="34.667" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Left">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Text_Trip_Odo" Canvas.Left="562.5" Canvas.Top="638.5" Text="{Binding TripMeter}" Width="200" FontSize="34.667" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.95"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Text_Gear" TextAlignment="Center" Canvas.Left="932" Canvas.Top="465.333" Text="{Binding Gear}" Width="55.124" FontSize="82.667" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
		</Canvas>
		<Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0"/>
	</Canvas>
</Page>