<ResourceDictionary
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:system="clr-namespace:System;assembly=mscorlib"
        xmlns:shapes="clr-namespace:Telerik.Windows.Shapes;assembly=Telerik.Windows.Controls"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:telerikData="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
        xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
        xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
        xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
        xmlns:datavizControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:barcode="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:barcodes="clr-namespace:Telerik.Windows.Controls.Barcode;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:dataBars="clr-namespace:Telerik.Windows.Controls.DataBars;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:heatMaps="clr-namespace:Telerik.Windows.Controls.HeatMap;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:treemaps="clr-namespace:Telerik.Windows.Controls.TreeMap;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:sparklines="clr-namespace:Telerik.Windows.Controls.Sparklines;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:gauges="clr-namespace:Telerik.Windows.Controls.Gauge;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:maps="clr-namespace:Telerik.Windows.Controls.Map;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:bulletGraphs="clr-namespace:Telerik.Windows.Controls.BulletGraph;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:timeBars="clr-namespace:Telerik.Windows.Controls.TimeBar;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:timelines="clr-namespace:Telerik.Windows.Controls.Timeline;assembly=Telerik.Windows.Controls.DataVisualization"
        xmlns:c="http://schemas.telerik.com/2008/xaml/compile"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="c"
        xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options">
    <ResourceDictionary.MergedDictionaries>
        <telerik:Windows8TouchResourceDictionary/>
    </ResourceDictionary.MergedDictionaries>
    <SolidColorBrush x:Key="Foreground" Color="Black"/>
    <telerik:BooleanToVisibilityConverter x:Key="barcodeBooleanToVisibilityConverter"/>
    <telerik:BooleanConverter x:Key="barcodeBooleanToTextRowHeightConverter" TrueValue="1*" FalseValue="0"/>
    <Style x:Key="Barcode39Style" TargetType="datavizControls:RadBarcode39">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcode39">
                    <Grid x:Name="PART_RadBarcode39" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcode39Path" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcode39FullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Barcode93Style" TargetType="datavizControls:RadBarcode93">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcode93">
                    <Grid x:Name="PART_RadBarcode93" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcode93Path" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcode93FullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Barcode93ExtendedStyle" TargetType="datavizControls:RadBarcode93Extended">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcode93Extended">
                    <Grid x:Name="PART_RadBarcode93Extended" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcode93ExtendedPath" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcode93ExtendedFullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodeUPCSupplement5Style" TargetType="datavizControls:RadBarcodeUPCSupplement5">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodeUPCSupplement5">
                    <Grid x:Name="PART_RadBarcodeUPCSupplement5" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcodeUPCSupplement5Path" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeUPCSupplement5FullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodeUPCSupplement2Style" TargetType="datavizControls:RadBarcodeUPCSupplement2">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodeUPCSupplement2">
                    <Grid x:Name="PART_RadBarcodeUPCSupplement2" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcodeUPCSupplement2Path" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeUPCSupplement2FullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Barcode25StandardStyle" TargetType="datavizControls:RadBarcode25Standard">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcode25Standard">
                    <Grid x:Name="PART_RadBarcode25Standard" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcode25StandardPath" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcode25StandardFullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Barcode25InterleavedStyle" TargetType="datavizControls:RadBarcode25Interleaved">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcode25Interleaved">
                    <Grid x:Name="PART_RadBarcode25Interleaved" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcode25InterleavedPath" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcode25InterleavedFullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodeMSIStyle" TargetType="datavizControls:RadBarcodeMSI">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodeMSI">
                    <Grid x:Name="PART_RadBarcodeMSI" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcodeMSIPath" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeMSIFullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodeCodebarStyle" TargetType="datavizControls:RadBarcodeCodebar">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodeCodebar">
                    <Grid x:Name="PART_RadBarcodeCodebar" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcodeCodebarPath" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeCodebarFullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Barcode11Style" TargetType="datavizControls:RadBarcode11">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcode11">
                    <Grid x:Name="PART_RadBarcode11" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path x:Name="RadBarcode11Path" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcode11FullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Barcode39ExtendedStyle" TargetType="datavizControls:RadBarcode39Extended">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcode39Extended">
                    <Grid x:Name="PART_RadBarcode39Extended" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcode39ExtendedPath" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcode39ExtendedFullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Barcode128Style" TargetType="datavizControls:RadBarcode128">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcode128">
                    <Grid x:Name="PART_RadBarcode128" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcode128Path" Stretch="Fill" Grid.Row="0" Grid.Column="2"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="2"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcode128FullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Barcode128AStyle" TargetType="datavizControls:RadBarcode128A">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcode128A">
                    <Grid x:Name="PART_RadBarcode128A" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcode128APath" Stretch="Fill" Grid.Row="0" Grid.Column="2"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="2"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcode128AFullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Barcode128BStyle" TargetType="datavizControls:RadBarcode128B">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcode128B">
                    <Grid x:Name="PART_RadBarcode128B" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcode128BPath" Stretch="Fill" Grid.Row="0" Grid.Column="2"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="2"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcode128BFullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Barcode128CStyle" TargetType="datavizControls:RadBarcode128C">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcode128C">
                    <Grid x:Name="PART_RadBarcode128C" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcode128CPath" Stretch="Fill" Grid.Row="0" Grid.Column="2"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="2"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcode128CFullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodeEAN13Style" TargetType="datavizControls:RadBarcodeEAN13">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodeEAN13">
                    <Grid x:Name="PART_RadBarcodeEAN13" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="7*"/>
                            <RowDefinition Height="1*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path x:Name="RadBarcodeEAN13StartGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2"/>
                        <Path x:Name="RadBarcodeEAN13LeftGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="3" Grid.Row="0"/>
                        <Path x:Name="RadBarcodeEAN13MiddleGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="5" Grid.Row="0" Grid.RowSpan="2"/>
                        <Path x:Name="RadBarcodeEAN13RightGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="7" Grid.Row="0"/>
                        <Path x:Name="RadBarcodeEAN13TrailingGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="9" Grid.Row="0" Grid.RowSpan="2"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="0"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeEAN13LeadingText" MinHeight="12" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Viewbox>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="3"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeEAN13LeftText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="7"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeEAN13RightText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodeEAN8Style" TargetType="datavizControls:RadBarcodeEAN8">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodeEAN8">
                    <Grid x:Name="PART_RadBarcodeEAN8" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="7*"/>
                            <RowDefinition Height="1*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path x:Name="RadBarcodeEAN8StartGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2"/>
                        <Path x:Name="RadBarcodeEAN8LeftGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="2" Grid.Row="0"/>
                        <Path x:Name="RadBarcodeEAN8MiddleGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="4" Grid.Row="0" Grid.RowSpan="2"/>
                        <Path x:Name="RadBarcodeEAN8RightGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="6" Grid.Row="0"/>
                        <Path x:Name="RadBarcodeEAN8TrailingGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="8" Grid.Row="0" Grid.RowSpan="2"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="2"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeEAN8LeftText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="6"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeEAN8RightText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodeUPCAStyle" TargetType="datavizControls:RadBarcodeUPCA">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodeUPCA">
                    <Grid x:Name="PART_RadBarcodeUPCA" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="7*"/>
                            <RowDefinition Height="1*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path x:Name="RadBarcodeUPCAStartGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2"/>
                        <Path x:Name="RadBarcodeUPCALeftGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="3" Grid.Row="0"/>
                        <Path x:Name="RadBarcodeUPCAMiddleGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="5" Grid.Row="0" Grid.RowSpan="2"/>
                        <Path x:Name="RadBarcodeUPCARightGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="7" Grid.Row="0"/>
                        <Path x:Name="RadBarcodeUPCATrailingGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="9" Grid.Row="0" Grid.RowSpan="2"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="0"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeUPCALeadingText" MinHeight="12" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Viewbox>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="3"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeUPCALeftText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="7"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeUPCARightText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="10"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeUPCATrailingText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodeUPCEStyle" TargetType="datavizControls:RadBarcodeUPCE">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodeUPCE">
                    <Grid x:Name="PART_RadBarcodeUPCE" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="7*"/>
                            <RowDefinition Height="1*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path x:Name="RadBarcodeUPCEStartGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2"/>
                        <Path x:Name="RadBarcodeUPCEGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="3" Grid.Row="0"/>
                        <Path x:Name="RadBarcodeUPCETrailingGeometry" Fill="{TemplateBinding Foreground}" Stretch="Fill" Grid.Column="5" Grid.Row="0" Grid.RowSpan="2"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="0"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeUPCELeadingText" MinHeight="12" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Viewbox>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="3"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeUPCEFullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="6"
                                Grid.Row="1"
                                Grid.RowSpan="2"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodeUPCETrailingText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodePostnetStyle" TargetType="datavizControls:RadBarcodePostnet">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodePostnet">
                    <Grid x:Name="PART_RadBarcodePostnet" Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="3*"/>
                            <RowDefinition Height="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToTextRowHeightConverter}}"/>
                        </Grid.RowDefinitions>
                        <Path Fill="{TemplateBinding Foreground}" x:Name="RadBarcodePostnetGeometry" Stretch="Fill" Grid.Row="0" Grid.Column="1"/>
                        <Viewbox
                                MinHeight="12"
                                Grid.Column="1"
                                Grid.Row="1"
                                Visibility="{Binding ShowText, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource barcodeBooleanToVisibilityConverter}}">
                            <TextBlock x:Name="RadBarcodePostnetFullText" MinHeight="12" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Viewbox>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodeQRStyle" TargetType="datavizControls:RadBarcodeQR">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodeQR">
                    <Grid x:Name="PART_RadBarcodeQR">
                        <Image HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodePDF417Style" TargetType="datavizControls:RadBarcodePDF417">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodePDF417">
                    <Grid x:Name="PART_RadBarcodePDF417">
                        <Image HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarcodeReaderStyle" TargetType="datavizControls:RadBarcodeReader">
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=MainForegroundBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadBarcodeReader">
                    <Grid x:Name="PART_RadBarcodeReader">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <telerik:RadButton x:Name="OpenButton"
                                Background="LightGray"
                                Margin="0 0 3 6"
                                HorizontalContentAlignment="Left"
                                VerticalContentAlignment="Center"
                                HorizontalAlignment="Left"
                                Grid.Column="0"
                                Grid.Row="0"
                                Content="Choose Image"/>
                        <telerik:RadButton x:Name="DecodeButton" Background="LightGray" Margin="3 0 0 6" Grid.Column="1" Grid.Row="0" Content="Decode Image"/>
                        <Border Background="LightGray" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="4">
                            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
                                <TextBlock TextWrapping="Wrap" Padding="2" x:Name="ReaderResult" Text="Decoded text from the barcode goes here"/>
                            </ScrollViewer>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style BasedOn="{StaticResource BarcodeReaderStyle}" TargetType="datavizControls:RadBarcodeReader"/>
    <Style BasedOn="{StaticResource BarcodeQRStyle}" TargetType="datavizControls:RadBarcodeQR"/>
    <Style BasedOn="{StaticResource Barcode39Style}" TargetType="datavizControls:RadBarcode39"/>
    <Style BasedOn="{StaticResource Barcode39ExtendedStyle}" TargetType="datavizControls:RadBarcode39Extended"/>
    <Style BasedOn="{StaticResource Barcode93Style}" TargetType="datavizControls:RadBarcode93"/>
    <Style BasedOn="{StaticResource Barcode93ExtendedStyle}" TargetType="datavizControls:RadBarcode93Extended"/>
    <Style BasedOn="{StaticResource BarcodeUPCSupplement5Style}" TargetType="datavizControls:RadBarcodeUPCSupplement5"/>
    <Style BasedOn="{StaticResource BarcodeUPCSupplement2Style}" TargetType="datavizControls:RadBarcodeUPCSupplement2"/>
    <Style BasedOn="{StaticResource Barcode25StandardStyle}" TargetType="datavizControls:RadBarcode25Standard"/>
    <Style BasedOn="{StaticResource Barcode25InterleavedStyle}" TargetType="datavizControls:RadBarcode25Interleaved"/>
    <Style BasedOn="{StaticResource BarcodeMSIStyle}" TargetType="datavizControls:RadBarcodeMSI"/>
    <Style BasedOn="{StaticResource BarcodeCodebarStyle}" TargetType="datavizControls:RadBarcodeCodebar"/>
    <Style BasedOn="{StaticResource Barcode11Style}" TargetType="datavizControls:RadBarcode11"/>
    <Style BasedOn="{StaticResource Barcode128Style}" TargetType="datavizControls:RadBarcode128"/>
    <Style BasedOn="{StaticResource Barcode128AStyle}" TargetType="datavizControls:RadBarcode128A"/>
    <Style BasedOn="{StaticResource Barcode128BStyle}" TargetType="datavizControls:RadBarcode128B"/>
    <Style BasedOn="{StaticResource Barcode128CStyle}" TargetType="datavizControls:RadBarcode128C"/>
    <Style BasedOn="{StaticResource BarcodeEAN13Style}" TargetType="datavizControls:RadBarcodeEAN13"/>
    <Style BasedOn="{StaticResource BarcodeEAN8Style}" TargetType="datavizControls:RadBarcodeEAN8"/>
    <Style BasedOn="{StaticResource BarcodeUPCAStyle}" TargetType="datavizControls:RadBarcodeUPCA"/>
    <Style BasedOn="{StaticResource BarcodeUPCEStyle}" TargetType="datavizControls:RadBarcodeUPCE"/>
    <Style BasedOn="{StaticResource BarcodePostnetStyle}" TargetType="datavizControls:RadBarcodePostnet"/>
    <Style BasedOn="{StaticResource BarcodePDF417Style}" TargetType="datavizControls:RadBarcodePDF417"/>
    <system:Double x:Key="DataBarsBorderThickness">0</system:Double>
    <SolidColorBrush x:Key="DataBarNegativeValueBrush" Color="#FFE61E26"/>
    <SolidColorBrush x:Key="DataBarNegativeValueBorderBrush" Color="#FFE61E26"/>
    <Style x:Key="DataBarShapeStyle" TargetType="dataBars:DataBarShape"/>
    <Color x:Key="Windows8TouchColor1">#FF79256B</Color>
    <Color x:Key="Windows8TouchColor2">#FF8EC441</Color>
    <Color x:Key="Windows8TouchColor3">#FF986827</Color>
    <Color x:Key="Windows8TouchColor4">#FFE61E26</Color>
    <dataBars:BrushCollection x:Key="StackedDataBarBrushes">
        <SolidColorBrush Color="{StaticResource Windows8TouchColor1}" PresentationOptions:Freeze="True"/>
        <SolidColorBrush Color="{StaticResource Windows8TouchColor2}" PresentationOptions:Freeze="True"/>
        <SolidColorBrush Color="{StaticResource Windows8TouchColor3}" PresentationOptions:Freeze="True"/>
        <SolidColorBrush Color="{StaticResource Windows8TouchColor4}" PresentationOptions:Freeze="True"/>
    </dataBars:BrushCollection>
    <dataBars:BrushCollection x:Key="StackedDataBarBorderBrushes">
        <SolidColorBrush Color="{StaticResource Windows8TouchColor1}" PresentationOptions:Freeze="True"/>
        <SolidColorBrush Color="{StaticResource Windows8TouchColor2}" PresentationOptions:Freeze="True"/>
        <SolidColorBrush Color="{StaticResource Windows8TouchColor3}" PresentationOptions:Freeze="True"/>
        <SolidColorBrush Color="{StaticResource Windows8TouchColor4}" PresentationOptions:Freeze="True"/>
    </dataBars:BrushCollection>
    <Style x:Key="FastItemsControlBaseStyle" TargetType="sparklines:FastItemsControlBase">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sparklines:FastItemsControlBase">
                    <Border Name="PART_ControlRoot" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DataBarAxisStyle" TargetType="Rectangle">
        <Setter Property="Width" Value="1"/>
    </Style>
    <Style x:Key="RadDataBarStyle" TargetType="datavizControls:RadDataBar">
        <Setter Property="AxisVisibility" Value="Collapsed"/>
        <Setter Property="AxisStyle" Value="{StaticResource DataBarAxisStyle}"/>
        <Setter Property="BarHeightPercent" Value="0.66"/>
        <Setter Property="AxisStroke" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="ValueBrush" Value="{telerik:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="NegativeValueBrush" Value="{StaticResource DataBarNegativeValueBrush}"/>
        <Setter Property="ValueBorderBrush" Value="{telerik:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="NegativeValueBorderBrush" Value="{StaticResource DataBarNegativeValueBorderBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="BarStyle" Value="{StaticResource DataBarShapeStyle}"/>
        <Setter Property="BarBorderThickness" Value="{StaticResource DataBarsBorderThickness}"/>
        <Setter Property="LabelDistance" Value="5"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadDataBar">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <dataBars:DataBarShape
                                    Fill="{TemplateBinding AppliedBarBrush}"
                                    Style="{TemplateBinding BarStyle}"
                                    Stroke="{TemplateBinding AppliedBarBorderBrush}"
                                    StrokeThickness="{TemplateBinding BarBorderThickness}"
                                    HeightPercent="{TemplateBinding BarHeightPercent}"
                                    RightPercent="{TemplateBinding BarRightPercent}"
                                    LeftPercent="{TemplateBinding BarLeftPercent}"
                                    OutOfRangeRule="{TemplateBinding AppliedOutOfRangeRule}"/>
                            <ContentPresenter ContentTemplate="{TemplateBinding AppliedOutOfRangeTemplate}"/>
                            <Rectangle
                                    Margin="{TemplateBinding AppliedAxisMargin}"
                                    Fill="{TemplateBinding AxisStroke}"
                                    Style="{TemplateBinding AxisStyle}"
                                    Visibility="{TemplateBinding AppliedAxisVisibility}"
                                    HorizontalAlignment="Left"/>
                            <TextBlock
                                    Text="{TemplateBinding LabelText}"
                                    Style="{TemplateBinding LabelStyle}"
                                    Visibility="{TemplateBinding LabelVisibility}"
                                    Margin="{TemplateBinding AppliedLabelMargin}"
                                    VerticalAlignment="Center"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadStackedDataBarStyle" TargetType="datavizControls:RadStackedDataBar">
        <Setter Property="AxisStroke" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="AxisVisibility" Value="Collapsed"/>
        <Setter Property="AxisStyle" Value="{StaticResource DataBarAxisStyle}"/>
        <Setter Property="BarHeightPercent" Value="0.66"/>
        <Setter Property="BarBrushes" Value="{StaticResource StackedDataBarBrushes}"/>
        <Setter Property="BarBorderBrushes" Value="{StaticResource StackedDataBarBorderBrushes}"/>
        <Setter Property="BarBorderThickness" Value="{StaticResource DataBarsBorderThickness}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadStackedDataBar">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <dataBars:StackedBarItemsControl
                                    BarHeightPercent="{TemplateBinding BarHeightPercent}"
                                    BarBrushes="{TemplateBinding BarBrushes}"
                                    BarBorderBrushes="{TemplateBinding BarBorderBrushes}"
                                    BarBorderThickness="{TemplateBinding BarBorderThickness}"
                                    BarStyle="{TemplateBinding BarStyle}"
                                    ItemsSource="{TemplateBinding DataBarItems}"
                                    ShowToolTips="{TemplateBinding ShowToolTips}"
                                    IsTabStop="False"/>
                            <ContentPresenter ContentTemplate="{TemplateBinding AppliedUnderflowTemplate}"/>
                            <ContentPresenter ContentTemplate="{TemplateBinding AppliedOverflowTemplate}"/>
                            <Rectangle
                                    Margin="{TemplateBinding AppliedAxisMargin}"
                                    Fill="{TemplateBinding AxisStroke}"
                                    Style="{TemplateBinding AxisStyle}"
                                    Visibility="{TemplateBinding AppliedAxisVisibility}"
                                    HorizontalAlignment="Left"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadStacked100DataBarStyle" TargetType="datavizControls:RadStacked100DataBar">
        <Setter Property="BarHeightPercent" Value="0.66"/>
        <Setter Property="BarBrushes" Value="{StaticResource StackedDataBarBrushes}"/>
        <Setter Property="BarBorderBrushes" Value="{StaticResource StackedDataBarBorderBrushes}"/>
        <Setter Property="BarBorderThickness" Value="{StaticResource DataBarsBorderThickness}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadStacked100DataBar">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <dataBars:StackedBarItemsControl
                                    BarHeightPercent="{TemplateBinding BarHeightPercent}"
                                    BarBrushes="{TemplateBinding BarBrushes}"
                                    BarBorderBrushes="{TemplateBinding BarBorderBrushes}"
                                    BarBorderThickness="{TemplateBinding BarBorderThickness}"
                                    BarStyle="{TemplateBinding BarStyle}"
                                    ItemsSource="{TemplateBinding DataBarItems}"
                                    ShowToolTips="{TemplateBinding ShowToolTips}"
                                    IsTabStop="False"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="StackedBarItemStyle" TargetType="dataBars:StackedBarItem">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dataBars:StackedBarItem">
                    <dataBars:DataBarShape
                            LeftPercent="{Binding LeftPercent}"
                            RightPercent="{Binding RightPercent}"
                            HeightPercent="{TemplateBinding BarHeightPercent}"
                            Fill="{TemplateBinding BarBrush}"
                            Stroke="{TemplateBinding BarBorderBrush}"
                            StrokeThickness="{TemplateBinding BarBorderThickness}"
                            ShowToolTip="{TemplateBinding ShowToolTip}"
                            Style="{TemplateBinding BarStyle}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HorizontalDataAxisTickStyle" TargetType="dataBars:HorizontalDataAxisTick">
        <Setter Property="TickLength" Value="6"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dataBars:HorizontalDataAxisTick">
                    <Rectangle Width="1" Height="{TemplateBinding TickLength}" Fill="{TemplateBinding Stroke}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="VerticalDataAxisTickStyle" TargetType="dataBars:VerticalDataAxisTick">
        <Setter Property="TickLength" Value="6"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dataBars:VerticalDataAxisTick">
                    <Rectangle Width="{TemplateBinding TickLength}" Height="1" Fill="{TemplateBinding Stroke}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HorizontalDataAxisLabelStyle" TargetType="dataBars:HorizontalDataAxisLabel">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dataBars:HorizontalDataAxisLabel">
                    <TextBlock Text="{TemplateBinding LabelText}" Style="{TemplateBinding LabelStyle}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="VerticalDataAxisLabelStyle" TargetType="dataBars:VerticalDataAxisLabel">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Margin" Value="0 0 2 0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="dataBars:VerticalDataAxisLabel">
                    <TextBlock Text="{TemplateBinding LabelText}" Style="{TemplateBinding LabelStyle}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HorizontalDataAxisStyle" TargetType="datavizControls:RadHorizontalDataAxis">
        <Setter Property="Stroke" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadHorizontalDataAxis">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Rectangle Grid.Row="0" Height="1" Fill="{TemplateBinding Stroke}"/>
                        <dataBars:HorizontalDataAxisTicksControl
                                TickLength="{TemplateBinding MinorTickLength}"
                                Grid.Row="1"
                                ItemsSource="{TemplateBinding CalculatedMinorTicks}"
                                VerticalAlignment="Top"
                                Stroke="{TemplateBinding Stroke}"
                                IsTabStop="False"/>
                        <dataBars:HorizontalDataAxisTicksControl
                                TickLength="{TemplateBinding MajorTickLength}"
                                Grid.Row="1"
                                ItemsSource="{TemplateBinding CalculatedMajorTicks}"
                                VerticalAlignment="Top"
                                Stroke="{TemplateBinding Stroke}"
                                IsTabStop="False"/>
                        <dataBars:HorizontalDataAxisLabelsControl Grid.Row="2" ItemsSource="{TemplateBinding CalculatedLabelInfos}" LabelStyle="{TemplateBinding LabelStyle}" IsTabStop="False"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="VerticalDataAxisStyle" TargetType="datavizControls:RadVerticalDataAxis">
        <Setter Property="Stroke" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadVerticalDataAxis">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Rectangle Grid.Column="2" Width="1" Fill="{TemplateBinding Stroke}"/>
                        <dataBars:VerticalDataAxisTicksControl
                                TickLength="{TemplateBinding MinorTickLength}"
                                Grid.Column="1"
                                ItemsSource="{TemplateBinding CalculatedMinorTicks}"
                                HorizontalAlignment="Right"
                                Stroke="{TemplateBinding Stroke}"
                                IsTabStop="False"/>
                        <dataBars:VerticalDataAxisTicksControl
                                TickLength="{TemplateBinding MajorTickLength}"
                                Grid.Column="1"
                                ItemsSource="{TemplateBinding CalculatedMajorTicks}"
                                HorizontalAlignment="Right"
                                Stroke="{TemplateBinding Stroke}"
                                IsTabStop="False"/>
                        <dataBars:VerticalDataAxisLabelsControl Grid.Column="0" ItemsSource="{TemplateBinding CalculatedLabelInfos}" LabelStyle="{TemplateBinding LabelStyle}" IsTabStop="False"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style BasedOn="{StaticResource FastItemsControlBaseStyle}" TargetType="sparklines:FastItemsControlBase"/>
    <Style BasedOn="{StaticResource FastItemsControlBaseStyle}" TargetType="dataBars:StackedBarItemsControl"/>
    <Style BasedOn="{StaticResource FastItemsControlBaseStyle}" TargetType="dataBars:HorizontalDataAxisTicksControl"/>
    <Style BasedOn="{StaticResource FastItemsControlBaseStyle}" TargetType="dataBars:HorizontalDataAxisLabelsControl"/>
    <Style BasedOn="{StaticResource FastItemsControlBaseStyle}" TargetType="dataBars:VerticalDataAxisTicksControl"/>
    <Style BasedOn="{StaticResource FastItemsControlBaseStyle}" TargetType="dataBars:VerticalDataAxisLabelsControl"/>
    <Style BasedOn="{StaticResource RadDataBarStyle}" TargetType="datavizControls:RadDataBar"/>
    <Style BasedOn="{StaticResource RadStackedDataBarStyle}" TargetType="datavizControls:RadStackedDataBar"/>
    <Style BasedOn="{StaticResource RadStacked100DataBarStyle}" TargetType="datavizControls:RadStacked100DataBar"/>
    <Style BasedOn="{StaticResource StackedBarItemStyle}" TargetType="dataBars:StackedBarItem"/>
    <Style BasedOn="{StaticResource HorizontalDataAxisTickStyle}" TargetType="dataBars:HorizontalDataAxisTick"/>
    <Style BasedOn="{StaticResource VerticalDataAxisTickStyle}" TargetType="dataBars:VerticalDataAxisTick"/>
    <Style BasedOn="{StaticResource HorizontalDataAxisLabelStyle}" TargetType="dataBars:HorizontalDataAxisLabel"/>
    <Style BasedOn="{StaticResource VerticalDataAxisLabelStyle}" TargetType="dataBars:VerticalDataAxisLabel"/>
    <Style BasedOn="{StaticResource HorizontalDataAxisStyle}" TargetType="datavizControls:RadHorizontalDataAxis"/>
    <Style BasedOn="{StaticResource VerticalDataAxisStyle}" TargetType="datavizControls:RadVerticalDataAxis"/>
    <Thickness x:Key="MapDefaultLayoutMargin">0</Thickness>
    <SolidColorBrush x:Key="Expander_Background" Color="#00FFFFFF"/>
    <SolidColorBrush x:Key="Expander_BorderBrush" Color="#00FFFFFF"/>
    <Thickness x:Key="Expander_BorderThickness">0</Thickness>
    <Thickness x:Key="MapCommandBarMargin">5 6 0 6</Thickness>
    <Thickness x:Key="MapZoomBarMargin">5 6 0 6</Thickness>
    <system:Double x:Key="MapDropDownHeight">142</system:Double>
    <Thickness x:Key="MapZoomPresetsPanelMargin">0</Thickness>
    <system:Double x:Key="MapMagnifierShadowOpacity">0</system:Double>
    <SolidColorBrush x:Key="MapMagnifierPathStroke" Color="Transparent"/>
    <SolidColorBrush x:Key="MapMagnifierEllipseFill" Color="Transparent"/>
    <system:Double x:Key="MapMagnifierPathSize">16</system:Double>
    <Orientation x:Key="MapScaleOrientation">Vertical</Orientation>
    <Thickness x:Key="MapScaleMargin">0 14 20 14</Thickness>
    <system:Double x:Key="MapScaleHeight">3</system:Double>
    <system:Double x:Key="MapScaleRadiusX">0</system:Double>
    <system:Double x:Key="MapScaleRadiusY">0</system:Double>
    <Thickness x:Key="MapScaleLabelPadding">0</Thickness>
    <Thickness x:Key="MapScaleLabelMargin">0</Thickness>
    <SolidColorBrush x:Key="MapScaleLabelBackground" Color="Transparent"/>
    <SolidColorBrush x:Key="MapScaleLabelBorderBrush" Color="Transparent"/>
    <CornerRadius x:Key="MapScaleLabelCornerRadius">0</CornerRadius>
    <SolidColorBrush x:Key="MapScaleLabelOuterBorderBrush" Color="Transparent"/>
    <Thickness x:Key="MapScaleLabelOuterBorderThickness">0</Thickness>
    <CornerRadius x:Key="MapScaleLabelOuterCornerRadius">0</CornerRadius>
    <Thickness x:Key="MapMouseLocationMargin">20 0 0 0</Thickness>
    <HorizontalAlignment x:Key="MapMouseLocationContentAlignment">Left</HorizontalAlignment>
    <LinearGradientBrush x:Key="MapPushpinBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFF6E6E" Offset="1"/>
        <GradientStop Color="#FFAB0000"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="MapPushpinStroke" EndPoint="0.5,1" StartPoint="0.5,0" MappingMode="RelativeToBoundingBox">
        <GradientStop Color="White"/>
        <GradientStop Color="Black" Offset="0.853"/>
    </LinearGradientBrush>
    <Style x:Key="MapToggleButtonStyle" TargetType="telerikControls:RadToggleButton">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Background" Value="#01FFFFFF"/>
        <Setter Property="FontFamily" Value="{telerikControls:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerikControls:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="Padding" Value="8 0 5 0"/>
        <Setter Property="MinHeight" Value="36"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikControls:RadToggleButton">
                    <Grid x:Name="root" SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="hover"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="content"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="normal">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="focused">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="normal"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                CornerRadius="{TemplateBinding CornerRadius}"/>
                        <Border x:Name="hover"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="Transparent"
                                Opacity="0"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Background="{telerikControls:Windows8TouchResource ResourceKey=LowBrush}"/>
                        <Border x:Name="focused"
                                BorderThickness="1"
                                Background="Transparent"
                                Opacity="0.3"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Visibility="Collapsed"
                                BorderBrush="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                        <ContentControl x:Name="content"
                                Margin="{TemplateBinding Padding}"
                                IsTabStop="False"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                Foreground="{telerikControls:Windows8TouchResource ResourceKey=MainForegroundBrush}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MapRadioButtonStyle" TargetType="telerikControls:RadRadioButton">
        <Setter Property="Background" Value="#01FFFFFF"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="FontFamily" Value="{telerikControls:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerikControls:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="8 0 5 0"/>
        <Setter Property="MinWidth" Value="142"/>
        <Setter Property="MinHeight" Value="36"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikControls:RadRadioButton">
                    <Grid x:Name="root" SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="hover"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="content"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="normal">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="focused">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="normal"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                CornerRadius="{TemplateBinding CornerRadius}"/>
                        <Border x:Name="hover"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="Transparent"
                                Opacity="0"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Background="{telerikControls:Windows8TouchResource ResourceKey=LowBrush}"/>
                        <Border x:Name="focused"
                                BorderThickness="1"
                                Background="Transparent"
                                Opacity="0.3"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Visibility="Collapsed"
                                BorderBrush="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                        <ContentControl x:Name="content"
                                Margin="{TemplateBinding Padding}"
                                IsTabStop="False"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                Foreground="{telerikControls:Windows8TouchResource ResourceKey=MainForegroundBrush}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MapButtonStyle" TargetType="telerikControls:RadButton">
        <Setter Property="Background" Value="#01FFFFFF"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=MainForegroundBrush}"/>
        <Setter Property="FontFamily" Value="{telerikControls:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerikControls:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="8 0 5 0"/>
        <Setter Property="MinWidth" Value="142"/>
        <Setter Property="MinHeight" Value="36"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikControls:RadButton">
                    <Grid x:Name="root" SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="hover"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=MediumBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused"/>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="focused">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="normal"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                CornerRadius="{TemplateBinding CornerRadius}"/>
                        <Border x:Name="hover"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="Transparent"
                                Opacity="0"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Background="{telerikControls:Windows8TouchResource ResourceKey=LowBrush}"/>
                        <Border x:Name="focused"
                                BorderThickness="1"
                                Background="Transparent"
                                Opacity="0.3"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Visibility="Collapsed"
                                BorderBrush="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                        <ContentControl x:Name="content"
                                Margin="{TemplateBinding Padding}"
                                IsTabStop="False"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                Foreground="{telerikControls:Windows8TouchResource ResourceKey=MainForegroundBrush}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MapDropDownButtonStyle" TargetType="telerikControls:RadDropDownButton">
        <Setter Property="Width" Value="36"/>
        <Setter Property="Height" Value="36"/>
        <Setter Property="IsOpen" Value="false"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="BorderBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=MainForegroundBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="3"/>
    </Style>
    <Style x:Key="MapCommandBarButtonStyle" BasedOn="{StaticResource MapDropDownButtonStyle}" TargetType="telerikControls:RadDropDownButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikControls:RadDropDownButton">
                    <Grid SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="PathAnimation">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="PathAnimation">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BackgroundAnimation">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke" Storyboard.TargetName="BackgroundAnimation">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="IsOpenState">
                                <VisualState x:Name="Closed"/>
                                <VisualState x:Name="Opened"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="PopupPlacementState">
                                <VisualState x:Name="PlacementTop"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid x:Name="NormalVisual">
                            <Ellipse x:Name="BackgroundAnimation" StrokeThickness="2" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" Width="30" Height="30"/>
                            <Path x:Name="PathAnimation"
                                    Height="12"
                                    Width="16"
                                    Data="M7.4400015,1.8671846 C9.3731956,1.8671846 10.940001,3.433991 10.940001,5.3671846 C10.940001,7.3003788 9.3731956,8.8671846 7.4400015,8.8671846 C5.5068073,8.8671846 3.9400015,7.3003788 3.9400015,5.3671846 C3.9400015,4.5484748 4.2231193,3.7963815 4.6947594,3.2001686 L7.4400015,5.3671846 L6.7538571,1.9351331 C6.975688,1.8911664 7.2048469,1.8671846 7.4400015,1.8671846 z M7.4581547,1.4698519 C2.8946157,1.469852 0.43023133,4.6345005 0.063376904,5.3771696 C0.42616868,6.1326985 2.8856778,9.390583 7.5418448,9.390583 C12.189886,9.390583 14.583175,6.2339721 14.936215,5.4891596 C14.56083,4.7357736 12.029819,1.469852 7.4581547,1.4698519 z M7.4581547,0 C12.752152,0 14.923622,5.3037601 14.944747,5.3535929 L14.999999,5.481122 L14.947997,5.6107945 C14.928497,5.6590195 13.199674,10.992328 7.8020782,10.992328 L7.5418448,10.999999 C2.1450624,10.999999 0.073127031,5.5518527 0.053220272,5.5020194 L0,5.3728828 L0.054439068,5.2448182 C0.074752092,5.1960568 2.1629381,0 7.4581547,0 z"
                                    Fill="{TemplateBinding Foreground}"/>
                        </Grid>
                        <Popup x:Name="DropDownPopup"
                                AllowsTransparency="True"
                                StaysOpen="False"
                                Focusable="false"
                                Placement="Bottom"
                                IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}">
                            <Grid>
                                <Border x:Name="DropDownPopupBorder"
                                        BorderBrush="Transparent"
                                        Background="Transparent"
                                        BorderThickness="1"
                                        CornerRadius="0"
                                        MinWidth="3"
                                        MinHeight="3"
                                        Width="{TemplateBinding DropDownWidth}"
                                        Height="{TemplateBinding DropDownHeight}"
                                        MaxWidth="{TemplateBinding DropDownMaxWidth}"
                                        MaxHeight="{TemplateBinding DropDownMaxHeight}">
                                    <ContentPresenter x:Name="DropDownPopupContent"
                                            Content="{TemplateBinding DropDownContent}"
                                            ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                            HorizontalAlignment="Stretch"
                                            VerticalAlignment="Stretch"
                                            DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"/>
                                </Border>
                            </Grid>
                        </Popup>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MapZoomBarButtonStyle" BasedOn="{StaticResource MapDropDownButtonStyle}" TargetType="telerikControls:RadDropDownButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikControls:RadDropDownButton">
                    <Grid SnapsToDevicePixels="True">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="PathAnimation">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="PathAnimation">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BackgroundAnimation">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BackgroundAnimation">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="IsOpenState">
                                <VisualState x:Name="Closed"/>
                                <VisualState x:Name="Opened">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0" Storyboard.TargetName="CheckedVisual" Storyboard.TargetProperty="Opacity" To="1"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="PopupPlacementState">
                                <VisualState x:Name="PlacementTop"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStatesGroup">
                                <VisualState x:Name="Unfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.150">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                                            <LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
                                            <LinearDoubleKeyFrame KeyTime="00:00:00.115" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="BackgroundAnimation"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                CornerRadius="20"
                                Width="30"
                                Height="30">
                            <Path
                                    Stretch="Fill"
                                    x:Name="PathAnimation"
                                    StrokeThickness="2"
                                    Width="{StaticResource MapMagnifierPathSize}"
                                    Height="{StaticResource MapMagnifierPathSize}"
                                    Data="M8.4939966,1.9999999 C6.5610008,1.9999999 4.9939971,3.5670033 4.9939971,5.5 C4.9939971,7.4329967 6.5610008,9 8.4939966,9 C10.426993,9 11.993997,7.4329967 11.993997,5.5 C11.993997,3.5670033 10.426993,1.9999999 8.4939966,1.9999999 z M8.4939976,0 C11.531564,-8.7786177E-08 13.993998,2.4624338 13.993998,5.5 C13.993998,8.5375662 11.531564,11 8.4939976,11 C7.3549109,11 6.2967014,10.65372 5.4188957,10.060686 L5.3678761,10.025319 L1.4142134,13.978982 L0,12.564768 L3.9563832,8.6083851 L3.9333115,8.5751028 C3.3402777,7.6972966 2.9939978,6.6390872 2.9939978,5.5 C2.9939978,2.4624338 5.4564314,-8.7786177E-08 8.4939976,0 z"
                                    Fill="{TemplateBinding Foreground}"/>
                        </Border>
                        <Border x:Name="CheckedVisual" Opacity="0"/>
                        <Popup x:Name="DropDownPopup"
                                AllowsTransparency="True"
                                StaysOpen="False"
                                Focusable="false"
                                Placement="Bottom"
                                IsOpen="{Binding Path=IsOpen, RelativeSource={RelativeSource TemplatedParent}}">
                            <Grid>
                                <Border x:Name="DropDownPopupBorder"
                                        BorderBrush="Transparent"
                                        Background="Transparent"
                                        BorderThickness="1"
                                        CornerRadius="0"
                                        MinWidth="3"
                                        MinHeight="3"
                                        Width="{TemplateBinding DropDownWidth}"
                                        Height="{TemplateBinding DropDownHeight}"
                                        MaxWidth="{TemplateBinding DropDownMaxWidth}"
                                        MaxHeight="{TemplateBinding DropDownMaxHeight}">
                                    <ContentPresenter x:Name="DropDownPopupContent"
                                            Content="{TemplateBinding DropDownContent}"
                                            ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                            HorizontalAlignment="Stretch"
                                            VerticalAlignment="Stretch"
                                            DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"/>
                                </Border>
                            </Grid>
                        </Popup>
                        <Border x:Name="CommonStatesWrapper">
                            <Border x:Name="FocusVisual" Visibility="Collapsed" Opacity="0" BorderThickness="1" BorderBrush="Transparent"/>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="ToggleTemplate" TargetType="telerikControls:RadToggleButton">
        <ContentPresenter x:Name="Content"
                Content="{TemplateBinding Content}"
                ContentTemplate="{TemplateBinding ContentTemplate}"
                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
    </ControlTemplate>
    <ControlTemplate x:Key="ExpanderTemplate" TargetType="telerikControls:RadExpander">
        <Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStateGroup">
                    <VisualState x:Name="Normal"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="HeaderStateGroup">
                    <VisualState x:Name="NormalHeader"/>
                    <VisualState x:Name="MouseOverHeader">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="expanderArrow" Storyboard.TargetProperty="Fill" Duration="0">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="HeaderOrientationGroup">
                    <VisualState x:Name="HorizontalOrientation">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="LayoutTransform">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <RotateTransform Angle="0"/>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentTransform" Storyboard.TargetProperty="(Grid.Column)">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <system:Int32>1</system:Int32>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ExpandStateGroup">
                    <VisualState x:Name="Expanded">
                        <Storyboard>
                            <DoubleAnimation
                                    Storyboard.TargetName="expanderArrow"
                                    Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)"
                                    To="180"
                                    Duration="0:0:0.2"/>
                            <DoubleAnimation
                                    Storyboard.TargetName="expanderArrow"
                                    Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
                                    To="-1"
                                    Duration="0:0:0.2"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Collapsed">
                        <Storyboard>
                            <DoubleAnimation
                                    Storyboard.TargetName="expanderArrow"
                                    Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)"
                                    To="0"
                                    Duration="0:0:0.2"/>
                            <DoubleAnimation
                                    Storyboard.TargetName="expanderArrow"
                                    Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
                                    To="1"
                                    Duration="0:0:0.2"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ExpandDirectionStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition>
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(Grid.Column)">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <system:Int32>0</system:Int32>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Row)">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <system:Int32>0</system:Int32>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderButton" Storyboard.TargetProperty="(Grid.Column)">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <system:Int32>0</system:Int32>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <GridLength>Auto</GridLength>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col1" Storyboard.TargetProperty="Width">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <GridLength>Auto</GridLength>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualTransition>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="DirectionDown">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="col0" Storyboard.TargetProperty="Width">
                                <DiscreteObjectKeyFrame KeyTime="0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <GridLength>*</GridLength>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="BorderWrapper"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Background="{TemplateBinding Background}"
                    CornerRadius="0">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition x:Name="col0" Width="Auto"/>
                        <ColumnDefinition x:Name="col1" Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <ContentPresenter x:Name="Content"
                            Margin="{TemplateBinding Padding}"
                            Visibility="Collapsed"
                            Content="{TemplateBinding Content}"
                            ContentTemplate="{TemplateBinding ContentTemplate}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    <telerikControls:RadToggleButton x:Name="HeaderButton"
                            IsTabStop="{TemplateBinding IsTabStop}"
                            TabIndex="{TemplateBinding TabIndex}"
                            HorizontalAlignment="{TemplateBinding HorizontalHeaderAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalHeaderAlignment}"
                            HorizontalContentAlignment="{TemplateBinding HorizontalHeaderAlignment}"
                            VerticalContentAlignment="{TemplateBinding VerticalHeaderAlignment}"
                            Template="{StaticResource ToggleTemplate}"
                            Background="Transparent"
                            IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                            ClickMode="{TemplateBinding ClickMode}"
                            FontSize="{TemplateBinding FontSize}"
                            FontStyle="{TemplateBinding FontStyle}"
                            FontWeight="{TemplateBinding FontWeight}"
                            FontFamily="{TemplateBinding FontFamily}"
                            FontStretch="{TemplateBinding FontStretch}"
                            Foreground="{TemplateBinding Foreground}"
                            Margin="4"
                            FocusVisualStyle="{x:Null}">
                        <Grid x:Name="HeaderPanel" Background="Transparent">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <Grid Grid.Column="0" Grid.Row="0">
                                <Ellipse x:Name="Ellipse"
                                        Width="30"
                                        Height="30"
                                        Fill="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"
                                        Stroke="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"
                                        StrokeThickness="2"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"/>
                                <Path x:Name="expanderArrow"
                                        Data="M0,0 L5,8 L10,0 z"
                                        Fill="{TemplateBinding Foreground}"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"
                                        RenderTransformOrigin="0.5,0.5">
                                    <Path.RenderTransform>
                                        <TransformGroup>
                                            <RotateTransform/>
                                            <TranslateTransform Y="1"/>
                                        </TransformGroup>
                                    </Path.RenderTransform>
                                </Path>
                            </Grid>
                            <telerikPrimitives:LayoutTransformControl RenderTransformOrigin=".5 .5" x:Name="HeaderContentTransform" Grid.Column="0" Grid.Row="0">
                                <ContentPresenter x:Name="HeaderContent"
                                        Grid.Column="1"
                                        VerticalAlignment="Stretch"
                                        HorizontalAlignment="Stretch"
                                        Content="{TemplateBinding Header}"
                                        ContentTemplate="{TemplateBinding HeaderTemplate}"/>
                            </telerikPrimitives:LayoutTransformControl>
                        </Grid>
                    </telerikControls:RadToggleButton>
                </Grid>
            </Border>
        </Grid>
    </ControlTemplate>
    <Style x:Key="MapExpanderStyle" TargetType="telerikControls:RadExpander">
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="BorderBrush" Value="{StaticResource Expander_BorderBrush}"/>
        <Setter Property="BorderThickness" Value="{StaticResource Expander_BorderThickness}"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template" Value="{StaticResource ExpanderTemplate}"/>
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=MainForegroundBrush}"/>
        <Setter Property="Background" Value="{StaticResource Expander_Background}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="animation:AnimationManager.AnimationSelector">
            <Setter.Value>
                <animation:AnimationSelector>
                    <animation:ExpanderExpandCollapseAnimation AnimationName="Expand" Direction="In" SpeedRatio="2" TargetElementName="Content"/>
                    <animation:ExpanderExpandCollapseAnimation AnimationName="Collapse" Direction="Out" SpeedRatio="2" TargetElementName="Content"/>
                </animation:AnimationSelector>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="MapShapeDataTemplate">
        <Canvas x:Name="PART_ShapeCanvas"/>
    </DataTemplate>
    <Style x:Key="RadMapStyle" TargetType="datavizControls:RadMap">
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadMap">
                    <Grid x:Name="PART_LayoutRoot">
                        <maps:MultiScaleImage x:Name="PART_MasterImage"/>
                        <maps:TilesVisualizationLayer x:Name="PART_TilesVisualizationLayer" Background="{TemplateBinding Background}" Grid.RowSpan="2"/>
                        <ItemsPresenter Grid.RowSpan="2"/>
                        <maps:MouseControl x:Name="PART_MouseControl" Grid.RowSpan="2"/>
                        <Grid VerticalAlignment="Bottom" Background="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}">
                            <maps:MapScale x:Name="PART_MapScale" DistanceUnit="{TemplateBinding DistanceUnit}" Visibility="Collapsed"/>
                            <maps:MapMouseLocationIndicator x:Name="PART_MapMouseLocationIndicator" Visibility="Collapsed"/>
                        </Grid>
                        <Grid VerticalAlignment="Bottom" Margin="{StaticResource MapDefaultLayoutMargin}" HorizontalAlignment="Center">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <maps:MapCommandBar x:Name="PART_MapCommandBar" VerticalAlignment="Center"/>
                            <maps:MapZoomBar x:Name="PART_MapZoomBar" VerticalAlignment="Center" Visibility="Collapsed" Grid.Column="1"/>
                        </Grid>
                        <telerik:RadExpander x:Name="PART_MiniMapExpander"
                                Visibility="Collapsed"
                                IsExpanded="{TemplateBinding IsMiniMapExpanded}"
                                VerticalAlignment="Top"
                                HorizontalAlignment="Right"
                                HorizontalHeaderAlignment="Right"
                                VerticalHeaderAlignment="Top"
                                Style="{StaticResource MapExpanderStyle}">
                            <Border
                                    HorizontalAlignment="Stretch"
                                    VerticalAlignment="Stretch"
                                    BorderThickness="1"
                                    Padding="2"
                                    Width="{TemplateBinding MiniMapWidth}"
                                    Height="{TemplateBinding MiniMapHeight}"
                                    BorderBrush="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"
                                    Background="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}">
                                <maps:MiniMap x:Name="PART_MiniMap"/>
                                <Border.Effect>
                                    <DropShadowEffect Opacity="0.3" BlurRadius="10" Direction="270" ShadowDepth="3"/>
                                </Border.Effect>
                            </Border>
                        </telerik:RadExpander>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadMap" BasedOn="{StaticResource RadMapStyle}"/>
    <Style x:Key="MiniMapStyle" TargetType="maps:MiniMap">
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="FontFamily" Value="{telerikControls:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="ViewportAreaFill" Value="#42FFFFFF"/>
        <Setter Property="ViewportAreaStroke" Value="{telerikControls:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:MiniMap">
                    <Grid x:Name="PART_LayoutRoot">
                        <maps:MultiScaleImage x:Name="PART_MasterImage"/>
                        <maps:TilesVisualizationLayer x:Name="PART_TilesVisualizationLayer" Background="{TemplateBinding Background}"/>
                        <ItemsPresenter/>
                        <maps:MouseControl x:Name="PART_MouseControl"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="maps:MiniMap" BasedOn="{StaticResource MiniMapStyle}"/>
    <Style x:Key="TilesVisualizationLayerStyle" TargetType="maps:TilesVisualizationLayer">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:TilesVisualizationLayer">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid x:Name="PART_ContentGrid">
                            <Canvas>
                                <ItemsPresenter x:Name="PART_ItemsPresenter"/>
                            </Canvas>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <maps:MapCanvas/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="InformationLayerStyle" TargetType="maps:InformationLayer">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="DefaultInformationLayerTemplate">
            <Setter.Value>
                <DataTemplate>
                    <maps:Pushpin/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="MapShapeDataTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Canvas x:Name="PART_ShapeCanvas"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:InformationLayer">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Canvas>
                                <ItemsPresenter x:Name="PART_ItemsPresenter"/>
                            </Canvas>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <maps:MapCanvas/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DynamicLayerStyle" TargetType="maps:DynamicLayer">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="DefaultInformationLayerTemplate">
            <Setter.Value>
                <DataTemplate>
                    <maps:Pushpin/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="MapShapeDataTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Canvas x:Name="PART_ShapeCanvas"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:DynamicLayer">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Canvas>
                                <ItemsPresenter x:Name="PART_ItemsPresenter"/>
                            </Canvas>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <maps:MapCanvas/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="VirtualizationLayerStyle" TargetType="maps:VirtualizationLayer">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="DefaultInformationLayerTemplate">
            <Setter.Value>
                <DataTemplate>
                    <maps:Pushpin/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="MapShapeDataTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Canvas x:Name="PART_ShapeCanvas"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:VirtualizationLayer">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Canvas>
                                <ItemsPresenter x:Name="PART_ItemsPresenter"/>
                            </Canvas>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <maps:MapCanvas/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="VisualizationLayerStyle" TargetType="maps:VisualizationLayer">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="DefaultClusterTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid x:Name="ParentRoot" Width="40" Height="25" maps:MapLayer.HotSpot="0.5,1">
                        <Path
                                Width="{Binding Width,ElementName=ParentRoot}"
                                Height="{Binding Height,ElementName=ParentRoot}"
                                Data="M978.6,491.3L958.6,491.3L954.4,500.8L949.9,491.3L930.6,491.3C928.4,491.3,926.6,489.5,926.6,487.3L926.6,433.2C926.6,431.0,928.4,429.2,930.6,429.2L978.6,429.2C980.8,429.2,982.6,431.0,982.6,433.2L982.6,487.3C982.6,489.5,980.8,491.3,978.6,491.3z"
                                StrokeStartLineCap="Flat"
                                Stretch="Fill"
                                StrokeEndLineCap="Flat"
                                Stroke="White"
                                StrokeThickness="1"
                                StrokeMiterLimit="10"
                                StrokeLineJoin="Miter"
                                Fill="#7F000000"/>
                        <StackPanel Margin="5 2 5 5">
                            <TextBlock Foreground="White" HorizontalAlignment="Center" Text="{Binding Path=Count}"/>
                        </StackPanel>
                    </Grid>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <maps:Pushpin/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="DefaultKmlItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel x:Name="PART_Panel"
                            Orientation="Horizontal"
                            maps:MapLayer.Location="{Binding Location}"
                            maps:MapLayer.HotSpot="{Binding HotSpot}"
                            ToolTipService.ToolTip="{Binding ToolTip}">
                        <Image x:Name="PART_Image" Stretch="None" Visibility="{Binding ImageVisibility}" Source="{Binding ImageSource}" RenderTransform="{Binding ImageTransform}"/>
                        <TextBlock x:Name="PART_Text" Margin="2 0 0 0" VerticalAlignment="Center" Text="{Binding Text}"/>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ShapeTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Path x:Name="PART_RangePath"
                            Fill="{Binding ActiveShapeFill.Fill}"
                            Stroke="{Binding ActiveShapeFill.Stroke}"
                            StrokeDashArray="{Binding ActiveShapeFill.StrokeDashArray}"
                            StrokeDashCap="{Binding ActiveShapeFill.StrokeDashCap}"
                            StrokeDashOffset="{Binding ActiveShapeFill.StrokeDashOffset}"
                            StrokeEndLineCap="{Binding ActiveShapeFill.StrokeEndLineCap}"
                            StrokeLineJoin="{Binding ActiveShapeFill.StrokeLineJoin}"
                            StrokeMiterLimit="{Binding ActiveShapeFill.StrokeMiterLimit}"
                            StrokeStartLineCap="{Binding ActiveShapeFill.StrokeStartLineCap}"
                            StrokeThickness="{Binding ActiveShapeFill.StrokeThickness}"
                            Data="{Binding Path=Geometry,Mode=OneWay}"
                            RenderTransformOrigin="{Binding Path=RenderTransformOrigin,Mode=OneWay}"
                            RenderTransform="{Binding Path=Transform,Mode=OneWay}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:VisualizationLayer">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid x:Name="PART_LayerRoot">
                            <Canvas x:Name="PART_CellCanvas"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="maps:TilesVisualizationLayer" BasedOn="{StaticResource TilesVisualizationLayerStyle}"/>
    <Style TargetType="maps:InformationLayer" BasedOn="{StaticResource InformationLayerStyle}"/>
    <Style TargetType="maps:DynamicLayer" BasedOn="{StaticResource DynamicLayerStyle}"/>
    <Style TargetType="maps:VirtualizationLayer" BasedOn="{StaticResource VirtualizationLayerStyle}"/>
    <Style TargetType="maps:VisualizationLayer" BasedOn="{StaticResource VisualizationLayerStyle}"/>
    <Style x:Key="MouseControlStyle" TargetType="maps:MouseControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:MouseControl">
                    <Canvas>
                        <Rectangle x:Name="PART_PixelBox"
                                Fill="#3E1157DC"
                                Stroke="#FF0781F7"
                                StrokeDashArray="20 8"
                                StrokeEndLineCap="Round"
                                StrokeDashCap="Round"
                                StrokeThickness="1.5"
                                RadiusY="8"
                                RadiusX="8"
                                Visibility="Collapsed"/>
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="maps:MouseControl" BasedOn="{StaticResource MouseControlStyle}"/>
    <Style x:Key="MapZoomBarStyle" TargetType="maps:MapZoomBar">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Margin" Value="{StaticResource MapZoomBarMargin}"/>
        <Setter Property="ZoomLevelButtonTemplate">
            <Setter.Value>
                <DataTemplate>
                    <telerik:RadRadioButton
                            Command="{Binding Path=Command}"
                            GroupName="ZoomLevelButtons"
                            Content="{Binding Path=Command.Text}"
                            CommandParameter="{Binding Path=CommandParameter}"
                            Style="{StaticResource MapRadioButtonStyle}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:MapZoomBar">
                    <Grid x:Name="mapNavigation" Background="Transparent">
                        <telerik:RadDropDownButton x:Name="PART_MapNavigationDropDown"
                                Grid.Column="1"
                                HoverDelay="0:0:0.01"
                                KeepOpen="True"
                                CloseOnEscape="False"
                                DropDownPlacement="Top"
                                DropDownHeight="{StaticResource MapDropDownHeight}"
                                Style="{StaticResource MapZoomBarButtonStyle}">
                            <telerik:RadDropDownButton.DropDownContent>
                                <Grid x:Name="PART_DropDownPopupWrapper" Background="#01ffffff" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                    <Border Background="{telerik:Windows8TouchResource ResourceKey=MainBrush}" HorizontalAlignment="Left" Margin="10">
                                        <Grid x:Name="PART_ZoomPresetsPanel"
                                                Margin="{StaticResource MapZoomPresetsPanelMargin}"
                                                Grid.Column="1"
                                                Grid.ColumnSpan="2"
                                                HorizontalAlignment="Stretch"
                                                VerticalAlignment="Stretch"/>
                                        <Border.Effect>
                                            <DropShadowEffect Opacity="0.3" BlurRadius="10" Direction="270" ShadowDepth="3"/>
                                        </Border.Effect>
                                    </Border>
                                </Grid>
                            </telerik:RadDropDownButton.DropDownContent>
                            <Grid>
                                <Path
                                        Stretch="Fill"
                                        StrokeThickness="2"
                                        Width="{StaticResource MapMagnifierPathSize}"
                                        Height="{StaticResource MapMagnifierPathSize}"
                                        Data="M14,12.3 L21,19.6 19.6,21 12.5,13.7 z M8,1 C12,1 15,4 15,8 15,12 12,15 8,15 4,15 1,12 1,8 1,4 4,1 8,1 z"
                                        Stroke="{StaticResource MapMagnifierPathStroke}"
                                        Fill="{telerik:Windows8TouchResource ResourceKey=InvertedBrush}">
                                    <Path.Effect>
                                        <DropShadowEffect BlurRadius="3" Color="#FFFFFFFF" ShadowDepth="0" Opacity="{StaticResource MapMagnifierShadowOpacity}"/>
                                    </Path.Effect>
                                </Path>
                                <Ellipse HorizontalAlignment="Left" VerticalAlignment="Top" Margin="4 4 0 0" Width="6" Height="6" Fill="{StaticResource MapMagnifierEllipseFill}"/>
                            </Grid>
                        </telerik:RadDropDownButton>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="maps:MapZoomBar" BasedOn="{StaticResource MapZoomBarStyle}"/>
    <Style x:Key="MapScaleStyle" TargetType="maps:MapScale">
        <Setter Property="Margin" Value="{StaticResource MapScaleMargin}"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Right"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8TouchResource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=InvertedForegroundBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="StrokeThickness" Value="1"/>
        <Setter Property="ScaleLabelBackground" Value="{StaticResource MapScaleLabelBackground}"/>
        <Setter Property="ScaleLabelBorderBrush" Value="{StaticResource MapScaleLabelBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:MapScale">
                    <StackPanel Orientation="{StaticResource MapScaleOrientation}">
                        <Rectangle x:Name="PART_Rectangle"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                Fill="{TemplateBinding Background}"
                                Stroke="{TemplateBinding BorderBrush}"
                                StrokeThickness="{TemplateBinding StrokeThickness}"
                                Height="{StaticResource MapScaleHeight}"
                                RadiusX="{StaticResource MapScaleRadiusX}"
                                RadiusY="{StaticResource MapScaleRadiusY}"/>
                        <Border
                                Grid.Column="1"
                                Margin="{StaticResource MapScaleLabelMargin}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                BorderBrush="{StaticResource MapScaleLabelOuterBorderBrush}"
                                BorderThickness="{StaticResource MapScaleLabelOuterBorderThickness}"
                                CornerRadius="{StaticResource MapScaleLabelOuterCornerRadius}">
                            <Border
                                    Background="{TemplateBinding ScaleLabelBackground}"
                                    BorderBrush="{TemplateBinding ScaleLabelBorderBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{StaticResource MapScaleLabelCornerRadius}">
                                <TextBlock x:Name="PART_TextBlock" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="{StaticResource MapScaleLabelPadding}"/>
                            </Border>
                        </Border>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MapMouseLocationIndicatorStyle" TargetType="maps:MapMouseLocationIndicator">
        <Setter Property="MinWidth" Value="190"/>
        <Setter Property="Margin" Value="{StaticResource MapMouseLocationMargin}"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="{StaticResource MapMouseLocationContentAlignment}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8TouchResource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=InvertedForegroundBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="StrokeThickness" Value="1"/>
        <Setter Property="IndicatorLabelBackground" Value="{StaticResource MapScaleLabelBackground}"/>
        <Setter Property="IndicatorLabelBorderBrush" Value="{StaticResource MapScaleLabelBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:MapMouseLocationIndicator">
                    <Grid>
                        <Border BorderBrush="{StaticResource MapScaleLabelOuterBorderBrush}" BorderThickness="{StaticResource MapScaleLabelOuterBorderThickness}" CornerRadius="{StaticResource MapScaleLabelOuterCornerRadius}">
                            <Border
                                    Background="{TemplateBinding IndicatorLabelBackground}"
                                    BorderBrush="{TemplateBinding IndicatorLabelBorderBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{StaticResource MapScaleLabelCornerRadius}">
                                <TextBlock x:Name="PART_TextBlock" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{StaticResource MapScaleLabelPadding}"/>
                            </Border>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="maps:MapScale" BasedOn="{StaticResource MapScaleStyle}"/>
    <Style TargetType="maps:MapMouseLocationIndicator" BasedOn="{StaticResource MapMouseLocationIndicatorStyle}"/>
    <Style x:Key="MapCommandBarStyle" TargetType="maps:MapCommandBar">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Margin" Value="{StaticResource MapCommandBarMargin}"/>
        <Setter Property="MapSwitchModeButtonTemplate">
            <Setter.Value>
                <DataTemplate>
                    <telerikControls:RadToggleButton x:Name="PART_IsLabelVisible"
                            Command="{Binding Path=Command}"
                            Content="{Binding Path=Command.Text}"
                            IsChecked="{Binding Path=IsSelected, Mode=TwoWay}"
                            HorizontalAlignment="Stretch"
                            Style="{StaticResource MapToggleButtonStyle}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="MapSourceButtonTemplate">
            <Setter.Value>
                <DataTemplate>
                    <telerikControls:RadRadioButton
                            Command="{Binding Path=Command}"
                            CommandParameter="{Binding Path=CommandParameter}"
                            Content="{Binding Path=Command.Text}"
                            IsChecked="{Binding Path=IsSelected, Mode=TwoWay}"
                            HorizontalAlignment="Stretch"
                            Style="{StaticResource MapRadioButtonStyle}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:MapCommandBar">
                    <telerikControls:RadDropDownButton x:Name="PART_MapCommandDropDown"
                            HoverDelay="0:0:0.01"
                            KeepOpen="True"
                            CloseOnEscape="False"
                            DropDownPlacement="Top"
                            Style="{StaticResource MapCommandBarButtonStyle}">
                        <telerikControls:RadDropDownButton.DropDownContent>
                            <Grid x:Name="PART_DropDownPopupWrapper" Background="#01ffffff" HorizontalAlignment="Stretch" VerticalAlignment="Center">
                                <Border HorizontalAlignment="Stretch" Margin="10" Background="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}">
                                    <StackPanel x:Name="PART_CommandPanel" VerticalAlignment="Center" HorizontalAlignment="Left"/>
                                    <Border.Effect>
                                        <DropShadowEffect Opacity="0.3" BlurRadius="10" Direction="270" ShadowDepth="3"/>
                                    </Border.Effect>
                                </Border>
                            </Grid>
                        </telerikControls:RadDropDownButton.DropDownContent>
                    </telerikControls:RadDropDownButton>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="maps:MapCommandBar" BasedOn="{StaticResource MapCommandBarStyle}"/>
    <Style x:Key="MapPinPointStyle" TargetType="maps:MapPinPoint">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:MapPinPoint">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="3" Padding="2">
                        <StackPanel Name="PART_Panel" Orientation="Horizontal">
                            <Image Name="PART_Image" Visibility="Collapsed" Stretch="None" Source="{TemplateBinding ImageSource}"/>
                            <TextBlock Name="PART_Text" Margin="2 0 0 0" VerticalAlignment="Center" Text="{TemplateBinding Text}"/>
                        </StackPanel>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="PushpinStyle" TargetType="maps:Pushpin">
        <Setter Property="Background" Value="{StaticResource MapPushpinBackground}"/>
        <Setter Property="maps:MapLayer.HotSpot" Value="0.5,Fraction,40,InsetPixels"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:Pushpin">
                    <Border>
                        <maps:MapLayer.HotSpot>
                            <datavizControls:HotSpot X="0.5" Y="40" XUnits="Fraction" YUnits="InsetPixels"/>
                        </maps:MapLayer.HotSpot>
                        <Path
                                Stretch="None"
                                Stroke="{StaticResource MapPushpinStroke}"
                                StrokeThickness="6"
                                Data="M12,26.0 L16,26.0 13.9,32.0 z M14,3 C20.0,3 25,7.9 25,14 25,20.0 20.0,25 14,25 7.9,25 3,20.0 3,14 3,7.9 7.9,3 14,3 z"
                                Fill="{TemplateBinding Background}">
                            <Path.Effect>
                                <telerikControls:IsFullTrust>&lt;DropShadowEffect xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                                        BlurRadius="7" ShadowDepth="1" /&gt;</telerikControls:IsFullTrust>
                            </Path.Effect>
                        </Path>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="DefaultInformationLayerTemplate">
        <maps:Pushpin/>
    </DataTemplate>
    <Style x:Key="BalloonStyle" TargetType="maps:Balloon">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:Balloon">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5">
                        <ContentPresenter Margin="5" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="maps:MapPinPoint" BasedOn="{StaticResource MapPinPointStyle}"/>
    <Style TargetType="maps:Pushpin" BasedOn="{StaticResource PushpinStyle}"/>
    <Style TargetType="maps:Balloon" BasedOn="{StaticResource BalloonStyle}"/>
    <Style x:Key="MapLegendCanvasItemStyle" TargetType="maps:MapLegendCanvasItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:MapLegendCanvasItem">
                    <Canvas>
                        <TextBlock x:Name="PART_MinLabel" Text="{TemplateBinding Min}"/>
                        <TextBlock x:Name="PART_MaxLabel" Text="{TemplateBinding Max}"/>
                        <Rectangle x:Name="PART_Rectangle"
                                Width="{TemplateBinding MarkerWidth}"
                                Height="{TemplateBinding MarkerHeight}"
                                RadiusX="{TemplateBinding RadiusX}"
                                RadiusY="{TemplateBinding RadiusY}"
                                Fill="{TemplateBinding Fill}"
                                Stroke="{TemplateBinding Stroke}"
                                StrokeThickness="{TemplateBinding StrokeThickness}"/>
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MapLegendStyle" TargetType="maps:MapLegend">
        <Setter Property="Background" Value="#ABFFFFFF"/>
        <Setter Property="BorderBrush" Value="#FFFFFFFF"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="12 10"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="maps:MapLegend">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid Margin="{TemplateBinding Padding}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <ContentControl x:Name="PART_HeaderContentControl" Foreground="{TemplateBinding Foreground}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}"/>
                            <ItemsPresenter Grid.Row="1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <maps:MapLegendCanvas/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="maps:MapLegendCanvasItem" BasedOn="{StaticResource MapLegendCanvasItemStyle}"/>
    <Style TargetType="maps:MapLegend" BasedOn="{StaticResource MapLegendStyle}"/>
    <heatMaps:PositionToGridRowConverter x:Key="PositionToGridRowConverter"/>
    <heatMaps:PositionToGridColumnConverter x:Key="PositionToGridColumnConverter"/>
    <Style x:Key="HeatMapColumnHeaderDecoratorStyle" TargetType="heatMaps:HeatMapColumnHeaderDecorator">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="heatMaps:HeatMapColumnHeaderDecorator">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HeatMapRowHeaderDecoratorStyle" TargetType="heatMaps:HeatMapRowHeaderDecorator">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="heatMaps:HeatMapRowHeaderDecorator">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HeatMapColorGridStyle" TargetType="heatMaps:HeatMapColorGrid">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="heatMaps:HeatMapColorGrid">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Image Source="{TemplateBinding Bitmap}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HeatMapLabelsGridStyle" TargetType="heatMaps:HeatMapLabelsGrid">
        <Setter Property="IsHitTestVisible" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="heatMaps:HeatMapLabelsGrid">
                    <Canvas x:Name="PART_RenderSurface"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HeatMapRowLabelStyle" TargetType="heatMaps:HeatMapRowLabel">
        <Setter Property="Margin" Value="2 0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="heatMaps:HeatMapRowLabel">
                    <TextBlock Text="{TemplateBinding LabelText}" Style="{TemplateBinding AppliedLabelStyle}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HeatMapColumnLabelStyle" TargetType="heatMaps:HeatMapColumnLabel">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="heatMaps:HeatMapColumnLabel">
                    <TextBlock Text="{Binding LabelText}" Style="{TemplateBinding AppliedLabelStyle}">
                        <TextBlock.LayoutTransform>
                            <RotateTransform x:Name="PART_RotateTransform"/>
                        </TextBlock.LayoutTransform>
                    </TextBlock>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadHeatMapStyle" TargetType="datavizControls:RadHeatMap">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadHeatMap">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <heatMaps:HeatMapColorGrid
                                    Definition="{TemplateBinding Definition}"
                                    CellBorderThickness="{TemplateBinding CellBorderThickness}"
                                    CellBorderColor="{TemplateBinding CellBorderColor}"
                                    HoveredCellDataPoint="{Binding HoveredCellDataPoint, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                                    HoveredCellBorderThickness="{TemplateBinding HoveredCellBorderThickness}"
                                    HoveredCellBorderColor="{TemplateBinding HoveredCellBorderColor}"
                                    SelectedCellBorderThickness="{TemplateBinding SelectedCellBorderThickness}"
                                    SelectedCellBorderColor="{TemplateBinding SelectedCellBorderColor}"
                                    ShowToolTips="{TemplateBinding ShowToolTips}"
                                    ToolTipSettings="{TemplateBinding ToolTipSettings}"
                                    Grid.Row="1"
                                    Grid.Column="1"/>
                            <heatMaps:HeatMapLabelsGrid
                                    Definition="{TemplateBinding Definition}"
                                    CellBorderThickness="{TemplateBinding CellBorderThickness}"
                                    CellLabelSettings="{TemplateBinding CellLabelSettings}"
                                    Grid.Row="1"
                                    Grid.Column="1"/>
                            <heatMaps:HeatMapColumnHeaderDecorator Grid.ColumnSpan="3" Grid.Row="{Binding ColumnHeaderSettings.LabelsPanelPosition, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PositionToGridRowConverter}}"/>
                            <heatMaps:HeatMapRowHeaderDecorator Grid.RowSpan="3" Grid.Column="{Binding RowHeaderSettings.LabelsPanelPosition, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PositionToGridColumnConverter}}"/>
                            <heatMaps:HeatMapColumnLabelsControl
                                    ItemsSource="{TemplateBinding ColumnHeaders}"
                                    LabelRotationAngle="{Binding ColumnHeaderSettings.LabelRotationAngle, RelativeSource={RelativeSource TemplatedParent}}"
                                    LabelStyle="{Binding ColumnHeaderSettings.LabelStyle, RelativeSource={RelativeSource TemplatedParent}}"
                                    HoveredLabelStyle="{Binding ColumnHeaderSettings.HoveredLabelStyle, RelativeSource={RelativeSource TemplatedParent}}"
                                    Position="{Binding ColumnHeaderSettings.LabelsPanelPosition, RelativeSource={RelativeSource TemplatedParent}}"
                                    LabelHorizontalAlignment="{Binding ColumnHeaderSettings.LabelHorizontalAlignment, RelativeSource={RelativeSource TemplatedParent}}"
                                    LabelVerticalAlignment="{Binding ColumnHeaderSettings.LabelVerticalAlignment, RelativeSource={RelativeSource TemplatedParent}}"
                                    LabelClipToBounds="{Binding ColumnHeaderSettings.LabelClipToBounds, RelativeSource={RelativeSource TemplatedParent}}"
                                    CellBorderThickness="{TemplateBinding CellBorderThickness}"
                                    ColumnsCount="{TemplateBinding ColumnsCount}"
                                    Grid.Row="{Binding ColumnHeaderSettings.LabelsPanelPosition, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PositionToGridRowConverter}}"
                                    Grid.Column="1"/>
                            <heatMaps:HeatMapRowLabelsControl
                                    ItemsSource="{TemplateBinding RowHeaders}"
                                    LabelStyle="{Binding RowHeaderSettings.LabelStyle, RelativeSource={RelativeSource TemplatedParent}}"
                                    HoveredLabelStyle="{Binding RowHeaderSettings.HoveredLabelStyle, RelativeSource={RelativeSource TemplatedParent}}"
                                    Position="{Binding RowHeaderSettings.LabelsPanelPosition, RelativeSource={RelativeSource TemplatedParent}}"
                                    LabelHorizontalAlignment="{Binding RowHeaderSettings.LabelHorizontalAlignment, RelativeSource={RelativeSource TemplatedParent}}"
                                    LabelVerticalAlignment="{Binding RowHeaderSettings.LabelVerticalAlignment, RelativeSource={RelativeSource TemplatedParent}}"
                                    LabelClipToBounds="{Binding RowHeaderSettings.LabelClipToBounds, RelativeSource={RelativeSource TemplatedParent}}"
                                    CellBorderThickness="{TemplateBinding CellBorderThickness}"
                                    RowsCount="{TemplateBinding RowsCount}"
                                    Grid.Row="1"
                                    Grid.Column="{Binding RowHeaderSettings.LabelsPanelPosition, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PositionToGridColumnConverter}}"/>
                            <ContentPresenter Content="{TemplateBinding DescriptionContent}" Grid.Row="{Binding ColumnHeaderSettings.LabelsPanelPosition, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PositionToGridRowConverter}}" Grid.Column="{Binding RowHeaderSettings.LabelsPanelPosition, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PositionToGridColumnConverter}}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="heatMaps:HeatMapColumnHeaderDecorator" BasedOn="{StaticResource HeatMapColumnHeaderDecoratorStyle}"/>
    <Style TargetType="heatMaps:HeatMapRowHeaderDecorator" BasedOn="{StaticResource HeatMapRowHeaderDecoratorStyle}"/>
    <Style TargetType="heatMaps:HeatMapColorGrid" BasedOn="{StaticResource HeatMapColorGridStyle}"/>
    <Style TargetType="heatMaps:HeatMapLabelsGrid" BasedOn="{StaticResource HeatMapLabelsGridStyle}"/>
    <Style TargetType="heatMaps:HeatMapRowLabel" BasedOn="{StaticResource HeatMapRowLabelStyle}"/>
    <Style TargetType="heatMaps:HeatMapColumnLabel" BasedOn="{StaticResource HeatMapColumnLabelStyle}"/>
    <Style TargetType="datavizControls:RadHeatMap" BasedOn="{StaticResource RadHeatMapStyle}"/>
    <Style TargetType="heatMaps:HeatMapColumnLabelsControl" BasedOn="{StaticResource FastItemsControlBaseStyle}"/>
    <Style TargetType="heatMaps:HeatMapRowLabelsControl" BasedOn="{StaticResource FastItemsControlBaseStyle}"/>
    <Style x:Key="RadTreeMapStyle" TargetType="datavizControls:RadTreeMap">
        <Setter Property="DefaultItemTemplate">
            <Setter.Value>
                <HierarchicalDataTemplate ItemsSource="{Binding Children}">
                    <TextBlock Text="{Binding Label}" TextWrapping="Wrap" Effect="{Binding Path=HeaderEffect, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type treemaps:RadTreeMapItem}}}"/>
                </HierarchicalDataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadTreeMap">
                    <treemaps:RadTreeMapItem x:Name="PART_RootItem"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Padding="{TemplateBinding Padding}"
                            DataMappingSelector="{TemplateBinding DataMappingSelector}"
                            Mappings="{TemplateBinding Mappings}"
                            LayoutStrategies="{TemplateBinding LayoutStrategies}"
                            ItemTemplateSelector="{TemplateBinding ItemTemplateSelector}"
                            ItemsSource="{TemplateBinding DataView}"
                            DataContext="{x:Null}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadPivotMapStyle" TargetType="datavizControls:RadPivotMap">
        <Setter Property="GroupTemplate">
            <Setter.Value>
                <HierarchicalDataTemplate ItemsSource="{Binding Children}">
                    <TextBlock Text="{Binding GroupKey}" TextWrapping="Wrap" Effect="{Binding Path=HeaderEffect, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type treemaps:RadTreeMapItem}}}"/>
                </HierarchicalDataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="LeafTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="{Binding Label}" TextWrapping="Wrap" Effect="{Binding Path=HeaderEffect, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type treemaps:RadTreeMapItem}}}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadPivotMap">
                    <treemaps:RadTreeMapItem
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Padding="{TemplateBinding Padding}"
                            DataMappingSelector="{TemplateBinding DataMappingSelector}"
                            Mappings="{TemplateBinding Mappings}"
                            LayoutStrategies="{TemplateBinding LayoutStrategies}"
                            ItemTemplateSelector="{TemplateBinding ItemTemplateSelector}"
                            ItemsSource="{TemplateBinding DataView}"
                            DataContext="{x:Null}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadTreeMapItemStyle" TargetType="treemaps:RadTreeMapItem">
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <treemaps:TreeMapPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Value" Value="{Binding Path=Value}"/>
        <Setter Property="Foreground" Value="Black"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Margin" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="treemaps:RadTreeMapItem">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="BorderBrush" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <LinearGradientBrush StartPoint="0,0" EndPoint="3,3" MappingMode="Absolute" SpreadMethod="Repeat">
                                                        <GradientStop Color="#B2000000" Offset="0"/>
                                                        <GradientStop Color="#B2000000" Offset="0.5"/>
                                                        <GradientStop Color="#D8FFFFFF" Offset="0.5"/>
                                                        <GradientStop Color="#D8FFFFFF" Offset="1"/>
                                                    </LinearGradientBrush>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectedVisual" Storyboard.TargetProperty="Background" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <LinearGradientBrush StartPoint="0,0" EndPoint="3,3" MappingMode="Absolute" SpreadMethod="Repeat">
                                                        <GradientStop Color="#66000000" Offset="0"/>
                                                        <GradientStop Color="#66000000" Offset="0.15"/>
                                                        <GradientStop Color="#26FFFFFF" Offset="0.15"/>
                                                        <GradientStop Color="#26FFFFFF" Offset="1"/>
                                                    </LinearGradientBrush>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border
                                Name="border"
                                Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                SnapsToDevicePixels="True">
                            <Border x:Name="SelectedVisual">
                                <Grid Margin="{TemplateBinding Padding}">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <ContentPresenter
                                            Grid.Row="0"
                                            Content="{TemplateBinding Header}"
                                            ContentTemplate="{TemplateBinding HeaderTemplate}"
                                            ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
                                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                                    <ItemsPresenter Grid.Row="1"/>
                                </Grid>
                            </Border>
                        </Border>
                        <Border x:Name="MouseOverVisual" BorderThickness="1" SnapsToDevicePixels="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadTreeMap" BasedOn="{StaticResource RadTreeMapStyle}"/>
    <Style TargetType="datavizControls:RadPivotMap" BasedOn="{StaticResource RadPivotMapStyle}"/>
    <Style TargetType="treemaps:RadTreeMapItem" BasedOn="{StaticResource RadTreeMapItemStyle}"/>
    <SolidColorBrush x:Key="NegativeAreaBackground" Color="Transparent"/>
    <Style x:Key="NegativeIndicatorStyle" TargetType="sparklines:IndicatorItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sparklines:IndicatorItem">
                    <Ellipse Fill="{TemplateBinding Fill}" Height="3" Width="3"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="NegativeScatterStyle" TargetType="sparklines:ScatterItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sparklines:ScatterItem">
                    <Ellipse Fill="{TemplateBinding Fill}" Height="3" Width="3"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="FirstLastIndicatorStyle" TargetType="sparklines:IndicatorItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sparklines:IndicatorItem">
                    <Ellipse StrokeThickness="1" Fill="{TemplateBinding Fill}" Height="5" Width="5" Stroke="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HighLowIndicatorStyle" TargetType="sparklines:IndicatorItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sparklines:IndicatorItem">
                    <Ellipse StrokeThickness="1" Fill="{TemplateBinding Fill}" Height="5" Width="5" Stroke="{telerikControls:Windows8TouchResource ResourceKey=ValidationBrush}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="FirstLastScatterStyle" TargetType="sparklines:ScatterItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sparklines:ScatterItem">
                    <Ellipse StrokeThickness="1" Fill="{TemplateBinding Fill}" Height="5" Width="5" Stroke="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HighLowScatterStyle" TargetType="sparklines:ScatterItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sparklines:ScatterItem">
                    <Ellipse StrokeThickness="1" Fill="{TemplateBinding Fill}" Height="5" Width="5" Stroke="{telerikControls:Windows8TouchResource ResourceKey=ValidationBrush}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <sparklines:PointCollectionCloneConverter x:Key="PointCollectionCloneConverter"/>
    <sparklines:RectToRectangleGeometryConverter x:Key="RectToRectangleGeometryConverter"/>
    <Style x:Key="RadWinLossSparklineStyle" TargetType="datavizControls:RadWinLossSparkline">
        <Setter Property="AxisStroke" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="ItemFill" Value="{telerikControls:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="NegativePointBrush" Value="#7F767676"/>
        <Setter Property="FirstPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="LastPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="LowPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=ValidationBrush}"/>
        <Setter Property="HighPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=ValidationBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadWinLossSparkline">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <sparklines:ColumnsContainer x:Name="PART_IndicatorsContainer" ItemStyle="{TemplateBinding ItemStyle}" ItemsSource="{TemplateBinding Tag}"/>
                            <Line
                                    Stroke="{TemplateBinding AxisStroke}"
                                    StrokeThickness="1"
                                    X1="0"
                                    Y1="{TemplateBinding ZeroYPosition}"
                                    X2="{TemplateBinding AxisWidth}"
                                    Y2="{TemplateBinding ZeroYPosition}"
                                    Visibility="{TemplateBinding AxisVisibility}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadColumnSparklineStyle" TargetType="datavizControls:RadColumnSparkline">
        <Setter Property="AxisStroke" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="ItemFill" Value="{telerikControls:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="NegativePointBrush" Value="#7F767676"/>
        <Setter Property="FirstPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="LastPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="LowPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=ValidationBrush}"/>
        <Setter Property="HighPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=ValidationBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadColumnSparkline">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <sparklines:ColumnsContainer x:Name="PART_IndicatorsContainer" ColumnLayoutMode="{TemplateBinding ColumnLayoutMode}" ItemStyle="{TemplateBinding ItemStyle}" ItemsSource="{TemplateBinding Tag}"/>
                            <Line
                                    Stroke="{TemplateBinding AxisStroke}"
                                    StrokeThickness="1"
                                    X1="0"
                                    Y1="{TemplateBinding ZeroYPosition}"
                                    X2="{TemplateBinding AxisWidth}"
                                    Y2="{TemplateBinding ZeroYPosition}"
                                    Visibility="{TemplateBinding AxisVisibility}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadAreaSparklineStyle" TargetType="datavizControls:RadAreaSparkline">
        <Setter Property="PositiveAreaFill" Value="#1925A0DA"/>
        <Setter Property="PositiveAreaStroke" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="NegativeAreaStroke" Value="{telerikControls:Windows8TouchResource ResourceKey=ValidationBrush}"/>
        <Setter Property="FirstPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="LastPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="NegativeAreaFill" Value="{StaticResource NegativeAreaBackground}"/>
        <Setter Property="FirstPointStyle" Value="{StaticResource FirstLastIndicatorStyle}"/>
        <Setter Property="LastPointStyle" Value="{StaticResource FirstLastIndicatorStyle}"/>
        <Setter Property="LowPointStyle" Value="{StaticResource HighLowIndicatorStyle}"/>
        <Setter Property="HighPointStyle" Value="{StaticResource HighLowIndicatorStyle}"/>
        <Setter Property="NegativePointStyle" Value="{StaticResource NegativeIndicatorStyle}"/>
        <Setter Property="AxisStroke" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="MarkersBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="NegativePointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=ValidationBrush}"/>
        <Setter Property="LowPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="HighPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadAreaSparkline">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Polyline
                                    Visibility="{TemplateBinding TopLineVisibility}"
                                    Clip="{Binding TopClipRect, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource RectToRectangleGeometryConverter}}"
                                    Points="{Binding AreaPoints, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PointCollectionCloneConverter}}"
                                    Fill="{TemplateBinding PositiveAreaFill}"
                                    Style="{TemplateBinding PositiveAreaShapeStyle}"/>
                            <Polyline
                                    Visibility="{TemplateBinding TopLineVisibility}"
                                    Clip="{Binding TopClipRect, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource RectToRectangleGeometryConverter}}"
                                    Points="{Binding LinePoints, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PointCollectionCloneConverter}}"
                                    StrokeLineJoin="Round"
                                    StrokeThickness="1"
                                    Stroke="{TemplateBinding PositiveAreaStroke}"
                                    Style="{TemplateBinding PositiveLineShapeStyle}"/>
                            <Polyline
                                    Visibility="{TemplateBinding BottomLineVisibility}"
                                    Clip="{Binding BottomClipRect, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource RectToRectangleGeometryConverter}}"
                                    Points="{Binding AreaPoints, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PointCollectionCloneConverter}}"
                                    Fill="{TemplateBinding NegativeAreaFill}"
                                    Style="{TemplateBinding NegativeAreaShapeStyle}"/>
                            <Polyline
                                    Visibility="{TemplateBinding BottomLineVisibility}"
                                    Clip="{Binding BottomClipRect, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource RectToRectangleGeometryConverter}}"
                                    Points="{Binding LinePoints, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PointCollectionCloneConverter}}"
                                    StrokeLineJoin="Round"
                                    StrokeThickness="1"
                                    Stroke="{TemplateBinding NegativeAreaStroke}"
                                    Style="{TemplateBinding NegativeLineShapeStyle}"/>
                            <Line
                                    Stroke="{TemplateBinding AxisStroke}"
                                    X1="0"
                                    Y1="{TemplateBinding ZeroYPosition}"
                                    X2="{TemplateBinding AxisWidth}"
                                    Y2="{TemplateBinding ZeroYPosition}"
                                    StrokeThickness="1"
                                    Visibility="{TemplateBinding AxisVisibility}"/>
                            <sparklines:IndicatorsContainer x:Name="PART_IndicatorsContainer"
                                    ItemStyle="{TemplateBinding IndicatorStyle}"
                                    ItemsSource="{TemplateBinding IndicatorsPoints}"
                                    Visibility="{TemplateBinding IndicatorsVisibility}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadLinearSparklineStyle" TargetType="datavizControls:RadLinearSparkline">
        <Setter Property="FirstPointStyle" Value="{StaticResource FirstLastIndicatorStyle}"/>
        <Setter Property="LastPointStyle" Value="{StaticResource FirstLastIndicatorStyle}"/>
        <Setter Property="LowPointStyle" Value="{StaticResource HighLowIndicatorStyle}"/>
        <Setter Property="HighPointStyle" Value="{StaticResource HighLowIndicatorStyle}"/>
        <Setter Property="NegativePointStyle" Value="{StaticResource NegativeIndicatorStyle}"/>
        <Setter Property="AxisStroke" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="MarkersBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="NegativePointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=ValidationBrush}"/>
        <Setter Property="FirstPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="LastPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="LowPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="HighPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="NormalRangeFill" Value="#99E9E9E9"/>
        <Setter Property="LineStroke" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadLinearSparkline">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Path Fill="{TemplateBinding NormalRangeFill}" Data="{Binding NormalRangeRect, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource RectToRectangleGeometryConverter}}" Visibility="{TemplateBinding NormalRangeVisibility}"/>
                            <Polyline
                                    Visibility="{TemplateBinding LineShapeVisibility}"
                                    Style="{TemplateBinding LineShapeStyle}"
                                    Points="{Binding LinePoints, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource PointCollectionCloneConverter}}"
                                    StrokeLineJoin="Round"
                                    Stroke="{TemplateBinding LineStroke}"/>
                            <Line
                                    Stroke="{TemplateBinding AxisStroke}"
                                    StrokeThickness="1"
                                    X1="0"
                                    Y1="{TemplateBinding ZeroYPosition}"
                                    X2="{TemplateBinding AxisWidth}"
                                    Y2="{TemplateBinding ZeroYPosition}"
                                    Visibility="{TemplateBinding AxisVisibility}"/>
                            <sparklines:IndicatorsContainer x:Name="PART_IndicatorsContainer"
                                    ItemStyle="{TemplateBinding IndicatorStyle}"
                                    ItemsSource="{TemplateBinding IndicatorsPoints}"
                                    Visibility="{TemplateBinding IndicatorsVisibility}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadScatterSparklineStyle" TargetType="datavizControls:RadScatterSparkline">
        <Setter Property="FirstPointStyle" Value="{StaticResource FirstLastScatterStyle}"/>
        <Setter Property="LastPointStyle" Value="{StaticResource FirstLastScatterStyle}"/>
        <Setter Property="LowPointStyle" Value="{StaticResource HighLowScatterStyle}"/>
        <Setter Property="HighPointStyle" Value="{StaticResource HighLowScatterStyle}"/>
        <Setter Property="NegativePointStyle" Value="{StaticResource NegativeScatterStyle}"/>
        <Setter Property="AxisStroke" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="ItemFill" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="NegativePointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=ValidationBrush}"/>
        <Setter Property="FirstPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="LastPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="LowPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="HighPointBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="NormalRangeFill" Value="#99E9E9E9"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadScatterSparkline">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Path Fill="{TemplateBinding NormalRangeFill}" Data="{Binding NormalRangeRect, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource RectToRectangleGeometryConverter}}" Visibility="{TemplateBinding NormalRangeVisibility}"/>
                            <Line
                                    Stroke="{TemplateBinding AxisStroke}"
                                    StrokeThickness="1"
                                    X1="0"
                                    Y1="{TemplateBinding ZeroYPosition}"
                                    X2="{TemplateBinding AxisWidth}"
                                    Y2="{TemplateBinding ZeroYPosition}"
                                    Visibility="{TemplateBinding AxisVisibility}"/>
                            <sparklines:ScatterContainer x:Name="PART_IndicatorsContainer" ItemStyle="{TemplateBinding ItemStyle}" ItemsSource="{TemplateBinding Tag}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ColumnStyle" TargetType="sparklines:Column">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sparklines:Column">
                    <Rectangle Fill="{TemplateBinding Fill}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ScatterItemStyle" TargetType="sparklines:ScatterItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sparklines:ScatterItem">
                    <Ellipse Fill="{TemplateBinding Fill}" Width="3" Height="3"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="IndicatorItemStyle" TargetType="sparklines:IndicatorItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sparklines:IndicatorItem">
                    <Ellipse Fill="{TemplateBinding Fill}" Width="3" Height="3"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="sparklines:ColumnsContainer" BasedOn="{StaticResource FastItemsControlBaseStyle}"/>
    <Style TargetType="sparklines:ScatterContainer" BasedOn="{StaticResource FastItemsControlBaseStyle}"/>
    <Style TargetType="sparklines:IndicatorsContainer" BasedOn="{StaticResource FastItemsControlBaseStyle}"/>
    <Style TargetType="datavizControls:RadWinLossSparkline" BasedOn="{StaticResource RadWinLossSparklineStyle}"/>
    <Style TargetType="datavizControls:RadColumnSparkline" BasedOn="{StaticResource RadColumnSparklineStyle}"/>
    <Style TargetType="datavizControls:RadAreaSparkline" BasedOn="{StaticResource RadAreaSparklineStyle}"/>
    <Style TargetType="datavizControls:RadLinearSparkline" BasedOn="{StaticResource RadLinearSparklineStyle}"/>
    <Style TargetType="datavizControls:RadScatterSparkline" BasedOn="{StaticResource RadScatterSparklineStyle}"/>
    <Style TargetType="sparklines:Column" BasedOn="{StaticResource ColumnStyle}"/>
    <Style TargetType="sparklines:ScatterItem" BasedOn="{StaticResource ScatterItemStyle}"/>
    <Style TargetType="sparklines:IndicatorItem" BasedOn="{StaticResource IndicatorItemStyle}"/>
    <system:Double x:Key="RadialScaleRadius">0.78</system:Double>
    <gauges:ScaleObjectLocation x:Key="TickLocation">CenterOutside</gauges:ScaleObjectLocation>
    <gauges:GaugeMeasure x:Key="MajorTickRelativeHeight">0.07*</gauges:GaugeMeasure>
    <gauges:GaugeMeasure x:Key="MiddleTickRelativeHeight">0.07*</gauges:GaugeMeasure>
    <gauges:GaugeMeasure x:Key="MinorTickRelativeHeight">0.07*</gauges:GaugeMeasure>
    <gauges:GaugeMeasure x:Key="TickRelativeWidth">0.005*</gauges:GaugeMeasure>
    <gauges:ScaleObjectLocation x:Key="LabelLocation">Outside</gauges:ScaleObjectLocation>
    <gauges:RotationMode x:Key="LabelRotationDefaultMode">None</gauges:RotationMode>
    <gauges:RotationMode x:Key="LabelRotationSurroundInMode">None</gauges:RotationMode>
    <gauges:RotationMode x:Key="LabelRotationSurroundOutMode">None</gauges:RotationMode>
    <Thickness x:Key="MarkerBorderMargin">-10</Thickness>
    <Thickness x:Key="MarkerBorderPadding">10</Thickness>
    <gauges:GaugeMeasure x:Key="NeedleOffset">0.3*</gauges:GaugeMeasure>
    <gauges:GaugeMeasure x:Key="NeedleEllipseSize">0.06*</gauges:GaugeMeasure>
    <system:Double x:Key="NeedleTailHeight">0</system:Double>
    <Thickness x:Key="NeedleBorderPadding">16 0 16 0</Thickness>
    <Thickness x:Key="NeedleBorderMargin">-16 0 -16 0</Thickness>
    <system:Double x:Key="NeedleEllipseStrokeThickness">2</system:Double>
    <SolidColorBrush x:Key="NeedleEllipseBrush" Color="Transparent"/>
    <Point x:Key="QuadrantGaugeNWCenter">0.9 0.9</Point>
    <Point x:Key="QuadrantGaugeNECenter">0.1 0.9</Point>
    <Point x:Key="QuadrantGaugeSECenter">0.1 0.1</Point>
    <Point x:Key="QuadrantGaugeSWCenter">0.9 0.1</Point>
    <system:Double x:Key="QuadrantGaugeRadius">0.89</system:Double>
    <system:Double x:Key="QuadrantGaugeNWStartAngle">180</system:Double>
    <system:Double x:Key="QuadrantGaugeNEStartAngle">270</system:Double>
    <system:Double x:Key="QuadrantGaugeSEStartAngle">0</system:Double>
    <system:Double x:Key="QuadrantGaugeSWStartAngle">90</system:Double>
    <system:Double x:Key="QuadrantGaugeSweepAngle">90</system:Double>
    <Point x:Key="HalfGaugeNCenter">0.5 0.9</Point>
    <Point x:Key="HalfGaugeSCenter">0.5 0.1</Point>
    <Point x:Key="HalfGaugeECenter">0.1 0.5</Point>
    <Point x:Key="HalfGaugeWCenter">0.9 0.5</Point>
    <system:Double x:Key="HalfGaugeRadius">0.9</system:Double>
    <system:Double x:Key="HalfGaugeNStartAngle">180</system:Double>
    <system:Double x:Key="HalfGaugeSStartAngle">0</system:Double>
    <system:Double x:Key="HalfGaugeEStartAngle">270</system:Double>
    <system:Double x:Key="HalfGaugeWStartAngle">90</system:Double>
    <system:Double x:Key="HalfGaugeSweepAngle">180</system:Double>
    <gauges:ScaleObjectLocation x:Key="HalfGaugeTickLocation">OverInside</gauges:ScaleObjectLocation>
    <DataTemplate x:Key="FontNumberPositionTemplate">
        <Grid>
            <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding Content}"/>
        </Grid>
    </DataTemplate>
    <Style x:Key="FontNumberPositionStyle" TargetType="gauges:FontNumberPosition">
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="ContentTemplate" Value="{StaticResource FontNumberPositionTemplate}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:FontNumberPosition">
                    <Grid>
                        <Border
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Opacity="{TemplateBinding Opacity}"
                                Margin="{TemplateBinding Padding}">
                            <ContentPresenter VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:FontNumberPosition" BasedOn="{StaticResource FontNumberPositionStyle}"/>
    <Style x:Key="HexagonalNumberPositionStyle" TargetType="gauges:HexagonalNumberPosition">
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:HexagonalNumberPosition">
                    <Grid>
                        <Border
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Opacity="{TemplateBinding Opacity}"
                                Margin="{TemplateBinding Padding}">
                            <ContentPresenter VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:HexagonalNumberPosition" BasedOn="{StaticResource HexagonalNumberPositionStyle}"/>
    <Style x:Key="Hexagonal7SegsShapeH" TargetType="Polygon">
        <Setter Property="Stretch" Value="Fill"/>
        <Setter Property="Grid.ColumnSpan" Value="3"/>
        <Setter Property="Margin" Value="3 0"/>
    </Style>
    <Style x:Key="Hexagonal7SegsShapeV" TargetType="Polygon">
        <Setter Property="Stretch" Value="Fill"/>
        <Setter Property="Grid.RowSpan" Value="3"/>
        <Setter Property="Margin" Value="0 3"/>
    </Style>
    <DataTemplate x:Key="HexagonalSevenSegsSb">
        <Grid/>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs0">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="4" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="0"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs1">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="2"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs2">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="2" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="4" Grid.Column="0"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs3">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="2" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="4" Grid.Column="0"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs4">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="2" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="2"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs5">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="2" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="4" Grid.Column="0"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs6">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="2" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="4" Grid.Column="0"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs7">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="2"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs8">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="2" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="4" Grid.Column="0"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs9">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="0" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="2" Grid.Column="0"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeV}" Points="5,1 0,5 0,35 5,39 10,35 10,5" Grid.Row="2" Grid.Column="2"/>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="4" Grid.Column="0"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs.">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="2*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Grid.Row="4" Grid.Column="1" Points="0,5 5,5 5,0 0,0" Style="{StaticResource Hexagonal7SegsShapeH}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs,">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="2*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Grid.Row="4" Grid.Column="1" Points="0,5 5,5 5,0 0,0" Style="{StaticResource Hexagonal7SegsShapeH}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="HexagonalSevenSegs-">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Fill="{Binding Foreground}" Style="{StaticResource Hexagonal7SegsShapeH}" Points="0,5 5,0 35,0 40,5 35,10 5,10" Grid.Row="2" Grid.Column="0"/>
        </Grid>
    </DataTemplate>
    <Style x:Key="NeedleStyle" TargetType="gauges:Needle">
        <Setter Property="gauges:ScaleObject.Location" Value="Inside"/>
        <Setter Property="gauges:ScaleObject.RelativeWidth" Value="0.02*"/>
        <Setter Property="gauges:ScaleObject.Offset" Value="{StaticResource NeedleOffset}"/>
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="TailHeight" Value="{StaticResource NeedleTailHeight}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:Needle">
                    <Border Background="#01FFFFFF" Padding="{StaticResource NeedleBorderPadding}" Margin="{StaticResource NeedleBorderMargin}">
                        <Grid x:Name="PART_Grid">
                            <Polygon Points="0,0 1,0 1,1 0,1" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" Stretch="Fill"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:Needle" BasedOn="{StaticResource NeedleStyle}"/>
    <Style x:Key="MarkerStyle" TargetType="gauges:Marker">
        <Setter Property="gauges:ScaleObject.Location" Value="Inside"/>
        <Setter Property="gauges:ScaleObject.Offset" Value="0"/>
        <Setter Property="gauges:ScaleObject.RelativeHeight" Value="20"/>
        <Setter Property="gauges:ScaleObject.RelativeWidth" Value="20"/>
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="gauges:LinearScale.RotateForVertical" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:Marker">
                    <Border Margin="{StaticResource MarkerBorderMargin}" CornerRadius="18" Background="#01FFFFFF" Padding="{StaticResource MarkerBorderPadding}">
                        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <Polygon Points="0.5,0 1,0.5 0.5,1 0,0.5" Stretch="Fill" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="2"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:Marker" BasedOn="{StaticResource MarkerStyle}"/>
    <Style x:Key="BarIndicatorStyle" TargetType="gauges:BarIndicator">
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="gauges:ScaleObject.Location" Value="OverCenter"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:BarIndicator">
                    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                        <Path x:Name="PART_BarPath"
                                Fill="{TemplateBinding Background}"
                                Stroke="{TemplateBinding BorderBrush}"
                                StrokeThickness="{TemplateBinding StrokeThickness}"
                                SnapsToDevicePixels="True"/>
                        <Path x:Name="PART_EmptyPath" Fill="{TemplateBinding EmptyFill}" SnapsToDevicePixels="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:BarIndicator" BasedOn="{StaticResource BarIndicatorStyle}"/>
    <Style x:Key="NumericIndicatorStyle" TargetType="gauges:NumericIndicator">
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:NumericIndicator">
                    <Border
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Background="{TemplateBinding Background}"
                            CornerRadius="{TemplateBinding CornerRadius}">
                        <Grid>
                            <StackPanel x:Name="PART_PositionPanel" Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:NumericIndicator" BasedOn="{StaticResource NumericIndicatorStyle}"/>
    <Style x:Key="PinpointStyle" TargetType="gauges:Pinpoint">
        <Setter Property="gauges:ScaleObject.RelativeHeight" Value="{StaticResource NeedleEllipseSize}"/>
        <Setter Property="gauges:ScaleObject.RelativeWidth" Value="{StaticResource NeedleEllipseSize}"/>
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="StrokeThickness" Value="{StaticResource NeedleEllipseStrokeThickness}"/>
        <Setter Property="BorderBrush" Value="{StaticResource NeedleEllipseBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:Pinpoint">
                    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                        <Ellipse Stretch="Fill" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding StrokeThickness}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:Pinpoint" BasedOn="{StaticResource PinpointStyle}"/>
    <Style x:Key="StateIndicatorStyle" TargetType="gauges:StateIndicator">
        <Setter Property="gauges:ScaleObject.RelativeHeight" Value="0.1*"/>
        <Setter Property="gauges:ScaleObject.RelativeWidth" Value="0.1*"/>
        <Setter Property="gauges:ScaleObject.RelativeX" Value="0.5"/>
        <Setter Property="gauges:ScaleObject.RelativeY" Value="0.25"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:StateIndicator">
                    <Grid>
                        <Ellipse Stretch="Fill" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding StrokeThickness}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:StateIndicator" BasedOn="{StaticResource StateIndicatorStyle}"/>
    <DataTemplate x:Key="GaugeRangeTemplate">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <Path x:Name="PART_RangePath"
                    Fill="{Binding Background}"
                    Stroke="{Binding Stroke}"
                    StrokeThickness="{Binding StrokeThickness}"
                    Visibility="{Binding Visibility}"
                    Data="{Binding Geometry}"/>
        </Grid>
    </DataTemplate>
    <Style x:Key="NumericScaleStyle" TargetType="gauges:NumericScale">
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:NumericScale">
                    <Grid>
                        <ItemsPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Canvas VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:NumericScale" BasedOn="{StaticResource NumericScaleStyle}"/>
    <Style x:Key="LinearScaleMarkerStyle" TargetType="gauges:LinearScaleMarker">
        <Setter Property="gauges:ScaleObject.Location" Value="Inside"/>
        <Setter Property="gauges:ScaleObject.Offset" Value="0"/>
        <Setter Property="gauges:LinearScale.RotateForVertical" Value="True"/>
        <Setter Property="gauges:ScaleObject.RelativeHeight" Value="20"/>
        <Setter Property="gauges:ScaleObject.RelativeWidth" Value="20"/>
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:LinearScaleMarker">
                    <Border Margin="{StaticResource MarkerBorderMargin}" CornerRadius="18" Background="#01FFFFFF" Padding="{StaticResource MarkerBorderPadding}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver"/>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectionTriangleWrapper" Storyboard.TargetProperty="Visibility" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <Polygon x:Name="Polygon" Points="0.5,0 1,0.5 0.5,1 0,0.5" Stretch="Fill" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="2"/>
                            <Canvas x:Name="SelectionTriangleWrapper" Visibility="Collapsed">
                                <Path
                                        Data="M 5 0 L 0 8 L 10 8 Z"
                                        Stretch="None"
                                        Stroke="{TemplateBinding BorderBrush}"
                                        StrokeThickness="1"
                                        Canvas.Top="-15"
                                        Canvas.Left="5"
                                        Fill="{TemplateBinding Background}"/>
                            </Canvas>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:LinearScaleMarker" BasedOn="{StaticResource LinearScaleMarkerStyle}"/>
    <DataTemplate x:Key="LinearMajorTickTemplate">
        <Rectangle Fill="{Binding Path=Background}" Stroke="{Binding Path=Stroke}" StrokeThickness="{Binding Path=StrokeThickness}" Stretch="Fill"/>
    </DataTemplate>
    <DataTemplate x:Key="LinearMiddleTickTemplate">
        <Rectangle Fill="{Binding Path=Background}" Stroke="{Binding Path=Stroke}" StrokeThickness="{Binding Path=StrokeThickness}" Stretch="Fill"/>
    </DataTemplate>
    <DataTemplate x:Key="LinearMinorTickTemplate">
        <Rectangle Fill="{Binding Path=Background}" Stroke="{Binding Path=Stroke}" StrokeThickness="{Binding Path=StrokeThickness}" Stretch="Fill"/>
    </DataTemplate>
    <DataTemplate x:Key="LinearLabelTemplate">
        <TextBlock
                FontSize="{Binding FontSize}"
                FontStretch="{Binding FontStretch}"
                FontStyle="{Binding FontStyle}"
                FontWeight="{Binding FontWeight}"
                Foreground="{Binding Foreground}"
                Text="{Binding FormattedValue}"
                FontFamily="{Binding FontFamily}"/>
    </DataTemplate>
    <Style x:Key="LinearScaleStyle" TargetType="gauges:LinearScale">
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="MajorTickBackground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="MiddleTickBackground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="MinorTickBackground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="Fill" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="LabelTemplate" Value="{StaticResource LinearLabelTemplate}"/>
        <Setter Property="LabelLocation" Value="Outside"/>
        <Setter Property="LabelOffset" Value="0.1*"/>
        <Setter Property="MajorTicks" Value="4"/>
        <Setter Property="MajorTickTemplate" Value="{StaticResource LinearMajorTickTemplate}"/>
        <Setter Property="MajorTickLocation" Value="Outside"/>
        <Setter Property="MiddleTicks" Value="2"/>
        <Setter Property="MiddleTickTemplate" Value="{StaticResource LinearMiddleTickTemplate}"/>
        <Setter Property="MiddleTickLocation" Value="Outside"/>
        <Setter Property="MinorTicks" Value="3"/>
        <Setter Property="MinorTickTemplate" Value="{StaticResource LinearMinorTickTemplate}"/>
        <Setter Property="MinorTickLocation" Value="Outside"/>
        <Setter Property="StartWidth" Value="0.14"/>
        <Setter Property="EndWidth" Value="0.14"/>
        <Setter Property="RangeTemplate" Value="{StaticResource GaugeRangeTemplate}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:LinearScale">
                    <Grid>
                        <Path x:Name="PART_ScalePath"
                                Stroke="{TemplateBinding Stroke}"
                                StrokeThickness="{TemplateBinding StrokeThickness}"
                                Fill="{TemplateBinding Fill}"
                                VerticalAlignment="Stretch"
                                HorizontalAlignment="Stretch"/>
                        <ItemsPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Canvas VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:LinearScale" BasedOn="{StaticResource LinearScaleStyle}"/>
    <Style x:Key="RadialScaleMarkerStyle" TargetType="gauges:RadialScaleMarker">
        <Setter Property="gauges:ScaleObject.Location" Value="Inside"/>
        <Setter Property="gauges:ScaleObject.Offset" Value="0"/>
        <Setter Property="gauges:LinearScale.RotateForVertical" Value="False"/>
        <Setter Property="gauges:ScaleObject.RelativeHeight" Value="20"/>
        <Setter Property="gauges:ScaleObject.RelativeWidth" Value="20"/>
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:RadialScaleMarker">
                    <Border Margin="{StaticResource MarkerBorderMargin}" CornerRadius="18" Background="#01FFFFFF" Padding="{StaticResource MarkerBorderPadding}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver"/>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectionTrianglesWrapper" Storyboard.TargetProperty="Visibility" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <Polygon x:Name="Polygon" Points="0.5,0 1,0.5 0.5,1 0,0.5" Stretch="Fill" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="2"/>
                            <Canvas x:Name="SelectionTrianglesWrapper" Visibility="Collapsed">
                                <Path Data="M 5 0 L 0 8 L 10 8 Z" Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Center" Canvas.Left="5" Canvas.Top="35" Fill="{TemplateBinding Background}"/>
                                <Path
                                        Data="M 0 0 L 5 8 L 10 0 Z"
                                        Stretch="None"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Center"
                                        Canvas.Top="-25"
                                        Canvas.Left="5"
                                        Fill="{TemplateBinding Background}"/>
                            </Canvas>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:RadialScaleMarker" BasedOn="{StaticResource RadialScaleMarkerStyle}"/>
    <DataTemplate x:Key="MajorTickTemplate">
        <Rectangle Fill="{Binding Path=Background}" Stroke="{Binding Path=Stroke}" StrokeThickness="{Binding Path=StrokeThickness}" Stretch="Fill"/>
    </DataTemplate>
    <DataTemplate x:Key="MiddleTickTemplate">
        <Rectangle Fill="{Binding Path=Background}" Stroke="{Binding Path=Stroke}" StrokeThickness="{Binding Path=StrokeThickness}" Stretch="Fill"/>
    </DataTemplate>
    <DataTemplate x:Key="MinorTickTemplate">
        <Rectangle Fill="{Binding Path=Background}" Stroke="{Binding Path=Stroke}" StrokeThickness="{Binding Path=StrokeThickness}" Stretch="Fill"/>
    </DataTemplate>
    <DataTemplate x:Key="RadialLabelTemplate">
        <TextBlock
                FontSize="{Binding FontSize}"
                FontStretch="{Binding FontStretch}"
                FontStyle="{Binding FontStyle}"
                FontWeight="{Binding FontWeight}"
                Foreground="{Binding Foreground}"
                Text="{Binding FormattedValue}"
                FontFamily="{Binding FontFamily}"/>
    </DataTemplate>
    <Style x:Key="RadialScaleStyle" TargetType="gauges:RadialScale">
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="MajorTickBackground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="MiddleTickBackground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="MinorTickBackground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="RangeLocation" Value="OverCenter"/>
        <Setter Property="Center" Value="0.5, 0.5"/>
        <Setter Property="Radius" Value="{StaticResource RadialScaleRadius}"/>
        <Setter Property="StartAngle" Value="120"/>
        <Setter Property="SweepAngle" Value="300"/>
        <Setter Property="StartWidth" Value="0.1"/>
        <Setter Property="EndWidth" Value="0.1"/>
        <Setter Property="Fill" Value="Transparent"/>
        <Setter Property="LabelTemplate" Value="{StaticResource RadialLabelTemplate}"/>
        <Setter Property="LabelLocation" Value="{StaticResource LabelLocation}"/>
        <Setter Property="LabelRotationMode" Value="{StaticResource LabelRotationDefaultMode}"/>
        <Setter Property="MajorTicks" Value="10"/>
        <Setter Property="MajorTickTemplate" Value="{StaticResource MajorTickTemplate}"/>
        <Setter Property="MajorTickLocation" Value="{StaticResource TickLocation}"/>
        <Setter Property="MajorTickRelativeHeight" Value="{StaticResource MajorTickRelativeHeight}"/>
        <Setter Property="MajorTickRelativeWidth" Value="{StaticResource TickRelativeWidth}"/>
        <Setter Property="MiddleTicks" Value="2"/>
        <Setter Property="MiddleTickTemplate" Value="{StaticResource MiddleTickTemplate}"/>
        <Setter Property="MiddleTickRelativeHeight" Value="{StaticResource MiddleTickRelativeHeight}"/>
        <Setter Property="MiddleTickRelativeWidth" Value="{StaticResource TickRelativeWidth}"/>
        <Setter Property="MiddleTickLocation" Value="{StaticResource TickLocation}"/>
        <Setter Property="MinorTicks" Value="2"/>
        <Setter Property="MinorTickTemplate" Value="{StaticResource MinorTickTemplate}"/>
        <Setter Property="MinorTickRelativeHeight" Value="{StaticResource MinorTickRelativeHeight}"/>
        <Setter Property="MinorTickRelativeWidth" Value="{StaticResource TickRelativeWidth}"/>
        <Setter Property="MinorTickLocation" Value="{StaticResource TickLocation}"/>
        <Setter Property="RangeTemplate" Value="{StaticResource GaugeRangeTemplate}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:RadialScale">
                    <Grid>
                        <Path x:Name="PART_ScalePath"
                                Stroke="{TemplateBinding Stroke}"
                                StrokeThickness="{TemplateBinding StrokeThickness}"
                                Fill="{TemplateBinding Fill}"
                                VerticalAlignment="Stretch"
                                HorizontalAlignment="Stretch"/>
                        <ItemsPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Canvas VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:RadialScale" BasedOn="{StaticResource RadialScaleStyle}"/>
    <Style x:Key="VerticalLinearScaleStyle" BasedOn="{StaticResource LinearScaleStyle}" TargetType="gauges:VerticalLinearScale">
        <Setter Property="Orientation" Value="Vertical"/>
        <Setter Property="RelativeX" Value="0.5"/>
        <Setter Property="RelativeY" Value="0.12"/>
        <Setter Property="RelativeHeight" Value="0.8"/>
        <Setter Property="MajorTickRelativeHeight" Value="0.002*"/>
        <Setter Property="MajorTickRelativeWidth" Value="0.07*"/>
        <Setter Property="MiddleTickRelativeHeight" Value="0.002*"/>
        <Setter Property="MiddleTickRelativeWidth" Value="0.04*"/>
        <Setter Property="MinorTickRelativeHeight" Value="0.002*"/>
        <Setter Property="MinorTickRelativeWidth" Value="0.03*"/>
    </Style>
    <Style TargetType="gauges:VerticalLinearScale" BasedOn="{StaticResource VerticalLinearScaleStyle}"/>
    <Style x:Key="HorizontalLinearScaleStyle" BasedOn="{StaticResource LinearScaleStyle}" TargetType="gauges:HorizontalLinearScale">
        <Setter Property="Orientation" Value="Horizontal"/>
        <Setter Property="RelativeX" Value="0.1"/>
        <Setter Property="RelativeY" Value="0.5"/>
        <Setter Property="RelativeWidth" Value="0.8"/>
        <Setter Property="MajorTickRelativeHeight" Value="0.07*"/>
        <Setter Property="MajorTickRelativeWidth" Value="0.003*"/>
        <Setter Property="MiddleTickRelativeHeight" Value="0.04*"/>
        <Setter Property="MiddleTickRelativeWidth" Value="0.003*"/>
        <Setter Property="MinorTickRelativeHeight" Value="0.03*"/>
        <Setter Property="MinorTickRelativeWidth" Value="0.003*"/>
    </Style>
    <Style TargetType="gauges:HorizontalLinearScale" BasedOn="{StaticResource HorizontalLinearScaleStyle}"/>
    <Style x:Key="RadVerticalLinearGaugeStyle" TargetType="datavizControls:RadVerticalLinearGauge">
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="OuterBackground" Value="Transparent"/>
        <Setter Property="OuterBorderBrush" Value="Transparent"/>
        <Setter Property="OuterBorderThickness" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadVerticalLinearGauge">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="2*"/>
                            <RowDefinition Height="96*"/>
                            <RowDefinition Height="2*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="6*"/>
                            <ColumnDefinition Width="88*"/>
                            <ColumnDefinition Width="6*"/>
                        </Grid.ColumnDefinitions>
                        <Border
                                Grid.RowSpan="3"
                                Grid.ColumnSpan="3"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                BorderThickness="{TemplateBinding OuterBorderThickness}"
                                BorderBrush="{TemplateBinding OuterBorderBrush}"
                                Background="{TemplateBinding OuterBackground}"/>
                        <Border
                                Grid.Row="1"
                                Grid.Column="1"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"
                                SnapsToDevicePixels="True"/>
                        <ItemsPresenter Grid.RowSpan="3" Grid.ColumnSpan="3"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadVerticalLinearGauge" BasedOn="{StaticResource RadVerticalLinearGaugeStyle}"/>
    <Style x:Key="RadHorizontalLinearGaugeStyle" TargetType="datavizControls:RadHorizontalLinearGauge">
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="OuterBackground" Value="Transparent"/>
        <Setter Property="OuterBorderBrush" Value="Transparent"/>
        <Setter Property="OuterBorderThickness" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadHorizontalLinearGauge">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="6*"/>
                            <RowDefinition Height="88*"/>
                            <RowDefinition Height="6*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="2*"/>
                            <ColumnDefinition Width="96*"/>
                            <ColumnDefinition Width="2*"/>
                        </Grid.ColumnDefinitions>
                        <Border
                                Grid.RowSpan="3"
                                Grid.ColumnSpan="3"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                BorderThickness="{TemplateBinding OuterBorderThickness}"
                                BorderBrush="{TemplateBinding OuterBorderBrush}"
                                Background="{TemplateBinding OuterBackground}"/>
                        <Border
                                Grid.Row="1"
                                Grid.Column="1"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"
                                SnapsToDevicePixels="True"/>
                        <ItemsPresenter Grid.RowSpan="3" Grid.ColumnSpan="3"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadHorizontalLinearGauge" BasedOn="{StaticResource RadHorizontalLinearGaugeStyle}"/>
    <Style x:Key="RadRadialGaugeStyle" TargetType="datavizControls:RadRadialGauge">
        <Setter Property="OuterBackground" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="OuterBorderBrush" Value="Transparent"/>
        <Setter Property="OuterBorderThickness" Value="0"/>
        <Setter Property="InnerBackground" Value="Transparent"/>
        <Setter Property="InnerBorderBrush" Value="Transparent"/>
        <Setter Property="InnerBorderThickness" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadRadialGauge">
                    <Grid Height="{TemplateBinding CellHeight}" Width="{TemplateBinding CellWidth}" Background="{TemplateBinding Background}">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="4*"/>
                            <RowDefinition Height="92*"/>
                            <RowDefinition Height="4*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="4*"/>
                            <ColumnDefinition Width="92*"/>
                            <ColumnDefinition Width="4*"/>
                        </Grid.ColumnDefinitions>
                        <Ellipse
                                Grid.RowSpan="3"
                                Grid.ColumnSpan="3"
                                Stroke="{TemplateBinding OuterBorderBrush}"
                                StrokeThickness="{TemplateBinding OuterBorderThickness}"
                                Fill="{TemplateBinding OuterBackground}"/>
                        <Ellipse
                                Grid.Row="1"
                                Grid.Column="1"
                                Fill="{TemplateBinding InnerBackground}"
                                Stroke="{TemplateBinding InnerBorderBrush}"
                                StrokeThickness="{TemplateBinding InnerBorderThickness}"/>
                        <ItemsPresenter Grid.RowSpan="3" Grid.ColumnSpan="3"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadRadialGauge" BasedOn="{StaticResource RadRadialGaugeStyle}"/>
    <Style x:Key="QuadrantNWScaleStyle" BasedOn="{StaticResource RadialScaleStyle}" TargetType="gauges:QuadrantNWScale">
        <Setter Property="Center" Value="{StaticResource QuadrantGaugeNWCenter}"/>
        <Setter Property="Radius" Value="{StaticResource QuadrantGaugeRadius}"/>
        <Setter Property="StartAngle" Value="{StaticResource QuadrantGaugeNWStartAngle}"/>
        <Setter Property="SweepAngle" Value="{StaticResource QuadrantGaugeSweepAngle}"/>
        <Setter Property="LabelLocation" Value="Inside"/>
        <Setter Property="LabelRotationMode" Value="{StaticResource LabelRotationSurroundOutMode}"/>
        <Setter Property="MajorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MiddleTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MinorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
    </Style>
    <Style TargetType="gauges:QuadrantNWScale" BasedOn="{StaticResource QuadrantNWScaleStyle}"/>
    <Style x:Key="RadQuadrantNWGaugeStyle" TargetType="datavizControls:RadQuadrantNWGauge">
        <Setter Property="OuterBackground" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadQuadrantNWGauge">
                    <Grid Height="{TemplateBinding CellHeight}" Width="{TemplateBinding CellWidth}" Background="{TemplateBinding Background}">
                        <Path
                                Stretch="Fill"
                                Stroke="{TemplateBinding OuterBorderBrush}"
                                StrokeThickness="{TemplateBinding OuterBorderThickness}"
                                Fill="{TemplateBinding OuterBackground}"
                                Data="M110,0.5C117.938,0.5 118,0.575458 118,0.575458L118,118L0.575458,118C0.575458,118 0.5,117.959 0.5,110C0.5,49.5248 49.5248,0.5 110,0.5z"/>
                        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="4*"/>
                                <RowDefinition Height="92*"/>
                                <RowDefinition Height="4*"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="4*"/>
                                <ColumnDefinition Width="92*"/>
                                <ColumnDefinition Width="4*"/>
                            </Grid.ColumnDefinitions>
                            <Path
                                    Stretch="Fill"
                                    Grid.Column="1"
                                    Grid.Row="1"
                                    Stroke="{TemplateBinding InnerBorderBrush}"
                                    StrokeThickness="{TemplateBinding InnerBorderThickness}"
                                    Fill="{TemplateBinding InnerBackground}"
                                    Data="M101,0L101,101L0,101C9.53674e-007,45.2192 45.2192,9.53674e-007 101,0z"
                                    SnapsToDevicePixels="True"/>
                        </Grid>
                        <ItemsPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadQuadrantNWGauge" BasedOn="{StaticResource RadQuadrantNWGaugeStyle}"/>
    <Style x:Key="QuadrantNEScaleStyle" BasedOn="{StaticResource RadialScaleStyle}" TargetType="gauges:QuadrantNEScale">
        <Setter Property="Center" Value="{StaticResource QuadrantGaugeNECenter}"/>
        <Setter Property="Radius" Value="{StaticResource QuadrantGaugeRadius}"/>
        <Setter Property="StartAngle" Value="{StaticResource QuadrantGaugeNEStartAngle}"/>
        <Setter Property="SweepAngle" Value="{StaticResource QuadrantGaugeSweepAngle}"/>
        <Setter Property="LabelLocation" Value="Inside"/>
        <Setter Property="LabelRotationMode" Value="{StaticResource LabelRotationSurroundOutMode}"/>
        <Setter Property="MajorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MiddleTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MinorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
    </Style>
    <Style TargetType="gauges:QuadrantNEScale" BasedOn="{StaticResource QuadrantNEScaleStyle}"/>
    <Style x:Key="RadQuadrantNEGaugeStyle" TargetType="datavizControls:RadQuadrantNEGauge">
        <Setter Property="OuterBackground" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadQuadrantNEGauge">
                    <Grid Height="{TemplateBinding CellHeight}" Width="{TemplateBinding CellWidth}" Background="{TemplateBinding Background}">
                        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <ScaleTransform ScaleX="-1" ScaleY="1"/>
                            </Grid.RenderTransform>
                            <Path
                                    Stretch="Fill"
                                    Stroke="{TemplateBinding OuterBorderBrush}"
                                    StrokeThickness="{TemplateBinding OuterBorderThickness}"
                                    Fill="{TemplateBinding OuterBackground}"
                                    Data="M110,0.5C117.938,0.5 118,0.575458 118,0.575458L118,118L0.575458,118C0.575458,118 0.5,117.959 0.5,110C0.5,49.5248 49.5248,0.5 110,0.5z"/>
                            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="4*"/>
                                    <RowDefinition Height="92*"/>
                                    <RowDefinition Height="4*"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="4*"/>
                                    <ColumnDefinition Width="92*"/>
                                    <ColumnDefinition Width="4*"/>
                                </Grid.ColumnDefinitions>
                                <Path
                                        Stretch="Fill"
                                        Grid.Row="1"
                                        Grid.Column="1"
                                        Stroke="{TemplateBinding InnerBorderBrush}"
                                        StrokeThickness="{TemplateBinding InnerBorderThickness}"
                                        Fill="{TemplateBinding InnerBackground}"
                                        Data="M101,0L101,101L0,101C9.53674e-007,45.2192 45.2192,9.53674e-007 101,0z"
                                        SnapsToDevicePixels="True"/>
                            </Grid>
                        </Grid>
                        <ItemsPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadQuadrantNEGauge" BasedOn="{StaticResource RadQuadrantNEGaugeStyle}"/>
    <Style x:Key="QuadrantSEScaleStyle" BasedOn="{StaticResource RadialScaleStyle}" TargetType="gauges:QuadrantSEScale">
        <Setter Property="Center" Value="{StaticResource QuadrantGaugeSECenter}"/>
        <Setter Property="Radius" Value="{StaticResource QuadrantGaugeRadius}"/>
        <Setter Property="StartAngle" Value="{StaticResource QuadrantGaugeSEStartAngle}"/>
        <Setter Property="SweepAngle" Value="{StaticResource QuadrantGaugeSweepAngle}"/>
        <Setter Property="LabelLocation" Value="Inside"/>
        <Setter Property="LabelRotationMode" Value="{StaticResource LabelRotationSurroundInMode}"/>
        <Setter Property="MajorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MiddleTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MinorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
    </Style>
    <Style TargetType="gauges:QuadrantSEScale" BasedOn="{StaticResource QuadrantSEScaleStyle}"/>
    <Style x:Key="RadQuadrantSEGaugeStyle" TargetType="datavizControls:RadQuadrantSEGauge">
        <Setter Property="OuterBackground" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadQuadrantSEGauge">
                    <Grid Height="{TemplateBinding CellHeight}" Width="{TemplateBinding CellWidth}" Background="{TemplateBinding Background}">
                        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <ScaleTransform ScaleX="-1" ScaleY="-1"/>
                            </Grid.RenderTransform>
                            <Path
                                    Stretch="Fill"
                                    Stroke="{TemplateBinding OuterBorderBrush}"
                                    StrokeThickness="{TemplateBinding OuterBorderThickness}"
                                    Fill="{TemplateBinding OuterBackground}"
                                    Data="M110,0.5C117.938,0.5 118,0.575458 118,0.575458L118,118L0.575458,118C0.575458,118 0.5,117.959 0.5,110C0.5,49.5248 49.5248,0.5 110,0.5z"/>
                            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="4*"/>
                                    <RowDefinition Height="92*"/>
                                    <RowDefinition Height="4*"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="4*"/>
                                    <ColumnDefinition Width="92*"/>
                                    <ColumnDefinition Width="4*"/>
                                </Grid.ColumnDefinitions>
                                <Path
                                        Stretch="Fill"
                                        Grid.Row="1"
                                        Grid.Column="1"
                                        Stroke="{TemplateBinding InnerBorderBrush}"
                                        StrokeThickness="{TemplateBinding InnerBorderThickness}"
                                        Fill="{TemplateBinding InnerBackground}"
                                        Data="M101,0L101,101L0,101C9.53674e-007,45.2192 45.2192,9.53674e-007 101,0z"
                                        SnapsToDevicePixels="True"/>
                            </Grid>
                        </Grid>
                        <ItemsPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadQuadrantSEGauge" BasedOn="{StaticResource RadQuadrantSEGaugeStyle}"/>
    <Style x:Key="QuadrantSWScaleStyle" BasedOn="{StaticResource RadialScaleStyle}" TargetType="gauges:QuadrantSWScale">
        <Setter Property="Center" Value="{StaticResource QuadrantGaugeSWCenter}"/>
        <Setter Property="Radius" Value="{StaticResource QuadrantGaugeRadius}"/>
        <Setter Property="StartAngle" Value="{StaticResource QuadrantGaugeSWStartAngle}"/>
        <Setter Property="SweepAngle" Value="{StaticResource QuadrantGaugeSweepAngle}"/>
        <Setter Property="LabelLocation" Value="Inside"/>
        <Setter Property="LabelRotationMode" Value="{StaticResource LabelRotationSurroundInMode}"/>
        <Setter Property="MajorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MiddleTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MinorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
    </Style>
    <Style TargetType="gauges:QuadrantSWScale" BasedOn="{StaticResource QuadrantSWScaleStyle}"/>
    <Style x:Key="RadQuadrantSWGaugeStyle" TargetType="datavizControls:RadQuadrantSWGauge">
        <Setter Property="OuterBackground" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadQuadrantSWGauge">
                    <Grid Height="{TemplateBinding CellHeight}" Width="{TemplateBinding CellWidth}" Background="{TemplateBinding Background}">
                        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <ScaleTransform ScaleX="1" ScaleY="-1"/>
                            </Grid.RenderTransform>
                            <Path
                                    Stretch="Fill"
                                    Stroke="{TemplateBinding OuterBorderBrush}"
                                    StrokeThickness="{TemplateBinding OuterBorderThickness}"
                                    Fill="{TemplateBinding OuterBackground}"
                                    Data="M110,0.5C117.938,0.5 118,0.575458 118,0.575458L118,118L0.575458,118C0.575458,118 0.5,117.959 0.5,110C0.5,49.5248 49.5248,0.5 110,0.5z"/>
                            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="4*"/>
                                    <RowDefinition Height="92*"/>
                                    <RowDefinition Height="4*"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="4*"/>
                                    <ColumnDefinition Width="92*"/>
                                    <ColumnDefinition Width="4*"/>
                                </Grid.ColumnDefinitions>
                                <Path
                                        Stretch="Fill"
                                        Grid.Row="1"
                                        Grid.Column="1"
                                        Stroke="{TemplateBinding InnerBorderBrush}"
                                        StrokeThickness="{TemplateBinding InnerBorderThickness}"
                                        Fill="{TemplateBinding InnerBackground}"
                                        Data="M101,0L101,101L0,101C9.53674e-007,45.2192 45.2192,9.53674e-007 101,0z"
                                        SnapsToDevicePixels="True"/>
                            </Grid>
                        </Grid>
                        <ItemsPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadQuadrantSWGauge" BasedOn="{StaticResource RadQuadrantSWGaugeStyle}"/>
    <Style x:Key="SemicircleNorthScaleStyle" BasedOn="{StaticResource RadialScaleStyle}" TargetType="gauges:SemicircleNorthScale">
        <Setter Property="Center" Value="{StaticResource HalfGaugeNCenter}"/>
        <Setter Property="Radius" Value="{StaticResource HalfGaugeRadius}"/>
        <Setter Property="StartAngle" Value="{StaticResource HalfGaugeNStartAngle}"/>
        <Setter Property="SweepAngle" Value="{StaticResource HalfGaugeSweepAngle}"/>
        <Setter Property="LabelLocation" Value="Inside"/>
        <Setter Property="LabelRotationMode" Value="{StaticResource LabelRotationSurroundOutMode}"/>
        <Setter Property="MajorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MiddleTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MinorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
    </Style>
    <Style TargetType="gauges:SemicircleNorthScale" BasedOn="{StaticResource SemicircleNorthScaleStyle}"/>
    <Style x:Key="RadSemicircleNorthGaugeStyle" TargetType="datavizControls:RadSemicircleNorthGauge">
        <Setter Property="OuterBackground" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadSemicircleNorthGauge">
                    <Grid Height="{TemplateBinding CellHeight}" Width="{TemplateBinding CellWidth}" Background="{TemplateBinding Background}">
                        <Path
                                Stretch="Fill"
                                StrokeThickness="{TemplateBinding OuterBorderThickness}"
                                Stroke="{TemplateBinding OuterBorderBrush}"
                                Fill="{TemplateBinding OuterBackground}"
                                Data="M101.987,1C156.897,1 201.572,44.8172 202.954,99.3931L202.975,101L1,101L1.02033,99.3931C2.40303,44.8172 47.0782,1 101.987,1z"/>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="4*"/>
                                <RowDefinition Height="92*"/>
                                <RowDefinition Height="4*"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="2*"/>
                                <ColumnDefinition Width="96*"/>
                                <ColumnDefinition Width="2*"/>
                            </Grid.ColumnDefinitions>
                            <Path
                                    Grid.Row="1"
                                    Grid.Column="1"
                                    Stretch="Fill"
                                    Stroke="{TemplateBinding InnerBorderBrush}"
                                    StrokeThickness="{TemplateBinding InnerBorderThickness}"
                                    Fill="{TemplateBinding InnerBackground}"
                                    Data="M101.987,1C156.897,1 201.572,44.8172 202.954,99.3931L202.975,101L1,101L1.02033,99.3931C2.40303,44.8172 47.0782,1 101.987,1z"
                                    SnapsToDevicePixels="True"/>
                        </Grid>
                        <ItemsPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadSemicircleNorthGauge" BasedOn="{StaticResource RadSemicircleNorthGaugeStyle}"/>
    <Style x:Key="SemicircleWestScaleStyle" BasedOn="{StaticResource RadialScaleStyle}" TargetType="gauges:SemicircleWestScale">
        <Setter Property="Center" Value="{StaticResource HalfGaugeWCenter}"/>
        <Setter Property="Radius" Value="{StaticResource HalfGaugeRadius}"/>
        <Setter Property="StartAngle" Value="{StaticResource HalfGaugeWStartAngle}"/>
        <Setter Property="SweepAngle" Value="{StaticResource HalfGaugeSweepAngle}"/>
        <Setter Property="LabelLocation" Value="Inside"/>
        <Setter Property="MajorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MiddleTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MinorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
    </Style>
    <Style TargetType="gauges:SemicircleWestScale" BasedOn="{StaticResource SemicircleWestScaleStyle}"/>
    <Style x:Key="RadSemicircleWestGaugeStyle" TargetType="datavizControls:RadSemicircleWestGauge">
        <Setter Property="OuterBackground" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadSemicircleWestGauge">
                    <Grid Height="{TemplateBinding CellHeight}" Width="{TemplateBinding CellWidth}" Background="{TemplateBinding Background}">
                        <Path
                                Stretch="Fill"
                                StrokeThickness="{TemplateBinding OuterBorderThickness}"
                                Stroke="{TemplateBinding OuterBorderBrush}"
                                Fill="{TemplateBinding OuterBackground}"
                                Data="M1,101.987C1,156.897 44.8172,201.572 99.3931,202.954L101,202.975L101,1L99.3931,1.02033C44.8172,2.40303 1,47.0782 1,101.987z"/>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="2*"/>
                                <RowDefinition Height="96*"/>
                                <RowDefinition Height="2*"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="4*"/>
                                <ColumnDefinition Width="92*"/>
                                <ColumnDefinition Width="4*"/>
                            </Grid.ColumnDefinitions>
                            <Path
                                    Grid.Row="1"
                                    Grid.Column="1"
                                    Stretch="Fill"
                                    Stroke="{TemplateBinding InnerBorderBrush}"
                                    StrokeThickness="{TemplateBinding InnerBorderThickness}"
                                    Fill="{TemplateBinding InnerBackground}"
                                    Data="M1,101.987C1,156.897 44.8172,201.572 99.3931,202.954L101,202.975L101,1L99.3931,1.02033C44.8172,2.40303 1,47.0782 1,101.987z"
                                    SnapsToDevicePixels="True"/>
                        </Grid>
                        <ItemsPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadSemicircleWestGauge" BasedOn="{StaticResource RadSemicircleWestGaugeStyle}"/>
    <Style x:Key="SemicircleSouthScaleStyle" BasedOn="{StaticResource RadialScaleStyle}" TargetType="gauges:SemicircleSouthScale">
        <Setter Property="Center" Value="{StaticResource HalfGaugeSCenter}"/>
        <Setter Property="Radius" Value="{StaticResource HalfGaugeRadius}"/>
        <Setter Property="StartAngle" Value="{StaticResource HalfGaugeSStartAngle}"/>
        <Setter Property="SweepAngle" Value="{StaticResource HalfGaugeSweepAngle}"/>
        <Setter Property="LabelLocation" Value="Inside"/>
        <Setter Property="LabelRotationMode" Value="{StaticResource LabelRotationSurroundInMode}"/>
        <Setter Property="MajorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MiddleTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MinorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
    </Style>
    <Style TargetType="gauges:SemicircleSouthScale" BasedOn="{StaticResource SemicircleSouthScaleStyle}"/>
    <Style x:Key="RadSemicircleSouthGaugeStyle" TargetType="datavizControls:RadSemicircleSouthGauge">
        <Setter Property="OuterBackground" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadSemicircleSouthGauge">
                    <Grid Height="{TemplateBinding CellHeight}" Width="{TemplateBinding CellWidth}" Background="{TemplateBinding Background}">
                        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleY="-1"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Path
                                    Stretch="Fill"
                                    StrokeThickness="{TemplateBinding OuterBorderThickness}"
                                    Stroke="{TemplateBinding OuterBorderBrush}"
                                    Fill="{TemplateBinding OuterBackground}"
                                    Data="M101.987,1C156.897,1 201.572,44.8172 202.954,99.3931L202.975,101L1,101L1.02033,99.3931C2.40303,44.8172 47.0782,1 101.987,1z"/>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="4*"/>
                                    <RowDefinition Height="92*"/>
                                    <RowDefinition Height="4*"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="2*"/>
                                    <ColumnDefinition Width="96*"/>
                                    <ColumnDefinition Width="2*"/>
                                </Grid.ColumnDefinitions>
                                <Path
                                        Grid.Row="1"
                                        Grid.Column="1"
                                        Stretch="Fill"
                                        Stroke="{TemplateBinding InnerBorderBrush}"
                                        StrokeThickness="{TemplateBinding InnerBorderThickness}"
                                        Fill="{TemplateBinding InnerBackground}"
                                        Data="M101.987,1C156.897,1 201.572,44.8172 202.954,99.3931L202.975,101L1,101L1.02033,99.3931C2.40303,44.8172 47.0782,1 101.987,1z"
                                        SnapsToDevicePixels="True"/>
                            </Grid>
                        </Grid>
                        <ItemsPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadSemicircleSouthGauge" BasedOn="{StaticResource RadSemicircleSouthGaugeStyle}"/>
    <Style x:Key="SemicircleEastScaleStyle" BasedOn="{StaticResource RadialScaleStyle}" TargetType="gauges:SemicircleEastScale">
        <Setter Property="Center" Value="{StaticResource HalfGaugeECenter}"/>
        <Setter Property="Radius" Value="{StaticResource HalfGaugeRadius}"/>
        <Setter Property="StartAngle" Value="{StaticResource HalfGaugeEStartAngle}"/>
        <Setter Property="SweepAngle" Value="{StaticResource HalfGaugeSweepAngle}"/>
        <Setter Property="LabelLocation" Value="Inside"/>
        <Setter Property="MajorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MiddleTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
        <Setter Property="MinorTickLocation" Value="{StaticResource HalfGaugeTickLocation}"/>
    </Style>
    <Style TargetType="gauges:SemicircleEastScale" BasedOn="{StaticResource SemicircleEastScaleStyle}"/>
    <Style x:Key="RadSemicircleEastGaugeStyle" TargetType="datavizControls:RadSemicircleEastGauge">
        <Setter Property="OuterBackground" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadSemicircleEastGauge">
                    <Grid Height="{TemplateBinding CellHeight}" Width="{TemplateBinding CellWidth}" Background="{TemplateBinding Background}">
                        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="-1"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Path
                                    Stretch="Fill"
                                    StrokeThickness="{TemplateBinding OuterBorderThickness}"
                                    Stroke="{TemplateBinding OuterBorderBrush}"
                                    Fill="{TemplateBinding OuterBackground}"
                                    Data="M1,101.987C1,156.897 44.8172,201.572 99.3931,202.954L101,202.975L101,1L99.3931,1.02033C44.8172,2.40303 1,47.0782 1,101.987z"/>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="2*"/>
                                    <RowDefinition Height="96*"/>
                                    <RowDefinition Height="2*"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="4*"/>
                                    <ColumnDefinition Width="92*"/>
                                    <ColumnDefinition Width="4*"/>
                                </Grid.ColumnDefinitions>
                                <Path
                                        Grid.Row="1"
                                        Grid.Column="1"
                                        Stretch="Fill"
                                        Stroke="{TemplateBinding InnerBorderBrush}"
                                        StrokeThickness="{TemplateBinding InnerBorderThickness}"
                                        Fill="{TemplateBinding InnerBackground}"
                                        Data="M1,101.987C1,156.897 44.8172,201.572 99.3931,202.954L101,202.975L101,1L99.3931,1.02033C44.8172,2.40303 1,47.0782 1,101.987z"
                                        SnapsToDevicePixels="True"/>
                            </Grid>
                        </Grid>
                        <ItemsPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadSemicircleEastGauge" BasedOn="{StaticResource RadSemicircleEastGaugeStyle}"/>
    <Style x:Key="SevenSegsNumberPositionStyle" TargetType="gauges:SevenSegsNumberPosition">
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="gauges:SevenSegsNumberPosition">
                    <Grid>
                        <Border
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Opacity="{TemplateBinding Opacity}"
                                Margin="{TemplateBinding Padding}">
                            <ContentPresenter VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="gauges:SevenSegsNumberPosition" BasedOn="{StaticResource SevenSegsNumberPositionStyle}"/>
    <Style x:Key="SevenSegsShapeFill" TargetType="Shape">
        <Setter Property="Stretch" Value="Fill"/>
    </Style>
    <DataTemplate x:Key="SevenSegsSb">
        <Grid/>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs0">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs1">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs2">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs3">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs4">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs5">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs6">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs7">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs8">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="0" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs9">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="0" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="0" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="1" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="3" Grid.Column="2" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
            <Rectangle Grid.Row="4" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs.">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="3" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs,">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Polygon Grid.Row="3" Grid.Column="1" Points="0,5 10,5 0,10" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="SevenSegs-">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="5*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Row="2" Grid.Column="1" Style="{StaticResource SevenSegsShapeFill}" Fill="{Binding Foreground}"/>
        </Grid>
    </DataTemplate>
    <Thickness x:Key="BulletGraphBorderThickness">0</Thickness>
    <SolidColorBrush x:Key="BulletGraphBorderBrush" Color="Transparent"/>
    <Style x:Key="RadHorizontalBulletGraphStyle" TargetType="datavizControls:RadHorizontalBulletGraph">
        <Setter Property="FeaturedMeasureBrush" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="ProjectedValueBrush" Value="{telerik:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="ComparativeMeasureBrush" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="ComparativeMeasureThickness" Value="4"/>
        <Setter Property="QualityPoorBrush" Value="{telerik:Windows8TouchResource ResourceKey=QualityPoorBrush}"/>
        <Setter Property="QualitySatisfactoryBrush" Value="{telerik:Windows8TouchResource ResourceKey=QualitySatisfactoryBrush}"/>
        <Setter Property="QualityGoodBrush" Value="{telerik:Windows8TouchResource ResourceKey=QualityGoodBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource BulletGraphBorderBrush}"/>
        <Setter Property="BorderThickness" Value="{StaticResource BulletGraphBorderThickness}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadHorizontalBulletGraph">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Border Grid.Row="0" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                            <Grid>
                                <bulletGraphs:QualitativeRangeContainer ChildrenSource="{TemplateBinding QualitativeRanges}" Range="{TemplateBinding Range}"/>
                                <bulletGraphs:PositioningIndicatorPanel x:Name="PART_AxisPanel"/>
                                <bulletGraphs:FeaturedMeasurePresenter Content="{TemplateBinding ProjectedMeasureInternal}"/>
                                <bulletGraphs:FeaturedMeasurePresenter Content="{TemplateBinding FeaturedMeasureInternal}"/>
                                <bulletGraphs:ComparativeMeasuresContainer ChildrenSource="{TemplateBinding MergedComparativeMeasures}" Range="{TemplateBinding Range}"/>
                            </Grid>
                        </Border>
                        <bulletGraphs:QuantitativeScaleContainer Grid.Row="1" TextFormatString="{TemplateBinding TextFormatString}" Visibility="{TemplateBinding QuantitativeScaleVisibility}" Range="{TemplateBinding Range}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadHorizontalBulletGraph" BasedOn="{StaticResource RadHorizontalBulletGraphStyle}"/>
    <Style x:Key="RadVerticalBulletGraphStyle" TargetType="datavizControls:RadVerticalBulletGraph">
        <Setter Property="FeaturedMeasureBrush" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="ProjectedValueBrush" Value="{telerik:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="ComparativeMeasureBrush" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="ComparativeMeasureThickness" Value="4"/>
        <Setter Property="QualityPoorBrush" Value="{telerik:Windows8TouchResource ResourceKey=QualityPoorBrush}"/>
        <Setter Property="QualitySatisfactoryBrush" Value="{telerik:Windows8TouchResource ResourceKey=QualitySatisfactoryBrush}"/>
        <Setter Property="QualityGoodBrush" Value="{telerik:Windows8TouchResource ResourceKey=QualityGoodBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource BulletGraphBorderBrush}"/>
        <Setter Property="BorderThickness" Value="{StaticResource BulletGraphBorderThickness}"/>
        <Setter Property="Foreground" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="FontSize" Value="{telerik:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="FontFamily" Value="{telerik:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadVerticalBulletGraph">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <bulletGraphs:QuantitativeScaleContainer Grid.Column="0" TextFormatString="{TemplateBinding TextFormatString}" Visibility="{TemplateBinding QuantitativeScaleVisibility}" Range="{TemplateBinding Range}"/>
                        <Border Grid.Column="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                            <Grid>
                                <bulletGraphs:QualitativeRangeContainer ChildrenSource="{TemplateBinding QualitativeRanges}" Range="{TemplateBinding Range}"/>
                                <bulletGraphs:PositioningIndicatorPanel x:Name="PART_AxisPanel"/>
                                <bulletGraphs:FeaturedMeasurePresenter Content="{TemplateBinding ProjectedMeasureInternal}"/>
                                <bulletGraphs:FeaturedMeasurePresenter Content="{TemplateBinding FeaturedMeasureInternal}"/>
                                <bulletGraphs:ComparativeMeasuresContainer ChildrenSource="{TemplateBinding MergedComparativeMeasures}" Range="{TemplateBinding Range}"/>
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadVerticalBulletGraph" BasedOn="{StaticResource RadVerticalBulletGraphStyle}"/>
    <bulletGraphs:FeaturedMeasureTemplateSelector x:Key="featuredMeasureTemplateSelector">
        <bulletGraphs:FeaturedMeasureTemplateSelector.BarTemplate>
            <DataTemplate>
                <bulletGraphs:BarStackPanel>
                    <bulletGraphs:BarItem/>
                </bulletGraphs:BarStackPanel>
            </DataTemplate>
        </bulletGraphs:FeaturedMeasureTemplateSelector.BarTemplate>
        <bulletGraphs:FeaturedMeasureTemplateSelector.EllipseTemplate>
            <DataTemplate>
                <bulletGraphs:PositioningPanel>
                    <bulletGraphs:EllipseItem/>
                </bulletGraphs:PositioningPanel>
            </DataTemplate>
        </bulletGraphs:FeaturedMeasureTemplateSelector.EllipseTemplate>
    </bulletGraphs:FeaturedMeasureTemplateSelector>
    <Style x:Key="QualitativeRangeContainerStyle" TargetType="bulletGraphs:QualitativeRangeContainer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="bulletGraphs:QualitativeRangeContainer">
                    <ItemsPresenter/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <bulletGraphs:BarStackPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="QuantitativeScaleContainerStyle" TargetType="bulletGraphs:QuantitativeScaleContainer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="bulletGraphs:QuantitativeScaleContainer">
                    <ItemsPresenter/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <bulletGraphs:PositioningScalePanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="FeaturedMeasurePresenterStyle" TargetType="bulletGraphs:FeaturedMeasurePresenter">
        <Setter Property="ContentTemplateSelector" Value="{StaticResource featuredMeasureTemplateSelector}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="bulletGraphs:FeaturedMeasurePresenter">
                    <ContentPresenter/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ComparativeMeasuresContainerStyle" TargetType="bulletGraphs:ComparativeMeasuresContainer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="bulletGraphs:ComparativeMeasuresContainer">
                    <ItemsPresenter/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <bulletGraphs:PositioningPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ZeroIndicatorStyle" TargetType="bulletGraphs:ZeroIndicator">
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="bulletGraphs:ZeroIndicator">
                    <Border
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="EllipseItemStyle" TargetType="bulletGraphs:EllipseItem">
        <Setter Property="LengthPercent" Value="0.6"/>
        <Setter Property="WidthHeightRatio" Value="0.5"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="bulletGraphs:EllipseItem">
                    <Ellipse Fill="{Binding Brush}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="BarItemStyle" TargetType="bulletGraphs:BarItem">
        <Setter Property="LengthPercent" Value="0.33"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="bulletGraphs:BarItem">
                    <Border
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                        <Rectangle Fill="{Binding Brush}" Margin="{TemplateBinding DynamicMargin}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ComparativeMeasureStyle" TargetType="bulletGraphs:ComparativeMeasure">
        <Setter Property="Brush" Value="{telerik:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Thickness" Value="4"/>
        <Setter Property="LengthPercent" Value="0.7"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="bulletGraphs:ComparativeMeasure">
                    <Border
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                        <Rectangle Fill="{TemplateBinding Brush}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="QualitativeRangeStyle" TargetType="bulletGraphs:QualitativeRange">
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="bulletGraphs:QualitativeRange">
                    <Border
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                        <Rectangle Fill="{TemplateBinding Brush}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="HorizontalLabelTickStyle" TargetType="bulletGraphs:HorizontalLabelTick">
        <Setter Property="TickBrush" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="bulletGraphs:HorizontalLabelTick">
                    <Border
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Rectangle
                                    Grid.Row="0"
                                    x:Name="PART_Tick"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Top"
                                    Height="6"
                                    Width="1"
                                    Fill="{TemplateBinding TickBrush}"
                                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                            <TextBlock Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top" TextAlignment="Center" Text="{Binding Text}" Margin="{TemplateBinding Padding}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="VerticalLabelTickStyle" TargetType="bulletGraphs:VerticalLabelTick">
        <Setter Property="TickBrush" Value="{telerik:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="Padding" Value="2 0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="bulletGraphs:VerticalLabelTick">
                    <Border
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center" TextAlignment="Center" Text="{Binding Text}" Margin="{TemplateBinding Padding}"/>
                            <Rectangle
                                    Grid.Column="1"
                                    x:Name="PART_Tick"
                                    HorizontalAlignment="Right"
                                    VerticalAlignment="Center"
                                    Height="1"
                                    Width="6"
                                    Fill="{TemplateBinding TickBrush}"
                                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="bulletGraphs:QualitativeRangeContainer" BasedOn="{StaticResource QualitativeRangeContainerStyle}"/>
    <Style TargetType="bulletGraphs:QuantitativeScaleContainer" BasedOn="{StaticResource QuantitativeScaleContainerStyle}"/>
    <Style TargetType="bulletGraphs:FeaturedMeasurePresenter" BasedOn="{StaticResource FeaturedMeasurePresenterStyle}"/>
    <Style TargetType="bulletGraphs:ComparativeMeasuresContainer" BasedOn="{StaticResource ComparativeMeasuresContainerStyle}"/>
    <Style TargetType="bulletGraphs:ZeroIndicator" BasedOn="{StaticResource ZeroIndicatorStyle}"/>
    <Style TargetType="bulletGraphs:EllipseItem" BasedOn="{StaticResource EllipseItemStyle}"/>
    <Style TargetType="bulletGraphs:BarItem" BasedOn="{StaticResource BarItemStyle}"/>
    <Style TargetType="bulletGraphs:ComparativeMeasure" BasedOn="{StaticResource ComparativeMeasureStyle}"/>
    <Style TargetType="bulletGraphs:QualitativeRange" BasedOn="{StaticResource QualitativeRangeStyle}"/>
    <Style TargetType="bulletGraphs:HorizontalLabelTick" BasedOn="{StaticResource HorizontalLabelTickStyle}"/>
    <Style TargetType="bulletGraphs:VerticalLabelTick" BasedOn="{StaticResource VerticalLabelTickStyle}"/>
    <Style x:Key="TimeSpecialSlotControlStyle" TargetType="timeBars:TimeSpecialSlotControl">
        <Setter Property="BorderBrush" Value="{telerik:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="Background" Value="{telerik:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="IsHitTestVisible" Value="False"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timeBars:TimeSpecialSlotControl">
                    <Rectangle x:Name="Background" Fill="{TemplateBinding Background}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity="0.15"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="timeBars:TimeSpecialSlotControl" BasedOn="{StaticResource TimeSpecialSlotControlStyle}"/>
    <timeBars:DateTicksConverter x:Key="dateConverter"/>
    <timeBars:TimeSpanTicksConverter x:Key="timespanConverter"/>
    <timeBars:TimeSpanToMaximumRangeSpanConverter x:Key="timeSpanToMaximumRangeSpanConverter"/>
    <timeBars:SelectionRangeDateTicksConverter x:Key="selectionRangeConverter"/>
    <timeBars:ScrollModeToThumbVisibilityConverter x:Key="scrollModeToThumbVisibilityConverter"/>
    <timeBars:ScrollModeToVisibilityConverter x:Key="scrollModeToVisibilityConverter"/>
    <Thickness x:Key="TimeBar_Button_OuterBorder_Thickness">0</Thickness>
    <SolidColorBrush x:Key="TimeBar_Button_OuterBorder" Color="Transparent"/>
    <SolidColorBrush x:Key="TimeBar_Button_Border" Color="Transparent"/>
    <Thickness x:Key="TimeBar_Button_Bottom_Thickness">0 3 0 0</Thickness>
    <SolidColorBrush x:Key="TimeBar_Button_Bottom_BorderBrush" Color="Transparent"/>
    <Thickness x:Key="TimeBar_Group_Margin">5 0</Thickness>
    <system:Double x:Key="TimeBar_Group_Button_Height">30</system:Double>
    <SolidColorBrush x:Key="TimeBar_Group_Button_Border" Color="Transparent"/>
    <Thickness x:Key="TimeBar_Slider_Margin">0 5 0 1</Thickness>
    <SolidColorBrush x:Key="TimeBar_Slider_InnerBorder" Color="Transparent"/>
    <Thickness x:Key="TimeBar_Slider_InnerBorderThickness">0</Thickness>
    <system:Double x:Key="TimeBar_Slider_Thumbs_Width">24</system:Double>
    <system:Double x:Key="TimeBar_Slider_Thumbs_Path_Width">2</system:Double>
    <SolidColorBrush x:Key="TimeBar_Slider_Thumbs_Path" Color="#01FFFFFF"/>
    <CornerRadius x:Key="TimeBar_Slider_Range_Border_CornerRadius">0</CornerRadius>
    <system:Double x:Key="TimeBar_Slider_Range_Height">NaN</system:Double>
    <Thickness x:Key="TimeBar_Slider_Handle_OuterBorder_BorderThickness_Over">0</Thickness>
    <CornerRadius x:Key="TimeBar_Slider_Handle_OuterBorder_CornerRadius">0</CornerRadius>
    <SolidColorBrush x:Key="TimeBar_Slider_Handle_OuterBorder_Over" Color="Transparent"/>
    <SolidColorBrush x:Key="TimeBar_Slider_Handle_OuterBorder_Pressed" Color="Transparent"/>
    <CornerRadius x:Key="TimeBar_Slider_Handle_InnerBorder_CornerRadius">0</CornerRadius>
    <Thickness x:Key="TimeBar_Slider_Handle_InnerBorder_BorderThickness_Over">0</Thickness>
    <SolidColorBrush x:Key="TimeBar_Slider_Handle_InnerBorder_Over" Color="Transparent"/>
    <SolidColorBrush x:Key="TimeBar_Slider_Handle_InnerBorder_Pressed" Color="Transparent"/>
    <SolidColorBrush x:Key="TimeBar_Slider_Handle_Background_Over" Color="Transparent"/>
    <SolidColorBrush x:Key="TimeBar_Slider_Handle_Background_Pressed" Color="Transparent"/>
    <Thickness x:Key="TimeBar_SelectionThumb_Margin">-18 0 -19 0</Thickness>
    <Thickness x:Key="TimeBar_SelectionThumb_Range_Margin">17 0</Thickness>
    <Thickness x:Key="TimeBar_SelectionThumb_Range_OuterBorder_BorderThickness">2</Thickness>
    <SolidColorBrush x:Key="TimeBar_SelectionThumb_Range_Background_MouseOver" Color="#0C000000"/>
    <Thickness x:Key="TimeBar_SelectionThumb_Range_Title_Margin">0</Thickness>
    <Thickness x:Key="TimeBar_SelectionThumb_Range_Title_Padding">5 0</Thickness>
    <SolidColorBrush x:Key="TimeBar_SelectionThumb_Range_Title_Background" Color="Transparent"/>
    <Thickness x:Key="TimeBar_SelectionThumb_Range_Title_BorderThickness">0</Thickness>
    <Thickness x:Key="TimeBar_SelectionIndicator_Padding">0 4</Thickness>
    <Style x:Key="TimeBar_ThumbStyle" TargetType="Thumb">
        <Setter Property="Width" Value="{StaticResource TimeBar_Slider_Thumbs_Width}"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource TimeBar_Slider_Thumbs_Path}"/>
        <Setter Property="Cursor" Value="SizeWE"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="0.1" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <Storyboard>
                                            <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="1" Duration="0:0:0"/>
                                        </Storyboard>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static timeBars:RadTimeBarCommands.ExpandVisiblePeriodToStart}"/>
                        </Grid.InputBindings>
                        <Border x:Name="Border"
                                Opacity="0.2"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <Rectangle Fill="{TemplateBinding Foreground}" Width="{StaticResource TimeBar_Slider_Thumbs_Path_Width}" VerticalAlignment="Stretch" SnapsToDevicePixels="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeBar_AlternateThumbStyle" TargetType="Thumb">
        <Setter Property="Width" Value="{StaticResource TimeBar_Slider_Thumbs_Width}"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource TimeBar_Slider_Thumbs_Path}"/>
        <Setter Property="Cursor" Value="SizeWE"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="0.1" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="1" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static timeBars:RadTimeBarCommands.ExpandVisiblePeriodToEnd}"/>
                        </Grid.InputBindings>
                        <Border x:Name="Border"
                                Opacity="0.2"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <Rectangle Fill="{TemplateBinding Foreground}" Width="{StaticResource TimeBar_Slider_Thumbs_Path_Width}" VerticalAlignment="Stretch" SnapsToDevicePixels="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="TimeBar_HandleRepeatButtonTemplate" TargetType="RepeatButton">
        <Grid x:Name="Root">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TimeBar_Slider_Handle_OuterBorder_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TimeBar_Slider_Handle_OuterBorder_BorderThickness_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TimeBar_Slider_Handle_Background_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TimeBar_Slider_Handle_InnerBorder_BorderThickness_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TimeBar_Slider_Handle_InnerBorder_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Path" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Pressed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TimeBar_Slider_Handle_OuterBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TimeBar_Slider_Handle_OuterBorder_BorderThickness_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TimeBar_Slider_Handle_Background_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TimeBar_Slider_Handle_InnerBorder_BorderThickness_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TimeBar_Slider_Handle_InnerBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Path" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="Border"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    CornerRadius="{StaticResource TimeBar_Slider_Handle_OuterBorder_CornerRadius}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="{TemplateBinding Background}">
                <Border x:Name="InnerBorder" CornerRadius="{StaticResource TimeBar_Slider_Handle_InnerBorder_CornerRadius}" Background="#01FFFFFF"/>
            </Border>
            <Path
                    Fill="{TemplateBinding Foreground}"
                    x:Name="Path"
                    Stretch="Fill"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Width="4"
                    Height="7"
                    RenderTransformOrigin="0.5,0.5"
                    Data="M6,0 L8,0 L8,14 L6,14 L6,12 L4,12 L4,10 L2,10 L2,8 L0,8 L0,6 L2,6 L2,4 L4,4 L4,2 L6,2 z"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="TimeBar_IncreaseHandleStyle" TargetType="RepeatButton">
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Template" Value="{StaticResource TimeBar_HandleRepeatButtonTemplate}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="RenderTransform">
            <Setter.Value>
                <ScaleTransform ScaleX="-1" ScaleY="1"/>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeBar_DecreaseHandleStyle" TargetType="RepeatButton">
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Template" Value="{StaticResource TimeBar_HandleRepeatButtonTemplate}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
    </Style>
    <Style x:Key="TimeBar_SelectionMiddleThumbStyle" TargetType="Thumb">
        <Setter Property="Height" Value="{StaticResource TimeBar_Slider_Range_Height}"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="0.1" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="1" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static timeBars:RadTimeBarCommands.ExpandVisiblePeriod}"/>
                        </Grid.InputBindings>
                        <Border x:Name="Border"
                                Opacity="0.2"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{StaticResource TimeBar_Slider_Range_Border_CornerRadius}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeBar_TrackStyle" TargetType="ContentControl">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeBar_LargeHandleStyle" TargetType="RepeatButton">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid Background="Transparent"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeBar_SliderStyle" TargetType="telerik:RadSlider">
        <Setter Property="HandlesVisibility" Value="Collapsed"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="IsMouseWheelEnabled" Value="False"/>
        <Setter Property="IsSelectionRangeEnabled" Value="True"/>
        <Setter Property="StepAction" Value="MoveRange"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource TimeBar_Slider_InnerBorder}"/>
        <Setter Property="BorderThickness" Value="{StaticResource TimeBar_Slider_InnerBorderThickness}"/>
        <Setter Property="ThumbStyle" Value="{StaticResource TimeBar_ThumbStyle}"/>
        <Setter Property="AlternateThumbStyle" Value="{StaticResource TimeBar_AlternateThumbStyle}"/>
        <Setter Property="SelectionMiddleThumbStyle" Value="{StaticResource TimeBar_SelectionMiddleThumbStyle}"/>
        <Setter Property="TrackStyle" Value="{StaticResource TimeBar_TrackStyle}"/>
        <Setter Property="IncreaseHandleStyle" Value="{StaticResource TimeBar_IncreaseHandleStyle}"/>
        <Setter Property="DecreaseHandleStyle" Value="{StaticResource TimeBar_DecreaseHandleStyle}"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Padding" Value="{StaticResource TimeBar_Slider_Margin}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadSlider">
                    <Grid>
                        <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"/>
                        <Grid Margin="{TemplateBinding Padding}" UseLayoutRounding="True">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <RepeatButton x:Name="DecreaseButton"
                                    Delay="{TemplateBinding Delay}"
                                    Interval="{TemplateBinding RepeatInterval}"
                                    Visibility="{TemplateBinding HandlesVisibility}"
                                    Style="{TemplateBinding DecreaseHandleStyle}"/>
                            <RepeatButton x:Name="LargeDecreaseButton"
                                    Grid.Column="1"
                                    Style="{StaticResource TimeBar_LargeHandleStyle}"
                                    Delay="{TemplateBinding Delay}"
                                    Interval="{TemplateBinding RepeatInterval}"/>
                            <Grid Grid.Column="2">
                                <Thumb x:Name="SingleThumbHost" Style="{TemplateBinding ThumbStyle}" Visibility="Collapsed"/>
                                <StackPanel x:Name="RangeThumbsPanel" Orientation="Horizontal">
                                    <Thumb x:Name="RangeStartThumb" Style="{TemplateBinding ThumbStyle}" Visibility="{TemplateBinding ThumbVisibility}"/>
                                    <Thumb x:Name="RangeMiddleThumb" Style="{TemplateBinding SelectionMiddleThumbStyle}"/>
                                    <Thumb x:Name="RangeEndThumb" Style="{TemplateBinding AlternateThumbStyle}" Visibility="{TemplateBinding ThumbVisibility}"/>
                                </StackPanel>
                            </Grid>
                            <RepeatButton x:Name="LargeIncreaseButton"
                                    Grid.Column="3"
                                    Style="{StaticResource TimeBar_LargeHandleStyle}"
                                    Delay="{TemplateBinding Delay}"
                                    Interval="{TemplateBinding RepeatInterval}"/>
                            <RepeatButton x:Name="IncreaseButton"
                                    Grid.Row="1"
                                    Grid.Column="4"
                                    Delay="{TemplateBinding Delay}"
                                    Interval="{TemplateBinding RepeatInterval}"
                                    Visibility="{TemplateBinding HandlesVisibility}"
                                    RenderTransformOrigin="0.5,0.5"
                                    Style="{TemplateBinding IncreaseHandleStyle}"/>
                            <Grid Grid.Column="1" Grid.ColumnSpan="3">
                                <ContentControl Style="{TemplateBinding TrackStyle}" x:Name="Track"/>
                                <timeBars:TimeBarNonScrollingPanel Slider="{Binding ElementName=PART_Slider}" SliderMinimum="{Binding ElementName=PART_Slider, Path=Minimum, Mode=TwoWay}" SliderMaximum="{Binding ElementName=PART_Slider, Path=Maximum, Mode=TwoWay}">
                                    <timeBars:SelectionIndicator StartDate="{Binding ElementName=PART_SelectionThumb, Path=StartDate}" EndDate="{Binding ElementName=PART_SelectionThumb, Path=EndDate}"/>
                                </timeBars:TimeBarNonScrollingPanel>
                            </Grid>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="SelectionThumbHandleStyle" TargetType="Thumb">
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Cursor" Value="SizeWE"/>
        <Setter Property="Width" Value="36"/>
        <Setter Property="Height" Value="36"/>
        <Setter Property="Margin" Value="0 -24 0 0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid Background="#01FFFFFF">
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static timeBars:RadTimeBarCommands.SelectGroupIntervalEnd}"/>
                        </Grid.InputBindings>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Stroke" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Triangles" Storyboard.TargetProperty="Visibility" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectionTrianglesWrapper" Storyboard.TargetProperty="Visibility" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Stroke" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Triangles" Storyboard.TargetProperty="Visibility" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectionTrianglesWrapper" Storyboard.TargetProperty="Visibility" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Ellipse x:Name="BackgroundAnimation"
                                Stroke="{TemplateBinding BorderBrush}"
                                StrokeThickness="2"
                                Fill="{TemplateBinding Background}"
                                Margin="3"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                SnapsToDevicePixels="True"/>
                        <StackPanel x:Name="Triangles" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Path Data="M0,4 L6,0 L6,8 z" Fill="{TemplateBinding Foreground}" Stretch="None" Margin="0 0 4 0"/>
                            <Path Data="M0,0 L6,4 L0,8 z" Fill="{TemplateBinding Foreground}" Stretch="None"/>
                        </StackPanel>
                        <Canvas x:Name="SelectionTrianglesWrapper" Visibility="Collapsed">
                            <Path Data="M0,5 L8,0 L8,10 z" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="None" Canvas.Left="-12" Canvas.Top="13" Fill="{TemplateBinding Foreground}"/>
                            <Path Data="M0,0 L8,5 L0,10 z" Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Center" Canvas.Left="40" Canvas.Top="13" Fill="{TemplateBinding Foreground}"/>
                        </Canvas>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="SelectionThumbHandleStyle_Flipped" BasedOn="{StaticResource SelectionThumbHandleStyle}" TargetType="Thumb">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid Background="#01FFFFFF">
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static timeBars:RadTimeBarCommands.SelectGroupIntervalStart}"/>
                        </Grid.InputBindings>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Stroke" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Triangles" Storyboard.TargetProperty="Visibility" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectionTrianglesWrapper" Storyboard.TargetProperty="Visibility" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Stroke" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Triangles" Storyboard.TargetProperty="Visibility" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectionTrianglesWrapper" Storyboard.TargetProperty="Visibility" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Ellipse x:Name="BackgroundAnimation"
                                Margin="3"
                                Stroke="{TemplateBinding BorderBrush}"
                                StrokeThickness="2"
                                Fill="{TemplateBinding Background}"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                SnapsToDevicePixels="True"/>
                        <StackPanel x:Name="Triangles" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Path Data="M0,4 L6,0 L6,8 z" Fill="{TemplateBinding Foreground}" Stretch="None" Margin="0 0 4 0"/>
                            <Path Data="M0,0 L6,4 L0,8 z" Fill="{TemplateBinding Foreground}" Stretch="None"/>
                        </StackPanel>
                        <Canvas x:Name="SelectionTrianglesWrapper" Visibility="Collapsed">
                            <Path Data="M0,5 L8,0 L8,10 z" Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Center" Canvas.Left="-12" Canvas.Top="13" Fill="{TemplateBinding Foreground}"/>
                            <Path Data="M0,0 L8,5 L0,10 z" Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Center" Canvas.Left="40" Canvas.Top="13" Fill="{TemplateBinding Foreground}"/>
                        </Canvas>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="SelectionVisibilityIndicatorStyle" TargetType="timeBars:SelectionVisibilityIndicator">
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Width" Value="36"/>
        <Setter Property="Height" Value="36"/>
        <Setter Property="VerticalAlignment" Value="Bottom"/>
        <Setter Property="Margin" Value="2 0 2 23"/>
        <Setter Property="BorderBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timeBars:SelectionVisibilityIndicator">
                    <Grid>
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftClick" Command="{x:Static timeBars:RadTimeBarCommands.CenterSelection}"/>
                        </Grid.InputBindings>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Stroke" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TrianglePath" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border Background="#01FFFFFF"/>
                        <Ellipse x:Name="BackgroundAnimation"
                                Stroke="{TemplateBinding BorderBrush}"
                                StrokeThickness="2"
                                Fill="{TemplateBinding Background}"
                                Margin="3"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                SnapsToDevicePixels="True"/>
                        <Path x:Name="TrianglePath"
                                Data="M0,0 L8,5 L0,10 z"
                                Fill="{TemplateBinding Foreground}"
                                Stretch="None"
                                Margin="2 0 0 0"
                                Width="8"
                                Height="10"
                                RenderTransformOrigin="0.5 0.5"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ItemControlStyle" TargetType="timeBars:ItemControl">
        <Setter Property="Background" Value="#01FFFFFF"/>
        <Setter Property="FontSize" Value="{telerikControls:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=MainForegroundBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="BorderBrush" Value="{StaticResource TimeBar_Button_Border}"/>
        <Setter Property="BorderThickness" Value="1 0 0 0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timeBars:ItemControl">
                    <Grid>
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static timeBars:RadTimeBarCommands.SelectGroupInterval}"/>
                        </Grid.InputBindings>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="content" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Storyboard.TargetName="content" Storyboard.TargetProperty="Opacity" To="0.07" Duration="0:0:0"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="Background" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="BorderBrush" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="content" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Storyboard.TargetName="content" Storyboard.TargetProperty="Opacity" To="0.07" Duration="0:0:0"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="Background" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="BorderBrush" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <StackPanel Orientation="Vertical" Cursor="Hand">
                                <Border x:Name="button" BorderBrush="{StaticResource TimeBar_Button_OuterBorder}" BorderThickness="{StaticResource TimeBar_Button_OuterBorder_Thickness}">
                                    <Border
                                            Background="{TemplateBinding Background}"
                                            BorderThickness="{TemplateBinding BorderThickness}"
                                            BorderBrush="{TemplateBinding BorderBrush}"
                                            Style="{TemplateBinding HeaderStyle}">
                                        <TextBlock Text="{Binding Label}" Padding="5 0" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="Center"/>
                                    </Border>
                                </Border>
                                <Border x:Name="border"
                                        BorderThickness="{StaticResource TimeBar_Button_Bottom_Thickness}"
                                        BorderBrush="{StaticResource TimeBar_Button_Bottom_BorderBrush}"
                                        Background="Transparent"
                                        Height="4"
                                        VerticalAlignment="Bottom"
                                        SnapsToDevicePixels="True"/>
                            </StackPanel>
                            <Rectangle x:Name="content" Fill="{TemplateBinding Background}" Grid.Row="2"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="GroupControlStyle" TargetType="timeBars:GroupControl">
        <Setter Property="FontSize" Value="{telerikControls:Windows8TouchResource ResourceKey=FontSizeXL}"/>
        <Setter Property="FontFamily" Value="{telerikControls:Windows8TouchResource ResourceKey=FontFamilyLight}"/>
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource TimeBar_Group_Button_Border}"/>
        <Setter Property="BorderThickness" Value="1 0 0 0"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timeBars:GroupControl">
                    <Grid>
                        <Border x:Name="border"
                                IsHitTestVisible="False"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Style="{TemplateBinding HeaderStyle}"
                                SnapsToDevicePixels="True">
                            <TextBlock
                                    Text="{Binding Label}"
                                    Width="Auto"
                                    Margin="{StaticResource TimeBar_Group_Margin}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="timeBars:ItemControl" BasedOn="{StaticResource ItemControlStyle}"/>
    <Style TargetType="timeBars:GroupControl" BasedOn="{StaticResource GroupControlStyle}"/>
    <Style x:Key="BorderWithActualSize" TargetType="Border">
        <Setter Property="timeBars:ActualSizeProxy.IsEnabled" Value="True"/>
    </Style>
    <Style x:Key="TextBlockWithActualWidth" TargetType="TextBlock">
        <Setter Property="timeBars:ActualSizeProxy.IsEnabled" Value="True"/>
    </Style>
    <Style x:Key="SelectionRangeStyle" TargetType="Thumb">
        <Setter Property="BorderBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
        <Setter Property="BorderThickness" Value="{StaticResource TimeBar_SelectionThumb_Range_OuterBorder_BorderThickness}"/>
        <Setter Property="Background" Value="#01FFFFFF"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Margin" Value="{StaticResource TimeBar_SelectionThumb_Range_Margin}"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="FontSize" Value="{telerik:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid>
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static timeBars:RadTimeBarCommands.SelectGroupInterval}"/>
                        </Grid.InputBindings>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SelectionRangeVisual" Storyboard.TargetProperty="Background" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TimeBar_SelectionThumb_Range_Background_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Border x:Name="SelectionRangeVisual"
                                    Background="{TemplateBinding Background}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Style="{StaticResource BorderWithActualSize}"
                                    SnapsToDevicePixels="True"/>
                            <Canvas Grid.Row="1" Height="{Binding ElementName=TextWrapper, Path=(timeBars:ActualSizeProxy.ActualHeight)}">
                                <Border x:Name="TextWrapper"
                                        MinWidth="{Binding ElementName=Title,Path=(timeBars:ActualSizeProxy.ActualWidth)}"
                                        Width="{Binding ElementName=SelectionRangeVisual,Path=(timeBars:ActualSizeProxy.ActualWidth)}"
                                        BorderThickness="{StaticResource TimeBar_SelectionThumb_Range_Title_BorderThickness}"
                                        BorderBrush="{TemplateBinding BorderBrush}"
                                        Style="{StaticResource BorderWithActualSize}"
                                        Background="{StaticResource TimeBar_SelectionThumb_Range_Title_Background}"
                                        SnapsToDevicePixels="True">
                                    <TextBlock x:Name="Title"
                                            Text="{Binding ElementName=PART_SelectionThumb, Path=Title}"
                                            Padding="{StaticResource TimeBar_SelectionThumb_Range_Title_Padding}"
                                            Margin="{StaticResource TimeBar_SelectionThumb_Range_Title_Margin}"
                                            HorizontalAlignment="Left"
                                            VerticalAlignment="Stretch"
                                            Style="{StaticResource TextBlockWithActualWidth}"/>
                                </Border>
                            </Canvas>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimeBar_PeriodHeaderStyle" TargetType="Border">
        <Setter Property="Height" Value="22"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
    </Style>
    <Style x:Key="TimeBar_GroupPeriodHeaderStyle" TargetType="Border">
        <Setter Property="Height" Value="{StaticResource TimeBar_Group_Button_Height}"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
    </Style>
    <Style x:Key="SelectionThumbStyle" TargetType="timeBars:SelectionThumb">
        <Setter Property="Margin" Value="{StaticResource TimeBar_SelectionThumb_Margin}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timeBars:SelectionThumb">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Thumb Name="PART_CenterHandle" Style="{StaticResource SelectionRangeStyle}"/>
                            <Thumb Name="PART_LeftHandle" HorizontalAlignment="Left" Style="{StaticResource SelectionThumbHandleStyle_Flipped}"/>
                            <Thumb Name="PART_RightHandle" HorizontalAlignment="Right" Style="{StaticResource SelectionThumbHandleStyle}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadTimeBarStyle" TargetType="datavizControls:RadTimeBar">
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=MainForegroundBrush}"/>
        <Setter Property="FontFamily" Value="{telerikControls:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 0 1"/>
        <Setter Property="BorderBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MediumBrush}"/>
        <Setter Property="SliderStyle" Value="{StaticResource TimeBar_SliderStyle}"/>
        <Setter Property="SelectionThumbStyle" Value="{StaticResource SelectionThumbStyle}"/>
        <Setter Property="SelectionVisibilityIndicatorStyle" Value="{StaticResource SelectionVisibilityIndicatorStyle}"/>
        <Setter Property="PeriodHeaderStyle" Value="{StaticResource TimeBar_PeriodHeaderStyle}"/>
        <Setter Property="GroupPeriodHeaderStyle" Value="{StaticResource TimeBar_GroupPeriodHeaderStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadTimeBar">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid Grid.Row="0">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="26"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="*"/>
                                    <RowDefinition Height="24"/>
                                </Grid.RowDefinitions>
                                <Border
                                        Grid.Row="0"
                                        Height="4"
                                        VerticalAlignment="Bottom"
                                        BorderBrush="{StaticResource TimeBar_Button_Bottom_BorderBrush}"
                                        BorderThickness="{StaticResource TimeBar_Button_Bottom_Thickness}"
                                        Background="{telerikControls:Windows8TouchResource ResourceKey=MediumBrush}"/>
                                <Border Grid.Row="1" Grid.RowSpan="3" Background="{TemplateBinding Background}"/>
                                <timeBars:TimeSpecialSlotContainer x:Name="PART_TimeSpecialSlotContainer" Grid.Row="1" Grid.RowSpan="2" ItemsSource="{Binding Path=SpecialSlots, RelativeSource={RelativeSource TemplatedParent}}">
                                    <timeBars:TimeSpecialSlotContainer.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <timeBars:TimeBarPanel Slider="{Binding ElementName=PART_Slider}"/>
                                        </ItemsPanelTemplate>
                                    </timeBars:TimeSpecialSlotContainer.ItemsPanel>
                                    <timeBars:TimeSpecialSlotContainer.Template>
                                        <ControlTemplate>
                                            <ItemsPresenter/>
                                        </ControlTemplate>
                                    </timeBars:TimeSpecialSlotContainer.Template>
                                </timeBars:TimeSpecialSlotContainer>
                                <timeBars:TimeBarContentPanel
                                        Slider="{Binding ElementName=PART_Slider}"
                                        SliderMinimum="{Binding ElementName=PART_Slider, Path=Minimum, Mode=TwoWay}"
                                        SliderMaximum="{Binding ElementName=PART_Slider, Path=Maximum, Mode=TwoWay}"
                                        Grid.Row="2"
                                        Margin="0 2 0 0">
                                    <ContentPresenter/>
                                </timeBars:TimeBarContentPanel>
                                <timeBars:GroupContainer x:Name="PART_GroupContainer"
                                        Grid.Row="1"
                                        Selection="{Binding Path=Selection, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                                        ItemsSource="{TemplateBinding IntervalGroups}"
                                        ItemHeaderStyle="{TemplateBinding GroupPeriodHeaderStyle}">
                                    <timeBars:GroupContainer.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <timeBars:LabelMeasurementPanel Slider="{Binding ElementName=PART_Slider}"/>
                                        </ItemsPanelTemplate>
                                    </timeBars:GroupContainer.ItemsPanel>
                                    <timeBars:GroupContainer.Template>
                                        <ControlTemplate>
                                            <ItemsPresenter/>
                                        </ControlTemplate>
                                    </timeBars:GroupContainer.Template>
                                </timeBars:GroupContainer>
                                <timeBars:ItemContainer x:Name="PART_ItemContainer"
                                        Grid.Row="0"
                                        Grid.RowSpan="3"
                                        Selection="{Binding Path=Selection, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                                        ItemsSource="{TemplateBinding IntervalItems}"
                                        ItemHeaderStyle="{TemplateBinding PeriodHeaderStyle}">
                                    <timeBars:ItemContainer.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <timeBars:LabelMeasurementPanel Slider="{Binding ElementName=PART_Slider}"/>
                                        </ItemsPanelTemplate>
                                    </timeBars:ItemContainer.ItemsPanel>
                                    <timeBars:ItemContainer.Template>
                                        <ControlTemplate>
                                            <ItemsPresenter/>
                                        </ControlTemplate>
                                    </timeBars:ItemContainer.Template>
                                </timeBars:ItemContainer>
                                <timeBars:TimeBarPanel
                                        Grid.Row="1"
                                        Grid.RowSpan="2"
                                        Slider="{Binding ElementName=PART_Slider}"
                                        SliderMinimum="{Binding ElementName=PART_Slider, Path=Minimum, Mode=TwoWay}"
                                        SliderMaximum="{Binding ElementName=PART_Slider, Path=Maximum, Mode=TwoWay}">
                                    <timeBars:SelectionThumbPreview x:Name="PART_SelectionThumbPreview"/>
                                </timeBars:TimeBarPanel>
                                <timeBars:TimeBarStackPanel
                                        Grid.Row="1"
                                        Grid.RowSpan="3"
                                        Slider="{Binding ElementName=PART_Slider}"
                                        SliderMinimum="{Binding ElementName=PART_Slider, Path=Minimum, Mode=TwoWay}"
                                        SliderMaximum="{Binding ElementName=PART_Slider, Path=Maximum, Mode=TwoWay}">
                                    <timeBars:ShadeControl StartDate="{TemplateBinding PeriodStart}" EndDate="{Binding ElementName=PART_SelectionThumb, Path=StartDate}"/>
                                    <timeBars:SelectionThumb x:Name="PART_SelectionThumb"
                                            Canvas.ZIndex="2"
                                            PeriodStart="{TemplateBinding PeriodStart}"
                                            PeriodEnd="{TemplateBinding PeriodEnd}"
                                            VisiblePeriodRange="{Binding Path=ActualVisiblePeriodRange, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                                            IsSnapToIntervalEnabled="{TemplateBinding IsSnapToIntervalEnabled}"
                                            IntervalGroups="{TemplateBinding IntervalGroups}"
                                            IntervalItems="{TemplateBinding IntervalItems}"
                                            MinSelectionRange="{TemplateBinding MinSelectionRange}"
                                            MaxSelectionRange="{TemplateBinding MaxSelectionRange}"
                                            TitleFormatString="{TemplateBinding SelectionTitleFormatString}"
                                            Selection="{Binding Path=Selection, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                                            StartDate="{Binding Path=ActualSelectionStart, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                                            EndDate="{Binding Path=ActualSelectionEnd, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                                            SelectionPreviewControl="{Binding ElementName=PART_SelectionThumbPreview}"
                                            Style="{TemplateBinding SelectionThumbStyle}"/>
                                    <timeBars:ShadeControl StartDate="{Binding ElementName=PART_SelectionThumb, Path=EndDate}" EndDate="{TemplateBinding PeriodEnd}"/>
                                </timeBars:TimeBarStackPanel>
                            </Grid>
                            <timeBars:SelectionVisibilityIndicator
                                    Grid.Row="0"
                                    HorizontalAlignment="Left"
                                    Style="{TemplateBinding SelectionVisibilityIndicatorStyle}"
                                    Visibility="{TemplateBinding LeftSelectionIndicatorVisibility}"
                                    VisibilityListener="{TemplateBinding LeftSelectionIndicatorVisibility}"
                                    RenderTransformOrigin="0.5 0.5">
                                <timeBars:SelectionVisibilityIndicator.RenderTransform>
                                    <RotateTransform Angle="180"/>
                                </timeBars:SelectionVisibilityIndicator.RenderTransform>
                            </timeBars:SelectionVisibilityIndicator>
                            <timeBars:SelectionVisibilityIndicator
                                    Grid.Row="0"
                                    HorizontalAlignment="Right"
                                    Style="{TemplateBinding SelectionVisibilityIndicatorStyle}"
                                    Visibility="{TemplateBinding RightSelectionIndicatorVisibility}"
                                    VisibilityListener="{TemplateBinding RightSelectionIndicatorVisibility}"/>
                            <telerik:RadSlider x:Name="PART_Slider"
                                    Grid.Row="1"
                                    Style="{TemplateBinding SliderStyle}"
                                    Minimum="{Binding Path=PeriodStart, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource dateConverter}}"
                                    Maximum="{Binding Path=PeriodEnd, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource dateConverter}}"
                                    MinimumRangeSpan="{Binding Path=ActualMinZoomRange, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource timespanConverter}}"
                                    MaximumRangeSpan="{Binding Path=MaxZoomRange, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource timeSpanToMaximumRangeSpanConverter}}"
                                    Selection="{Binding Path=ActualVisiblePeriodRange, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay, Converter={StaticResource selectionRangeConverter}}"
                                    SmallChange="{Binding Path=SmallChange, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource timespanConverter}}"
                                    LargeChange="{Binding Path=LargeChange, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource timespanConverter}}"
                                    ThumbVisibility="{Binding Path=ScrollMode, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource scrollModeToThumbVisibilityConverter}}"
                                    Visibility="{Binding Path=ScrollMode, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource scrollModeToVisibilityConverter}}"
                                    IsCoercionSuppressed="True"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ShadeControlStyle" TargetType="timeBars:ShadeControl">
        <Setter Property="Background" Value="#59FFFFFF"/>
        <Setter Property="IsHitTestVisible" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timeBars:ShadeControl">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="SelectionIndicatorStyle" TargetType="timeBars:SelectionIndicator">
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="BorderBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="Padding" Value="{StaticResource TimeBar_SelectionIndicator_Padding}"/>
        <Setter Property="IsHitTestVisible" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timeBars:SelectionIndicator">
                    <Border Background="{TemplateBinding Background}" BorderThickness="1" BorderBrush="{TemplateBinding BorderBrush}" Margin="{TemplateBinding Padding}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="datavizControls:RadTimeBar" BasedOn="{StaticResource RadTimeBarStyle}"/>
    <Style TargetType="timeBars:ShadeControl" BasedOn="{StaticResource ShadeControlStyle}"/>
    <Style TargetType="timeBars:SelectionIndicator" BasedOn="{StaticResource SelectionIndicatorStyle}"/>
    <Style x:Key="SelectionThumbPreviewStyle" TargetType="timeBars:SelectionThumbPreview">
        <Setter Property="BorderBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="BorderThickness" Value="1 0"/>
        <Setter Property="Visibility" Value="Collapsed"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timeBars:SelectionThumbPreview">
                    <Grid>
                        <Border Background="{TemplateBinding Background}" Opacity="0.07"/>
                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="timeBars:SelectionThumbPreview" BasedOn="{StaticResource SelectionThumbPreviewStyle}"/>
    <telerik:BooleanToVisibilityConverter x:Key="booleanToVisibilityConverter"/>
    <timelines:GroupExpandModeToBooleanConverter x:Key="groupExpandModeToBooleanConverter"/>
    <SolidColorBrush x:Key="Timeline_Item_Background" Color="Transparent"/>
    <Thickness x:Key="Timeline_Button_Bottom_Thickness">0</Thickness>
    <SolidColorBrush x:Key="Timeline_Button_Bottom_BorderBrush" Color="Transparent"/>
    <SolidColorBrush x:Key="Timeline_Group_Button_Border" Color="Transparent"/>
    <Thickness x:Key="Timeline_Group_Button_OuterBorder_Thickness">0</Thickness>
    <SolidColorBrush x:Key="Timeline_Group_Button_OuterBorder" Color="Transparent"/>
    <Thickness x:Key="Timeline_Group_Text_Padding">5 0 5 3</Thickness>
    <SolidColorBrush x:Key="Timeline_TimelineItem_Fill" Color="#FF8EC441"/>
    <SolidColorBrush x:Key="Timeline_TimelineItem_Stroke" Color="#FF8EC441"/>
    <SolidColorBrush x:Key="Timeline_TimelineItem_Fill_MouseOver" Color="#7F8EC441"/>
    <SolidColorBrush x:Key="Timeline_TimelineItem_Stroke_MouseOver" Color="#7F8EC441"/>
    <system:Double x:Key="Timeline_TimelineInstantItem_Stroke_Thickness">0</system:Double>
    <system:Double x:Key="Timeline_TimelineItemGroup_Separator_Height">1</system:Double>
    <Thickness x:Key="Timeline_TimelineItemGroup_ToggleButton_OuterBorder_Thickness">2</Thickness>
    <system:Double x:Key="Timeline_TimelineItemGroup_ToggleButton_OuterBorder_Width">29</system:Double>
    <system:Double x:Key="Timeline_TimelineItemGroup_ToggleButton_OuterBorder_Height">29</system:Double>
    <SolidColorBrush x:Key="Timeline_TimelineItemGroup_ToggleButton_OuterBorder_Background" Color="Transparent"/>
    <Thickness x:Key="Timeline_TimelineAnnotation_Margin">0 34 0 0</Thickness>
    <Thickness x:Key="Timeline_Slider_Margin">0 5 0 1</Thickness>
    <system:Double x:Key="Timeline_Slider_Height">22</system:Double>
    <system:Double x:Key="Timeline_VerticalScrollBar_Width">22</system:Double>
    <SolidColorBrush x:Key="Timeline_Slider_InnerBorder" Color="Transparent"/>
    <Thickness x:Key="Timeline_Slider_InnerBorderThickness">0</Thickness>
    <system:Double x:Key="Timeline_Slider_Thumbs_Width">24</system:Double>
    <system:Double x:Key="Timeline_Slider_Thumbs_Path_Width">10</system:Double>
    <SolidColorBrush x:Key="Timeline_Slider_Thumbs_Path" Color="#01FFFFFF"/>
    <CornerRadius x:Key="Timeline_Slider_Range_Border_CornerRadius">0</CornerRadius>
    <system:Double x:Key="Timeline_Slider_Range_Height">NaN</system:Double>
    <CornerRadius x:Key="Timeline_Slider_Handle_OuterBorder_CornerRadius">0</CornerRadius>
    <Thickness x:Key="Timeline_Slider_Handle_OuterBorder_BorderThickness_Over">0</Thickness>
    <SolidColorBrush x:Key="Timeline_Slider_Handle_OuterBorder_Over" Color="Transparent"/>
    <SolidColorBrush x:Key="Timeline_Slider_Handle_OuterBorder_Pressed" Color="Transparent"/>
    <CornerRadius x:Key="Timeline_Slider_Handle_InnerBorder_CornerRadius">0</CornerRadius>
    <Thickness x:Key="Timeline_Slider_Handle_InnerBorder_BorderThickness_Over">0</Thickness>
    <SolidColorBrush x:Key="Timeline_Slider_Handle_InnerBorder_Over" Color="Transparent"/>
    <SolidColorBrush x:Key="Timeline_Slider_Handle_InnerBorder_Pressed" Color="Transparent"/>
    <SolidColorBrush x:Key="Timeline_Slider_Handle_Background_Over" Color="Transparent"/>
    <SolidColorBrush x:Key="Timeline_Slider_Handle_Background_Pressed" Color="Transparent"/>
    <Style x:Key="Timeline_ThumbStyle" TargetType="Thumb">
        <Setter Property="Width" Value="{StaticResource Timeline_Slider_Thumbs_Width}"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource Timeline_Slider_Thumbs_Path}"/>
        <Setter Property="Cursor" Value="SizeWE"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="0.1" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="1" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static timeBars:RadTimeBarCommands.ExpandVisiblePeriodToStart}"/>
                        </Grid.InputBindings>
                        <Border x:Name="Border"
                                Opacity="0.2"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <Rectangle Fill="{TemplateBinding Foreground}" Width="{StaticResource Timeline_Slider_Thumbs_Path_Width}" VerticalAlignment="Stretch" SnapsToDevicePixels="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Timeline_AlternateThumbStyle" TargetType="Thumb">
        <Setter Property="Width" Value="{StaticResource Timeline_Slider_Thumbs_Width}"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource Timeline_Slider_Thumbs_Path}"/>
        <Setter Property="Cursor" Value="SizeWE"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="0.1" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="1" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static timeBars:RadTimeBarCommands.ExpandVisiblePeriodToEnd}"/>
                        </Grid.InputBindings>
                        <Border x:Name="Border"
                                Opacity="0.2"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <Rectangle Fill="{TemplateBinding Foreground}" Width="{StaticResource Timeline_Slider_Thumbs_Path_Width}" VerticalAlignment="Stretch" SnapsToDevicePixels="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="Timeline_HandleRepeatButtonTemplate" TargetType="RepeatButton">
        <Grid x:Name="Root">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal"/>
                    <VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Timeline_Slider_Handle_OuterBorder_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Timeline_Slider_Handle_OuterBorder_BorderThickness_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Timeline_Slider_Handle_Background_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Timeline_Slider_Handle_InnerBorder_BorderThickness_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Timeline_Slider_Handle_InnerBorder_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Path" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Pressed">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Timeline_Slider_Handle_OuterBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Timeline_Slider_Handle_OuterBorder_BorderThickness_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Timeline_Slider_Handle_Background_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderThickness">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Timeline_Slider_Handle_InnerBorder_BorderThickness_Over}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource Timeline_Slider_Handle_InnerBorder_Pressed}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Path" Storyboard.TargetProperty="Fill">
                                <DiscreteObjectKeyFrame KeyTime="0" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="Border"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    CornerRadius="{StaticResource Timeline_Slider_Handle_OuterBorder_CornerRadius}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    Background="{TemplateBinding Background}">
                <Border x:Name="InnerBorder" CornerRadius="{StaticResource Timeline_Slider_Handle_InnerBorder_CornerRadius}" Background="#01FFFFFF"/>
            </Border>
            <Path
                    Fill="{TemplateBinding Foreground}"
                    x:Name="Path"
                    Stretch="Fill"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Width="4"
                    Height="7"
                    RenderTransformOrigin="0.5,0.5"
                    Data="M6,0 L8,0 L8,14 L6,14 L6,12 L4,12 L4,10 L2,10 L2,8 L0,8 L0,6 L2,6 L2,4 L4,4 L4,2 L6,2 z"/>
        </Grid>
    </ControlTemplate>
    <Style x:Key="Timeline_IncreaseHandleStyle" TargetType="RepeatButton">
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Template" Value="{StaticResource Timeline_HandleRepeatButtonTemplate}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="RenderTransform">
            <Setter.Value>
                <ScaleTransform ScaleX="-1" ScaleY="1"/>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Timeline_DecreaseHandleStyle" TargetType="RepeatButton">
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Width" Value="17"/>
        <Setter Property="Height" Value="17"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Template" Value="{StaticResource Timeline_HandleRepeatButtonTemplate}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
    </Style>
    <Style x:Key="Timeline_SelectionMiddleThumbStyle" TargetType="Thumb">
        <Setter Property="Height" Value="{StaticResource Timeline_Slider_Range_Height}"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="0.1" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="(Border.Opacity)" To="1" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid.InputBindings>
                            <MouseBinding MouseAction="LeftDoubleClick" Command="{x:Static timeBars:RadTimeBarCommands.ExpandVisiblePeriod}"/>
                        </Grid.InputBindings>
                        <Border x:Name="Border"
                                Opacity="0.2"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{StaticResource Timeline_Slider_Range_Border_CornerRadius}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Timeline_TrackStyle" TargetType="ContentControl">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Timeline_LargeHandleStyle" TargetType="RepeatButton">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid Background="Transparent"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="Timeline_SliderStyle" TargetType="telerikControls:RadSlider">
        <Setter Property="HandlesVisibility" Value="Collapsed"/>
        <Setter Property="Height" Value="{StaticResource Timeline_Slider_Height}"/>
        <Setter Property="Width" Value="{StaticResource Timeline_VerticalScrollBar_Width}"/>
        <Setter Property="IsMouseWheelEnabled" Value="False"/>
        <Setter Property="IsSelectionRangeEnabled" Value="True"/>
        <Setter Property="StepAction" Value="MoveRange"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource Timeline_Slider_InnerBorder}"/>
        <Setter Property="BorderThickness" Value="{StaticResource Timeline_Slider_InnerBorderThickness}"/>
        <Setter Property="ThumbStyle" Value="{StaticResource Timeline_ThumbStyle}"/>
        <Setter Property="AlternateThumbStyle" Value="{StaticResource Timeline_AlternateThumbStyle}"/>
        <Setter Property="SelectionMiddleThumbStyle" Value="{StaticResource Timeline_SelectionMiddleThumbStyle}"/>
        <Setter Property="TrackStyle" Value="{StaticResource Timeline_TrackStyle}"/>
        <Setter Property="IncreaseHandleStyle" Value="{StaticResource Timeline_IncreaseHandleStyle}"/>
        <Setter Property="DecreaseHandleStyle" Value="{StaticResource Timeline_DecreaseHandleStyle}"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Padding" Value="{StaticResource Timeline_Slider_Margin}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikControls:RadSlider">
                    <telerikPrimitives:LayoutTransformControl x:Name="layoutControl" RenderTransformOrigin=".5 0">
                        <telerikPrimitives:LayoutTransformControl.LayoutTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </telerikPrimitives:LayoutTransformControl.LayoutTransform>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="OrientationStates">
                                <VisualState x:Name="Horizontal">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="layoutControl" Storyboard.TargetProperty="LayoutTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <RotateTransform Angle="0"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Vertical">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="layoutControl" Storyboard.TargetProperty="LayoutTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <RotateTransform Angle="-90"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ReversedHorizontal">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="layoutControl" Storyboard.TargetProperty="LayoutTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <ScaleTransform ScaleX="-1"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ReversedVertical">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="layoutControl" Storyboard.TargetProperty="LayoutTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <ScaleTransform ScaleY="-1"/>
                                                        <RotateTransform Angle="90"/>
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="RangeStates">
                                <VisualState x:Name="SingleThumb"/>
                                <VisualState x:Name="RangeThumbs">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="RangeThumbsPanel" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="SingleThumbHost" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid>
                            <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"/>
                            <Grid Margin="{TemplateBinding Padding}">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Grid Grid.Column="1" Grid.ColumnSpan="3">
                                    <ContentControl Style="{TemplateBinding TrackStyle}" x:Name="Track"/>
                                </Grid>
                                <RepeatButton x:Name="DecreaseButton"
                                        Delay="{TemplateBinding Delay}"
                                        Interval="{TemplateBinding RepeatInterval}"
                                        Visibility="{TemplateBinding HandlesVisibility}"
                                        Style="{TemplateBinding DecreaseHandleStyle}"/>
                                <RepeatButton x:Name="LargeDecreaseButton"
                                        Grid.Column="1"
                                        Style="{StaticResource Timeline_LargeHandleStyle}"
                                        Delay="{TemplateBinding Delay}"
                                        Interval="{TemplateBinding RepeatInterval}"/>
                                <Grid Grid.Column="2">
                                    <Thumb x:Name="SingleThumbHost" Style="{TemplateBinding ThumbStyle}" Visibility="Collapsed"/>
                                    <StackPanel x:Name="RangeThumbsPanel" Orientation="Horizontal">
                                        <Thumb x:Name="RangeStartThumb" Style="{TemplateBinding ThumbStyle}" Visibility="{TemplateBinding ThumbVisibility}"/>
                                        <Thumb x:Name="RangeMiddleThumb" Style="{TemplateBinding SelectionMiddleThumbStyle}"/>
                                        <Thumb x:Name="RangeEndThumb" Style="{TemplateBinding AlternateThumbStyle}" Visibility="{TemplateBinding ThumbVisibility}"/>
                                    </StackPanel>
                                </Grid>
                                <RepeatButton x:Name="LargeIncreaseButton"
                                        Grid.Column="3"
                                        Style="{StaticResource Timeline_LargeHandleStyle}"
                                        Delay="{TemplateBinding Delay}"
                                        Interval="{TemplateBinding RepeatInterval}"/>
                                <RepeatButton x:Name="IncreaseButton"
                                        Grid.Row="1"
                                        Grid.Column="4"
                                        Delay="{TemplateBinding Delay}"
                                        Interval="{TemplateBinding RepeatInterval}"
                                        Visibility="{TemplateBinding HandlesVisibility}"
                                        RenderTransformOrigin="0.5,0.5"
                                        Style="{TemplateBinding IncreaseHandleStyle}"/>
                            </Grid>
                        </Grid>
                    </telerikPrimitives:LayoutTransformControl>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimelineStripLineControlStyle" TargetType="timelines:TimelineStripLineControl">
        <Setter Property="NormalStyle">
            <Setter.Value>
                <Style TargetType="Border">
                    <Setter Property="Background" Value="{StaticResource Timeline_Item_Background}"/>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="AlternateStyle">
            <Setter.Value>
                <Style TargetType="Border">
                    <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                    <Setter Property="Opacity" Value="0.07"/>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timelines:TimelineStripLineControl">
                    <Border
                            Style="{TemplateBinding ElementStyle}"
                            Grid.Row="2"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            SnapsToDevicePixels="True"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimelinePeriodControlStyle" TargetType="timelines:TimelinePeriodControl">
        <Setter Property="FontSize" Value="{telerikControls:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=MainForegroundBrush}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timelines:TimelinePeriodControl">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Border Style="{TemplateBinding HeaderStyle}">
                            <TextBlock
                                    Text="{Binding Label}"
                                    Padding="5 0"
                                    Width="Auto"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                        <Border
                                Style="{TemplateBinding ElementStyle}"
                                Grid.Row="1"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                SnapsToDevicePixels="True"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimelineGroupPeriodControlStyle" TargetType="timelines:TimelineGroupPeriodControl">
        <Setter Property="FontSize" Value="{telerikControls:Windows8TouchResource ResourceKey=FontSizeXL}"/>
        <Setter Property="FontFamily" Value="{telerikControls:Windows8TouchResource ResourceKey=FontFamilyLight}"/>
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource Timeline_Group_Button_Border}"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="BorderThickness" Value="1 0 0 0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timelines:TimelineGroupPeriodControl">
                    <Grid>
                        <Border
                                BorderBrush="{StaticResource Timeline_Group_Button_OuterBorder}"
                                BorderThickness="{StaticResource Timeline_Group_Button_OuterBorder_Thickness}"
                                Style="{TemplateBinding HeaderStyle}"
                                SnapsToDevicePixels="True">
                            <Border
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    Background="{TemplateBinding Background}"
                                    SnapsToDevicePixels="True">
                                <TextBlock
                                        Width="Auto"
                                        Padding="{StaticResource Timeline_Group_Text_Padding}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                        Text="{Binding Label}"/>
                            </Border>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="timelines:TimelineStripLineControl" BasedOn="{StaticResource TimelineStripLineControlStyle}"/>
    <Style TargetType="timelines:TimelinePeriodControl" BasedOn="{StaticResource TimelinePeriodControlStyle}"/>
    <Style TargetType="timelines:TimelineGroupPeriodControl" BasedOn="{StaticResource TimelineGroupPeriodControlStyle}"/>
    <Style x:Key="TimelineItemGroupControlToggleButtonStyle" TargetType="telerikControls:RadToggleButton">
        <Setter Property="BorderThickness" Value="{StaticResource Timeline_TimelineItemGroup_ToggleButton_OuterBorder_Thickness}"/>
        <Setter Property="BorderBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
        <Setter Property="Background" Value="{StaticResource Timeline_TimelineItemGroup_ToggleButton_OuterBorder_Background}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikControls:RadToggleButton">
                    <Grid Background="#01FFFFFF">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="buttonBorder" Storyboard.TargetProperty="Stroke" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="button" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="buttonBorder" Storyboard.TargetProperty="Stroke" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="buttonBorder" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="button" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="buttonBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="button">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DisabledChecked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="buttonBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="button">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <Storyboard>
                                            <Storyboard>
                                                <DoubleAnimation
                                                        Storyboard.TargetName="button"
                                                        Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)"
                                                        To="180"
                                                        Duration="0:0:0.2"/>
                                                <DoubleAnimation
                                                        Storyboard.TargetName="button"
                                                        Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
                                                        To="-1"
                                                        Duration="0:0:0.2"/>
                                            </Storyboard>
                                        </Storyboard>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked">
                                    <Storyboard>
                                        <DoubleAnimation
                                                Storyboard.TargetName="button"
                                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)"
                                                To="0"
                                                Duration="0:0:0.2"/>
                                        <DoubleAnimation
                                                Storyboard.TargetName="button"
                                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
                                                To="1"
                                                Duration="0:0:0.2"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <StackPanel Orientation="Horizontal">
                            <Grid Margin="3 3 0 3">
                                <Ellipse x:Name="buttonBorder"
                                        Width="{StaticResource Timeline_TimelineItemGroup_ToggleButton_OuterBorder_Width}"
                                        Height="{StaticResource Timeline_TimelineItemGroup_ToggleButton_OuterBorder_Height}"
                                        Fill="{TemplateBinding Background}"
                                        Stroke="{TemplateBinding BorderBrush}"
                                        StrokeThickness="{TemplateBinding BorderThickness}"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"/>
                                <Path x:Name="button"
                                        Data="M0,0 L5,8 L10,0 z"
                                        Fill="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"
                                        RenderTransformOrigin="0.5,0.5">
                                    <Path.RenderTransform>
                                        <TransformGroup>
                                            <RotateTransform/>
                                            <TranslateTransform Y="1"/>
                                        </TransformGroup>
                                    </Path.RenderTransform>
                                </Path>
                            </Grid>
                            <TextBlock Text="{TemplateBinding Content}" Margin="4 0 0 0" VerticalAlignment="Center"/>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimelineItemGroupControlStyle" TargetType="timelines:TimelineItemGroupControl">
        <Setter Property="FontFamily" Value="{telerikControls:Windows8TouchResource ResourceKey=FontFamilyLight}"/>
        <Setter Property="FontSize" Value="{telerikControls:Windows8TouchResource ResourceKey=FontSizeL}"/>
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=MainForegroundBrush}"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <timelines:VirtualizingTimelinePanel Slider="{Binding ElementName=PART_Slider}" Background="#01FFFFFF"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Header" Value="{Binding GroupKey}"/>
        <Setter Property="ItemsSource" Value="{Binding DataItems}"/>
        <Setter Property="ItemTemplateSelector" Value="{Binding Path=ItemTemplateSelector, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type datavizControls:RadTimeline}}}"/>
        <Setter Property="DataGroups" Value="{Binding DataGroups}"/>
        <Setter Property="ExpandMode" Value="{Binding GroupExpandMode, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=datavizControls:RadTimeline}}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="animation:AnimationManager.AnimationSelector">
            <Setter.Value>
                <animation:AnimationSelector>
                    <animation:ExpanderExpandCollapseAnimation AnimationName="Expand" Direction="In" TargetElementName="Content"/>
                    <animation:ExpanderExpandCollapseAnimation AnimationName="Collapse" Direction="Out" TargetElementName="Content"/>
                    <timelines:TimelineResizeAnimation AnimationName="Resize" TargetElementName="Content"/>
                </animation:AnimationSelector>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timelines:TimelineItemGroupControl">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Grid x:Name="Header"
                                    Grid.Row="0"
                                    Margin="0 5 0 0"
                                    Visibility="{Binding Path=HasHeader, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource booleanToVisibilityConverter}}">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <telerikControls:RadToggleButton x:Name="HeaderButton"
                                        Foreground="{TemplateBinding Foreground}"
                                        Grid.Column="0"
                                        Content="{TemplateBinding Header}"
                                        ContentTemplate="{TemplateBinding HeaderTemplate}"
                                        Style="{StaticResource TimelineItemGroupControlToggleButtonStyle}"
                                        IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                                        IsEnabled="{Binding ExpandMode, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource groupExpandModeToBooleanConverter}}"/>
                                <Path
                                        Grid.Column="1"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Stretch"
                                        Data="M0,0 L800,0"
                                        Height="{StaticResource Timeline_TimelineItemGroup_Separator_Height}"
                                        Margin="5 1 0 0"
                                        Stretch="Fill"
                                        Stroke="{telerikControls:Windows8TouchResource ResourceKey=HighBrush}"/>
                            </Grid>
                            <ItemsPresenter x:Name="Content" Grid.Row="1"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="timelines:TimelineItemGroupControl" BasedOn="{StaticResource TimelineItemGroupControlStyle}"/>
    <Style x:Key="TimelinePeriodHeaderStyle" TargetType="Border">
        <Setter Property="Height" Value="23"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="Margin" Value="0 4 0 0"/>
    </Style>
    <Style x:Key="TimelineGroupPeriodHeaderStyle" TargetType="Border">
        <Setter Property="Height" Value="30"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
    </Style>
    <Style x:Key="TimelineLineStyle" TargetType="Border">
        <Setter Property="BorderBrush" Value="{StaticResource Timeline_Button_Bottom_BorderBrush}"/>
        <Setter Property="BorderThickness" Value="{StaticResource Timeline_Button_Bottom_Thickness}"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=MediumBrush}"/>
        <Setter Property="Height" Value="1"/>
    </Style>
    <Style x:Key="TimelineItemControlStyle" TargetType="timelines:TimelineItemControl">
        <Setter Property="Height" Value="40"/>
        <Setter Property="Margin" Value="0 5 0 5"/>
        <Setter Property="Background" Value="{StaticResource Timeline_TimelineItem_Fill}"/>
        <Setter Property="BorderBrush" Value="{StaticResource Timeline_TimelineItem_Stroke}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timelines:TimelineItemControl">
                    <Border Height="40" Background="#01FFFFFF">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="timelineItem" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{StaticResource Timeline_TimelineItem_Fill_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="timelineItem" Storyboard.TargetProperty="Stroke" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{StaticResource Timeline_TimelineItem_Stroke_MouseOver}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="timelineItem" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="timelineItem" Storyboard.TargetProperty="Stroke" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="timelineItem" Margin="0 5 0 5" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimelineInstantItemControlStyle" TargetType="timelines:TimelineInstantItemControl">
        <Setter Property="Margin" Value="0 5 0 5"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timelines:TimelineInstantItemControl">
                    <Border Width="40" Height="40" CornerRadius="18" Background="#01FFFFFF">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="timelineItem" Storyboard.TargetProperty="Opacity" To="0.44" Duration="0:0:0"/>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="timelineItem" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0"/>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="timelineItem" Storyboard.TargetProperty="Fill" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="timelineItem" Storyboard.TargetProperty="Stroke" Duration="0.00:00:00.05">
                                            <DiscreteObjectKeyFrame KeyTime="0.00:00:00.0" Value="{telerikControls:Windows8TouchResource ResourceKey=InvertedBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="timelineItem"
                                Height="14"
                                Width="14"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                StrokeThickness="{StaticResource Timeline_TimelineInstantItem_Stroke_Thickness}"
                                Fill="{telerikControls:Windows8TouchResource ResourceKey=AccentBrush}">
                            <Rectangle.RenderTransform>
                                <RotateTransform Angle="45" CenterX="7" CenterY="7"/>
                            </Rectangle.RenderTransform>
                        </Rectangle>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="TimelineItemTemplate">
        <timelines:TimelineItemControl/>
    </DataTemplate>
    <DataTemplate x:Key="TimelineInstantItemTemplate">
        <timelines:TimelineInstantItemControl/>
    </DataTemplate>
    <Style x:Key="TimelineAnnotationStyle" TargetType="timelines:TimelineAnnotation">
        <Setter Property="IsHitTestVisible" Value="False"/>
        <Setter Property="Margin" Value="{StaticResource Timeline_TimelineAnnotation_Margin}"/>
        <Setter Property="Canvas.ZIndex" Value="300"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timelines:TimelineAnnotation">
                    <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="SelectionRegionStyle" TargetType="timelines:SelectionRegion">
        <Setter Property="Visibility" Value="Collapsed"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=HighBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timelines:SelectionRegion">
                    <Grid>
                        <Border Opacity="0.5" Background="{TemplateBinding Background}"/>
                        <Rectangle Stroke="{TemplateBinding BorderBrush}" StrokeDashArray="3 3"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TimelineItemContainerStyle" TargetType="timelines:TimelineItemContainer">
        <Setter Property="Canvas.ZIndex" Value="200"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <timelines:TimelineItemGroupsPanel Padding="0 58 0 5" VerticalScrollBar="{Binding ElementName=Part_VerticalSlider}"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadTimelineStyle" TargetType="datavizControls:RadTimeline">
        <Setter Property="Foreground" Value="{telerikControls:Windows8TouchResource ResourceKey=MainForegroundBrush}"/>
        <Setter Property="FontFamily" Value="{telerikControls:Windows8TouchResource ResourceKey=FontFamily}"/>
        <Setter Property="Background" Value="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderThickness" Value="0 0 0 1"/>
        <Setter Property="BorderBrush" Value="{telerikControls:Windows8TouchResource ResourceKey=MediumBrush}"/>
        <Setter Property="SliderStyle" Value="{StaticResource Timeline_SliderStyle}"/>
        <Setter Property="TimelineItemTemplate" Value="{StaticResource TimelineItemTemplate}"/>
        <Setter Property="TimelineInstantItemTemplate" Value="{StaticResource TimelineInstantItemTemplate}"/>
        <Setter Property="PeriodHeaderStyle" Value="{StaticResource TimelinePeriodHeaderStyle}"/>
        <Setter Property="GroupPeriodHeaderStyle" Value="{StaticResource TimelineGroupPeriodHeaderStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="datavizControls:RadTimeline">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Border
                                    Grid.Row="0"
                                    Grid.Column="0"
                                    Height="{Binding ElementName=PART_TimelineStripLineContainer, Path=(timeBars:ActualSizeProxy.ActualHeight)}"
                                    VerticalAlignment="Bottom"
                                    Background="{TemplateBinding Background}"/>
                            <timelines:TimelineAnnotationsPanel x:Name="PART_TimelineAnnotationsPanel" Slider="{Binding ElementName=PART_Slider}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
                                <Grid Canvas.ZIndex="100">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="27"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <timelines:TimelineStripLineContainer x:Name="PART_TimelineStripLineContainer" Grid.Row="2" timeBars:ActualSizeProxy.IsEnabled="True" ItemsSource="{TemplateBinding IntervalItems}">
                                        <timelines:TimelineStripLineContainer.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <timeBars:VirtualizingTimeBarPanel Slider="{Binding ElementName=PART_Slider}"/>
                                            </ItemsPanelTemplate>
                                        </timelines:TimelineStripLineContainer.ItemsPanel>
                                        <timelines:TimelineStripLineContainer.Template>
                                            <ControlTemplate>
                                                <ItemsPresenter/>
                                            </ControlTemplate>
                                        </timelines:TimelineStripLineContainer.Template>
                                    </timelines:TimelineStripLineContainer>
                                    <timeBars:TimeSpecialSlotContainer x:Name="PART_TimeSpecialSlotContainer" Grid.Row="2" ItemsSource="{Binding Path=SpecialSlots, RelativeSource={RelativeSource TemplatedParent}}">
                                        <timeBars:TimeSpecialSlotContainer.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <timeBars:TimeBarPanel Slider="{Binding ElementName=PART_Slider}"/>
                                            </ItemsPanelTemplate>
                                        </timeBars:TimeSpecialSlotContainer.ItemsPanel>
                                        <timeBars:TimeSpecialSlotContainer.Template>
                                            <ControlTemplate>
                                                <ItemsPresenter/>
                                            </ControlTemplate>
                                        </timeBars:TimeSpecialSlotContainer.Template>
                                    </timeBars:TimeSpecialSlotContainer>
                                    <Border Grid.Row="1" Style="{StaticResource TimelineLineStyle}" VerticalAlignment="Bottom"/>
                                    <timelines:TimelineGroupPeriodContainer x:Name="PART_TimelineGroupPeriodContainer" Grid.Row="0" ItemsSource="{TemplateBinding IntervalGroups}" ItemHeaderStyle="{TemplateBinding GroupPeriodHeaderStyle}">
                                        <timelines:TimelineGroupPeriodContainer.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <timeBars:LabelMeasurementPanel Slider="{Binding ElementName=PART_Slider}"/>
                                            </ItemsPanelTemplate>
                                        </timelines:TimelineGroupPeriodContainer.ItemsPanel>
                                        <timelines:TimelineGroupPeriodContainer.Template>
                                            <ControlTemplate>
                                                <ItemsPresenter/>
                                            </ControlTemplate>
                                        </timelines:TimelineGroupPeriodContainer.Template>
                                    </timelines:TimelineGroupPeriodContainer>
                                    <timelines:TimelinePeriodContainer x:Name="PART_TimelinePeriodContainer"
                                            Grid.Row="1"
                                            Grid.RowSpan="2"
                                            ItemsSource="{TemplateBinding IntervalItems}"
                                            ItemHeaderStyle="{TemplateBinding PeriodHeaderStyle}">
                                        <timelines:TimelinePeriodContainer.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <timeBars:LabelMeasurementPanel Slider="{Binding ElementName=PART_Slider}"/>
                                            </ItemsPanelTemplate>
                                        </timelines:TimelinePeriodContainer.ItemsPanel>
                                        <timelines:TimelinePeriodContainer.Template>
                                            <ControlTemplate>
                                                <ItemsPresenter/>
                                            </ControlTemplate>
                                        </timelines:TimelinePeriodContainer.Template>
                                    </timelines:TimelinePeriodContainer>
                                </Grid>
                                <timelines:TimelineItemContainer x:Name="PART_TimelineItemContainer"
                                        GroupExpandMode="{TemplateBinding GroupExpandMode}"
                                        ItemsSource="{TemplateBinding GroupedDataItems}"
                                        SelectionRegionControl="{Binding ElementName=PART_SelectionRegion}">
                                    <timelines:TimelineItemContainer.Template>
                                        <ControlTemplate>
                                            <Grid Background="#01FFFFFF">
                                                <ItemsPresenter/>
                                            </Grid>
                                        </ControlTemplate>
                                    </timelines:TimelineItemContainer.Template>
                                </timelines:TimelineItemContainer>
                            </timelines:TimelineAnnotationsPanel>
                            <timelines:SelectionRegionPanel x:Name="PART_SelectionRegionPanel" Grid.Row="0" Grid.Column="0" Slider="{Binding ElementName=PART_Slider}">
                                <timelines:SelectionRegion x:Name="PART_SelectionRegion"/>
                            </timelines:SelectionRegionPanel>
                            <Border
                                    Grid.Row="1"
                                    Grid.Column="1"
                                    Background="{telerikControls:Windows8TouchResource ResourceKey=MainBrush}"
                                    Visibility="{Binding Visibility, ElementName=Part_VerticalSlider}"/>
                            <timelines:TimelineScrollBar x:Name="Part_VerticalSlider"
                                    Grid.Row="0"
                                    Grid.Column="1"
                                    VerticalAlignment="Bottom"
                                    Visibility="Collapsed"
                                    ScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}"
                                    Style="{TemplateBinding SliderStyle}"
                                    Height="{Binding ElementName=PART_TimelineStripLineContainer, Path=(timeBars:ActualSizeProxy.ActualHeight)}"
                                    Minimum="0"
                                    Maximum="1"
                                    SelectionStart="0"
                                    SelectionEnd="1"
                                    Orientation="Vertical"
                                    IsDirectionReversed="True"
                                    ThumbVisibility="Collapsed"/>
                            <telerikControls:RadSlider x:Name="PART_Slider"
                                    Grid.Row="1"
                                    Grid.Column="0"
                                    Style="{TemplateBinding SliderStyle}"
                                    Width="Auto"
                                    Minimum="{Binding Path=PeriodStart, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource dateConverter}}"
                                    Maximum="{Binding Path=PeriodEnd, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource dateConverter}}"
                                    MinimumRangeSpan="{Binding Path=ActualMinZoomRange, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource timespanConverter}}"
                                    MaximumRangeSpan="{Binding Path=MaxZoomRange, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource timeSpanToMaximumRangeSpanConverter}}"
                                    Selection="{Binding Path=ActualVisiblePeriodRange, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay, Converter={StaticResource selectionRangeConverter}}"
                                    SmallChange="{Binding Path=SmallChange, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource timespanConverter}}"
                                    LargeChange="{Binding Path=LargeChange, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource timespanConverter}}"
                                    ThumbVisibility="{Binding Path=ScrollMode, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource scrollModeToThumbVisibilityConverter}}"
                                    Visibility="{Binding Path=ScrollMode, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource scrollModeToVisibilityConverter}}"
                                    IsCoercionSuppressed="True"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="timelines:TimelineItemControl" BasedOn="{StaticResource TimelineItemControlStyle}"/>
    <Style TargetType="timelines:TimelineInstantItemControl" BasedOn="{StaticResource TimelineInstantItemControlStyle}"/>
    <Style TargetType="timelines:TimelineAnnotation" BasedOn="{StaticResource TimelineAnnotationStyle}"/>
    <Style TargetType="timelines:SelectionRegion" BasedOn="{StaticResource SelectionRegionStyle}"/>
    <Style TargetType="timelines:TimelineItemContainer" BasedOn="{StaticResource TimelineItemContainerStyle}"/>
    <Style TargetType="datavizControls:RadTimeline" BasedOn="{StaticResource RadTimelineStyle}"/>
</ResourceDictionary>
