<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.BMW_M2_15">
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="Moire"/>
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="True" UseDegreesF="True" UseMPH="True" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="120" 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" MinGear="-1" MaxGear="1" 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="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="FuelMask_Top" Fill="Black" Height="204" Width="995" Canvas.Left="135" Canvas.Top="114"/>
        <Rectangle x:Name="FuelMask_Bottom" Fill="Black" Height="156" Canvas.Left="135" Canvas.Top="444" Width="995"/>
        <Image x:Name="Graphics_Battery" Height="95" Canvas.Left="715" Source="game:/media/cars/BMW_M2_15/UI/Textures/BMW_M2_15_Battery.png" Stretch="Fill" Canvas.Top="290" Width="325"/>
		<Image x:Name="Graphics_Fuel" Height="59" Canvas.Left="302" Source="game:/media/cars/BMW_M2_15/UI/Textures/BMW_M2_15_Gas_Gauge.png" Stretch="Fill" Canvas.Top="308" Width="202"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <TextBlock x:Name="Text_External_Temp" Canvas.Left="872.5" Canvas.Top="540.001" Text="{Binding ExternalTemp}" FontSize="25.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="200"/>
            <Image x:Name="Text_Speedo_Baked" Height="29" Canvas.Left="423.5" Source="game:/media/cars/BMW_M2_15/UI/Textures/BMW_M2_15_txt_speedo.png" Stretch="Fill" Canvas.Top="540.665" Width="70"/>
            <TextBlock x:Name="Text_Clock" Canvas.Left="140.494" Canvas.Top="505.612" Text="{Binding Time}" FontSize="25.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="150" Visibility="Hidden"/>
            <TextBlock x:Name="Text_Speed" Canvas.Left="273.793" Canvas.Top="516.49" Text="{Binding Speed}" Width="160" FontSize="49.333" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.8"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_Gear" Canvas.Left="603.538" Canvas.Top="403.959" Text="{Binding Gear}" Width="100" FontSize="77.333" Style="{StaticResource TextBlockStyle}" Foreground="#FFFBFFDD" RenderTransformOrigin="0.5,0.5" TextAlignment="Center" FontFamily="DG1_Arial"/>
            <TextBlock x:Name="Text_Trip_Odo" Canvas.Left="632.192" Canvas.Top="538.331" Text="{Binding TripMeter}" Width="120" FontSize="25.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"/>
            <TextBlock x:Name="Text_Odometer" Canvas.Left="557.793" Canvas.Top="538.331" Text="{Binding Odometer}" Width="160" FontSize="25.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" TextAlignment="Left"/>
            <TextBlock x:Name="Text_Gear_Small" Canvas.Left="846.209" Canvas.Top="303.625" Text="{Binding Gear}" Width="100" FontSize="24" Style="{StaticResource TextBlockStyle}" Foreground="#FFFBFFDD" RenderTransformOrigin="0.5,0.5" TextAlignment="Center" FontFamily="DG1_Arial"/>
            <Canvas x:Name="Battery_Test" Height="150" Canvas.Left="722.341" Canvas.Top="369" Width="350">
            	<Image x:Name="graphics_txt_mpg" Height="20" Canvas.Left="288.002" Source="game:/media/cars/BMW_M2_15/UI/Textures/BMW_M2_15_txt_mpg.png" Stretch="Fill" Canvas.Top="105.325" Width="23" RenderTransformOrigin="-0.029,0.984">
            		<Image.RenderTransform>
            			<TransformGroup>
            				<ScaleTransform/>
            				<SkewTransform/>
            				<RotateTransform Angle="0.994"/>
            				<TranslateTransform/>
            			</TransformGroup>
            		</Image.RenderTransform>
            	</Image>
            	<Image x:Name="graphics_txt_efficient" Height="70" Canvas.Left="11" Source="game:/media/cars/BMW_M2_15/UI/Textures/BMW_M2_15_txt_Efficient.png" Stretch="Fill" Canvas.Top="68" Width="86" RenderTransformOrigin="-0.008,0">
            		<Image.RenderTransform>
            			<TransformGroup>
            				<ScaleTransform/>
            				<SkewTransform/>
            				<RotateTransform Angle="-0.78"/>
            				<TranslateTransform X="-1.359" Y="1.764"/>
            			</TransformGroup>
            		</Image.RenderTransform>
            	</Image>
            </Canvas>
		</Canvas>
        <Image x:Name="Graphics_Time" Height="16" Canvas.Left="211.33" Source="game:/media/cars/BMW_M2_15/UI/Textures/BMW_M2_15_txt_time.png" Stretch="Fill" Canvas.Top="494.017" Width="80" Visibility="Hidden"/>
        <Image x:Name="Graphics_Temperature" Height="44" Canvas.Left="1006" Source="game:/media/cars/BMW_M2_15/UI/Textures/BMW_M2_15_txt_temp.png" Stretch="Fill" Canvas.Top="521.665" Width="100"/>
        <Image x:Name="Graphics_Odometer" Height="16" Canvas.Left="554" Source="game:/media/cars/BMW_M2_15/UI/Textures/BMW_M2_15_txt_odo.png" Stretch="Fill" Canvas.Top="523.665" Width="200"/>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="53" Opacity="0"/>
		
	</Canvas>
</Page>