<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="DigitalGauge.POL_51_RZRDakar_21"
	 >

    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG2_LCD"/>
            <Setter Property="Foreground" Value="#FFF52233"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>

        <BooleanToVisibilityConverter x:Key="BoolVisConverter" />

        <local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="False" UseDegreesF="False" UseMPH="True" UsePsi="True" MaxBoost="-15" MinBoost="15" MaxSpeed="107.8" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="True" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="True" HasTextGAccel="False" HasTextOdometer="False" HasTextFuel="True" MaxFuel="68.1" MaxGear="6" MaxRpm="9000"/>

        <Storyboard x:Key="Shift Lights Progress">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftGreenL1_On">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.817" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.928" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftGreenL2_On">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.839" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.928" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftYellowL3_On">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.856" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.928" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftRedL4_On">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.886" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.928" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftRedL5_On">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.913" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.928" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftRedR5_On">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.913" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.928" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftRedR4_On">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.886" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.928" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftYellowR3_On">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.856" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.928" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftGreenR2_On">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.839" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.928" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftGreenR1_On">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.817" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.928" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FLASHING">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.928" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Shift Lights Flash" RepeatBehavior="Forever">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftGreenL1_On1">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftGreenL2_On1">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftYellowL3_On1">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftRedL4_On1">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftRedL5_On1">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftRedR5_On1">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftRedR4_On1">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftYellowR3_On1">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftGreenR2_On1">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="ShiftGreenR1_On1">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
            </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>
        <Storyboard x:Key="Tach">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ed:Arc.EndAngle)" Storyboard.TargetName="Tach">
                <EasingDoubleKeyFrame KeyTime="0" Value="258"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.111" Value="275"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.222" Value="292"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="309"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.444" Value="326"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.556" Value="343"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="360"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.778" Value="394"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="428"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="462"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
            <BeginStoryboard Storyboard="{StaticResource Shift Lights Flash}"/>
            <BeginStoryboard Storyboard="{StaticResource Tach}"/>
        </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>
        <Rectangle x:Name="Background_Grey" Fill="Black" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280"/>
        <Canvas x:Name="Gauge" Height="720" Width="1000" RenderTransformOrigin="0.5,0.5" Canvas.Top="30" Canvas.Left="-60">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Image x:Name="Textures_POL_51_RZRDakar_21_DriverGaugeBG_png" Height="720" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/POL_51_RZRDakar_21_DriverGaugeBG.png" Stretch="Fill" Width="1000"/>
            <ed:Arc x:Name="Tach" ArcThickness="1" ArcThicknessUnit="Percent" EndAngle="258" Fill="#FFECA51C" Height="520" Canvas.Left="240" Stretch="None" StartAngle="-130" Canvas.Top="100" Width="520"/>
            <Image x:Name="Textures_POL_51_RZRDakar_21_DriverGaugeface_png" Height="720" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/POL_51_RZRDakar_21_DriverGaugeface.png" Stretch="Fill" Width="1000"/>
            <Canvas x:Name="Text" Height="225" Canvas.Left="52.321" Canvas.Top="380" Width="507.679">
                <local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" Height="75"   Width="145" FontFamily="DG1_Arial" FontSize="72" Foreground="White" TextAlignment="Center" Canvas.Left="372.679" Canvas.Top="-85" RenderTransformOrigin="0.5,0.5">
                    <local:FastTextBlock.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="3" ScaleY="2.75"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </local:FastTextBlock.RenderTransform>
                </local:FastTextBlock>
                <local:FastTextBlock x:Name="Text_Boost" Text="{Binding BoostText}" Height="95"   Width="135" FontFamily="DG1_Arial" FontSize="72" Foreground="White" RenderTransformOrigin="0.5,0.5">
                    <local:FastTextBlock.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.25" ScaleY="1.25"/>
                            <SkewTransform AngleX="-11"/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </local:FastTextBlock.RenderTransform>
                </local:FastTextBlock>
                <local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="95" Canvas.Left="372.679"   Canvas.Top="120" Width="135" FontFamily="DG1_Arial" FontSize="72" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
                    <local:FastTextBlock.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.25" ScaleY="1.25"/>
                            <SkewTransform AngleX="-11"/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </local:FastTextBlock.RenderTransform></local:FastTextBlock>
            </Canvas>
        </Canvas>
        <Canvas x:Name="Shift_Lights" Height="96" Canvas.Left="236" Width="404" Canvas.Top="10" RenderTransformOrigin="0.5,0.5">
            <Canvas x:Name="OFF" Height="96" Width="404" Canvas.Left="0" Canvas.Top="0">
                <Image x:Name="ShiftGreenL1_Off" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_Off.png" Stretch="Fill" Width="80" Opacity="0.2" Height="80" Canvas.Left="-58.998" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftGreenL2_Off" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_Off.png" Stretch="Fill" Width="80" Opacity="0.2" Height="80" Canvas.Left="-16.331" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftYellowL3_Off" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Yellow_Off.png" Stretch="Fill" Width="80" Opacity="0.2" Height="80" Canvas.Left="26.668" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedL4_Off" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_Off.png" Stretch="Fill" Width="80" Opacity="0.2" Height="80" Canvas.Left="71.343" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedL5_Off" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_Off.png" Stretch="Fill" Width="80" Opacity="0.2" Height="80" Canvas.Left="115.992" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedR5_Off" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_Off.png" Stretch="Fill" Width="80" Opacity="0.2" Height="80" Canvas.Left="204.344" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedR4_Off" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_Off.png" Stretch="Fill" Width="80" Opacity="0.2" Height="80" Canvas.Left="247.994" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftYellowR3_Off" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Yellow_Off.png" Stretch="Fill" Width="80" Opacity="0.2" Height="80" Canvas.Left="292.28" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftGreenR2_Off" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_Off.png" Stretch="Fill" Width="80" Opacity="0.2" Height="80" Canvas.Left="334.667" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftGreenR1_Off" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_Off.png" Stretch="Fill" Width="80" Opacity="0.2" Height="80" Canvas.Left="376.28" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
            </Canvas>
            <Canvas x:Name="ON" Height="96" Width="387" Canvas.Left="0" Canvas.Top="0">
                <Image x:Name="ShiftGreenL1_On" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="-58.998" Canvas.Top="21.999" Visibility="Hidden" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftGreenL2_On" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="-16.331" Canvas.Top="21.999" Visibility="Hidden" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftYellowL3_On" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Yellow_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="26.668" Canvas.Top="21.999" Visibility="Hidden" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedL4_On" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="71.343" Canvas.Top="21.999" Visibility="Hidden" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedL5_On" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="115.992" Canvas.Top="21.999" Visibility="Hidden" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedR5_On" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="204.344" Canvas.Top="21.999" Visibility="Hidden" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedR4_On" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="247.994" Canvas.Top="21.999" Visibility="Hidden" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftYellowR3_On" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Yellow_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="292.28" Canvas.Top="21.999" Visibility="Hidden" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftGreenR2_On" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="334.667" Canvas.Top="21.999" Visibility="Hidden" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftGreenR1_On" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="376.28" Canvas.Top="21.999" Visibility="Hidden" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
            </Canvas>
            <Canvas x:Name="FLASHING" Height="96" Width="387" Canvas.Left="0" Canvas.Top="0" Visibility="Hidden">
                <Image x:Name="ShiftGreenL1_On1" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="-58.998" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftGreenL2_On1" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="-16.331" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftYellowL3_On1" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Yellow_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="26.668" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedL4_On1" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="71.343" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedL5_On1" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="115.992" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedR5_On1" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="204.344" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftRedR4_On1" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Red_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="247.994" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftYellowR3_On1" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Yellow_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="292.28" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftGreenR2_On1" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="334.667" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
                <Image x:Name="ShiftGreenR1_On1" Source="game:/media/cars/POL_51_RZRDakar_21/UI/Textures/CHE_7_SST_13_ShiftLight_Green_On.png" Stretch="Fill" Width="80" Height="80" Canvas.Left="376.28" Canvas.Top="21.999" RenderTransformOrigin="0.5,0.5">
                    <Image.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Image.RenderTransform>
                </Image>
            </Canvas>
        </Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0"/>

        <!-- Storyboard binding controllers -->
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Shift Lights Progress}"/>
    </Canvas>
</Page>