<!--// Copyright © ComponentOne LLC.
// This file is part of the ComponentOne Studio UWP Edition
// Please visit www.componentone.com for details
// All other rights reserved.
-->
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:c1="using:C1.Xaml"
xmlns:c1Gauge="using:C1.Xaml.Gauge"
xmlns:c1_gaugePrimitives="using:C1.Xaml.Gauge.Primitives" >
    <ResourceDictionary.ThemeDictionaries>
        <ResourceDictionary x:Key="Default">
            <Color x:Key="GaugePointerColor">#FFFF7F07</Color>
            <SolidColorBrush x:Key="GaugePointerCapBrush" Color="#FF747474" />
            <SolidColorBrush x:Key="GaugePointerCapBorderBrush" Color="#FF222222" />
            <SolidColorBrush x:Key="GaugeCoverBrush" Color="#FFF9F9F9" />
            <SolidColorBrush x:Key="GaugeMarkBrush" Color="#FF515151" />
            <SolidColorBrush x:Key="KnobPointerCapBrush" Color="#FFEFEFEF"/>
            <LinearGradientBrush x:Key="RegionPointerBrush" StartPoint="0,0" EndPoint="0,1">
                <GradientStop Color="#D78356" Offset="0.5" />
                <GradientStop Offset="1" Color="#FFBF551C" />
            </LinearGradientBrush>
        </ResourceDictionary>
        <ResourceDictionary x:Key="HighContrast">
            <Color x:Key="GaugePointerColor">#FF008000</Color>
            <SolidColorBrush x:Key="GaugePointerCapBrush" Color="#FF008000" />
            <SolidColorBrush x:Key="GaugePointerCapBorderBrush" Color="#FF008000" />
            <SolidColorBrush x:Key="GaugeCoverBrush" Color="Transparent" />
            <SolidColorBrush x:Key="GaugeMarkBrush" Color="White" />
            <SolidColorBrush x:Key="KnobPointerCapBrush" Color="#FF008000"/>
            <SolidColorBrush x:Key="RegionPointerBrush" Color="#FF008000"/>
        </ResourceDictionary>
        <ResourceDictionary x:Key="HighContrastBlack">
            <Color x:Key="GaugePointerColor">#FF1AEBFF</Color>
            <SolidColorBrush x:Key="GaugePointerCapBrush" Color="#FF1AEBFF" />
            <SolidColorBrush x:Key="GaugePointerCapBorderBrush" Color="#FF1AEBFF" />
            <SolidColorBrush x:Key="GaugeCoverBrush" Color="Transparent" />
            <SolidColorBrush x:Key="GaugeMarkBrush" Color="White" />
            <SolidColorBrush x:Key="KnobPointerCapBrush" Color="#FF1AEBFF"/>
            <SolidColorBrush x:Key="RegionPointerBrush" Color="#FF1AEBFF"/>
        </ResourceDictionary>
        <ResourceDictionary x:Key="HighContrastWhite">
            <Color x:Key="GaugePointerColor">#FF37006E</Color>
            <SolidColorBrush x:Key="GaugePointerCapBrush" Color="#FF37006E" />
            <SolidColorBrush x:Key="GaugePointerCapBorderBrush" Color="#FF37006E" />
            <SolidColorBrush x:Key="GaugeCoverBrush" Color="Transparent" />
            <SolidColorBrush x:Key="GaugeMarkBrush" Color="Black" />
            <SolidColorBrush x:Key="KnobPointerCapBrush" Color="#FF37006E"/>
            <SolidColorBrush x:Key="RegionPointerBrush" Color="#FF37006E"/>
        </ResourceDictionary>
    </ResourceDictionary.ThemeDictionaries>
    
    <c1:C1ProjectThicknessConverter x:Key="projectThicknessConverter" />

    <!--******************** Common Brushes ********************-->

    <!-- Brush @ Disabled state-->
    <SolidColorBrush x:Key="DisabledBrush" Color="#A5FFFFFF" />

    <!--******************** C1Gauges general Brushes & Styles ********************-->

    <!-- Brush @ C1RadialGauge Background -->
    <SolidColorBrush x:Key="GaugeBackgroundBrush" Color="Transparent"/>
    <!-- Brush @ C1RadialGauge Border -->
    <SolidColorBrush x:Key="GaugeBorderBrush" Color="Transparent"/>

    <!-- Color & Brush @ Pointers -->
    <SolidColorBrush x:Key="GaugePointerBrush" Color="{StaticResource GaugePointerColor}" />
    <SolidColorBrush x:Key="GaugePointerBorderBrush" Color="{StaticResource GaugePointerColor}" />

    <!-- Style @ C1Gauges Big Mark  -->
    <Style x:Key="DefaultBigMarkStyle" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource GaugeMarkBrush}" />
        <Setter Property="Height" Value="12" />
        <Setter Property="Width" Value="4" />
    </Style>
    <!-- Style @ C1Gauges Medium Size Mark Style -->
    <Style x:Key="DefaultMiddleMarkStyle" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource GaugeMarkBrush}" />
        <Setter Property="Height" Value="8" />
        <Setter Property="Width" Value="2" />
    </Style>
    <!-- Style @ C1Gauges Small Mark Style -->
    <Style x:Key="DefaultSmallMarkStyle" TargetType="Border">
        <Setter Property="CornerRadius" Value="2" />
        <Setter Property="Background" Value="{StaticResource GaugeMarkBrush}" />
        <Setter Property="Height" Value="2" />
        <Setter Property="Width" Value="2" />
    </Style>

    <!-- Style @ C1Gauges Label -->
    <Style x:Key="LabelStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
        <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
        <Setter Property="TextAlignment" Value="Center" />
        <Setter Property="TextWrapping" Value="Wrap" />
    </Style>

    <!-- C1Ellipse -->
    <Style TargetType="c1_gaugePrimitives:C1Ellipse">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1_gaugePrimitives:C1Ellipse">
                    <Grid>
                        <Ellipse x:Name="Ellipse" Stretch="Fill" Fill="{TemplateBinding Background}" />
                        <Ellipse x:Name="EllipseFillGradient" Stretch="Fill" Style="{TemplateBinding FillGradientStyle}" />
                        <Ellipse x:Name="EllipseStrokeGradient" Stretch="Fill" Style="{TemplateBinding StrokeGradientStyle}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--******************** C1LinearGauge Brushes & Styles ********************-->

    <!-- Thickness @ C1LinearGauge -->
    <Thickness x:Key="LinearGaugeBorderThickness">0</Thickness>

    <!-- Pointer @ C1LinearGauge -->
    <Style TargetType="c1Gauge:C1LinearGaugePointer">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="c1Gauge:C1LinearGaugePointer">
                        <Grid x:Name="Root">
                            <Path Stretch="Fill" Data="M0.5,4.2 C0.45,3.7 4.8,0.5 6.8,0.5 C8.7,0.49 13.3,3.7 13.5,4.2 C13.68,4.65 13.5,17.7 13.5,24.5 L0.5,24.5 C0.5,17.7 0.55,4.6667743 0.5,4.2 z" Stroke="{TemplateBinding BorderBrush}" Fill="{TemplateBinding Background}" StrokeThickness="{TemplateBinding Thickness}">
                            </Path>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <!-- C1LinearGauge -->
    <Style TargetType="c1Gauge:C1LinearGauge">
        <Setter Property="Background" Value="{ThemeResource SliderTrackBackgroundThemeBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource GaugeBorderBrush}" />
        <Setter Property="BorderThickness" Value="{StaticResource LinearGaugeBorderThickness}" />
        <Setter Property="PointerFill" Value="{StaticResource GaugePointerBrush}" />
        <Setter Property="PointerStroke" Value="{StaticResource GaugePointerBorderBrush}" />
        <Setter Property="PointerStrokeThickness" Value="1" />
        <Setter Property="PointerLength" Value="0.55" />
        <Setter Property="PointerWidth" Value="0.03" />
        <Setter Property="PointerOffset" Value="0.45" />
        <Setter Property="DefaultTextStyle" Value="{StaticResource LabelStyle}" />
        <Setter Property="DefaultBigMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Border Style="{StaticResource DefaultBigMarkStyle}" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultMiddleMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Border Style="{StaticResource DefaultMiddleMarkStyle}" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultSmallMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Border Style="{StaticResource DefaultSmallMarkStyle}" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1Gauge:C1LinearGauge">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard />
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <!-- Background and border -->
                        <Border x:Name="BgBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" />
                        <!-- Face and decorators -->
                        <Border x:Name="FaceBorder" Visibility="{TemplateBinding FaceVisibility}"/>
                        <Canvas x:Name="DecoratorsLayer" Visibility="{TemplateBinding DecoratorsVisibility}" />
                        <!-- Pointer and PointerCap -->
                        <Grid Visibility="{TemplateBinding PointerVisibility}" >
                            <c1Gauge:C1LinearGaugePointer x:Name="Pointer" PointerLength="{TemplateBinding PointerLength}" PointerWidth="{TemplateBinding PointerWidth}" Offset="{TemplateBinding PointerOffset}" BorderBrush="{TemplateBinding PointerStroke}" Thickness="{TemplateBinding PointerStrokeThickness}" Background="{TemplateBinding PointerFill}" Style="{TemplateBinding PointerStyle}" />
                        </Grid>
                        <!-- Cover -->
                        <Border x:Name="CoverBorder" Visibility="{TemplateBinding CoverVisibility}"/>

                        <Border x:Name="DisabledVisualElement" CornerRadius="4" Background="{StaticResource DisabledBrush}" Opacity="0" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--******************** C1RulerGauge Brushes & Styles ********************-->

    <!-- Thickness @ C1RulerGauge-->
    <Thickness x:Key="RulerGaugeBorderThickness">0</Thickness>

    <!--Pointer @ C1RulerGauge -->
    <Style x:Key="RulerPointerStyle" TargetType="c1Gauge:C1LinearGaugePointer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1Gauge:C1LinearGaugePointer">
                    <Grid x:Name="Root">
                        <Path Fill="{TemplateBinding Background}" Stretch="Fill" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding Thickness}" Data="M17.235754,41.917244 L25.825527,31.652058 C26.717018,30.601372 25.583334,28.5 24.125,28.5 L4.25,28.5 C3,28.5 2.0566342,30.334604 2.8349512,31.251905 L11.85507,41.882759 C13.673617,43.734173 15.627059,43.450317 17.235754,41.917244 z" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!-- C1RulerGauge -->
    <Style TargetType="c1Gauge:C1RulerGauge">
        <Setter Property="Background" Value="{ThemeResource SliderTrackBackgroundThemeBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource GaugeBorderBrush}" />
        <Setter Property="BorderThickness" Value="{StaticResource RulerGaugeBorderThickness}" />
        <Setter Property="PointerFill" Value="{StaticResource GaugePointerBrush}" />
        <Setter Property="PointerStroke" Value="{StaticResource GaugePointerBorderBrush}" />
        <Setter Property="PointerStrokeThickness" Value="1" />
        <Setter Property="PointerStrokeThickness" Value="1" />
        <Setter Property="PointerLength" Value="0.25" />
        <Setter Property="PointerWidth" Value="0.07" />
        <Setter Property="PointerOffset" Value="0.2" />
        <Setter Property="DefaultTextStyle" Value="{StaticResource LabelStyle}" />
        <Setter Property="DefaultBigMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Height="10" Width="1" Background="{StaticResource GaugeMarkBrush}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultMiddleMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Height="6" Width="1" Background="{StaticResource GaugeMarkBrush}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultSmallMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Height="2" Width="2" CornerRadius="2" Background="{StaticResource GaugeMarkBrush}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="FaceTemplate">
            <Setter.Value>
                <DataTemplate>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="CoverTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="0.1*" />
                            <RowDefinition />
                            <RowDefinition Height="0.3*" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="0.1*" />
                            <ColumnDefinition />
                            <ColumnDefinition Width="0.3*" />
                        </Grid.ColumnDefinitions>
                        <Border Grid.Row="1" Grid.Column="1" Opacity="0.25" CornerRadius="30">
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#99FFFFFF" Offset="0.5" />
                                    <GradientStop Color="#19FFFFFF" Offset="1" />
                                </LinearGradientBrush>
                            </Border.Background>
                        </Border>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1Gauge:C1RulerGauge">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard />
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <!-- Background and border -->
                        <Border x:Name="BgBorder" 
                                CornerRadius="30" 
                                Background="{TemplateBinding Background}" 
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}" />
                        <!-- Face and decorators -->
                        <Border x:Name="FaceBorder" Visibility="{TemplateBinding FaceVisibility}" />
                        <Canvas x:Name="DecoratorsLayer" Visibility="{TemplateBinding DecoratorsVisibility}" />
                        <!-- Pointer and PointerCap -->
                        <Grid Visibility="{TemplateBinding PointerVisibility}">
                            <c1Gauge:C1LinearGaugePointer x:Name="Pointer" Style="{StaticResource RulerPointerStyle}" Background="{TemplateBinding PointerFill}" BorderBrush="{TemplateBinding PointerStroke}" Offset="{TemplateBinding PointerOffset}" PointerLength="{TemplateBinding PointerLength}" PointerWidth="{TemplateBinding PointerWidth}" Thickness="{TemplateBinding PointerStrokeThickness}" />
                        </Grid>
                        <!-- Cover -->
                        <Border x:Name="CoverBorder" Visibility="{TemplateBinding CoverVisibility}" />
                        <Border x:Name="DisabledVisualElement" CornerRadius="30" Background="{StaticResource DisabledBrush}" Opacity="0" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--******************** C1RadialGauge Brushes & Styles ********************-->

    <!-- Thickness @ C1RadialGauge -->
    <Thickness x:Key="RadialGaugeBorderThickness">0</Thickness>

    <!-- Style @ C1RadialGauge Cover -->
    <Style x:Key="RadialGaugeCoverStyle" TargetType="Path">
        <Setter Property="Fill">
            <Setter.Value>
                <SolidColorBrush Color="#FFFFFFFF"/>
            </Setter.Value>
        </Setter>
        <Setter Property="Opacity" Value="0.1" />
    </Style> 

    <!-- Pointer @ C1RadialGauge  -->
    <Style TargetType="c1Gauge:C1RadialGaugePointer">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="c1Gauge:C1RadialGaugePointer">
                        <Path x:Name="Root" Stretch="Fill" Data="M55.691177,9.665947 C56.331844,9.70292 57.350327,9.7046404 58.250206,9.6643362 C58.558758,9.6505165 58.659889,9.6295786 58.679169,9.6034966 C59.003292,9.1650133 57.381084,5.8584418 57,5.8600001 C56.631908,5.8609223 55.043633,9.1721344 55.244141,9.6046124 C55.256142,9.6304922 55.442734,9.6516094 55.691177,9.665947 z" Stroke="{TemplateBinding BorderBrush}" Fill="{TemplateBinding Background}" StrokeThickness="{TemplateBinding Thickness}" />
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <!-- PointerCap @ C1RadialGauge -->
    <Style TargetType="c1Gauge:C1RadialGaugePointerCap">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="c1Gauge:C1RadialGaugePointerCap">
                        <Grid>
                            <Ellipse x:Name="Root" Stretch="Fill" Fill="{TemplateBinding Background}"  Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding StrokeThickness}"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <!-- C1RadialGauge -->
    <Style TargetType="c1Gauge:C1RadialGauge">
        <Setter Property="Background" Value="{ThemeResource SliderTrackBackgroundThemeBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource GaugeBorderBrush}" />
        <Setter Property="PointerCapFill" Value="{StaticResource GaugePointerCapBrush}" />
        <Setter Property="PointerCapStroke" Value="{StaticResource GaugePointerCapBorderBrush}" />
        <Setter Property="BorderThickness" Value="{StaticResource RadialGaugeBorderThickness}" />
        <Setter Property="PointerFill" Value="{StaticResource GaugePointerBrush}" />
        <Setter Property="PointerStroke" Value="{StaticResource GaugePointerBorderBrush}" />
        <Setter Property="PointerStrokeThickness" Value="1" />
        <Setter Property="PointerWidth" Value="0.03" />
        <Setter Property="PointerCapStrokeThickness" Value="1" />
        <Setter Property="PointerCapSize" Value="0.05, 0.05" />
        <Setter Property="PointerOrigin" Value="0.5, 0.5" />
        <Setter Property="DefaultTextStyle" Value="{StaticResource LabelStyle}" />
        <Setter Property="DefaultBigMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Style="{StaticResource DefaultBigMarkStyle}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultMiddleMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Style="{StaticResource DefaultMiddleMarkStyle}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultSmallMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Border Style="{StaticResource DefaultSmallMarkStyle}" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="FaceTemplate">
            <Setter.Value>
                <DataTemplate />
            </Setter.Value>
        </Setter>
        <Setter Property="CoverVisibility" Value="Collapsed" />
        <Setter Property="CoverTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.025*" />
                                <RowDefinition Height="0.373*" />
                                <RowDefinition Height="0.577*" />
                                <RowDefinition Height="0.025*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.025*" />
                                <ColumnDefinition Width="0.1*" />
                                <ColumnDefinition Width="0.85*" />
                                <ColumnDefinition Width="0.025*" />
                            </Grid.ColumnDefinitions>
                            <Path Data="M25.31477,164.26979 C35.155067,174.81541 57.906914,196.6852 99.403839,195.21431 C139.42908,193.79558 164.8508,166.76308 174.67563,151.38622 C184.76678,135.59253 188.79874,118.63158 189.34514,108.79025 C186.26112,105.33167 154.0701,83.825142 111.23993,86.378532 C30.655104,91.182724 25.31477,164.26979 25.31477,164.26979 z" Style="{StaticResource RadialGaugeCoverStyle}" Stretch="Fill" Grid.Column="2" Grid.Row="2" Grid.RowSpan="2" Grid.ColumnSpan="2" />
                        </Grid>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1Gauge:C1RadialGauge">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard />
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <!-- Background and border -->
                        <c1_gaugePrimitives:C1Ellipse x:Name="BgEllipse" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}"  StrokeThickness="{TemplateBinding BorderThickness}" />
                        <!-- Face and decorators -->
                        <Border x:Name="FaceBorder" Visibility="{TemplateBinding FaceVisibility}" />
                        <Canvas x:Name="DecoratorsLayer" Visibility="{TemplateBinding DecoratorsVisibility}" />
                        <!-- Pointer and PointerCap -->
                        <Grid Visibility="{TemplateBinding PointerVisibility}">
                            <c1Gauge:C1RadialGaugePointer x:Name="Pointer" PointerLength="{TemplateBinding PointerLength}" PointerWidth="{TemplateBinding PointerWidth}" Location="{TemplateBinding PointerOrigin}" Offset="{TemplateBinding PointerOffset}" BorderBrush="{TemplateBinding PointerStroke}" Thickness="{TemplateBinding PointerStrokeThickness}" Background="{TemplateBinding PointerFill}" Style="{TemplateBinding PointerStyle}" />
                            <c1Gauge:C1RadialGaugePointerCap x:Name="PointerCap" CapSize="{TemplateBinding PointerCapSize}" Location="{TemplateBinding PointerOrigin}" BorderBrush="{TemplateBinding PointerCapStroke}" StrokeThickness="{TemplateBinding PointerCapStrokeThickness}" Background="{TemplateBinding PointerCapFill}" Style="{TemplateBinding PointerCapStyle}" />
                        </Grid>
                        <!-- Cover -->
                        <Border x:Name="CoverBorder" Visibility="{TemplateBinding CoverVisibility}" />
                        <Ellipse x:Name="DisabledVisualElement" IsHitTestVisible="False" Fill="{StaticResource DisabledBrush}" Opacity="0" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--******************** C1Speedometer Brushes & Styles ********************-->

    <!-- Thickness @ C1Speedometer -->
    <Thickness x:Key="SpeedometerBorderThickness">10</Thickness>

    <!-- Pointer @ Speedometer -->
    <Style x:Key="SpeedometerPointerStyle" TargetType="c1Gauge:C1RadialGaugePointer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1Gauge:C1RadialGaugePointer">
                    <Path x:Name="Root" Fill="{TemplateBinding Background}" Stretch="Fill" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding Thickness}" Data="M57.14896,9.7120399 C57.583107,9.7115192 60.194412,9.4147959 60.194412,9.4147959 C60.194412,9.4147959 57.74612,5.8600206 57,5.8600001 C56.25388,5.8599796 54.51144,9.3709993 54.51144,9.3709993 C54.51144,9.3709993 56.714813,9.7125607 57.14896,9.7120399 z" HorizontalAlignment="Center" VerticalAlignment="Center" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- C1Speedometer -->
    <Style TargetType="c1Gauge:C1SpeedometerGauge">
        <Setter Property="Background" Value="{ThemeResource SliderTrackBackgroundThemeBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource GaugeBorderBrush}" />
        <Setter Property="BorderThickness" Value="{StaticResource SpeedometerBorderThickness}" />
        <Setter Property="PointerFill" Value="{StaticResource GaugePointerBrush}" />
        <Setter Property="PointerStroke" Value="{StaticResource GaugePointerBorderBrush}" />
        <Setter Property="PointerStrokeThickness" Value="1" />
        <Setter Property="PointerWidth" Value="0.03" />
        <Setter Property="PointerLength" Value="0.8" />       
        <Setter Property="PointerCapStrokeThickness" Value="0" />
        <Setter Property="PointerCapSize" Value="0.12, 0.12" />
        <Setter Property="PointerOffset" Value="-0.05" />
        <Setter Property="PointerOrigin" Value="0.5, 1" />
        <Setter Property="AspectRatio" Value="1.666666666666666666666666666666666666" />
        <Setter Property="Radius" Value="1.8" />
        <Setter Property="StartAngle" Value="-45" />
        <Setter Property="SweepAngle" Value="90" />
        <Setter Property="DefaultTextStyle" Value="{StaticResource LabelStyle}" />
        <Setter Property="DefaultBigMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Height="6" Width="3" BorderThickness="1" BorderBrush="{StaticResource GaugeMarkBrush}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultMiddleMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Height="6" Width="4" Background="{StaticResource GaugeMarkBrush}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultSmallMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Height="2" Width="2" Background="{StaticResource GaugeMarkBrush}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="FaceTemplate">
            <Setter.Value>
                <DataTemplate>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="CoverTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid VerticalAlignment="Top">

                        <Path Data="M271.34735,36.167969 L272.51791,36.818027 C279.20258,40.599724 285.94635,44.692963 292.75299,49.107121 L273.34399,79.299011 C268.86234,75.255402 264.17221,71.447784 259.29855,67.871086 C258.08011,66.976891 256.85022,66.09713 255.60922,65.23172 L255.33891,65.047958 z M144.19205,8.2947976E-05 C168.36227,-0.020926058 193.10515,3.9484074 218.64354,12.497855 C231.41306,16.772678 244.3812,22.19252 257.57629,28.831301 C259.22568,29.661148 260.8786,30.510038 262.53516,31.37812 L266.08929,33.277756 L250.33566,61.698074 L248.03333,60.210831 C206.9516,34.344505 155.3123,23.013945 105.85455,23.657913 C81.124931,23.979937 56.940521,27.295595 34.893135,33.284828 C23.869396,36.279465 13.379939,39.942497 3.6237991,44.233833 C2.4042797,44.77026 1.1962167,45.316502 0,45.872478 C45.506584,17.933899 91.468315,1.0855421 139.66687,0.050629608 C141.17305,0.018290045 142.68143,0.0013923032 144.19205,8.2947976E-05 z" Stretch="Uniform" Grid.Row="1" Grid.Column="1" Opacity="0.1" Margin="15 15 20 15" Fill="{StaticResource GaugeCoverBrush}" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1Gauge:C1SpeedometerGauge">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard />
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <!-- Background and border -->
                        <Path x:Name="BgPath" Stretch="Fill" Data="M100,4.4270835 C121.67871,4.4271331 142.42424,10.846354 161.0909,22.471874 C170.48485,28.289063 179.39394,35.398956 187.75757,43.651039 C189.8606,45.6875 191.87878,47.8125 193.93939,50.026043 C194.90909,51.159374 195.75757,52.239582 196.9697,53.390625 L196.9697,53.479168 L150.30302,165.57292 L150.18182,165.57292 L150.08485,165.48438 C135.75757,160.70313 121.12122,157.92291 106,157.33853 C90.84848,156.71875 75.757576,158.48958 61.21212,162.03125 C57.575756,162.91667 54.08342,164.31563 50.527275,165.48438 L50.388664,165.57292 L50.303032,165.57292 L3.030303,53.479168 L3.090909,53.390625 C18.909092,35.239582 37.151516,21.25 56.969696,13.139584 C66.963638,9.0135412 77.272728,6.1979165 87.878784,5.091146 C90.581825,4.78125 93.27272,4.6041665 95.939392,4.4270835 C97.272728,4.4270835 98.666672,4.4270864 100,4.4270835 z" Fill="{TemplateBinding Background}"  Stroke="{TemplateBinding BorderBrush}"  StrokeThickness="{Binding BorderThickness, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource projectThicknessConverter}, ConverterParameter=left}" />
                        <!-- Face and decorators -->
                        <Border x:Name="FaceBorder" Visibility="{TemplateBinding FaceVisibility}" />
                        <Canvas x:Name="DecoratorsLayer" Visibility="{TemplateBinding DecoratorsVisibility}" />
                        <!-- Pointer and PointerCap -->
                        <Grid Visibility="{TemplateBinding PointerVisibility}">
                            <c1Gauge:C1RadialGaugePointer x:Name="Pointer" Style="{StaticResource SpeedometerPointerStyle}" Background="{TemplateBinding PointerFill}"  BorderBrush="{TemplateBinding PointerStroke}" Offset="{TemplateBinding PointerOffset}" PointerLength="{TemplateBinding PointerLength}" PointerWidth="{TemplateBinding PointerWidth}" Thickness="{TemplateBinding PointerStrokeThickness}" Location="{TemplateBinding PointerOrigin}" />
                            <c1Gauge:C1RadialGaugePointerCap x:Name="PointerCap" Visibility="Collapsed" CapSize="{TemplateBinding PointerCapSize}" Location="{TemplateBinding PointerOrigin}" Background="{TemplateBinding PointerCapFill}" BorderBrush="{TemplateBinding PointerCapStroke}" StrokeThickness="{TemplateBinding PointerCapStrokeThickness}" />
                        </Grid>
                        <!-- Cover -->
                        <Border x:Name="CoverBorder" Visibility="{TemplateBinding CoverVisibility}" Margin="{TemplateBinding BorderThickness}" />
                        <Path x:Name="DisabledVisualElement" Stretch="Fill" Data="M160,0 C195.76987,5.6E-05 230,7.25 260.8,20.38 C276.3,26.95 291,34.98 304.8,44.3 C308.27,46.6 311.6,49 315,51.5 C316.6,52.78 318,54 320,55.3 L320,55.4 L243,182 L242.8,182 L242.64,181.9 C219,176.5 194.85,173.36 169.9,172.7 C144.9,172 120,174 96,178 C90,179 84.23764,180.58 78.37,181.9 L78.141296,182 L78,182 L0,55.4 L0.1,55.3 C26.2,34.8 56.3,19 89,9.84 C105.49,5.18 122.5,2 140,0.75 C144.46,0.4 148.9,0.2 153.3,0 C155.5,0 157.8,3.49E-06 160,0 z" Opacity="0" Fill="{StaticResource DisabledBrush}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--******************** C1VolumeGauge Brushes & Styles ********************-->

    <!-- Brush @ C1VolumeGauge Pointer Base -->
    <LinearGradientBrush x:Key="VolumeGaugePointerBase" StartPoint="0,1" EndPoint="0,0">
        <GradientStop Color="#FF8196A8" Offset="0" />
        <GradientStop Color="#FFA2B2C1" Offset="1" />
    </LinearGradientBrush>
    <!-- Brush @ C1VolumeGauge PointerCap Base -->
    <SolidColorBrush x:Key="VolumeGaugePointerCapBrush" Color="#FFA2B2C1"/>

    <!-- Thickness @ C1VolumeGauge -->
    <Thickness x:Key="VolumeGaugeBorderThickenss">0</Thickness>

    <!--Pointer @ Volume Pointer Style-->
    <Style x:Key="VolumeGaugePointerStyle" TargetType="c1Gauge:C1RadialGaugePointer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1Gauge:C1RadialGaugePointer">
                    <Grid x:Name="Root">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="0.88*" />
                            <RowDefinition Height="0.12*" />
                        </Grid.RowDefinitions>
                        <Path x:Name="Root2" Grid.RowSpan="2" Stretch="Fill" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding Thickness}" Data="M59.528381,9.6034966 C59.528381,9.6034966 57.735634,5.8600001 57.735634,5.8600001 C57.735634,5.8600001 56.26329,5.8598557 56.26329,5.8598557 C56.26329,5.8598557 54.395199,9.6046124 54.395199,9.6046124 C54.395199,9.6046124 59.528381,9.6034966 59.528381,9.6034966 z" Fill="{TemplateBinding Background}" />
                        <Path Grid.Row="1" Stretch="Fill" Stroke="{x:Null}" VerticalAlignment="Bottom" Data="M0.58227921,0 L9.4420586,0 L9.4543037,0.35045773 C9.7817192,9.7223034 10,15.9702 10,15.9702 C10,15.9702 0,15.999996 0,15.999996 C0,15.999996 0.22745132,9.7499962 0.56863403,0.37499654 z" Fill="{TemplateBinding Foreground}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- C1VolumeGauge -->
    <Style TargetType="c1Gauge:C1VolumeGauge">
        <Setter Property="Background" Value="{ThemeResource SliderTrackBackgroundThemeBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource GaugeBorderBrush}" />
        <Setter Property="PointerCapFill" Value="{StaticResource GaugePointerCapBrush}" />
        <Setter Property="PointerCapStroke" Value="{StaticResource GaugePointerCapBorderBrush}" />
        <Setter Property="BorderThickness" Value="{StaticResource VolumeGaugeBorderThickenss}" />
        <Setter Property="PointerFill" Value="{StaticResource GaugePointerBrush}" />
        <Setter Property="PointerStroke" Value="{StaticResource GaugePointerCapBorderBrush}" />
        <Setter Property="PointerStrokeThickness" Value="0" />
        <Setter Property="PointerWidth" Value="0.045" />
        <Setter Property="PointerLength" Value="0.43" />
        <Setter Property="PointerCapStrokeThickness" Value="0" />
        <Setter Property="PointerCapSize" Value="0.15, 0.15" />
        <Setter Property="PointerOffset" Value="-0.06" />
        <Setter Property="PointerOrigin" Value="0.17, 0.5" />
        <Setter Property="AspectRatio" Value="0.6" />
        <Setter Property="Radius" Value="1.35" />
        <Setter Property="StartAngle" Value="10" />
        <Setter Property="SweepAngle" Value="160" />
        <Setter Property="DefaultTextStyle" Value="{StaticResource LabelStyle}" />
        <Setter Property="DefaultBigMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Path Stretch="Fill" Data="M0,0 L380,0 L293.65167,143 L86.348412,143 z" Fill="{StaticResource GaugeMarkBrush}" Height="12" Width="4" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultMiddleMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <Border Margin="0 0 0 1" Width="3" Height="3" Background="{StaticResource GaugeMarkBrush}" />
                        <Border Width="3" Height="3" Background="{StaticResource GaugeMarkBrush}" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultSmallMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Border Width="3" Height="3" Background="{StaticResource GaugeMarkBrush}" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="FaceTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="CoverTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Path Data="M200,223.04108 L200,290 C200,295.52368 195.52243,300 190,300 L140.89882,300 z M200,200.02205 L200,215.27515 L134.69096,300 L119.35914,300 z M200,151.22646 L200,187.61452 L198.73482,189.20488 C175.46921,218.44943 128.89725,276.85828 110.04823,299.58215 L109.70074,300 L86.130249,300 L86.187881,299.92661 C108.8968,270.95313 168.42102,192.7692 199.03398,152.49738 z M200,95.609291 L200,140.64832 L198.14203,143.05412 C170.61644,178.69843 118.29472,246.53543 89.23307,284.75327 C84.874046,290.48569 81.038628,295.55148 77.888695,299.74225 L77.695251,300 L45.995995,300 z M91.495399,1.1777956E-10 L149.89868,1.1777956E-10 L1.2255441E-10,187.59537 L1.2255441E-10,104.9045 z M61.116806,1.1777956E-10 L83.207611,1.1777956E-10 L1.2255441E-10,96.244873 L1.2255441E-10,64.12249 z M9.9999981,1.1777956E-10 L38.411694,1.1777956E-10 L1.2255441E-10,41.310265 L1.2255441E-10,9.9999981 C-2.7048751E-05,4.4770947 4.4770856,-2.6518423E-05 9.9999981,1.1777956E-10 z" Stretch="Fill" Fill="{StaticResource GaugeCoverBrush}" Margin="{StaticResource VolumeGaugeBorderThickenss}" Opacity="0.02" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1Gauge:C1VolumeGauge">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard />
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <!-- Background and border -->
                        <Border x:Name="BdBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="10" />
                        <!-- Face and decorators -->
                        <Border x:Name="FaceBorder" Visibility="{TemplateBinding FaceVisibility}" />

                        <Canvas x:Name="DecoratorsLayer" Visibility="{TemplateBinding DecoratorsVisibility}" />
                        <!-- Pointer and PointerCap -->
                        <Grid Visibility="{TemplateBinding PointerVisibility}">
                            <c1Gauge:C1RadialGaugePointerCap x:Name="PointerCap" Style="{TemplateBinding PointerCapStyle}" BorderBrush="{TemplateBinding PointerCapStroke}" BorderThickness="{TemplateBinding PointerCapStrokeThickness}" CapSize="{TemplateBinding PointerCapSize}" Location="{TemplateBinding PointerOrigin}" StrokeThickness="{TemplateBinding PointerCapStrokeThickness}" />
                            <c1Gauge:C1RadialGaugePointer x:Name="Pointer" Style="{StaticResource VolumeGaugePointerStyle}" Background="{TemplateBinding PointerFill}" BorderBrush="{TemplateBinding PointerStroke}" Offset="{TemplateBinding PointerOffset}" PointerLength="{TemplateBinding PointerLength}" PointerWidth="{TemplateBinding PointerWidth}" Thickness="{TemplateBinding PointerStrokeThickness}" Location="{TemplateBinding PointerOrigin}" />
                        </Grid>
                        <!-- Cover -->
                        <Border x:Name="CoverBorder" Visibility="{TemplateBinding CoverVisibility}" />
                        <Border x:Name="DisabledVisualElement" Background="{StaticResource DisabledBrush}" CornerRadius="15" Opacity="0" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <!--******************** C1Knob Brushes & Styles ********************-->

    <SolidColorBrush x:Key="KnobBackgroundBrush" Color="Transparent" />
    <!-- Brush @ C1Knob Face Background -->
    <SolidColorBrush x:Key="KnobFaceGradient" Color="#26FFFFFF" />

    <!-- Style @ C1Knob Face -->
    <Style x:Key="KnobFaceStyle" TargetType="Ellipse">
        <Setter Property="Fill" Value="{StaticResource KnobFaceGradient}" />
        <Setter Property="Stroke" Value="{StaticResource GaugeBorderBrush}" />
    </Style>


    <!-- Thickness @ C1Knob -->
    <Thickness x:Key="KnobBorderThickness">0</Thickness>

    <!-- Brush @ C1Knob Pointer -->
    <LinearGradientBrush x:Key="KnobPointerBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFEFEFEF" />
        <GradientStop Color="#FFF7F7F7" Offset="0.35" />
        <GradientStop Color="#FFF7F7F7" Offset="0.75" />
        <GradientStop Color="#FFEFEFEF" Offset="1" />
    </LinearGradientBrush>

    <!-- Pointer @ C1Knob -->
    <Style TargetType="c1Gauge:C1KnobPointer">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="c1Gauge:C1KnobPointer">
                        <Grid x:Name="Root">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.043*" />
                                <RowDefinition Height="0.053*" />
                                <RowDefinition Height="0.903*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.45*" />
                                <ColumnDefinition Width="0.1*" />
                                <ColumnDefinition Width="0.45*" />
                            </Grid.ColumnDefinitions>
                            <Path x:Name="Shadow" Data="M52,0.3 L52,114.5 C52,114.5 49.3,85.67 49.1,55.16 C48.94,24.3 52,0.3 52,0.3 z" HorizontalAlignment="Right" Width="8" Stretch="Fill" Fill="#19000000" Stroke="{x:Null}" Grid.RowSpan="3" />
                            <Border x:Name="Background" CornerRadius="1" Background="{TemplateBinding Background}"  BorderBrush="{TemplateBinding BorderBrush}" Grid.RowSpan="3" Grid.Column="1" />
                            <Path x:Name="Arrow" Grid.Column="1" Grid.Row="1" Data="M55.3,9.65 L58.6,9.65 L57.,5.86 z" Height="6" Width="12" Stretch="Fill" Stroke="{x:Null}" Fill="{TemplateBinding Foreground}" StrokeThickness="{TemplateBinding Thickness}" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <!-- PointerCap @ C1Knob -->
    <Style TargetType="c1Gauge:C1KnobPointerCap">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="c1Gauge:C1KnobPointerCap">
                        <Grid>
                            <Ellipse x:Name="Root" Stretch="Fill" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding StrokeThickness}" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <!-- C1Knob -->
    <Style TargetType="c1Gauge:C1Knob">
        <Setter Property="Background" Value="{ThemeResource SliderTrackBackgroundThemeBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource GaugeBorderBrush}" />
        <Setter Property="PointerFill" Value="{StaticResource GaugePointerCapBrush}" />
        <Setter Property="PointerCapFill" Value="{StaticResource KnobPointerCapBrush}" />
        <Setter Property="PointerCapStroke" Value="{StaticResource KnobPointerCapBrush}" />
        <Setter Property="BorderThickness" Value="{StaticResource KnobBorderThickness}" />
        <Setter Property="PointerStroke" Value="{StaticResource GaugePointerCapBrush}" />
        <Setter Property="PointerStrokeThickness" Value="1" />
        <Setter Property="PointerCapStrokeThickness" Value="1" />
        <Setter Property="PointerCapSize" Value="0.78, 0.78" />
        <Setter Property="PointerOrigin" Value="0.5, 0.5" />
        <Setter Property="PointerWidth" Value="0.8" />
        <Setter Property="PointerLength" Value="0.8" />
        <Setter Property="PointerOffset" Value="-0.4" />
        <Setter Property="DefaultTextStyle" Value="{StaticResource LabelStyle}" />
        <Setter Property="DefaultBigMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Border Style="{StaticResource DefaultBigMarkStyle}" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultMiddleMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Border Style="{StaticResource DefaultMiddleMarkStyle}" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultSmallMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <Border Style="{StaticResource DefaultSmallMarkStyle}" />
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="FaceTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Ellipse x:Name="FaceGradient" Style="{StaticResource KnobFaceStyle}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="CoverTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1Gauge:C1Knob">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard />
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>

                        <!-- Background and border -->
                        <c1_gaugePrimitives:C1Ellipse StrokeThickness="{TemplateBinding BorderThickness}" Stroke="{TemplateBinding BorderBrush}" Fill="{TemplateBinding Background}" />
                        <!-- Face and decorators -->
                        <Border x:Name="FaceBorder" Visibility="{TemplateBinding FaceVisibility}" />
                        <Canvas x:Name="DecoratorsLayer" Visibility="{TemplateBinding DecoratorsVisibility}" />
                        <!-- Pointer and PointerCap -->
                        <Grid Visibility="{TemplateBinding PointerVisibility}">
                            <c1Gauge:C1KnobPointerCap x:Name="PointerCap" CapSize="{TemplateBinding PointerCapSize}" Location="{TemplateBinding PointerOrigin}" BorderBrush="{TemplateBinding PointerCapStroke}" StrokeThickness="{TemplateBinding PointerCapStrokeThickness}" Background="{TemplateBinding PointerCapFill}" Style="{TemplateBinding PointerCapStyle}" />
                            <c1Gauge:C1KnobPointer x:Name="Pointer" PointerLength="{TemplateBinding PointerLength}" PointerWidth="{TemplateBinding PointerWidth}" Location="{TemplateBinding PointerOrigin}" Offset="{TemplateBinding PointerOffset}" BorderBrush="{TemplateBinding PointerStroke}" Thickness="{TemplateBinding PointerStrokeThickness}" Background="{TemplateBinding PointerFill}" Foreground="{TemplateBinding Foreground}" Style="{TemplateBinding PointerStyle}" />
                        </Grid>
                        <!-- Cover -->
                        <Border x:Name="CoverBorder" Visibility="{TemplateBinding CoverVisibility}" />
                        <Ellipse x:Name="DisabledVisualElement" IsHitTestVisible="False" Fill="{StaticResource DisabledBrush}" Opacity="0" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--******************** C1RegionKnob Brushes & Styles ********************-->

    <!-- Thickness @ C1RegiobKnob -->
    <Thickness x:Key="RegiobKnobBorderThickness">0</Thickness>

    <!-- Region Knob Pointer Style-->
    <Style x:Key="RegionGaugePointerStyle" TargetType="c1Gauge:C1RadialGaugePointer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1Gauge:C1RadialGaugePointer">
                    <Path x:Name="Root" Fill="{TemplateBinding Background}" Stretch="Fill" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding Thickness}" Data="M82.530624,8.2604218 L75.045441,17 L67.565315,8.2800417 L66.7136,8.3346586 C51.882103,9.4716997 37.603683,13.55516 24.954906,20.033722 C21.792723,21.653358 18.719213,23.4216 15.743622,25.329273 C14.255835,26.283098 12.792512,27.271776 11.354832,28.294146 L10.934647,28.600595 L75.023247,107.20074 L139.30835,28.732367 L138.70831,28.294737 C127.20663,20.115307 114.06508,14.093137 99.873314,10.816895 C96.325287,9.9978237 92.699638,9.3491144 89.02684,8.8824968 C87.19043,8.649189 85.342224,8.4614058 83.486031,8.3206129 z M75.031906,0 C91.3246,-2.6702424E-05 106.84598,3.301717 120.96381,9.2729368 C128.02228,12.258363 134.73019,15.911176 141.00793,20.152391 C142.57733,21.212664 144.11989,22.309694 145.63429,23.442247 C146.39151,24.008532 147.14169,24.583693 147.88467,25.167582 L150.07201,26.929201 L150.03247,26.99975 L150.036,26.99975 L75.044533,118.00001 L74.964424,118.00001 L4.9766502,33.190651 L4.9738655,33.193005 L0.031475067,26.999939 L0,26.922497 L2.1792603,25.167379 C14.06753,15.824936 27.79475,8.7170649 42.727268,4.4763093 C50.19392,2.3557665 57.961998,0.9520269 65.952698,0.344069 C67.950386,0.19207144 69.961967,0.089816332 71.986191,0.038539648 C72.998306,0.012896061 74.013603,-1.6689301E-06 75.031906,0 z" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Region Knob Style-->
    <Style TargetType="c1Gauge:C1RegionKnob">
        <Setter Property="Background" Value="{ThemeResource SliderTrackBackgroundThemeBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource GaugeBorderBrush}" />
        <Setter Property="PointerCapFill" Value="{StaticResource GaugePointerCapBrush}" />
        <Setter Property="PointerCapStroke" Value="{StaticResource GaugePointerCapBorderBrush}" />
        <Setter Property="BorderThickness" Value="{StaticResource RadialGaugeBorderThickness}" />
        <Setter Property="BorderThickness" Value="{StaticResource RegiobKnobBorderThickness}" />
        <Setter Property="PointerFill" Value="{StaticResource RegionPointerBrush}" />
        <Setter Property="PointerStroke" Value="{StaticResource GaugePointerBorderBrush}" />
        <Setter Property="PointerStrokeThickness" Value="1" />
        <Setter Property="PointerCapStrokeThickness" Value="1" />
        <Setter Property="PointerCapSize" Value="0.16, 0.16" />
        <Setter Property="PointerWidth" Value="0.55" />
        <Setter Property="PointerLength" Value="0.43" />
        <Setter Property="PointerOffset" Value="-0.028" />
        <Setter Property="DefaultTextStyle" Value="{StaticResource LabelStyle}" />
        <Setter Property="DefaultBigMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Height="10" Width="1" Background="{StaticResource GaugeMarkBrush}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultMiddleMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Height="6" Width="1" Background="{StaticResource GaugeMarkBrush}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultSmallMarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border Height="2" Width="2" CornerRadius="2" Background="{StaticResource GaugeMarkBrush}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="FaceTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Ellipse Margin="15" Fill="{StaticResource KnobFaceGradient}" Stroke="{StaticResource GaugeBorderBrush}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="CoverTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1Gauge:C1RegionKnob">
                    <Grid x:Name="Root">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard />
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <!-- Background and border -->
                        <c1_gaugePrimitives:C1Ellipse Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" />
                        <!-- Face and decorators -->
                        <Border x:Name="FaceBorder" Visibility="{TemplateBinding FaceVisibility}" />
                        <Canvas x:Name="DecoratorsLayer" Visibility="{TemplateBinding DecoratorsVisibility}" />
                        <!-- Pointer and PointerCap -->
                        <Grid Visibility="{TemplateBinding PointerVisibility}">
                            <c1Gauge:C1RadialGaugePointer x:Name="Pointer" Style="{StaticResource RegionGaugePointerStyle}" Background="{TemplateBinding PointerFill}"  BorderBrush="{TemplateBinding PointerStroke}" Offset="{TemplateBinding PointerOffset}" PointerLength="{TemplateBinding PointerLength}" PointerWidth="{TemplateBinding PointerWidth}" Thickness="{TemplateBinding PointerStrokeThickness}" Location="{TemplateBinding PointerOrigin}" />
                            <c1Gauge:C1RadialGaugePointerCap x:Name="PointerCap" Style="{TemplateBinding PointerCapStyle}" Background="{TemplateBinding PointerCapFill}" BorderBrush="{TemplateBinding PointerCapStroke}" CapSize="{TemplateBinding PointerCapSize}" Location="{TemplateBinding PointerOrigin}" StrokeThickness="{TemplateBinding PointerCapStrokeThickness}" />
                        </Grid>
                        <!-- Cover -->
                        <Border x:Name="CoverBorder" Visibility="{TemplateBinding CoverVisibility}" />
                        <Ellipse x:Name="DisabledVisualElement" IsHitTestVisible="False" Fill="{StaticResource DisabledBrush}" Opacity="0" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>