<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_M2Comp_20">

    <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="True" UseMPH="False" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="100.08" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="True" HasGAccelY="True" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="True" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20.0" MinGear="-1" MaxGear="6" MaxRpm="7250"></local:DigitalGaugeConfig>

        <Storyboard x:Key="Speed Analog"/>
        <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="Fuel Gauge"/>

        <Storyboard x:Key="Tach"/>
        <Storyboard x:Key="Gear Analog"/>

    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
            <BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
            <BeginStoryboard x:Name="Tach_BeginStoryboard" Storyboard="{StaticResource Tach}"/>
            <BeginStoryboard x:Name="Gear_Analog_BeginStoryboard" Storyboard="{StaticResource Gear Analog}"/>
        </EventTrigger>
    </Page.Triggers>

    <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_Black" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Background_Grey" Fill="Black" Height="600" Canvas.Top="7" Width="1280"/>
        <Canvas x:Name="Graphics_Layout" Height="621" Width="1177.5" RenderTransformOrigin="0.5,0.5" Canvas.Left="-77.933" Canvas.Top="75">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.55999999999999994" ScaleX="0.55999999999999994"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Image x:Name="Textures_BMW_M2Comp_20_Fuel_png" Height="75" Source="game:/media/cars/BMW_M2Comp_20/UI/Textures/BMW_M2Comp_20 Fuel.png" Stretch="Fill" Width="290" Canvas.Left="108" Canvas.Top="435"/>
            <Image x:Name="Textures_BMW_M2Comp_20_Gears_png" Height="90" Source="game:/media/cars/BMW_M2Comp_20/UI/Textures/BMW_M2Comp_20 Gears.png" Stretch="Fill" Width="355" Canvas.Left="747.666" Canvas.Top="406.329"/>
            <Image x:Name="Textures_BMW_M2Comp_20_Odometer_png" Height="150" Source="game:/media/cars/BMW_M2Comp_20/UI/Textures/BMW_M2Comp_20 Odometer.png" Stretch="Fill" Width="260" Canvas.Left="468" Canvas.Top="429.32"/>
            <Image x:Name="Textures_BMW_M2Comp_20_Speedo_png" Height="510" Source="game:/media/cars/BMW_M2Comp_20/UI/Textures/BMW_M2Comp_20 Speedo.png" Stretch="Fill" Width="510"/>
            <Image x:Name="Textures_BMW_M2Comp_20_Tach_png" Height="510" Source="game:/media/cars/BMW_M2Comp_20/UI/Textures/BMW_M2Comp_20 Tach.png" Stretch="Fill" Width="510" Canvas.Left="667.5"/>
        </Canvas>
        <Canvas x:Name="Text" Height="355.5" Width="714.167" Canvas.Top="237.75" Canvas.Left="363.6" RenderTransformOrigin="0.5,0.5">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleY="0.8" ScaleX="0.8"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <local:FastTextBlock x:Name="Text_External_Temp" Text="{Binding ExternalTemp}" Height="32.25" Canvas.Left="16.667"   Canvas.Top="225.011" Width="93.083" FontFamily="DG1_Arial" FontSize="24" Foreground="White" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}" Height="38"   Canvas.Top="313.011" Width="129" FontFamily="DG1_Arial" FontSize="24" Foreground="White"/>
            <local:FastTextBlock x:Name="Text_Fuel" Text="{Binding FuelText}" Height="38" Canvas.Left="84"   Canvas.Top="257.261" Width="129" FontFamily="DG1_Arial" FontSize="24" Foreground="White"/>
            <local:FastTextBlock x:Name="Text_Clock_1" Text="{Binding Time}" Height="38" Canvas.Left="364.493"   Canvas.Top="313.011" Width="129" FontFamily="DG1_Arial" FontSize="24" Foreground="White" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" Height="26.459" Canvas.Left="319"   Canvas.Top="212" Width="20" Foreground="White" FontFamily="DG1_Arial" FontSize="24" TextAlignment="Center"/>
        </Canvas>
        <Image x:Name="Textures_BMW_M2Comp_20_Center_png" Height="510" Source="game:/media/cars/BMW_M2Comp_20/UI/Textures/BMW_M2Comp_20 Center.png" Stretch="Fill" Width="1280" RenderTransformOrigin="0.5,0.5" Canvas.Left="548.083" Canvas.Top="237.917">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.35" ScaleY="0.35"/>
                    <SkewTransform/>
                    <RotateTransform Angle="-90"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <local:FastTextBlock x:Name="Text_Clock_2" Text="{Binding Time}" Height="16.334" Canvas.Left="1091.167"   Width="35" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" Canvas.Top="302.667">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="-90"/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0"/>


        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
        <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
        <local:StoryboardController SeekPct="{Binding AnalogSpeed}" Target="{StaticResource Speed Analog}"/>
        <local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
    </Canvas>
</Page>