<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_Z4_11"
	 >
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG1_Arial"/>
            <Setter Property="Foreground" Value="#FFFF8A17"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="True" UseDegreesF="True" UseMPH="True" UsePsi="False" MaxBoost="13" MinBoost="1" MaxSpeed="125" 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>
		</Storyboard>
	</Page.Resources>

	<Canvas x:Name="LayoutRoot" Background="#FF2D2D2D" Width="1280" Height="720">
        <Rectangle x:Name="BG" Fill="#FF2D0303" Height="256" Canvas.Left="152" Canvas.Top="178" Width="256"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<Image x:Name="Background_Baked" Height="256" Canvas.Left="151" Source="game:/media/cars/BMW_Z4_11/UI/Textures/BMW_Z4_11_BGmerged.png" Stretch="Fill" Canvas.Top="179" Width="256"/>
			<local:FastTextBlock x:Name="Text_TripMeter" Canvas.Left="287" Canvas.Top="377.86" Text="{Binding TripMeter}" FontSize="24" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Width="82" Foreground="#FFEB3F24"/>
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="176" Canvas.Top="377.86" Text="{Binding Odometer}" FontSize="24" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Width="112" Foreground="#FFEB3F24"/>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="227" Canvas.Top="296" Text="{Binding Gear}" FontSize="69.333" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Width="100" Foreground="#FFEB3F24" TextAlignment="Center"/>
			<local:FastTextBlock x:Name="Text_ExternalTemp" Canvas.Left="213" Canvas.Top="217" Text="{Binding ExternalTemp}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Width="82" Foreground="#FFEB3F24"/>
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="237" Canvas.Top="250" Text="{Binding Time}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Width="80" Foreground="#FFEB3F24"/>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1185.998" Canvas.Left="59.752" Canvas.Top="54.812" Opacity="0"/>
	</Canvas>
</Page>