<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.LOT_ExigeCup430_18">
	
    <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="True" UsePsi="True" MaxBoost="13" MinBoost="1" 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="Fuel Gauge">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fill_2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.333" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fill_3">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fill_4">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.667" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fill_5">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.833" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fill_1">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.167" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fill_6">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</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="Top_Background" Fill="#FF373737" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Gauge_Background" Fill="#FF501111" Height="270" Canvas.Left="165" Canvas.Top="225" Width="950"/>
        <Image x:Name="Text_E" Canvas.Left="165" Canvas.Top="225" Height="270" Source="game:/media/cars/LOT_ExigeCup430_18/UI/Textures/LOT_ExigeS_12_txt_E.PNG" Stretch="Fill" Width="950"/>
        <Canvas x:Name="Fuel" Canvas.Left="598.5" Canvas.Top="240" Height="168" Width="500">
            <Rectangle x:Name="Fill_1" Fill="#FFC02932" Height="70" Canvas.Left="112" Canvas.Top="34" Width="44" Visibility="Hidden"/>
            <Rectangle x:Name="Fill_2" Fill="#FFC02932" Height="70" Canvas.Left="166" Canvas.Top="34" Width="44" Visibility="Hidden"/>
            <Rectangle x:Name="Fill_3" Fill="#FFC02932" Height="70" Canvas.Left="217" Canvas.Top="34" Width="44" Visibility="Hidden"/>
            <Rectangle x:Name="Fill_4" Fill="#FFC02932" Height="70" Canvas.Left="268" Canvas.Top="34" Width="44" Visibility="Hidden"/>
            <Rectangle x:Name="Fill_5" Fill="#FFC02932" Height="70" Canvas.Left="319" Canvas.Top="34" Width="44" Visibility="Hidden"/>
            <Rectangle x:Name="Fill_6" Fill="#FFC02932" Height="70" Canvas.Left="370" Canvas.Top="34" Width="44" Visibility="Hidden"/>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_Trip" Canvas.Left="654.5" Canvas.Top="345.573" Text="{Binding TripMeter}" Width="425" FontSize="72" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" Foreground="#FFC02932" RenderTransformOrigin="0.5,0.5"/>
            <local:FastTextBlock x:Name="Text_Odo" Canvas.Left="215.5" Canvas.Top="345.573" Text="{Binding Odometer}" Width="425" FontSize="72" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" Foreground="#FFC02932" RenderTransformOrigin="0.5,0.5" TextAlignment="Left"/>
            <local:FastTextBlock x:Name="Text_Temp" Canvas.Left="182.5" Canvas.Top="240.573" Text="{Binding ExternalTemp}" Width="260" FontSize="72" Style="{StaticResource TextBlockStyle}" FontFamily="DG4_PF_Ronda_Seven" Foreground="#FFC02932" RenderTransformOrigin="0.5,0.5" TextAlignment="Right"/>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="53" Opacity="0"/>
		
		
        <!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
	</Canvas>
</Page>