<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"
    xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
    mc:Ignorable="d"
	x:Class="ForzaUI.AUD_Etron_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" HasTachMem="False" HasClock="True" HasExternalTemp="True" UseDegreesF="False" UseMPH="False" UsePsi="False" MinBoost="0" MaxBoost="20" MaxSpeed="100" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="True" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="-1" MaxGear="1" MaxRpm="000.0"/>
        <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>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Start_Up_Mask">
                <DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Fuel Gauge"/>
        <Storyboard x:Key="G Accel Vertical">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_AUD_ETron_18_21_ChargeNeedle_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-90"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="90"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_Arc_GreenLightGreen2_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-90"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="90"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_Arc_GreenLightGreen3_png">
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-88.272"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.593"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_Arc_GrayCharge1_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-90"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="90"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_Arc_GrayCharge2_png">
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-89.869"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.391"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_Arc_GreenLightGreen1_png">
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-90"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-89.007"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_Arc_GrayCharge3_png">
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-90"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-88.474"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Speed Analog">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_AUD_ETron_18_21_SpeedoNeedle_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-124.963"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="24.834"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="125.005"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_Arc_Gray1_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-125"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="24.841"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="124.892"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_Arc_Gray2_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-125"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-64.923"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="35.046"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_Arc_Gray3_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-125"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-125"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-54.867"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard x:Name="Fuel_Gauge_BeginStoryboard" Storyboard="{StaticResource Fuel Gauge}"/>
            <BeginStoryboard x:Name="G_Accel_Vertical_BeginStoryboard" Storyboard="{StaticResource G Accel Vertical}"/>
            <BeginStoryboard x:Name="Speed_Analog_BeginStoryboard" Storyboard="{StaticResource Speed Analog}"/>
        </EventTrigger>
    </Page.Triggers>

    <local:EventFire.FzTriggers>
        <local:EventFireTrigger Event="StartUp" Storyboard="{StaticResource Start Up Animation}"/>
    </local:EventFire.FzTriggers>

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

        <!-- Storyboard binding controllers -->

        <!-- Storyboard binding controllers -->
        <Canvas x:Name="AUD_Etron" Height="735" Canvas.Left="0" Width="1314" Canvas.Top="0">
            <Rectangle x:Name="Background_Black" Fill="Black" Height="735" Stroke="Black" Width="1314" Canvas.Left="0" Canvas.Top="0"/>
            <Canvas x:Name="Driver" Height="480" Canvas.Top="-24" Width="1304" RenderTransformOrigin="0.5,0.5" Canvas.Left="102">
                <Canvas.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.6" ScaleY="0.6"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform X="-105"/>
                    </TransformGroup>
                </Canvas.RenderTransform>
                <Canvas x:Name="LeftDial" Height="450" Width="450" Canvas.Top="24">
                    <Canvas x:Name="Charge" Height="200" Canvas.Left="22.331" Canvas.Top="23.666" Width="200">
                        <Image x:Name="Textures_Arc_GreenLightGreen1_png" Height="200" Source="game:/media/cars/AUD_Etron_18/UI/Textures/Arc_GreenLightGreen.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1" Canvas.Left="1.665">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform Angle="-90"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                        <Image x:Name="Textures_Arc_GreenLightGreen2_png" Height="200" Source="game:/media/cars/AUD_Etron_18/UI/Textures/Arc_GreenLightGreen.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1" Canvas.Left="1.665">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform Angle="-90"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                        <Image x:Name="Textures_Arc_GreenLightGreen3_png" Height="200" Source="game:/media/cars/AUD_Etron_18/UI/Textures/Arc_GreenLightGreen.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1" Canvas.Left="1.665">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform Angle="-90"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                        <Image x:Name="Textures_Arc_GrayCharge1_png" Height="200" Source="game:/media/cars/AUD_Etron_18/UI/Textures/Arc_Gray.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1" Canvas.Top="-0.334" Canvas.Left="2.501">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="0.91" ScaleY="0.91"/>
                                    <SkewTransform/>
                                    <RotateTransform Angle="-90"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                        <Image x:Name="Textures_Arc_GrayCharge2_png" Height="200" Source="game:/media/cars/AUD_Etron_18/UI/Textures/Arc_Gray.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1" Canvas.Top="-0.334" Canvas.Left="2.501">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="0.91" ScaleY="0.91"/>
                                    <SkewTransform/>
                                    <RotateTransform Angle="-90"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                        <Image x:Name="Textures_Arc_GrayCharge3_png" Height="200" Source="Textures/Arc_Gray.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1" Canvas.Top="-0.334" Canvas.Left="2.501">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="0.91" ScaleY="0.91"/>
                                    <SkewTransform/>
                                    <RotateTransform Angle="-90"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                    </Canvas>
                    <Image x:Name="Textures_AUD_ETron_18_21_DialLeftOverlay_png" Height="450" Source="game:/media/cars/AUD_Etron_18/UI/Textures/AUD_ETron_18_21_DialLeftOverlay.png" Stretch="Fill" Width="450"/>
                    <Image x:Name="Textures_AUD_ETron_18_21_ChargeNeedle_png" Height="360" Source="game:/media/cars/AUD_Etron_18/UI/Textures/AUD_ETron_18_21_Needle.png" Stretch="Fill" Width="4" Canvas.Top="35" RenderTransformOrigin="0.504,0.528" Canvas.Left="223">
                        <Image.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform/>
                                <RotateTransform Angle="-90"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Image.RenderTransform>
                    </Image>
                </Canvas>
                <Canvas Width="450" Canvas.Top="24" x:Name="RightDial" Canvas.Left="854" Height="450"
                   >
                    <Canvas x:Name="Speedo" Height="200" Canvas.Left="33.827" Canvas.Top="33.491" Width="200" RenderTransformOrigin="0.5,0.5">
                        <Canvas.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0.92" ScaleY="0.92"/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Canvas.RenderTransform>
                        <Image x:Name="Textures_Arc_Gray1_png" Height="200" Source="game:/media/cars/AUD_Etron_18/UI/Textures/Arc_Gray.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform Angle="-125"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                        <Image x:Name="Textures_Arc_Gray2_png" Height="200" Source="game:/media/cars/AUD_Etron_18/UI/Textures/Arc_Gray.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform Angle="-125"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                        <Image x:Name="Textures_Arc_Gray3_png" Height="200" Source="game:/media/cars/AUD_Etron_18/UI/Textures/Arc_Gray.png" Stretch="Fill" Width="200" RenderTransformOrigin="1,1">
                            <Image.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform Angle="-125"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Image.RenderTransform>
                        </Image>
                    </Canvas>
                    <Image Width="4" Canvas.Top="35" Stretch="Fill" Source="game:/media/cars/AUD_Etron_18/UI/Textures/AUD_ETron_18_21_Needle.png" RenderTransformOrigin="0.504,0.528" x:Name="Textures_AUD_ETron_18_21_SpeedoNeedle_png" Canvas.Left="223" Height="360"
                   >
                        <Image.RenderTransform
                   >
                            <TransformGroup
                   >
                                <ScaleTransform
                  />
                                <SkewTransform
                  />
                                <RotateTransform Angle="-124.963"
                  />
                                <TranslateTransform
                  />
                            </TransformGroup>
                        </Image.RenderTransform>
                    </Image>
                    <Image Width="450" Stretch="Fill" Source="game:/media/cars/AUD_Etron_18/UI/Textures/AUD_ETron_18_21_SpeedoDialOverlay.png" x:Name="Textures_AUD_ETron_18_21_SpeedoDialOverlay_png" Height="450"
                  />
                </Canvas>
                <Image x:Name="Textures_AUD_ETron_18_21_CenterOverlay_png" Height="480" Source="game:/media/cars/AUD_Etron_18/UI/Textures/AUD_ETron_18_21_CenterOverlay.png" Stretch="Fill" Width="480" Canvas.Left="421.5"/>
                <Canvas x:Name="Text" Height="262.001" Canvas.Left="182" Canvas.Top="206.667" Width="983.5">
                    <local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" Height="84"   Width="87" FontSize="72" Foreground="White" FontFamily="Moire" TextAlignment="Center"/>
                    <local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="84" Canvas.Left="810"   Width="173.5" FontSize="72" Foreground="White" FontFamily="Moire" TextAlignment="Center"/>
                    <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}" Height="24.334" Canvas.Left="264.996"   Canvas.Top="208.333" Width="130" Foreground="White" FontFamily="DG1_Arial" FontSize="22" TextAlignment="Right"/>
                    <local:FastTextBlock x:Name="Text_Trip_Odo" Text="{Binding TripMeter}" Height="24.334" Canvas.Left="479.667"   Canvas.Top="208.333" Width="130" Foreground="White" FontFamily="DG1_Arial" FontSize="22" TextAlignment="Right"/>
                    <local:FastTextBlock x:Name="Text_Clock" Text="{Binding Time}" Height="24.334" Canvas.Left="264.329"   Canvas.Top="237.667" Width="130" Foreground="White" FontFamily="DG1_Arial" FontSize="22" TextAlignment="Right"/>
                    <local:FastTextBlock x:Name="Text_External_Temp" Text="{Binding ExternalTemp}" Height="24.334" Canvas.Left="479.667"   Canvas.Top="237.667" Width="130" Foreground="White" FontFamily="DG1_Arial" FontSize="22" TextAlignment="Right"/>
                </Canvas>
            </Canvas>
            <Image x:Name="Textures_AUD_ETron_18_21_Center_png" Height="450" Source="game:/media/cars/AUD_Etron_18/UI/Textures/AUD_ETron_18_21_Center.png" Stretch="Fill" Width="790" RenderTransformOrigin="0.5,0.5" Canvas.Left="683.75" Canvas.Top="380.417">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.47" ScaleY="0.47"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="735" Stroke="Black" Width="1314" Canvas.Left="0" Opacity="0"/>
            <!-- Storyboard binding controllers -->
            <local:StoryboardController SeekPct="{Binding AnalogSpeed}" Target="{StaticResource Speed Analog}"/>
            <local:StoryboardController SeekPct="{Binding GAccelY}" Target="{StaticResource G Accel Vertical}"/>
            <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
        </Canvas>
    </Canvas>
</Page>