<UserControl
    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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:ForzaUI" 
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    mc:Ignorable="d"
    x:Class="ForzaUI.HUDSpeedometerControl"
    x:Name="UserControl"
    HorizontalAlignment="Right"
    VerticalAlignment="Bottom"
    Margin="0,0,-1,8">

    <UserControl.Resources>
        <ResourceDictionary>
            <System:Double x:Key="A_Double_Speedo_Analog_Width">288</System:Double>
            <System:Double x:Key="A_Double_Speedo_Analog_Height">288</System:Double>
            <System:Double x:Key="A_Double_Speedo_Digital_Width">343</System:Double>
            <System:Double x:Key="A_Double_Speedo_Digital_Height">40</System:Double>

            <System:Double x:Key="A_Double_Speed_Analog_Height">100</System:Double>
            <System:Double x:Key="A_Double_Speed_Analog_Width">64</System:Double>
            <Thickness x:Key="A_Thickness_Speed_Analog_Margin">-13,0,0,0</Thickness>

            <System:Double x:Key="A_Double_Speed_Digital_Height">116</System:Double>
            <System:Double x:Key="A_Double_Speed_Digital_Width">76</System:Double>
            <Thickness x:Key="A_Thickness_Speed_Digital_Margin">-16,0,0,0</Thickness>

            <Color x:Key="A_Color_Faded_HUDInfo_Analog">#33FFFFFF</Color>
            <Color x:Key="A_Color_Faded_HUDInfo_Digital">#33FFFFFF</Color>
            <Color x:Key="A_Color_HUDInfo">#FFFFFFFF</Color>
            <Color x:Key="A_Color_Faded_HUDSpeedDigit_Analog">#33FFFFFF</Color>
            <Color x:Key="A_Color_Faded_HUDSpeedDigit_Digital">#33FFFFFF</Color>

            <Color x:Key="A_Color_GaugeNumber">#66FFFFFF</Color>
            <Color x:Key="A_Color_GaugeNumber_Lit">#66FFFFFF</Color>
            <Color x:Key="A_Color_GaugeNumber_Redline">#CDEA1F54</Color>
            <Color x:Key="A_Color_GaugeNumber_LitRedline">#CDEA1F54</Color>

            <ImageSource x:Key="A_BitmapImage_Digit_Analogue_0">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Speed_Analogue_0.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Analogue_1">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Speed_Analogue_1.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Analogue_2">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Speed_Analogue_2.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Analogue_3">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Speed_Analogue_3.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Analogue_4">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Speed_Analogue_4.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Analogue_5">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Speed_Analogue_5.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Analogue_6">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Speed_Analogue_6.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Analogue_7">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Speed_Analogue_7.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Analogue_8">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Speed_Analogue_8.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Analogue_9">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Speed_Analogue_9.png</ImageSource>

            <local:MappingConverter x:Key="A_MappingConverter_Digit_Analogue" Default="{StaticResource A_BitmapImage_Digit_Analogue_0}">
                <local:MappingConverterEntry Key="0" Value="{StaticResource A_BitmapImage_Digit_Analogue_0}"/>
                <local:MappingConverterEntry Key="1" Value="{StaticResource A_BitmapImage_Digit_Analogue_1}"/>
                <local:MappingConverterEntry Key="2" Value="{StaticResource A_BitmapImage_Digit_Analogue_2}"/>
                <local:MappingConverterEntry Key="3" Value="{StaticResource A_BitmapImage_Digit_Analogue_3}"/>
                <local:MappingConverterEntry Key="4" Value="{StaticResource A_BitmapImage_Digit_Analogue_4}"/>
                <local:MappingConverterEntry Key="5" Value="{StaticResource A_BitmapImage_Digit_Analogue_5}"/>
                <local:MappingConverterEntry Key="6" Value="{StaticResource A_BitmapImage_Digit_Analogue_6}"/>
                <local:MappingConverterEntry Key="7" Value="{StaticResource A_BitmapImage_Digit_Analogue_7}"/>
                <local:MappingConverterEntry Key="8" Value="{StaticResource A_BitmapImage_Digit_Analogue_8}"/>
                <local:MappingConverterEntry Key="9" Value="{StaticResource A_BitmapImage_Digit_Analogue_9}"/>
            </local:MappingConverter>

            <ImageSource x:Key="A_BitmapImage_Digit_Digital_0">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Speed_Digital_0.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Digital_1">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Speed_Digital_1.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Digital_2">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Speed_Digital_2.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Digital_3">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Speed_Digital_3.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Digital_4">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Speed_Digital_4.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Digital_5">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Speed_Digital_5.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Digital_6">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Speed_Digital_6.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Digital_7">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Speed_Digital_7.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Digital_8">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Speed_Digital_8.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Digit_Digital_9">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Speed_Digital_9.png</ImageSource>

            <local:MappingConverter x:Key="A_MappingConverter_Digit_Digital" Default="{StaticResource A_BitmapImage_Digit_Digital_0}">
                <local:MappingConverterEntry Key="0" Value="{StaticResource A_BitmapImage_Digit_Digital_0}"/>
                <local:MappingConverterEntry Key="1" Value="{StaticResource A_BitmapImage_Digit_Digital_1}"/>
                <local:MappingConverterEntry Key="2" Value="{StaticResource A_BitmapImage_Digit_Digital_2}"/>
                <local:MappingConverterEntry Key="3" Value="{StaticResource A_BitmapImage_Digit_Digital_3}"/>
                <local:MappingConverterEntry Key="4" Value="{StaticResource A_BitmapImage_Digit_Digital_4}"/>
                <local:MappingConverterEntry Key="5" Value="{StaticResource A_BitmapImage_Digit_Digital_5}"/>
                <local:MappingConverterEntry Key="6" Value="{StaticResource A_BitmapImage_Digit_Digital_6}"/>
                <local:MappingConverterEntry Key="7" Value="{StaticResource A_BitmapImage_Digit_Digital_7}"/>
                <local:MappingConverterEntry Key="8" Value="{StaticResource A_BitmapImage_Digit_Digital_8}"/>
                <local:MappingConverterEntry Key="9" Value="{StaticResource A_BitmapImage_Digit_Digital_9}"/>
            </local:MappingConverter>

            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_N">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_N.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_R">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_R.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_1">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_1.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_2">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_2.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_3">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_3.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_4">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_4.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_5">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_5.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_6">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_6.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_7">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_7.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_8">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_8.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_9">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_9.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_10">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_10.png</ImageSource>

            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_Redline_1">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_Redline_1.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_Redline_2">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_Redline_2.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_Redline_3">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_Redline_3.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_Redline_4">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_Redline_4.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_Redline_5">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_Redline_5.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_Redline_6">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_Redline_6.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_Redline_7">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_Redline_7.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_Redline_8">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_Redline_8.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_Redline_9">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_Redline_9.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Analogue_Redline_10">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Gear_Redline_10.png</ImageSource>

            <local:MappingConverter x:Key="A_MappingConverter_Gear_Analogue" Default="{StaticResource A_BitmapImage_Gear_Analogue_N}">
                <local:MappingConverterEntry Key="0" Value="{StaticResource A_BitmapImage_Gear_Analogue_R}"/>
                <local:MappingConverterEntry Key="1" Value="{StaticResource A_BitmapImage_Gear_Analogue_1}"/>
                <local:MappingConverterEntry Key="2" Value="{StaticResource A_BitmapImage_Gear_Analogue_2}"/>
                <local:MappingConverterEntry Key="3" Value="{StaticResource A_BitmapImage_Gear_Analogue_3}"/>
                <local:MappingConverterEntry Key="4" Value="{StaticResource A_BitmapImage_Gear_Analogue_4}"/>
                <local:MappingConverterEntry Key="5" Value="{StaticResource A_BitmapImage_Gear_Analogue_5}"/>
                <local:MappingConverterEntry Key="6" Value="{StaticResource A_BitmapImage_Gear_Analogue_6}"/>
                <local:MappingConverterEntry Key="7" Value="{StaticResource A_BitmapImage_Gear_Analogue_7}"/>
                <local:MappingConverterEntry Key="8" Value="{StaticResource A_BitmapImage_Gear_Analogue_8}"/>
                <local:MappingConverterEntry Key="9" Value="{StaticResource A_BitmapImage_Gear_Analogue_9}"/>
                <local:MappingConverterEntry Key="10" Value="{StaticResource A_BitmapImage_Gear_Analogue_10}"/>
                <local:MappingConverterEntry Key="11" Value="{StaticResource A_BitmapImage_Gear_Analogue_N}"/>
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_Gear_Analogue_Redline" Default="{StaticResource A_BitmapImage_Gear_Analogue_N}">
                <local:MappingConverterEntry Key="0" Value="{StaticResource A_BitmapImage_Gear_Analogue_R}"/>
                <local:MappingConverterEntry Key="1" Value="{StaticResource A_BitmapImage_Gear_Analogue_Redline_1}"/>
                <local:MappingConverterEntry Key="2" Value="{StaticResource A_BitmapImage_Gear_Analogue_Redline_2}"/>
                <local:MappingConverterEntry Key="3" Value="{StaticResource A_BitmapImage_Gear_Analogue_Redline_3}"/>
                <local:MappingConverterEntry Key="4" Value="{StaticResource A_BitmapImage_Gear_Analogue_Redline_4}"/>
                <local:MappingConverterEntry Key="5" Value="{StaticResource A_BitmapImage_Gear_Analogue_Redline_5}"/>
                <local:MappingConverterEntry Key="6" Value="{StaticResource A_BitmapImage_Gear_Analogue_Redline_6}"/>
                <local:MappingConverterEntry Key="7" Value="{StaticResource A_BitmapImage_Gear_Analogue_Redline_7}"/>
                <local:MappingConverterEntry Key="8" Value="{StaticResource A_BitmapImage_Gear_Analogue_Redline_8}"/>
                <local:MappingConverterEntry Key="9" Value="{StaticResource A_BitmapImage_Gear_Analogue_Redline_9}"/>
                <local:MappingConverterEntry Key="10" Value="{StaticResource A_BitmapImage_Gear_Analogue_Redline_10}"/>
                <local:MappingConverterEntry Key="11" Value="{StaticResource A_BitmapImage_Gear_Analogue_N}"/>
            </local:MappingConverter>

            <ImageSource x:Key="A_BitmapImage_Gear_Digital_N">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_N.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_R">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_R.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_1">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_1.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_2">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_2.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_3">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_3.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_4">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_4.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_5">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_5.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_6">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_6.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_7">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_7.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_8">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_8.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_9">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_9.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_10">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_10.png</ImageSource>

            <ImageSource x:Key="A_BitmapImage_Gear_Digital_Redline_1">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_Redline_1.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_Redline_2">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_Redline_2.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_Redline_3">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_Redline_3.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_Redline_4">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_Redline_4.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_Redline_5">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_Redline_5.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_Redline_6">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_Redline_6.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_Redline_7">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_Redline_7.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_Redline_8">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_Redline_8.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_Redline_9">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_Redline_9.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_Gear_Digital_Redline_10">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Digital_Gear_Redline_10.png</ImageSource>

            <local:MappingConverter x:Key="A_MappingConverter_Gear_Digital" Default="{StaticResource A_BitmapImage_Gear_Digital_N}">
                <local:MappingConverterEntry Key="0" Value="{StaticResource A_BitmapImage_Gear_Digital_R}"/>
                <local:MappingConverterEntry Key="1" Value="{StaticResource A_BitmapImage_Gear_Digital_1}"/>
                <local:MappingConverterEntry Key="2" Value="{StaticResource A_BitmapImage_Gear_Digital_2}"/>
                <local:MappingConverterEntry Key="3" Value="{StaticResource A_BitmapImage_Gear_Digital_3}"/>
                <local:MappingConverterEntry Key="4" Value="{StaticResource A_BitmapImage_Gear_Digital_4}"/>
                <local:MappingConverterEntry Key="5" Value="{StaticResource A_BitmapImage_Gear_Digital_5}"/>
                <local:MappingConverterEntry Key="6" Value="{StaticResource A_BitmapImage_Gear_Digital_6}"/>
                <local:MappingConverterEntry Key="7" Value="{StaticResource A_BitmapImage_Gear_Digital_7}"/>
                <local:MappingConverterEntry Key="8" Value="{StaticResource A_BitmapImage_Gear_Digital_8}"/>
                <local:MappingConverterEntry Key="9" Value="{StaticResource A_BitmapImage_Gear_Digital_9}"/>
                <local:MappingConverterEntry Key="10" Value="{StaticResource A_BitmapImage_Gear_Digital_10}"/>
                <local:MappingConverterEntry Key="11" Value="{StaticResource A_BitmapImage_Gear_Digital_N}"/>
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_MappingConverter_Gear_Digital_Redline" Default="{StaticResource A_BitmapImage_Gear_Digital_N}">
                <local:MappingConverterEntry Key="0" Value="{StaticResource A_BitmapImage_Gear_Digital_R}"/>
                <local:MappingConverterEntry Key="1" Value="{StaticResource A_BitmapImage_Gear_Digital_Redline_1}"/>
                <local:MappingConverterEntry Key="2" Value="{StaticResource A_BitmapImage_Gear_Digital_Redline_2}"/>
                <local:MappingConverterEntry Key="3" Value="{StaticResource A_BitmapImage_Gear_Digital_Redline_3}"/>
                <local:MappingConverterEntry Key="4" Value="{StaticResource A_BitmapImage_Gear_Digital_Redline_4}"/>
                <local:MappingConverterEntry Key="5" Value="{StaticResource A_BitmapImage_Gear_Digital_Redline_5}"/>
                <local:MappingConverterEntry Key="6" Value="{StaticResource A_BitmapImage_Gear_Digital_Redline_6}"/>
                <local:MappingConverterEntry Key="7" Value="{StaticResource A_BitmapImage_Gear_Digital_Redline_7}"/>
                <local:MappingConverterEntry Key="8" Value="{StaticResource A_BitmapImage_Gear_Digital_Redline_8}"/>
                <local:MappingConverterEntry Key="9" Value="{StaticResource A_BitmapImage_Gear_Digital_Redline_9}"/>
                <local:MappingConverterEntry Key="10" Value="{StaticResource A_BitmapImage_Gear_Digital_Redline_10}"/>
                <local:MappingConverterEntry Key="11" Value="{StaticResource A_BitmapImage_Gear_Digital_N}"/>
            </local:MappingConverter>

            <!--
            <local:FZGeometry x:Key="A_FZGeometry_AnalogGaugeMesh" Data="M285.00,150.00L236.60,100.00 200.00,63.40 150.00,50.00 100.00,63.40 63.40,100.00 50.00,150.00 63.40,200.00 100.00,236.60 75.00,279.90 20.10,225.00 0.00,150.00 20.10,75.00 75.00,20.10 150.00,0.00 225.00,20.10 300.00,75.00 300.00,150.00z"/>
            -->

            <Style x:Key="A_Style_FZMaterial_Speedometer_Speed_One_Analog" TargetType="local:FZMaterial">
                <Setter Property="ImageSource" Value="{Binding SpeedDigitOne, Converter={StaticResource A_MappingConverter_Digit_Analogue}, FallbackValue={StaticResource A_BitmapImage_Digit_Analogue_0}}" />
                 <Style.Triggers>
                    <DataTrigger Binding="{Binding SpeedLessOrEqualOne}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Faded_HUDSpeedDigit_Analog}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Speedometer_Speed_Ten_Analog" TargetType="local:FZMaterial">
                <Setter Property="ImageSource" Value="{Binding SpeedDigitTen, Converter={StaticResource A_MappingConverter_Digit_Analogue}, FallbackValue={StaticResource A_BitmapImage_Digit_Analogue_0}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding SpeedLessTen}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Faded_HUDSpeedDigit_Analog}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Speedometer_Speed_Hundred_Analog" TargetType="local:FZMaterial">
                <Setter Property="ImageSource" Value="{Binding SpeedDigitHundred, Converter={StaticResource A_MappingConverter_Digit_Analogue}, FallbackValue={StaticResource A_BitmapImage_Digit_Analogue_0}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding SpeedLessHundred}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Faded_HUDSpeedDigit_Analog}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Speedometer_Speed_One_Digital"
                   TargetType="local:FZMaterial">
                <Setter Property="ImageSource" Value="{Binding SpeedDigitOne, Converter={StaticResource A_MappingConverter_Digit_Digital}, FallbackValue={StaticResource A_BitmapImage_Digit_Digital_0}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding SpeedLessOrEqualOne}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Faded_HUDSpeedDigit_Digital}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Speedometer_Speed_Ten_Digital"
                   TargetType="local:FZMaterial">
                <Setter Property="ImageSource" Value="{Binding SpeedDigitTen, Converter={StaticResource A_MappingConverter_Digit_Digital}, FallbackValue={StaticResource A_BitmapImage_Digit_Digital_0}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding SpeedLessTen}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Faded_HUDSpeedDigit_Digital}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Speedometer_Speed_Hundred_Digital"
                   TargetType="local:FZMaterial">
                <Setter Property="ImageSource" Value="{Binding SpeedDigitHundred, Converter={StaticResource A_MappingConverter_Digit_Digital}, FallbackValue={StaticResource A_BitmapImage_Digit_Digital_0}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding SpeedLessHundred}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Faded_HUDSpeedDigit_Digital}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Analog_AssistLights" TargetType="local:FZMaterial">
                <Setter Property="Width" Value="40" />
                <Setter Property="Height" Value="20" />
                <Setter Property="Margin" Value="0,-2" />
                <Setter Property="Color" Value="{StaticResource A_Color_Faded_HUDInfo_Analog}"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Analog_ABSLight" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_Analog_AssistLights}">
                <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_ABSIcon_Off}" />
                <Setter Property="Visibility" Value="{Binding IsABSAvailable, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsABSOn}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_HUDInfo}"/>
                        <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_ABSIcon_On}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Analog_TCRLight" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_Analog_AssistLights}">
                <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_TCRIcon_Off}" />
                <Setter Property="Visibility" Value="{Binding IsTCRAvailable, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsTCROn}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_HUDInfo}"/>
                        <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_TCRIcon_On}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Analog_STMLight" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_Analog_AssistLights}">
                <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_STMIcon_Off}" />
                <Setter Property="Visibility" Value="{Binding IsSTMAvailable, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsSTMOn}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_HUDInfo}"/>
                        <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_STMIcon_On}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Digital_AssistLights" TargetType="local:FZMaterial">
                <Setter Property="Width" Value="50" />
                <Setter Property="Height" Value="18" />
                <Setter Property="Margin" Value="0,1" />
                <Setter Property="Color" Value="{StaticResource A_Color_Faded_HUDInfo_Digital}"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Digital_ABSLight" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_Digital_AssistLights}">
                <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_ABSIcon_Off}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsABSOn}" Value="True">
                        <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_ABSIcon_On}" />
                        <Setter Property="Color" Value="{StaticResource A_Color_HUDInfo}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Digital_TCRLight" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_Digital_AssistLights}">
                <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_TCRIcon_Off}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsTCROn}" Value="True">
                        <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_TCRIcon_On}" />
                        <Setter Property="Color" Value="{StaticResource A_Color_HUDInfo}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Digital_STMLight" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_Digital_AssistLights}">
                <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_STMIcon_Off}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsSTMOn}" Value="True">
                        <Setter Property="ImageSource" Value="{DynamicResource A_BitmapImage_STMIcon_On}" />
                        <Setter Property="Color" Value="{StaticResource A_Color_HUDInfo}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Analog_SpeedUnits" TargetType="local:FZMaterial">
                <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Unit_MPH.png" />
                <Setter Property="Color" Value="{StaticResource A_Color_Faded_HUDInfo_Analog}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsUsingMPH}" Value="True">
                         <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Unit_MPH.png" />
                         <Setter Property="Margin" Value="0,0,2,0" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsUsingMPH}" Value="False">
                         <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Unit_KPH.png" />
                         <Setter Property="Margin" Value="0,0,6,0" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_Digital_SpeedUnits" TargetType="local:FZMaterial">
                <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Unit_Digital_MPH.png" />
                <Setter Property="Color" Value="{StaticResource A_Color_Faded_HUDInfo_Digital}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsUsingMPH}" Value="True">
                         <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Unit_Digital_MPH.png" />
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsUsingMPH}" Value="False">
                         <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Unit_Digital_KPH.png" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_GearDisplay" TargetType="local:FZMaterial">
                <Setter Property="Visibility" Value="{Binding IsShiftLightOn, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, FallbackValue=Visible}"/>
                <Setter Property="ImageSource" Value="{Binding Gear, Converter={StaticResource A_MappingConverter_Gear_Analogue}, FallbackValue={StaticResource A_BitmapImage_Gear_Analogue_1}}"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_GearDisplay_ShiftLight" TargetType="local:FZMaterial">
                <Setter Property="Visibility" Value="{Binding IsShiftLightOn, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
                <Setter Property="ImageSource" Value="{Binding Gear, Converter={StaticResource A_MappingConverter_Gear_Analogue_Redline}, FallbackValue={StaticResource A_BitmapImage_Gear_Analogue_Redline_1}}"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_GearDisplay_Digital" TargetType="local:FZMaterial">
                <Setter Property="Visibility" Value="{Binding IsShiftLightOn, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}, FallbackValue=Visible}"/>
                <Setter Property="ImageSource" Value="{Binding Gear, Converter={StaticResource A_MappingConverter_Gear_Digital}, FallbackValue={StaticResource A_BitmapImage_Gear_Digital_1}}"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_GearDisplay_Digital_ShiftLight" TargetType="local:FZMaterial">
                <Setter Property="Visibility" Value="{Binding IsShiftLightOn, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"/>
                <Setter Property="ImageSource" Value="{Binding Gear, Converter={StaticResource A_MappingConverter_Gear_Digital_Redline}, FallbackValue={StaticResource A_BitmapImage_Gear_Digital_Redline_1}}"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_GaugeNumbers" TargetType="local:FZMaterial">
                <Setter Property="Visibility" Value="{Binding IsVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                <Setter Property="Width" Value="18" />
                <Setter Property="Height" Value="18" />
                <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
                <Setter Property="RenderTransform">
                    <Setter.Value>
                        <TranslateTransform X="{Binding XPos}" Y="{Binding YPos}"/>
                    </Setter.Value>
                </Setter>
                <Setter Property="Color" Value="{StaticResource A_Color_GaugeNumber}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsRedline}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_GaugeNumber_Redline}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsLit}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_GaugeNumber_Lit}"/>
                    </DataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsRedline}" Value="True"/>
                            <Condition Binding="{Binding IsLit}" Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Color" Value="{StaticResource A_Color_GaugeNumber_LitRedline}"/>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <!-- DIGITAL SPEEDOMETER -->

            <ControlTemplate x:Key="A_ControlTemplate_DigitalSpeedometer">
                <ControlTemplate.Resources>
                    <ImageSource x:Key="A_BitmapImage_ABSIcon_Off">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Assist_Digital_ABS_Off.png</ImageSource>
                    <ImageSource x:Key="A_BitmapImage_TCRIcon_Off">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Assist_Digital_TCR_Off.png</ImageSource>
                    <ImageSource x:Key="A_BitmapImage_STMIcon_Off">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Assist_Digital_STM_Off.png</ImageSource>

                    <ImageSource x:Key="A_BitmapImage_ABSIcon_On">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Assist_Digital_ABS_On.png</ImageSource>
                    <ImageSource x:Key="A_BitmapImage_TCRIcon_On">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Assist_Digital_TCR_On.png</ImageSource>
                    <ImageSource x:Key="A_BitmapImage_STMIcon_On">/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Dial_Assist_Digital_STM_On.png</ImageSource>
                </ControlTemplate.Resources>
                <Grid Margin="0,0,1,-24"
                    Width="320"
                    Height="160">
                    <Grid x:Name="Gears"
                        Width="66"
                        Height="66"
                        HorizontalAlignment="Right"
                        VerticalAlignment="Top"
                        Margin="0,45,249,0">
                        <local:FZMaterial x:Name="Gear" Style="{StaticResource A_Style_FZMaterial_GearDisplay_Digital}" /> <!-- Gear -->
                        <local:FZMaterial x:Name="GearRedline" Style="{StaticResource A_Style_FZMaterial_GearDisplay_Digital_ShiftLight}" /> <!-- Gear w/ShiftLight -->
                    </Grid>
                    <StackPanel x:Name="SpeedNumbers"
                        VerticalAlignment="Top"
                        HorizontalAlignment="Right"
                        Orientation="Horizontal"
                        Margin="0,0,49,0">
                        <local:FZMaterial x:Name="Hundred" Width="{StaticResource A_Double_Speed_Digital_Width}" Height="{StaticResource A_Double_Speed_Digital_Height}" Style="{StaticResource A_Style_FZMaterial_Speedometer_Speed_Hundred_Digital}" Margin="{StaticResource A_Thickness_Speed_Digital_Margin}"/> <!-- Hundred -->
                        <local:FZMaterial x:Name="Ten" Width="{StaticResource A_Double_Speed_Digital_Width}" Height="{StaticResource A_Double_Speed_Digital_Height}" Style="{StaticResource A_Style_FZMaterial_Speedometer_Speed_Ten_Digital}" Margin="{StaticResource A_Thickness_Speed_Digital_Margin}"/> <!-- Ten -->
                        <local:FZMaterial x:Name="One" Width="{StaticResource A_Double_Speed_Digital_Width}" Height="{StaticResource A_Double_Speed_Digital_Height}" Style="{StaticResource A_Style_FZMaterial_Speedometer_Speed_One_Digital}" Margin="{StaticResource A_Thickness_Speed_Digital_Margin}"/> <!-- One -->
                    </StackPanel>
                    <local:FZMaterial x:Name="Divider"
                        ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Digital/HUD_Digtial_Divider_Line.png"
                        Height="4"
                        Width="40"
                        Margin="0,29,5,0"
                        HorizontalAlignment="Right"
                        VerticalAlignment="Top"
                        Color="{StaticResource A_Color_Faded_HUDInfo_Digital}"/>
                    <Decorator HorizontalAlignment="Right"
                        VerticalAlignment="Top"
                        Margin="0,-3,-6,0">
                        <local:FZMaterial x:Name="SpeedUnits" Style="{StaticResource A_Style_FZMaterial_Digital_SpeedUnits}" Width="56" Height="30" />
                    </Decorator>
                    <StackPanel x:Name="Assists"
                        Orientation="Vertical"
                        HorizontalAlignment="Right"
                        VerticalAlignment="Bottom"
                        Margin="0,0,12,46">
                        <local:FZMaterial x:Name="ABS" Style="{StaticResource A_Style_FZMaterial_Digital_ABSLight}"/>
                        <local:FZMaterial x:Name="TCR" Style="{StaticResource A_Style_FZMaterial_Digital_TCRLight}"/>
                        <local:FZMaterial x:Name="STM" Style="{StaticResource A_Style_FZMaterial_Digital_STMLight}"/>
                    </StackPanel>
                    <local:FZMaterial x:Name="Gauge"
                        Height="{StaticResource A_Double_Speedo_Digital_Height}"
                        Width="{StaticResource A_Double_Speedo_Digital_Width}"
                        RenderTransformOrigin="0.5,0.5"
                        Margin="0,0,0,6"
                        HorizontalAlignment="Right"
                        VerticalAlignment="Bottom">
                        <local:FZMaterial.Preset>
                            <local:FZMaterialPresetDigitalGauge RedLineAmount="{Binding GaugeRedlineAmount}" SmallDash="{Binding GaugeSmallDashAmount}" LargeDash="{Binding GaugeLargeDashAmount}" />
                        </local:FZMaterial.Preset>
                    </local:FZMaterial> 
                </Grid>
            </ControlTemplate>

            <!-- ANALOG SPEEDOMETER -->

            <ControlTemplate x:Key="A_ControlTemplate_AnalogSpeedometer">
                <ControlTemplate.Resources>
                    <ImageSource x:Key="A_BitmapImage_ABSIcon_Off">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Assist_Analogue_ABS_Off.png</ImageSource>
                    <ImageSource x:Key="A_BitmapImage_TCRIcon_Off">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Assist_Analogue_TCR_Off.png</ImageSource>
                    <ImageSource x:Key="A_BitmapImage_STMIcon_Off">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Assist_Analogue_STM_Off.png</ImageSource>

                    <ImageSource x:Key="A_BitmapImage_ABSIcon_On">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Assist_Analogue_ABS_On.png</ImageSource>
                    <ImageSource x:Key="A_BitmapImage_TCRIcon_On">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Assist_Analogue_TCR_On.png</ImageSource>
                    <ImageSource x:Key="A_BitmapImage_STMIcon_On">/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Assist_Analogue_STM_On.png</ImageSource>
                </ControlTemplate.Resources>
                <Grid Width="{StaticResource A_Double_Speedo_Analog_Width}"
                    Height="{StaticResource A_Double_Speedo_Analog_Height}">
                    <local:FZMaterial x:Name="Gauge"
                        Height="{StaticResource A_Double_Speedo_Analog_Height}"
                        Width="{StaticResource A_Double_Speedo_Analog_Width}"
                        RenderTransformOrigin="0.5,0.5" > <!-- Gauge -->
                        <local:FZMaterial.Preset>
                            <local:FZMaterialPresetAnalogGauge RedLineAmount="{Binding GaugeRedlineAmount}" SmallDash="{Binding GaugeSmallDashAmount}" LargeDash="{Binding GaugeLargeDashAmount}" />
                        </local:FZMaterial.Preset>
                    </local:FZMaterial>
                    <Grid Margin="0,0,0,3">
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[0]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_0.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[1]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_1.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[2]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_2.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[3]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_3.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[4]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_4.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[5]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_5.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[6]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_6.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[7]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_7.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[8]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_8.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[9]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_9.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[10]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_10.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[11]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_11.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[12]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_12.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[13]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_13.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[14]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_14.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[15]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_15.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[16]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_16.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[17]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_17.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[18]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_18.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[19]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_19.png"/>
                        <local:FZMaterial DataContext="{Binding RPMGaugeNumbers[20]}" Style="{StaticResource A_Style_FZMaterial_GaugeNumbers}" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_RevNumbers_20.png"/>
                    </Grid>

                    <StackPanel x:Name="Assists"
                        Orientation="Vertical"
                        VerticalAlignment="Center"
                        HorizontalAlignment="Center"
                        Margin="-160,0,0,0">
                        <local:FZMaterial x:Name="ABS" Style="{StaticResource A_Style_FZMaterial_Analog_ABSLight}"/>
                        <local:FZMaterial x:Name="TCR" Style="{StaticResource A_Style_FZMaterial_Analog_TCRLight}"/>
                        <local:FZMaterial x:Name="STM" Style="{StaticResource A_Style_FZMaterial_Analog_STMLight}"/>
                    </StackPanel>

                    <local:FZMaterial x:Name="Arc" ImageSource="/ForzaUI;component/Textures/Data_Bound/Speedo_Analogue/HUD_Dial_Analog_Arc.png" Width="74" Height="74" Color="{StaticResource A_Color_Faded_HUDInfo_Analog}" Margin="0,0,0,4"/>

                    <local:FZMaterial x:Name="Gear" Style="{StaticResource A_Style_FZMaterial_GearDisplay}" Width="56" Height="56" Margin="0,0,0,0"/> <!-- Gear -->
                    <local:FZMaterial x:Name="GearRedline" Style="{StaticResource A_Style_FZMaterial_GearDisplay_ShiftLight}" Width="56" Height="56" Margin="0,0,0,0"/> <!-- Gear w/ShiftLight -->

                    <Decorator x:Name="Needle" Width="0" Height="0" HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Decorator.RenderTransform>
                            <RotateTransform Angle="{Binding NeedleAngle}" />
                        </Decorator.RenderTransform>
                        <local:FZMaterial Margin="0,0,-144,0"
                            Width="114"
                            Height="180"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Center"
                            RenderTransformOrigin="1,0">
                            <local:FZMaterial.Preset>
                                <local:FZMaterialPresetAnalogNeedle BlurAmount="{Binding NeedleBlur}"/>
                            </local:FZMaterial.Preset>
                        </local:FZMaterial>
                    </Decorator>

                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Analog_SpeedUnits}"
                            Width="56"
                            Height="30"
                            Margin="0,0,-7,108"
                            VerticalAlignment="Bottom"
                            HorizontalAlignment="Right" />
                    <StackPanel Orientation="Horizontal"
                        VerticalAlignment="Bottom"
                        HorizontalAlignment="Right"
                        Margin="0,0,0,9">
                        <local:FZMaterial Width="{StaticResource A_Double_Speed_Analog_Width}"
                            Height="{StaticResource A_Double_Speed_Analog_Height}"
                            Style="{StaticResource A_Style_FZMaterial_Speedometer_Speed_Hundred_Analog}"
                            Margin="{StaticResource A_Thickness_Speed_Analog_Margin}"/>
                        <local:FZMaterial Width="{StaticResource A_Double_Speed_Analog_Width}"
                            Height="{StaticResource A_Double_Speed_Analog_Height}"
                            Style="{StaticResource A_Style_FZMaterial_Speedometer_Speed_Ten_Analog}"
                            Margin="{StaticResource A_Thickness_Speed_Analog_Margin}"/>
                        <local:FZMaterial Width="{StaticResource A_Double_Speed_Analog_Width}"
                            Height="{StaticResource A_Double_Speed_Analog_Height}"
                            Style="{StaticResource A_Style_FZMaterial_Speedometer_Speed_One_Analog}"
                            Margin="{StaticResource A_Thickness_Speed_Analog_Margin}"/>
                    </StackPanel>
                </Grid>
            </ControlTemplate>

        </ResourceDictionary>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup">
                <VisualStateGroup.Transitions>
                    <VisualTransition GeneratedDuration="0:0:0.0"/>
                </VisualStateGroup.Transitions>
                <VisualState x:Name="Hide">
                    <Storyboard>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot">
                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                </Storyboard>
                </VisualState>
                <VisualState x:Name="Show">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot">
                            <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
        <Control HorizontalAlignment="Center"
            VerticalAlignment="Center"
            Template="{StaticResource A_ControlTemplate_AnalogSpeedometer}"
            Visibility="{Binding IsAnalog, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
        <Control HorizontalAlignment="Center"
            VerticalAlignment="Center"
            Template="{StaticResource A_ControlTemplate_DigitalSpeedometer}"
            Visibility="{Binding IsAnalog, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"/>
    </Grid>
</UserControl>