<ResourceDictionary
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c="http://schemas.telerik.com/2008/xaml/compile"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="c"
        xmlns:telerik1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
        xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
        xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
        xmlns:extensions="clr-namespace:Telerik.Windows.Controls.Diagrams.Extensions;assembly=Telerik.Windows.Controls.Diagrams.Extensions"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:data="clr-namespace:Telerik.Windows.Controls.Diagrams.Extensions.Data;assembly=Telerik.Windows.Controls.Diagrams.Extensions"
        xmlns:core="clr-namespace:Telerik.Windows.Diagrams.Core;assembly=Telerik.Windows.Diagrams.Core">
    <ResourceDictionary.MergedDictionaries>
        <telerik:GreenResourceDictionary/>
    </ResourceDictionary.MergedDictionaries>
    <telerik1:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    <telerik1:InvertedBooleanConverter x:Key="InvertedBooleanConverter"/>
    <Geometry x:Key="ArrowTopRight8x8">M0,0 L8,0 8,8 z</Geometry>
    <Geometry x:Key="ArrowDown">M0,0 L6,0 L3,4z</Geometry>
    <Geometry x:Key="ThinArrowLeft5x8">M0,4 L4,0 L5,0 L5,1 L2,4 L5,7 L5,8 L4,8z</Geometry>
    <Geometry x:Key="ArrowLeft5x9">M0,4.5 L5,0 L5,9z</Geometry>
    <Geometry x:Key="ArrowRight5x9">M0,0 L0,9 L5,4.5z</Geometry>
    <Geometry x:Key="CloseIcon8x8">M1,0 L4,3 L7,0 L8,1 L5,4 L8,7 L7,8 L4,5 L1,8 L0,7 L3,4 L0,1 z</Geometry>
    <Geometry x:Key="PlusIcon8x8">M3,0L5,0L5,3L8,3L8,5L5,5L5,8L3,8L3,5L0,5L0,3L3,3z</Geometry>
    <Geometry x:Key="NavigationIcon">M8,0 L11,3 L9,3 L9,7 L13,7 L13,5 L16,8 L13,11 L13,9 L9,9 L9,13 L11,13 L8,16 L5,13 L7,13 L7,9 L3,9 L3,11 L0,8 L3,5 L3,7 L7,7 L7,3 L5,3 z</Geometry>
    <Geometry x:Key="SearchIcon12x12">M12.0,2.1 C9.8,2.1 7.8,3.7 7.2,5.9 C7.1,6.3 7.1,6.7 7.1,7.1 C7.1,8.1 7.4,9.1 7.9,9.9 C8.7,10.9 9.4,11.3 9.4,11.3 C9.8,11.6 10.3,11.8 10.8,11.9 C11.2,12.0 11.6,12.1 12.0,12.1 C14.2,12.1 16.3,10.5 16.8,8.3 C16.9,7.9 17.0,7.5 17.0,7.1 C17.0,4.9 15.5,2.8 13.2,2.3 C12.8,2.2 12.4,2.1 12.0,2.1 z M12.0,0 C12.6,0 13.2,0.0 13.7,0.2 C17.0,1.0 19.2,3.9 19.2,7.1 C19.2,7.7 19.1,8.2 19.0,8.8 L19.0,8.8 C18.2,12.1 15.2,14.2 12.0,14.2 C11.5,14.2 10.9,14.2 10.3,14.0 C9.6,13.9 9.0,13.6 8.4,13.3 L8.4,13.3 L8.4,13.2 L3.1,18.6 C2.7,19.0 2.2,19.2 1.8,19.2 C1.3,19.2 0.8,19.0 0.5,18.6 C-0.1,17.9 -0.1,16.8 0.5,16.1 L5.8,10.7 L5.7,10.5 C5.2,9.4 4.9,8.3 4.9,7.1 C4.9,6.5 4.9,6.0 5.1,5.4 C5.9,2.1 8.8,-0.0 12.0,0 z</Geometry>
    <Geometry x:Key="CloseIcon10x10">M1,0 L5,4 L9,0 L10,1 L6,5 L10,9 L9,10 L5,6 L1,10 L0,9 L4,5 L0,1 z</Geometry>
    <Geometry x:Key="HorizontalSizeIcon">M12,0 L16,4 L12,8 L12,5 L4,5 L4,8 L0,4 L4,0 L4,3 L12,3 z</Geometry>
    <Geometry x:Key="VerticalSizeIcon">M0,12 L4,16 L8,12 L5,12 L5,4 L8,4 L4,0 L0,4 L3,4 L3,12 z</Geometry>
    <Geometry x:Key="PageSizeIcon">F1M222,210L222,266.7C222,269.5,222.7,271,225.5,271L272.1,271C274.7,271,276,270.6,276,266.7L276,234.3C276,232.5,275.5,229.8,273.3,227.6C270.2,224.4,261.0,215.6,259.0,213.6C256.9,211.5,255.8,210,249.5,210z</Geometry>
    <Geometry x:Key="SizeArrow">M5.5,0C9,0 10,2.2 10,2.2L10,0L12,1L12,6L7,6L6,4L8.5,4C8.5,4 7.7,2.2 5.5,2.2C3.1,2.2 2.6,4.2 2.6,4.2C2.6,4.2 0,4.2 0,4.2C0,4.2 1,0 5.5,0z</Geometry>
    <Geometry x:Key="GeometryStrokeThicknessIcon">M0,7L12,7 12,10 0,10z M0,3L12,3 12,5 0,5z M0,0L12,0 12,1 0,1z</Geometry>
    <Geometry x:Key="GeometryStrokeDashArrayIcon">M7,8L12,8 12,10 7,10z M0,8L5,8 5,10 0,10z M10,4L12,4 12,6 10,6z M5,4L7,4 7,6 5,6z M0,4L2,4 2,6 0,6z M0,0L12,0 12,2 0,2z</Geometry>
    <Geometry x:Key="PolylineConnectionIcon">M26,0L28,0 28,8 28,10 2,10 2,18 0,18 0,10 0,8 2,8 26,8z</Geometry>
    <Geometry x:Key="SplineConnectionIcon">M5,10 C3.3,10 1.9,11.3 1.9,13 L1.9,18 L0,18 L2.0E-06,13 C-9.3E-07,10.2 2.2,8 4.9,8 M5.0,8 L23.0,8 L23.1,7.9 C24.7,7.9 26,6.6 26,5.0 L28,5.0 L27.9,5.1 C27.9,7.7 25.7,9.9 23.1,9.9 L23.0,9.9 L5.0,10 M26,4.9 L26,0 L28,0 L28,4.9</Geometry>
    <Geometry x:Key="BezierConnectionIcon">M30.6,3.2 C30.6,3.2 23.5,15.3 16.2,4.9 C6.9,-8.3 0,9.4 0,9.4 L1.6,10.2 C1.6,10.2 7.2,-5.1 14.9,6.1 C23.0,18.2 32.0,4.2 32.0,4.2 z</Geometry>
    <Geometry x:Key="ArrowLeft8x16">M0,8 8,0 8,16z</Geometry>
    <Geometry x:Key="PopupArrow">M9,0.5 L17.5,7.5 L0.5,7.5 z</Geometry>
    <Geometry x:Key="SettingsIcon">F1M511.6,467.2C509.6,468.2 507.1,467.5 506.1,465.5C505.1,463.4 505.9,461.0 507.9,460C509.9,458.9 512.4,459.7 513.4,461.7C514.4,463.7 513.6,466.2 511.6,467.2M518.5,462.8L517.8,460.0L515.3,460.2C515.1,459.8 514.8,459.4 514.5,459.1L515.4,456.8L512.9,455.3L511.3,457.2C510.8,457.1 510.3,457.0 509.7,457.0L508.7,454.9L505.9,455.6L506.2,458.0C505.8,458.3 505.5,458.5 505.2,458.8L503.0,458L501.5,460.4L503.3,461.9C503.2,462.4 503.1,463.0 503.1,463.5L501.0,464.4L501.7,467.2L504.0,467.0C504.3,467.4 504.6,467.9 505.0,468.2L504.1,470.3L506.6,471.9L508.1,470.0C508.6,470.1 509.1,470.2 509.6,470.2L510.5,472.3L513.4,471.7L513.1,469.2C513.6,469.0 514.0,468.7 514.3,468.3L516.5,469.2L518.0,466.7L516.1,465.2C516.2,464.7 516.3,464.2 516.3,463.7z</Geometry>
    <ControlTemplate x:Key="ErrorTooltipTemplate" TargetType="ToolTip">
        <Grid x:Name="RootVisual" HorizontalAlignment="Right" RenderTransformOrigin="0 0" Opacity="0" SnapsToDevicePixels="True">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="OpenStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition GeneratedDuration="0"/>
                        <VisualTransition To="Open" GeneratedDuration="0:0:0.3">
                            <Storyboard>
                                <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0:0:0.3">
                                    <DoubleAnimation.EasingFunction>
                                        <BackEase Amplitude=".4" EasingMode="EaseOut"/>
                                    </DoubleAnimation.EasingFunction>
                                </DoubleAnimation>
                                <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.3"/>
                            </Storyboard>
                        </VisualTransition>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="Closed">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="0" Duration="0"/>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Open">
                        <Storyboard>
                            <DoubleAnimation Storyboard.TargetName="xform" Storyboard.TargetProperty="X" To="0" Duration="0"/>
                            <DoubleAnimation Storyboard.TargetName="RootVisual" Storyboard.TargetProperty="Opacity" To="1" Duration="0"/>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RenderTransform>
                <TranslateTransform x:Name="xform" X="-25"/>
            </Grid.RenderTransform>
            <Border Background="{telerik1:GreenResource ResourceKey=ValidationBrush}" Padding="1" CornerRadius="0 1 1 1" Margin="2 0">
                <ContentPresenter Content="{Binding ErrorContent}" TextBlock.Foreground="{telerik1:GreenResource ResourceKey=FixedBrush}" Margin="3 2"/>
            </Border>
            <ContentControl/>
        </Grid>
    </ControlTemplate>
    <ControlTemplate x:Key="ValidationTooltipTemplate">
        <Grid SnapsToDevicePixels="True" VerticalAlignment="Top">
            <Border Background="Transparent" HorizontalAlignment="Right" VerticalAlignment="Top" Width="3" Height="3"/>
            <AdornedElementPlaceholder x:Name="Holder"/>
            <Border BorderBrush="{telerik1:GreenResource ResourceKey=ValidationBrush}" BorderThickness="1" CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
            <Path
                    Data="{StaticResource ArrowTopRight8x8}"
                    Fill="{telerik1:GreenResource ResourceKey=ValidationBrush}"
                    Width="8"
                    Height="8"
                    HorizontalAlignment="Right"
                    VerticalAlignment="Top"/>
            <ToolTipService.ToolTip>
                <ToolTip x:Name="PART_ToolTip"
                        DataContext="{Binding RelativeSource={RelativeSource Mode=Self}, Path=PlacementTarget.DataContext}"
                        Template="{StaticResource ErrorTooltipTemplate}"
                        Placement="Right"/>
            </ToolTipService.ToolTip>
        </Grid>
    </ControlTemplate>
    <telerik:InvertedBooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter"/>
    <DataTemplate x:Key="OpenCloseDataTemplate">
        <Path Data="{StaticResource ThinArrowLeft5x8}" Stretch="None" Fill="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"/>
    </DataTemplate>
    <DataTemplate x:Key="CloseDataTemplate">
        <Path Data="{StaticResource CloseIcon8x8}" Stretch="None" Fill="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"/>
    </DataTemplate>
    <DataTemplate x:Key="NavigationPaneMapTemplate">
        <Path Fill="{Binding Foreground,RelativeSource={RelativeSource AncestorType=ContentControl}}" Stretch="None" Data="{StaticResource NavigationIcon}"/>
    </DataTemplate>
    <DataTemplate x:Key="NavigationPaneToggleTemplate">
        <Grid>
            <Grid Background="Transparent" Visibility="{Binding Path=IsChecked, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadToggleButton}}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}">
                <Path
                        Fill="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"
                        Stretch="fill"
                        Height="12"
                        Width="12"
                        Data="{StaticResource SearchIcon12x12}"/>
                <ToolTipService.ToolTip>
                    <ToolTip Content="{telerik:LocalizableResource Key=Open}"/>
                </ToolTipService.ToolTip>
            </Grid>
            <Grid Background="Transparent" Visibility="{Binding Path=IsChecked, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadToggleButton}}, Converter={StaticResource BooleanToVisibilityConverter}}">
                <Path
                        Fill="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"
                        Stretch="Fill"
                        Height="8"
                        Width="8"
                        Data="{StaticResource CloseIcon8x8}"/>
                <ToolTipService.ToolTip>
                    <ToolTip Content="{telerik:LocalizableResource Key=Close}"/>
                </ToolTipService.ToolTip>
            </Grid>
        </Grid>
    </DataTemplate>
    <ControlTemplate x:Key="ButtonBaseControlTemplate" TargetType="ButtonBase">
        <Border x:Name="BorderVisual"
                BorderBrush="{TemplateBinding BorderBrush}"
                BorderThickness="{TemplateBinding BorderThickness}"
                Background="{TemplateBinding Background}"
                CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}">
            <ContentPresenter x:Name="Content"
                    TextBlock.Foreground="{TemplateBinding Foreground}"
                    Margin="{TemplateBinding Padding}"
                    Content="{TemplateBinding Content}"
                    ContentTemplate="{TemplateBinding ContentTemplate}"
                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                    ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                    ContentStringFormat="{TemplateBinding ContentStringFormat}"
                    RecognizesAccessKey="True"/>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled" Value="False">
                <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                <Setter TargetName="Content" Property="TextElement.Foreground" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                <Setter TargetName="Content" Property="TextElement.Foreground" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                <Setter TargetName="Content" Property="TextElement.Foreground" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="ListBoxItemStyle" TargetType="ListBoxItem">
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="Padding" Value="4 3"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="KeyboardNavigation.TabNavigation" Value="Local"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <Grid>
                        <Border x:Name="BorderVisual"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"
                                SnapsToDevicePixels="True"/>
                        <ContentControl x:Name="contentPresenter"
                                Margin="{TemplateBinding Padding}"
                                Foreground="{TemplateBinding Foreground}"
                                IsTabStop="False"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                Content="{TemplateBinding Content}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                FocusVisualStyle="{x:Null}"/>
                        <Border x:Name="FocusVisual"
                                Opacity="0"
                                BorderThickness="1"
                                BorderBrush="{telerik1:GreenResource ResourceKey=AccentLowBrush}"
                                SnapsToDevicePixels="True"
                                CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="FocusVisual" Property="Opacity" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="contentPresenter" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}" Property="Opacity"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ListBoxStyle" TargetType="ListBox">
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBox">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}">
                        <ScrollViewer x:Name="ScrollViewer"
                                Margin="0"
                                BorderBrush="{x:Null}"
                                BorderThickness="0"
                                Background="{TemplateBinding Background}"
                                Padding="{TemplateBinding Padding}"
                                ScrollViewer.HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                                ScrollViewer.VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}">
                            <ItemsPresenter/>
                        </ScrollViewer>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="ListBox" BasedOn="{StaticResource ListBoxStyle}"/>
    <Style TargetType="ListBoxItem" BasedOn="{StaticResource ListBoxItemStyle}"/>
    <ControlTemplate x:Key="NonEditableComboToggleButtonControlTemplate" TargetType="telerik:RadToggleButton">
        <Grid Background="#01FFFFFF">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="ToggleButtonBackground"
                    Grid.ColumnSpan="2"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
            <Path x:Name="DropDownIcon"
                    Grid.Column="1"
                    Data="{StaticResource ArrowDown}"
                    Stretch="Fill"
                    Fill="{telerik1:GreenResource ResourceKey=StrongBrush}"
                    Width="6"
                    Height="4"
                    Margin="5 0"/>
            <Grid Grid.Column="0" Margin="2 0 0 0">
                <ContentPresenter x:Name="Content"
                        Margin="{TemplateBinding Padding}"
                        Content="{TemplateBinding Content}"
                        ContentTemplate="{TemplateBinding ContentTemplate}"
                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                    <ContentPresenter.Resources>
                        <Style TargetType="TextBlock">
                            <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
                        </Style>
                    </ContentPresenter.Resources>
                </ContentPresenter>
            </Grid>
        </Grid>
        <ControlTemplate.Triggers>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsEnabled" Value="True"/>
                    <Condition Property="IsMouseOver" Value="True"/>
                </MultiTrigger.Conditions>
                <Setter Property="Background" TargetName="ToggleButtonBackground" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                <Setter Property="BorderBrush" TargetName="ToggleButtonBackground" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                <Setter Property="Fill" TargetName="DropDownIcon" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
            </MultiTrigger>
            <Trigger Property="IsChecked" Value="true">
                <Setter Property="BorderBrush" TargetName="ToggleButtonBackground" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                <Setter Property="Background" TargetName="ToggleButtonBackground" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                <Setter Property="Fill" TargetName="DropDownIcon" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Opacity" TargetName="Content" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                <Setter Property="Opacity" TargetName="DropDownIcon" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                <Setter Property="Fill" TargetName="DropDownIcon" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="NonEditableComboToggleButtonStyle" TargetType="telerik:RadToggleButton">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="ClickMode" Value="Press"/>
        <Setter Property="Template" Value="{StaticResource NonEditableComboToggleButtonControlTemplate}"/>
    </Style>
    <ControlTemplate x:Key="EditableComboToggleButtonControlTemplate" TargetType="telerik:RadToggleButton">
        <Grid>
            <Border x:Name="ToggleButtonBackground"
                    Grid.ColumnSpan="2"
                    Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadiusRight}"/>
            <Path x:Name="DropDownIcon"
                    Grid.Column="1"
                    Data="{StaticResource ArrowDown}"
                    Stretch="Fill"
                    Fill="{telerik1:GreenResource ResourceKey=StrongBrush}"
                    Width="6"
                    Height="4"
                    Margin="5 0"/>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="BorderBrush" TargetName="ToggleButtonBackground" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                <Setter Property="Background" TargetName="ToggleButtonBackground" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                <Setter Property="Fill" TargetName="DropDownIcon" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="Fill" TargetName="DropDownIcon" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                <Setter Property="Background" TargetName="ToggleButtonBackground" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                <Setter Property="BorderBrush" TargetName="ToggleButtonBackground" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Opacity" TargetName="DropDownIcon" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                <Setter Property="Fill" TargetName="DropDownIcon" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="EditableComboToggleButtonStyle" TargetType="telerik:RadToggleButton">
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="Template" Value="{StaticResource EditableComboToggleButtonControlTemplate}"/>
    </Style>
    <Style x:Key="ComboBoxTextBoxStyle" TargetType="TextBox">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=MainBrush}"/>
        <Setter Property="SelectionBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
        <Setter Property="CaretBrush" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="Margin" Value="0 1"/>
    </Style>
    <ControlTemplate x:Key="EditableComboBox" TargetType="telerikInput:RadComboBox">
        <Grid x:Name="VisualRoot">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Border x:Name="BackgroundVisual"
                    Grid.ColumnSpan="2"
                    IsHitTestVisible="False"
                    Background="{TemplateBinding Background}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
            <TextBox x:Name="PART_EditableTextBox"
                    Grid.Column="0"
                    VerticalAlignment="Stretch"
                    Padding="{TemplateBinding Padding}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    IsReadOnly="{TemplateBinding IsReadOnly}"
                    VerticalContentAlignment="Center"
                    Style="{StaticResource ComboBoxTextBoxStyle}"
                    CaretBrush="{telerik1:GreenResource ResourceKey=MarkerBrush}">
                <TextBox.Template>
                    <ControlTemplate TargetType="TextBox">
                        <Grid>
                            <Border x:Name="BorderVisual"
                                    Background="{TemplateBinding Background}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadiusLeft}"/>
                            <Border x:Name="ReadOnlyVisual"
                                    Background="{telerik1:GreenResource ResourceKey=ReadOnlyBackgroundBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{x:Null}"
                                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadiusLeft}"
                                    Opacity="0"/>
                            <ScrollViewer x:Name="PART_ContentHost"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    Background="Transparent"
                                    IsTabStop="False"
                                    VerticalScrollBarVisibility="Auto"
                                    VerticalContentAlignment="Stretch"
                                    Padding="{TemplateBinding Padding}"
                                    Margin="-1 0 0 0"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsEnabled" Value="False">
                                <Setter TargetName="PART_ContentHost" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            </Trigger>
                            <Trigger Property="IsReadOnly" Value="True">
                                <Setter TargetName="ReadOnlyVisual" Property="Opacity" Value="1"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </TextBox.Template>
            </TextBox>
            <telerik:RadToggleButton x:Name="PART_DropDownButton"
                    Grid.Column="1"
                    IsTabStop="False"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    Style="{StaticResource EditableComboToggleButtonStyle}"
                    Background="{Binding Background, ElementName=PART_EditableTextBox}"
                    ClickMode="Press"/>
            <Border x:Name="BorderVisual"
                    Grid.ColumnSpan="2"
                    IsHitTestVisible="False"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
            <TextBlock x:Name="Watermark"
                    Text="{TemplateBinding EmptyText}"
                    IsHitTestVisible="False"
                    Padding="{TemplateBinding Padding}"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Left"
                    Visibility="Collapsed"
                    Margin="2 0 0 0"
                    Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
            <Popup x:Name="PART_Popup" VerticalOffset="0">
                <Grid x:Name="PopupRoot">
                    <Border x:Name="PART_ResizeBorder"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                            Margin="0 1 0 0"
                            MinWidth="{TemplateBinding MinDropDownWidth}"
                            MaxHeight="{TemplateBinding MaxDropDownHeight}"
                            CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <telerik:RadButton x:Name="PART_ClearButton"
                                    Grid.Row="0"
                                    Margin="-1 -1 -1 0"
                                    FontSize="{TemplateBinding FontSize}"
                                    FontFamily="{TemplateBinding FontFamily}"
                                    Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
                                    Content="{TemplateBinding ClearSelectionButtonContent}"/>
                            <ScrollViewer x:Name="PART_ScrollViewer"
                                    Grid.Row="1"
                                    BorderThickness="0"
                                    VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
                                    Foreground="{TemplateBinding Foreground}"
                                    HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                                    CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}">
                                <ItemsPresenter/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </Grid>
            </Popup>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Opacity" TargetName="Watermark" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
            </Trigger>
            <Trigger Property="IsWatermarkVisible" Value="True">
                <Setter TargetName="Watermark" Property="Visibility" Value="Visible"/>
            </Trigger>
            <Trigger Property="IsDropDownOpen" Value="True">
                <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
            </Trigger>
            <Trigger Property="IsKeyboardFocusWithin" Value="True">
                <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <ControlTemplate x:Key="NonEditableComboBox" TargetType="telerikInput:RadComboBox">
        <Grid x:Name="VisualRoot">
            <Border x:Name="BackgroundVisual"
                    IsHitTestVisible="False"
                    Background="{TemplateBinding Background}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
            <telerik:RadToggleButton x:Name="PART_DropDownButton"
                    IsTabStop="False"
                    Padding="{TemplateBinding Padding}"
                    Content="{TemplateBinding SelectionBoxItem}"
                    ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                    Style="{StaticResource NonEditableComboToggleButtonStyle}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    BorderBrush="{TemplateBinding BorderBrush}"
                    FontFamily="{TemplateBinding FontFamily}"
                    FontSize="{TemplateBinding FontSize}"
                    ClickMode="Press"/>
            <Border x:Name="FocusVisual"
                    IsHitTestVisible="False"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Visibility="Collapsed"
                    Background="Transparent"
                    BorderBrush="{telerik1:GreenResource ResourceKey=AccentLowBrush}"
                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
            <Popup x:Name="PART_Popup" VerticalOffset="0">
                <Grid x:Name="PopupRoot">
                    <Border x:Name="PART_ResizeBorder"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                            MinWidth="{TemplateBinding MinDropDownWidth}"
                            MaxHeight="{TemplateBinding MaxDropDownHeight}"
                            CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"
                            Margin="0 1 0 0">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <telerik:RadButton x:Name="PART_ClearButton"
                                    Grid.Row="0"
                                    Margin="-1 -1 -1 0"
                                    FontSize="{TemplateBinding FontSize}"
                                    FontFamily="{TemplateBinding FontFamily}"
                                    Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
                                    Content="{TemplateBinding ClearSelectionButtonContent}"/>
                            <ScrollViewer x:Name="PART_ScrollViewer"
                                    Grid.Row="1"
                                    BorderThickness="0"
                                    VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
                                    HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                                    Foreground="{TemplateBinding Foreground}"
                                    CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}">
                                <ItemsPresenter/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </Grid>
            </Popup>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsKeyboardFocusWithin" Value="True">
                <Setter TargetName="FocusVisual" Property="Visibility" Value="Visible"/>
            </Trigger>
            <Trigger Property="IsDropDownOpen" Value="True">
                <Setter TargetName="FocusVisual" Property="Visibility" Value="Visible"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter TargetName="BackgroundVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="RadComboBoxItemStyle" TargetType="telerikInput:RadComboBoxItem">
        <Setter Property="Padding" Value="2"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerikInput:RadComboBoxItem">
                    <Border x:Name="BorderVisual"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{TemplateBinding Background}"
                            CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}">
                        <ContentPresenter x:Name="Content"
                                Margin="{TemplateBinding Padding}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                        </Trigger>
                        <Trigger Property="IsHighlighted" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerikInput:RadComboBox}}, Path=AllowMultipleSelection}" Value="True"/>
                                <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Mode=Self}}" Value="True"/>
                            </MultiDataTrigger.Conditions>
                            <MultiDataTrigger.Setters>
                                <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            </MultiDataTrigger.Setters>
                        </MultiDataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadComboBoxStyle" TargetType="telerikInput:RadComboBox">
        <Setter Property="Template" Value="{StaticResource NonEditableComboBox}"/>
        <Setter Property="EditableTemplate" Value="{StaticResource EditableComboBox}"/>
        <Setter Property="NonEditableTemplate" Value="{StaticResource NonEditableComboBox}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Padding" Value="4 2"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ValidationTooltipTemplate}"/>
        <Setter Property="KeyboardNavigation.TabNavigation" Value="Continue"/>
    </Style>
    <Style TargetType="telerikInput:RadComboBoxItem" BasedOn="{StaticResource RadComboBoxItemStyle}"/>
    <Style TargetType="telerikInput:RadComboBox" BasedOn="{StaticResource RadComboBoxStyle}"/>
    <Style x:Key="RadButtonStyle" TargetType="telerik1:RadButton">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Padding" Value="4 2"/>
        <Setter Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadButton">
                    <Border x:Name="BorderVisual"
                            SnapsToDevicePixels="True"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{TemplateBinding Background}"
                            CornerRadius="{TemplateBinding CornerRadius}">
                        <ContentPresenter x:Name="Content"
                                TextBlock.Foreground="{TemplateBinding Foreground}"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                RecognizesAccessKey="True"/>
                    </Border>
                    <ControlTemplate.Triggers>

                        <!-- background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>

                        <!-- disabled -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                        </MultiTrigger>

                        <!-- disabled & background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadPathButtonPathStyle" TargetType="Path">
        <Setter Property="Fill" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="Stretch" Value="Fill"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
    </Style>
    <Style x:Key="RadPathButtonStyle" TargetType="telerik1:RadPathButton">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Padding" Value="4 2"/>
        <Setter Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
        <Setter Property="PathStyle" Value="{StaticResource RadPathButtonPathStyle}"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadPathButton">
                    <Border x:Name="BorderVisual"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{TemplateBinding Background}"
                            CornerRadius="{TemplateBinding CornerRadius}"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                        <Grid Margin="{TemplateBinding Padding}">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Path x:Name="Path" Grid.Column="1" Grid.Row="1" Style="{TemplateBinding PathStyle}" Data="{TemplateBinding PathGeometry}"/>
                            <Grid x:Name="ContentHost" Grid.Column="1" Grid.Row="2" Margin="0 3 0 0">
                                <ContentPresenter x:Name="Content"
                                        TextBlock.Foreground="{TemplateBinding Foreground}"
                                        Margin="{TemplateBinding ContentMargin}"
                                        Content="{TemplateBinding Content}"
                                        ContentTemplate="{TemplateBinding ContentTemplate}"
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                        ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                        ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                        RecognizesAccessKey="True"/>
                            </Grid>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>

                        <!-- background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="true">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>

                        <!-- disabled -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                        </MultiTrigger>

                        <!-- disabled & background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>

                        <!-- content & content template are not preset -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="Content" Value="{x:Null}"/>
                                <Condition Property="ContentTemplate" Value="{x:Null}"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="ContentHost" Property="Visibility" Value="Collapsed"/>
                        </MultiTrigger>

                        <!-- content placement -->
                        <Trigger Property="ContentPlacement" Value="Left">
                            <Setter TargetName="ContentHost" Property="Grid.Column" Value="0"/>
                            <Setter TargetName="ContentHost" Property="Grid.Row" Value="1"/>
                            <Setter TargetName="ContentHost" Property="Margin" Value="0 0 3 0"/>
                        </Trigger>
                        <Trigger Property="ContentPlacement" Value="Right">
                            <Setter TargetName="ContentHost" Property="Grid.Column" Value="2"/>
                            <Setter TargetName="ContentHost" Property="Grid.Row" Value="1"/>
                            <Setter TargetName="ContentHost" Property="Margin" Value="3 0 0 0"/>
                        </Trigger>
                        <Trigger Property="ContentPlacement" Value="Top">
                            <Setter TargetName="ContentHost" Property="Grid.Column" Value="1"/>
                            <Setter TargetName="ContentHost" Property="Grid.Row" Value="0"/>
                            <Setter TargetName="ContentHost" Property="Margin" Value="0 0 0 3"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadToggleButtonStyle" TargetType="telerik1:RadToggleButton">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Padding" Value="4 2"/>
        <Setter Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadToggleButton">
                    <Border
                            SnapsToDevicePixels="True"
                            x:Name="BorderVisual"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{TemplateBinding Background}"
                            CornerRadius="{TemplateBinding CornerRadius}">
                        <ContentPresenter x:Name="Content"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                RecognizesAccessKey="True"/>
                    </Border>
                    <ControlTemplate.Triggers>

                        <!-- background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>

                        <!-- disabled -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                        </MultiTrigger>

                        <!-- disabled & background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>

                        <!-- disabled & checked -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsChecked" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadRadioButtonStyle" TargetType="telerik1:RadRadioButton">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Padding" Value="4 2"/>
        <Setter Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadRadioButton">
                    <Border x:Name="BorderVisual"
                            SnapsToDevicePixels="True"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{TemplateBinding Background}"
                            CornerRadius="{TemplateBinding CornerRadius}">
                        <ContentPresenter x:Name="Content"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                RecognizesAccessKey="True"/>
                    </Border>
                    <ControlTemplate.Triggers>

                        <!-- background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>

                        <!-- disabled -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                        </MultiTrigger>

                        <!-- disabled & background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>

                        <!-- disabled & checked -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsChecked" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadDropDownButtonStyle" TargetType="telerik1:RadDropDownButton">
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Padding" Value="4 2"/>
        <Setter Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
        <Setter Property="IsOpen" Value="false"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadDropDownButton">
                    <Grid SnapsToDevicePixels="True">
                        <Border x:Name="BorderVisual"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="{TemplateBinding CornerRadius}">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="*"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <ContentPresenter x:Name="Content"
                                        Grid.Row="1"
                                        Grid.Column="1"
                                        TextBlock.Foreground="{TemplateBinding Foreground}"
                                        Margin="{TemplateBinding Padding}"
                                        Content="{TemplateBinding Content}"
                                        ContentTemplate="{TemplateBinding ContentTemplate}"
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                        ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                        ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                        RecognizesAccessKey="True"/>
                                <Grid x:Name="DropDownIndicator"
                                        IsHitTestVisible="False"
                                        Grid.Column="1"
                                        Grid.Row="2"
                                        Margin="5 3"
                                        HorizontalAlignment="Center"
                                        Canvas.ZIndex="2"
                                        VerticalAlignment="Center"
                                        RenderTransformOrigin="0.5 0.5"
                                        Visibility="{TemplateBinding DropDownIndicatorVisibility}">
                                    <Path x:Name="arrow" Data="{StaticResource ArrowDown}" Fill="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
                                </Grid>
                            </Grid>
                        </Border>
                        <Popup x:Name="DropDownPopup" AllowsTransparency="True" StaysOpen="False" Focusable="False" Placement="Bottom" HorizontalOffset="0" VerticalOffset="1">
                            <Border x:Name="DropDownPopupBorder"
                                    BorderThickness="1"
                                    MinWidth="3"
                                    MinHeight="3"
                                    Width="{TemplateBinding DropDownWidth}"
                                    Height="{TemplateBinding DropDownHeight}"
                                    MaxWidth="{TemplateBinding DropDownMaxWidth}"
                                    MaxHeight="{TemplateBinding DropDownMaxHeight}"
                                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"
                                    Background="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                                    BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}">
                                <ContentControl x:Name="DropDownPopupContent"
                                        Content="{TemplateBinding DropDownContent}"
                                        HorizontalContentAlignment="Stretch"
                                        VerticalContentAlignment="Stretch"
                                        ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                        HorizontalAlignment="Stretch"
                                        VerticalAlignment="Stretch"
                                        DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"
                                        ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                        ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
                            </Border>
                        </Popup>
                    </Grid>
                    <ControlTemplate.Triggers>

                        <!-- background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="arrow" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="arrow" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                        <Trigger Property="IsOpen" Value="True">
                            <Setter TargetName="arrow" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
                        </Trigger>

                        <!-- disabled -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="arrow" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="arrow" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                        </MultiTrigger>

                        <!-- disabled & background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="arrow" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="arrow" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>
                        <Trigger Property="DropDownButtonPosition" Value="Bottom"/>
                        <Trigger Property="DropDownButtonPosition" Value="Left">
                            <Setter TargetName="DropDownIndicator" Property="Grid.Column" Value="0"/>
                            <Setter TargetName="DropDownIndicator" Property="Grid.Row" Value="1"/>
                        </Trigger>
                        <Trigger Property="DropDownButtonPosition" Value="Top">
                            <Setter TargetName="DropDownIndicator" Property="Grid.Column" Value="1"/>
                            <Setter TargetName="DropDownIndicator" Property="Grid.Row" Value="0"/>
                        </Trigger>
                        <Trigger Property="DropDownButtonPosition" Value="Right">
                            <Setter TargetName="DropDownIndicator" Property="Grid.Column" Value="2"/>
                            <Setter TargetName="DropDownIndicator" Property="Grid.Row" Value="1"/>
                        </Trigger>
                        <Trigger Property="DropDownPlacement" Value="Bottom"/>
                        <Trigger Property="DropDownPlacement" Value="Top">
                            <Setter TargetName="DropDownPopup" Property="HorizontalOffset" Value="0"/>
                            <Setter TargetName="DropDownPopup" Property="VerticalOffset" Value="-1"/>
                            <Setter TargetName="DropDownIndicator" Property="RenderTransform">
                                <Setter.Value>
                                    <TransformGroup>
                                        <RotateTransform Angle="180"/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="DropDownPlacement" Value="Left">
                            <Setter TargetName="DropDownPopup" Property="HorizontalOffset" Value="-1"/>
                            <Setter TargetName="DropDownPopup" Property="VerticalOffset" Value="0"/>
                            <Setter TargetName="DropDownIndicator" Property="RenderTransform">
                                <Setter.Value>
                                    <TransformGroup>
                                        <RotateTransform Angle="90"/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="DropDownPlacement" Value="Right">
                            <Setter TargetName="DropDownPopup" Property="HorizontalOffset" Value="1"/>
                            <Setter TargetName="DropDownPopup" Property="VerticalOffset" Value="0"/>
                            <Setter TargetName="DropDownIndicator" Property="RenderTransform">
                                <Setter.Value>
                                    <TransformGroup>
                                        <RotateTransform Angle="-90"/>
                                    </TransformGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="SplitToggleButtonStyle" TargetType="telerik1:RadToggleButton" BasedOn="{StaticResource RadToggleButtonStyle}">
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="Padding" Value="4 8"/>
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadToggleButton">
                    <Border
                            SnapsToDevicePixels="True"
                            x:Name="BorderVisual"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{TemplateBinding Background}"
                            CornerRadius="{TemplateBinding CornerRadius}">
                        <ContentPresenter x:Name="Content"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                RecognizesAccessKey="True"/>
                    </Border>
                    <ControlTemplate.Triggers>

                        <!-- background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True"/>
                                <Condition Property="IsChecked" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True"/>
                                <Condition Property="IsChecked" Value="True"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </MultiTrigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>

                        <!-- disabled -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                        </MultiTrigger>

                        <!-- disabled & background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="Transparent"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadSplitButtonStyle" TargetType="telerik1:RadSplitButton">
        <Setter Property="ButtonPartStyle" Value="{StaticResource RadButtonStyle}"/>
        <Setter Property="TogglePartStyle" Value="{StaticResource SplitToggleButtonStyle}"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="4 2"/>
        <Setter Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="IsTabStop" Value="true"/>
        <Setter Property="IsOpen" Value="false"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1:RadSplitButton">
                    <Grid SnapsToDevicePixels="True">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Border x:Name="OpenVisual"
                                    Grid.RowSpan="3"
                                    Grid.ColumnSpan="3"
                                    Background="{TemplateBinding Background}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                                    Visibility="Collapsed"/>
                            <telerik1:RadButton x:Name="ButtonPart"
                                    IsTabStop="False"
                                    Grid.Row="1"
                                    Grid.Column="1"
                                    Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay, Path=IsButtonPartVisible, Converter={StaticResource BooleanToVisibilityConverter}}"
                                    Background="{TemplateBinding Background}"
                                    Style="{TemplateBinding ButtonPartStyle}"
                                    Padding="{TemplateBinding Padding}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    IsBackgroundVisible="{TemplateBinding IsBackgroundVisible}"
                                    Foreground="{TemplateBinding Foreground}"
                                    FontSize="{TemplateBinding FontSize}"
                                    Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}"
                                    HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                                    MinHeight="{TemplateBinding MinHeight}"
                                    ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                                    ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                    Focusable="False"/>
                            <telerik1:RadToggleButton x:Name="DropDownPart"
                                    Margin="-1 0 0 0"
                                    Grid.Row="1"
                                    Grid.Column="2"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    Background="{TemplateBinding Background}"
                                    Style="{TemplateBinding TogglePartStyle}"
                                    Visibility="{TemplateBinding DropDownIndicatorVisibility}"
                                    FontSize="{TemplateBinding FontSize}"
                                    IsBackgroundVisible="{TemplateBinding IsBackgroundVisible}"
                                    IsChecked="{Binding Path=IsOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                                <telerik1:RadToggleButton.Content>
                                    <Path x:Name="PART_DropDownIndicator"
                                            Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=telerik1:RadToggleButton}}"
                                            IsHitTestVisible="False"
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Center"
                                            Data="{StaticResource ArrowDown}"
                                            RenderTransformOrigin="0.5 0.5"
                                            SnapsToDevicePixels="True"/>
                                </telerik1:RadToggleButton.Content>
                            </telerik1:RadToggleButton>
                        </Grid>
                        <Border x:Name="BorderVisual"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                CornerRadius="{TemplateBinding CornerRadius}"
                                Background="{x:Null}"
                                SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                                IsHitTestVisible="False"/>
                        <Popup x:Name="DropDownPopup" AllowsTransparency="True" StaysOpen="False" Focusable="False" Placement="Bottom" HorizontalOffset="0" VerticalOffset="1">
                            <Border x:Name="DropDownPopupBorder"
                                    BorderThickness="1"
                                    MinWidth="3"
                                    MinHeight="3"
                                    Width="{TemplateBinding DropDownWidth}"
                                    Height="{TemplateBinding DropDownHeight}"
                                    MaxWidth="{TemplateBinding DropDownMaxWidth}"
                                    MaxHeight="{TemplateBinding DropDownMaxHeight}"
                                    Background="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                                    BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}"
                                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}">
                                <ContentControl x:Name="DropDownPopupContent"
                                        Content="{TemplateBinding DropDownContent}"
                                        ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                        HorizontalContentAlignment="Stretch"
                                        VerticalContentAlignment="Stretch"
                                        HorizontalAlignment="Stretch"
                                        VerticalAlignment="Stretch"
                                        DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DataContext}"/>
                            </Border>
                        </Popup>
                    </Grid>
                    <ControlTemplate.Triggers>

                        <!-- background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True"/>
                                <Condition Property="IsOpen" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                            <Setter TargetName="DropDownPart" Property="Background" Value="Transparent"/>
                            <Setter TargetName="DropDownPart" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>

                        <!-- focused -->
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>

                        <!-- mouse over & opened -->
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="DropDownPart" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="DropDownPart" Property="Foreground" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>

                        <!-- disabled -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="DropDownPart" Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                        </MultiTrigger>

                        <!-- disabled & background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="False"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="DropDownPart" Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="Transparent"/>
                            <Setter TargetName="DropDownPart" Property="Background" Value="Transparent"/>
                            <Setter TargetName="DropDownPart" Property="BorderBrush" Value="Transparent"/>
                        </MultiTrigger>

                        <!-- enabled & opened & background is hidden -->
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="True"/>
                                <Condition Property="IsOpen" Value="True"/>
                                <Condition Property="IsBackgroundVisible" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter TargetName="OpenVisual" Property="Visibility" Value="Visible"/>
                        </MultiTrigger>

                        <!-- DropDownButton Position -->
                        <Trigger Property="DropDownButtonPosition" Value="Bottom">
                            <Setter TargetName="DropDownPart" Property="Grid.Column" Value="1"/>
                            <Setter TargetName="DropDownPart" Property="Grid.Row" Value="2"/>
                            <Setter TargetName="DropDownPart" Property="Margin" Value="0 -1 0 0"/>
                            <Setter TargetName="DropDownPart" Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadiusBottom}"/>
                            <Setter TargetName="ButtonPart" Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadiusTop}"/>
                        </Trigger>
                        <Trigger Property="DropDownButtonPosition" Value="Left">
                            <Setter TargetName="DropDownPart" Property="Grid.Column" Value="0"/>
                            <Setter TargetName="DropDownPart" Property="Grid.Row" Value="1"/>
                            <Setter TargetName="DropDownPart" Property="Margin" Value="0 0 -1 0"/>
                            <Setter TargetName="DropDownPart" Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadiusLeft}"/>
                            <Setter TargetName="ButtonPart" Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadiusRight}"/>
                        </Trigger>
                        <Trigger Property="DropDownButtonPosition" Value="Top">
                            <Setter TargetName="DropDownPart" Property="Grid.Column" Value="1"/>
                            <Setter TargetName="DropDownPart" Property="Grid.Row" Value="0"/>
                            <Setter TargetName="DropDownPart" Property="Margin" Value="0 0 0 -1"/>
                            <Setter TargetName="DropDownPart" Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadiusTop}"/>
                            <Setter TargetName="ButtonPart" Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadiusBottom}"/>
                        </Trigger>
                        <Trigger Property="DropDownButtonPosition" Value="Right">
                            <Setter TargetName="DropDownPart" Property="Grid.Column" Value="2"/>
                            <Setter TargetName="DropDownPart" Property="Grid.Row" Value="1"/>
                            <Setter TargetName="DropDownPart" Property="Margin" Value="-1 0 0 0"/>
                            <Setter TargetName="DropDownPart" Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadiusRight}"/>
                            <Setter TargetName="ButtonPart" Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadiusLeft}"/>
                        </Trigger>
                        <Trigger Property="DropDownPlacement" Value="Bottom"/>
                        <Trigger Property="DropDownPlacement" Value="Top">
                            <Setter TargetName="DropDownPopup" Property="HorizontalOffset" Value="0"/>
                            <Setter TargetName="DropDownPopup" Property="VerticalOffset" Value="-1"/>
                        </Trigger>
                        <Trigger Property="DropDownPlacement" Value="Left">
                            <Setter TargetName="DropDownPopup" Property="HorizontalOffset" Value="-1"/>
                            <Setter TargetName="DropDownPopup" Property="VerticalOffset" Value="0"/>
                        </Trigger>
                        <Trigger Property="DropDownPlacement" Value="Right">
                            <Setter TargetName="DropDownPopup" Property="HorizontalOffset" Value="1"/>
                            <Setter TargetName="DropDownPopup" Property="VerticalOffset" Value="0"/>
                        </Trigger>

                        <!-- ButtonPartVisibility - Hidden -->
                        <Trigger Property="IsButtonPartVisible" Value="False">
                            <Setter TargetName="DropDownPart" Property="Margin" Value="0"/>
                            <Setter TargetName="DropDownPart" Property="Grid.Row" Value="0"/>
                            <Setter TargetName="DropDownPart" Property="Grid.RowSpan" Value="3"/>
                            <Setter TargetName="DropDownPart" Property="Grid.Column" Value="0"/>
                            <Setter TargetName="DropDownPart" Property="Grid.ColumnSpan" Value="3"/>
                            <Setter TargetName="DropDownPart" Property="IsTabStop" Value="True"/>
                            <Setter TargetName="DropDownPart" Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
                            <Setter TargetName="ButtonPart" Property="Visibility" Value="Collapsed"/>
                        </Trigger>

                        <!-- DropDownIndicatorVisibility - Hidden -->
                        <Trigger Property="DropDownIndicatorVisibility" Value="Collapsed">
                            <Setter TargetName="ButtonPart" Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
                        </Trigger>

                        <!-- IsPressed -->
                        <DataTrigger Binding="{Binding ElementName=ButtonPart, Path=IsPressed}" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="DropDownPart" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding ElementName=DropDownPart, Path=IsPressed}" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerik1:RadButton" BasedOn="{StaticResource RadButtonStyle}"/>
    <Style TargetType="telerik1:RadPathButton" BasedOn="{StaticResource RadPathButtonStyle}"/>
    <Style TargetType="telerik1:RadToggleButton" BasedOn="{StaticResource RadToggleButtonStyle}"/>
    <Style TargetType="telerik1:RadRadioButton" BasedOn="{StaticResource RadRadioButtonStyle}"/>
    <Style TargetType="telerik1:RadDropDownButton" BasedOn="{StaticResource RadDropDownButtonStyle}"/>
    <Style TargetType="telerik1:RadSplitButton" BasedOn="{StaticResource RadSplitButtonStyle}"/>
    <Style x:Key="IncreaseHandleStyle" TargetType="RepeatButton">
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="UseLayoutRounding" Value="False"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Width" Value="18"/>
        <Setter Property="Height" Value="18"/>
        <Setter Property="Margin" Value="4 1 0 1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid>
                        <Border x:Name="BorderVisual"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <Path
                                Fill="{telerik1:GreenResource ResourceKey=StrongBrush}"
                                x:Name="Path"
                                Stretch="Fill"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Data="{StaticResource ArrowRight5x9}"
                                Width="5"
                                Height="9"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Path" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DecreaseHandleStyle" TargetType="RepeatButton">
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Width" Value="18"/>
        <Setter Property="Height" Value="18"/>
        <Setter Property="Margin" Value="0 1 4 1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid>
                        <Border x:Name="BorderVisual"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <Path
                                Fill="{telerik1:GreenResource ResourceKey=StrongBrush}"
                                x:Name="Path"
                                Stretch="Fill"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Data="{StaticResource ArrowLeft5x9}"
                                Width="5"
                                Height="9"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Path" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="Thumb" x:Key="ThumbStyle">
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Width" Value="6"/>
        <Setter Property="Height" Value="14"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Focusable" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Border x:Name="BorderVisual"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            Background="{TemplateBinding Background}"/>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsDragging" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=ComplementaryBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=ComplementaryBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="Thumb" x:Key="SelectionMiddleThumbStyle">
        <Setter Property="Height" Value="4"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="Focusable" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid>
                        <Border x:Name="BorderVisual" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsDragging" Value="True">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=ComplementaryBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=ComplementaryBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="DefaultTicksTemplate">
        <Rectangle Width="1" ToolTipService.ToolTip="{Binding}" Height="5" Fill="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
    </DataTemplate>
    <Style TargetType="telerik1:RadTickBar" x:Key="RadTickBarStyle">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerik1:TickBarPanel Background="Transparent"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="ContentControl" x:Key="TrackStyle">
        <Setter Property="Height" Value="4"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="RepeatButton" x:Key="LargeHandleStyle">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="RepeatButton">
                    <Grid Background="Transparent"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerik1:RadSlider" x:Key="RadSliderStyle">
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=LowBrush}"/>
        <Setter Property="TickTemplate" Value="{StaticResource DefaultTicksTemplate}"/>
        <Setter Property="ThumbStyle" Value="{StaticResource ThumbStyle}"/>
        <Setter Property="AlternateThumbStyle" Value="{StaticResource ThumbStyle}"/>
        <Setter Property="SelectionMiddleThumbStyle" Value="{StaticResource SelectionMiddleThumbStyle}"/>
        <Setter Property="TickBarStyle" Value="{StaticResource RadTickBarStyle}"/>
        <Setter Property="TrackStyle" Value="{StaticResource TrackStyle}"/>
        <Setter Property="IncreaseHandleStyle" Value="{StaticResource IncreaseHandleStyle}"/>
        <Setter Property="DecreaseHandleStyle" Value="{StaticResource DecreaseHandleStyle}"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik1: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="CommonStates">
                                <VisualState x:Name="Normal"/>
                            </VisualStateGroup>
                            <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>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BottomTickBar" Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <ScaleTransform ScaleX="-1"/>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TopTickBar" Storyboard.TargetProperty="RenderTransform">
                                            <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>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BottomTickBar" Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <ScaleTransform ScaleY="-1"/>
                                                        <RotateTransform Angle="-180"/>
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="TopTickBar" Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <ScaleTransform ScaleY="-1"/>
                                                        <RotateTransform Angle="-180"/>
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid UseLayoutRounding="True">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <telerik1:RadTickBar x:Name="TopTickBar"
                                    Grid.Column="1"
                                    Grid.ColumnSpan="3"
                                    ItemTemplate="{TemplateBinding TickTemplate}"
                                    ItemsSource="{TemplateBinding ResultTicks}"
                                    ItemTemplateSelector="{TemplateBinding TickTemplateSelector}"
                                    Maximum="{TemplateBinding Maximum}"
                                    Minimum="{TemplateBinding Minimum}"
                                    IsDirectionReversed="{TemplateBinding IsDirectionReversed}"
                                    Style="{TemplateBinding TickBarStyle}"
                                    RenderTransformOrigin="0.5,0.5">
                                <telerik1:RadTickBar.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </telerik1:RadTickBar.RenderTransform>
                            </telerik1:RadTickBar>
                            <ContentControl
                                    Style="{TemplateBinding TrackStyle}"
                                    x:Name="Track"
                                    Grid.Column="1"
                                    Grid.ColumnSpan="3"
                                    Grid.Row="1"
                                    VerticalAlignment="Center"
                                    Background="{TemplateBinding Background}"/>
                            <RepeatButton x:Name="DecreaseButton"
                                    Grid.Row="1"
                                    Delay="{TemplateBinding Delay}"
                                    Interval="{TemplateBinding RepeatInterval}"
                                    Visibility="{TemplateBinding HandlesVisibility}"
                                    Style="{TemplateBinding DecreaseHandleStyle}"/>
                            <RepeatButton x:Name="LargeDecreaseButton"
                                    Grid.Column="1"
                                    Grid.Row="1"
                                    Style="{StaticResource LargeHandleStyle}"
                                    Delay="{TemplateBinding Delay}"
                                    Interval="{TemplateBinding RepeatInterval}"/>
                            <Grid Grid.Row="1" Grid.Column="2">
                                <Thumb x:Name="SingleThumbHost" Style="{TemplateBinding ThumbStyle}" Visibility="{TemplateBinding ThumbVisibility}"/>
                                <StackPanel x:Name="RangeThumbsPanel" Orientation="Horizontal" Visibility="Collapsed">
                                    <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"
                                    Grid.Row="1"
                                    Style="{StaticResource 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}"/>
                            <telerik1:RadTickBar x:Name="BottomTickBar"
                                    Grid.Row="2"
                                    Grid.Column="1"
                                    Grid.ColumnSpan="3"
                                    Maximum="{TemplateBinding Maximum}"
                                    Minimum="{TemplateBinding Minimum}"
                                    ItemsSource="{TemplateBinding ResultTicks}"
                                    ItemTemplate="{TemplateBinding TickTemplate}"
                                    ItemTemplateSelector="{TemplateBinding TickTemplateSelector}"
                                    IsDirectionReversed="{TemplateBinding IsDirectionReversed}"
                                    Style="{TemplateBinding TickBarStyle}"
                                    RenderTransformOrigin="0.5,0.5">
                                <telerik1:RadTickBar.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </telerik1:RadTickBar.RenderTransform>
                            </telerik1:RadTickBar>
                        </Grid>
                    </telerikPrimitives:LayoutTransformControl>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsSelectionRangeEnabled" Value="True">
                            <Setter TargetName="SingleThumbHost" Property="Visibility" Value="Collapsed"/>
                            <Setter TargetName="RangeThumbsPanel" Property="Visibility" Value="Visible"/>
                        </Trigger>
                        <Trigger Property="TickPlacement" Value="None">
                            <Setter TargetName="TopTickBar" Property="Visibility" Value="Collapsed"/>
                            <Setter TargetName="BottomTickBar" Property="Visibility" Value="Collapsed"/>
                        </Trigger>
                        <Trigger Property="TickPlacement" Value="Both">
                            <Setter TargetName="TopTickBar" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="BottomTickBar" Property="Visibility" Value="Visible"/>
                        </Trigger>
                        <Trigger Property="TickPlacement" Value="BottomRight">
                            <Setter TargetName="TopTickBar" Property="Visibility" Value="Collapsed"/>
                            <Setter TargetName="BottomTickBar" Property="Visibility" Value="Visible"/>
                        </Trigger>
                        <Trigger Property="TickPlacement" Value="TopLeft">
                            <Setter TargetName="TopTickBar" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="BottomTickBar" Property="Visibility" Value="Collapsed"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerik1:RadTickBar" BasedOn="{StaticResource RadTickBarStyle}"/>
    <Style TargetType="telerik1:RadSlider" BasedOn="{StaticResource RadSliderStyle}"/>
    <extensions:BooleanToFontWeightConverter x:Key="BooleanToFontWeightConverter"/>
    <extensions:BooleanToFontStyleConverter x:Key="BooleanToFontStyleConverter"/>
    <extensions:DoubleToSizeConverter x:Key="DoubleToSizeConverter"/>
    <extensions:PercentageConverter x:Key="PercentageConverter"/>
    <DataTemplate x:Key="SourceCapTypeItemTemplate">
        <Viewbox Stretch="Fill" VerticalAlignment="Center">
            <Canvas Width="60" Height="1" Margin="0 1 0 0" UseLayoutRounding="True">
                <telerik:RadDiagramConnection
                        SourceCapType="{Binding}"
                        FlowDirection="LeftToRight"
                        Background="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                        Stroke="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                        TargetCapType="None"
                        StartPoint="-1,0"
                        EndPoint="60,0"
                        VerticalAlignment="Center"/>
            </Canvas>
        </Viewbox>
    </DataTemplate>
    <DataTemplate x:Key="PaneCloseButtonDataTemplate">
        <Path Data="{StaticResource CloseIcon10x10}" Stretch="None" Fill="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"/>
    </DataTemplate>
    <DataTemplate x:Key="TargetCapTypeItemTemplate">
        <Viewbox Stretch="Fill" VerticalAlignment="Center">
            <Canvas Width="60" Height="1" Margin="0 1 0 0" UseLayoutRounding="True">
                <telerik:RadDiagramConnection
                        SourceCapType="None"
                        FlowDirection="LeftToRight"
                        Background="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                        Stroke="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                        TargetCapType="{Binding}"
                        StartPoint="0,0"
                        EndPoint="60,0"
                        VerticalAlignment="Center"/>
            </Canvas>
        </Viewbox>
    </DataTemplate>
    <DataTemplate x:Key="FontFamilyItemTemplate">
        <TextBlock Text="{Binding}" FontFamily="{Binding}"/>
    </DataTemplate>
    <DataTemplate x:Key="PaneOpenCloseButtonContentTemplate">
        <Path Stretch="Fill" Data="{StaticResource SettingsIcon}" Fill="{Binding (TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}"/>
    </DataTemplate>
    <sys:Double x:Key="PaneGeometryButtonHeight">36</sys:Double>
    <DropShadowEffect x:Key="DiagramEffect" BlurRadius="3" Opacity="0.1" ShadowDepth="3"/>
    <Style TargetType="Path" x:Key="PaneHorizontalSeparator">
        <Setter Property="Stretch" Value="Fill"/>
        <Setter Property="Stroke" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="Width" Value="222"/>
        <Setter Property="Height" Value="1"/>
    </Style>
    <Style TargetType="TextBlock" x:Key="ButtonTextBlockStyle">
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="FontWeight" Value="Normal"/>
    </Style>
    <Style TargetType="ContentControl" x:Key="ContentTextBlockStyle">
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="FontWeight" Value="Normal"/>
    </Style>
    <ItemsPanelTemplate x:Key="PaneTabControlItemsPanel">
        <telerik:RadUniformGrid Rows="1"/>
    </ItemsPanelTemplate>
    <sys:Double x:Key="PaneNumericUpDownLargeChange">10</sys:Double>
    <sys:Double x:Key="PaneNumericUpDownSmallChange">10</sys:Double>
    <sys:Int32 x:Key="PaneNumericUpDownNumberDecimalDigits">1</sys:Int32>
    <DataTemplate x:Key="StrokeDashArrayItemTemplate">
        <Grid Height="20" Width="160">
            <Path
                    Data="M0,0 L215,0"
                    Margin="5"
                    VerticalAlignment="Center"
                    StrokeDashArray="{Binding}"
                    Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                    Stroke="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="ColorStyleTemplate">
        <Rectangle HorizontalAlignment="Center" StrokeThickness="1" Width="22" Height="22" Stroke="{Binding Path=Stroke, Mode=TwoWay}" Fill="{Binding Path=Fill, Mode=TwoWay}"/>
    </DataTemplate>
    <Style x:Key="PaneListBoxItemStyle" TargetType="ListBoxItem" BasedOn="{StaticResource ListBoxItemStyle}">
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Margin" Value="2"/>
        <Setter Property="Width" Value="28"/>
        <Setter Property="Height" Value="26"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
    </Style>
    <Style x:Key="PaneListBoxStyle" TargetType="ListBox" BasedOn="{StaticResource ListBoxStyle}">
        <Setter Property="ItemContainerStyle" Value="{StaticResource PaneListBoxItemStyle}"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="ItemTemplate" Value="{StaticResource ColorStyleTemplate}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBox">
                    <ScrollViewer
                            BorderThickness="{TemplateBinding BorderThickness}"
                            x:Name="ScrollViewer"
                            Padding="{TemplateBinding Padding}"
                            BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}"
                            VerticalScrollBarVisibility="Auto"
                            Background="{TemplateBinding Background}">
                        <ItemsPresenter/>
                    </ScrollViewer>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerik:RadUniformGrid Columns="6"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="telerik:RadComboBoxItem" BasedOn="{StaticResource RadComboBoxItemStyle}" x:Key="CommonComboBoxItemStyle">
        <Setter Property="MinHeight" Value="22"/>
    </Style>
    <Style TargetType="telerik:RadComboBox" x:Key="PaneComboStyle" BasedOn="{StaticResource RadComboBoxStyle}">
        <Setter Property="ItemContainerStyle" Value="{StaticResource CommonComboBoxItemStyle}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="MinHeight" Value="22"/>
    </Style>
    <Style TargetType="extensions:RadGeometryButton" x:Key="RadCustomGeometryButtonStyle">
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="CornerRadius" Value="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="38"/>
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="38"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadGeometryButton">
                    <Grid Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid Background="Transparent">
                            <Border x:Name="BorderVisual"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{TemplateBinding Background}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    CornerRadius="{TemplateBinding CornerRadius}"
                                    Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                    Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"/>
                            <Path x:Name="Path"
                                    Data="{TemplateBinding Geometry}"
                                    Margin="{TemplateBinding Padding}"
                                    Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding Path=(extensions:GeometryButtons.GeometryStrokeThickness), RelativeSource={RelativeSource TemplatedParent}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                    Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                    Stretch="None"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <ContentControl x:Name="Content"
                                Grid.Row="1"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                HorizontalAlignment="Center"
                                Style="{StaticResource ContentTextBlockStyle}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
                            <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                            <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:SettingsPaneHomeControl" x:Key="SettingsPaneHomeControlStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:SettingsPaneHomeControl">
                    <StackPanel>
                        <telerik:RadUniformGrid HorizontalAlignment="Stretch" Margin="15" Rows="1">
                            <telerik:RadRadioButton x:Name="generalTabButton"
                                    IsChecked="True"
                                    GroupName="HeaderGroup"
                                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadiusLeft}"
                                    Content="{telerik:LocalizableResource Key=SettingsPane_GeneralTab}"
                                    Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"
                                    FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                                    MinHeight="22"
                                    FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                    BorderThickness="1"
                                    Background="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                                    BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}"
                                    HorizontalContentAlignment="Center"
                                    VerticalContentAlignment="Center"/>
                            <Grid>
                                <telerik:RadRadioButton x:Name="arrangeTabButton"
                                        GroupName="HeaderGroup"
                                        CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadiusRight}"
                                        Content="{telerik:LocalizableResource Key=SettingsPane_ArrangeTab}"
                                        Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"
                                        FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                                        MinHeight="22"
                                        FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                        BorderThickness="1"
                                        Background="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                                        BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}"
                                        HorizontalContentAlignment="Center"
                                        VerticalContentAlignment="Center"/>
                            </Grid>
                        </telerik:RadUniformGrid>
                        <Grid Margin="15 0">
                            <StackPanel Visibility="{Binding IsChecked, ElementName=generalTabButton, Converter={StaticResource BooleanToVisibilityConverter}}">
                                <Grid HorizontalAlignment="Stretch">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <extensions:RadGeometryButton
                                            Geometry="M4,4L9,4L9,10L10,10L10,4L10,4L16,10L16,10L14,10L9,10L9,11L14,11L16,11L16,11L16,20L4,20L4,17L4,17zM0,0L6,0L8,3L3,3L3,4L3,17L0,17z"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Copy}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Copy}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M12.5,15C11.7,15 11,15.6 11,16.4C11,17.2 11.7,18 12.5,18C13.3,18 14,17.2 14,16.4C14,15.6 13.3,15 12.5,15zM3.5,15C2.7,15 2,15.6 2,16.4C2,17.2 2.7,18 3.5,18C4.3,18 5,17.2 5,16.4C5,15.6 4.3,15 3.5,15zM11.7,0L13.4,1L9,8.5L11.7,13L11.8,13C12,13 12.2,13 12.5,13C14.4,13 16,14.5 16,16.4C16,18.4 14.4,20 12.5,20C10.5,20 9,18.4 9,16.4C9,15.5 9.3,14.7 10,14L10,14L8,10.5L6,14L6,14C6.6,14.6 7,15.5 7,16.4C7,18.4 5.4,20 3.5,20C1.6,20 0,18.4 0,16.4C0,14.5 1.6,13 3.5,13C3.7,13 3.8,13 4,13L4.2,13L6.8,8.5L2.5,1L4.2,0L8,6.5z"
                                            Grid.Column="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Cut}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Cut}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M11,7L16,12L11,12zM5,7L10,7L10,13L16,13L16,21L5,21zM0,3C0,3 14,3 14,3L14,8L12,6L4,6L4,19L0,19zM5,0L9,0C9.5,0 10,0.5 10,1L10,2L4,2L4,1C4,0.5 4.5,0 5,0z"
                                            Grid.Column="4"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Paste}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Paste}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M3,20L3,6L5,6L5,18L7,18L7,6L9,6L9,18L11,18L11,6L13,6L13,18L15,18L15,6L17,6L17,20zM5,0L15,0L15,2L20,2L20,4L0,4L0,2L5,2z"
                                            Grid.Column="6"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Delete}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Delete}"/>
                                </Grid>
                                <Path Data="M0,0L212,0" StrokeDashArray="2 2" Style="{StaticResource PaneHorizontalSeparator}" Margin="0 15"/>
                                <Grid HorizontalAlignment="Stretch">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <extensions:RadGeometryButton
                                            Geometry="M0,0L14,0L14,6L20,6L20,20L20,20L6,20L6,14L0,14L0,14z"
                                            extensions:GeometryButtons.EllipseWidth="98"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Group}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Group}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M14,8L14,14L8,14L8,18L18,18L18,8zM8,8L8,12L12,12L12,8zM2,2L2,12L6,12L6,6L12,6L12,2zM0,0L14,0L14,6L20,6L20,20L6,20L6,14L0,14z"
                                            extensions:GeometryButtons.EllipseWidth="98"
                                            Grid.Column="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_Ungroup}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.Ungroup}"/>
                                </Grid>
                            </StackPanel>
                            <StackPanel Visibility="{Binding IsChecked, ElementName=arrangeTabButton, Converter={StaticResource BooleanToVisibilityConverter}}">
                                <Grid HorizontalAlignment="Stretch">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <extensions:RadGeometryButton
                                            Geometry="M14,14.0 L14,18 L18,18 L18,14.0 z M12,12.0 L14,12.0 L18,12.0 L19,12.0 L20,12.0 L20,20 L19,20 L18,20 L12,20 L12,19 L12,18 L12,14.0 z M9,4.0 L15.9,4.0 L15.9,11.0 L15.0,11.0 L10.9,11.0 L10.9,16 L3.9,16 L3.9,10.0 L4.0,9.0 L9,9.0 z M1.9,2 L1.9,6 L5.9,6 L5.9,2 z M0,0 L1.9,0 L5.9,0 L6.9,0 L7.9,0 L7.9,8 L6.9,8 L5.9,8 L0,8 L0,7 L0,6 L0,2 z"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_GoToBack}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.SendToBack}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M10,10 L10,18 L18,18 L18,10 z M8,8 L18,8 L20,8 L20,10 L20,18 L20,20 L18,20 L10,20 L8,20 L8,18 L8,10 z M0,0 L7,0 L14,0 L14,7 L7,7 L7,14 L0,14 L0,7 z"
                                            Grid.Column="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_SendBackward}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.SendBackward}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M0,0 L14,0 L14,14 L10,14 L10,18 L18,18 L18,10 L14.0,10 L14.0,8 L20,8 L20,10 L20,18 L20,20 L18,20 L10,20 L9,20 L8,20 L8,14 L0,14 z"
                                            Grid.Column="4"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_SendForward}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.BringForward}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M16,14 L16,16 L14,16 L14,18 L18,18 L18,14 z M1.9,1.9 L1.9,6 L4,6 L4,4 L6,4 L6,1.9 z M0,0 L0.9,0 L1.9,0 L8,0 L8,0.9 L8,1.9 L8,4 L16,4 L16,12 L20,12 L20,14 L20,18 L20,19 L20,20 L14,20 L12,20 L12,18 L12,16 L4,16 L4,8 L1.9,8 L0,8 L0,6 z"
                                            Grid.Column="6"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_GoToFront}"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            Command="{x:Static telerik:DiagramCommands.BringToFront}"/>
                                </Grid>
                                <Path Data="M0,0L222,0" StrokeDashArray="2 2" Style="{StaticResource PaneHorizontalSeparator}" Margin="0 15"/>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition MinHeight="10"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <extensions:RadGeometryButton
                                            Geometry="M0,11 L15,11 L15,18 L0,18 z M19,0 L21,0 L21,18 L19,18 z M6,0 L15,0 L15,7 L6,7 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Right"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignRight}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M8,0 L10,0 L10,1 L14,1 L14,8 L10,8 L10,12 L18,12 L18,19 L10,19 L10,20 L8,20 L8,19 L0,19 L0,12 L8,12 L8,8 L4,8 L4,1 L8,1 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Center"
                                            Grid.Column="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignCenter}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M6,11 L21,11 L21,18 L6,18 z M6,0 L15,0 L15,7 L6,7 z M0,0 L2,0 L2,18 L0,18 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Left"
                                            Grid.Column="4"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignLeft}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M11,6 L18,6 L18,12 L11,12 z M0,6 L7,6 L7,18 L0,18 z M0,0 L18,0 L18,2 L0,2 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Top"
                                            Grid.Row="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignTop}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M1,0 L8,0 L8,8 L12,8 L12,4 L19,4 L19,8 L20,8 L20,10 L19,10 L19,14 L12,14 L12,10 L8,10 L8,18 L1,18 L1,10 L0,10 L0,8 L1,8 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Middle"
                                            Grid.Row="2"
                                            Grid.Column="2"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignMiddle}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                    <extensions:RadGeometryButton
                                            Geometry="M0,16 L18,16 L18,18 L0,18 z M11,6 L18,6 L18,12 L11,12 z M0,0 L7,0 L7,12 L0,12 z"
                                            Style="{StaticResource RadCustomGeometryButtonStyle}"
                                            CommandParameter="Bottom"
                                            Grid.Row="2"
                                            Grid.Column="4"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_AlignBottom}"
                                            extensions:GeometryButtons.EllipseWidth="57"
                                            Command="{x:Static telerik:DiagramCommands.Align}"/>
                                </Grid>
                            </StackPanel>
                        </Grid>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:SettingsPaneSizeControl" x:Key="SettingsPaneSizeControlStyle">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="extensions:SettingsPaneSizeControl">
                        <StackPanel Margin="15 15 15 0">
                            <Grid Margin="0 0 0 10">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Left" Height="20" Width="20">
                                    <Rectangle RadiusX="2" RadiusY="2" Stroke="{telerik1:GreenResource ResourceKey=AccentLowBrush}" StrokeThickness="2"/>
                                    <Path Data="{StaticResource HorizontalSizeIcon}" Fill="{telerik1:GreenResource ResourceKey=AccentLowBrush}" Margin="2 6" Stretch="Fill"/>
                                </Grid>
                                <telerik:RadNumericUpDown
                                        Minimum="0"
                                        Maximum="10000"
                                        CustomUnit="px"
                                        LargeChange="{StaticResource PaneNumericUpDownLargeChange}"
                                        SmallChange="{StaticResource PaneNumericUpDownSmallChange}"
                                        NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                        FontSize="12"
                                        extensions:SettingsPaneView.EditorPropertyName="Width"
                                        extensions:SettingsPaneView.EditorFallbackPropertyName="ActualWidth"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Custom"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                        Grid.Column="1"
                                        Margin="9 0 0 0"/>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Left" Height="20" Width="20">
                                    <Rectangle RadiusX="2" RadiusY="2" Stroke="{telerik1:GreenResource ResourceKey=AccentLowBrush}" StrokeThickness="2"/>
                                    <Path Data="{StaticResource VerticalSizeIcon}" Fill="{telerik1:GreenResource ResourceKey=AccentLowBrush}" Margin="6 2" Stretch="Fill"/>
                                </Grid>
                                <telerik:RadNumericUpDown
                                        Minimum="0"
                                        Maximum="10000"
                                        CustomUnit="px"
                                        LargeChange="{StaticResource PaneNumericUpDownLargeChange}"
                                        SmallChange="{StaticResource PaneNumericUpDownSmallChange}"
                                        NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                        FontSize="12"
                                        extensions:SettingsPaneView.EditorPropertyName="Height"
                                        extensions:SettingsPaneView.EditorFallbackPropertyName="ActualHeight"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Custom"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                        Grid.Column="1"
                                        Margin="10 0 0 0"/>
                            </Grid>
                            <Path Data="M0,0L222,0" StrokeDashArray="2 2" Style="{StaticResource PaneHorizontalSeparator}" Margin="0 15"/>
                            <Grid Margin="0 0 0 10">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Left" Height="20" Width="20">
                                    <Rectangle RadiusX="2" RadiusY="2" Stroke="{telerik1:GreenResource ResourceKey=AccentLowBrush}" StrokeThickness="2"/>
                                    <TextBlock
                                            Text="X"
                                            FontSize="12"
                                            VerticalAlignment="Center"
                                            HorizontalAlignment="Center"
                                            Margin="0 0 0 1"
                                            Foreground="{telerik1:GreenResource ResourceKey=AccentLowBrush}"
                                            FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"/>
                                </Grid>
                                <telerik:RadNumericUpDown
                                        LargeChange="{StaticResource PaneNumericUpDownLargeChange}"
                                        SmallChange="{StaticResource PaneNumericUpDownSmallChange}"
                                        NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                        FontSize="12"
                                        extensions:SettingsPaneView.EditorPropertyName="X"
                                        extensions:SettingsPaneView.EditorItemType="Shapes"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                        Grid.Column="1"
                                        Margin="9 0 0 0"/>
                            </Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Left" Height="20" Width="20">
                                    <Rectangle RadiusX="2" RadiusY="2" Stroke="{telerik1:GreenResource ResourceKey=AccentLowBrush}" StrokeThickness="2"/>
                                    <TextBlock
                                            Text="Y"
                                            FontSize="12"
                                            VerticalAlignment="Center"
                                            HorizontalAlignment="Center"
                                            Margin="0 0 0 1"
                                            Foreground="{telerik1:GreenResource ResourceKey=AccentLowBrush}"
                                            FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"/>
                                </Grid>
                                <telerik:RadNumericUpDown
                                        LargeChange="{StaticResource PaneNumericUpDownLargeChange}"
                                        SmallChange="{StaticResource PaneNumericUpDownSmallChange}"
                                        NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                        FontSize="12"
                                        extensions:SettingsPaneView.EditorPropertyName="Y"
                                        extensions:SettingsPaneView.EditorItemType="Shapes"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                        Grid.Column="1"
                                        Margin="9 0 0 0"/>
                            </Grid>
                            <Path Data="M0,0L222,0" StrokeDashArray="2 2" Style="{StaticResource PaneHorizontalSeparator}" Margin="0 15"/>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Grid HorizontalAlignment="Left" Height="20" Width="20">
                                    <Rectangle RadiusX="2" RadiusY="2" Stroke="{telerik1:GreenResource ResourceKey=AccentLowBrush}" StrokeThickness="2"/>
                                    <Path Data="{StaticResource SizeArrow}" Fill="{telerik1:GreenResource ResourceKey=AccentLowBrush}" Stretch="Fill" Margin="3 6"/>
                                </Grid>
                                <telerik:RadNumericUpDown
                                        Minimum="0"
                                        CustomUnit="°"
                                        LargeChange="{StaticResource PaneNumericUpDownLargeChange}"
                                        SmallChange="{StaticResource PaneNumericUpDownSmallChange}"
                                        NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                        FontSize="12"
                                        extensions:SettingsPaneView.EditorPropertyName="RotationAngle"
                                        extensions:SettingsPaneView.EditorItemType="Shapes"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                        Grid.Column="1"
                                        Margin="9 0 0 0"/>
                            </Grid>
                        </StackPanel>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
    <Style TargetType="extensions:SettingsPaneStyleControl" x:Key="SettingsPaneStyleControlStyle">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="extensions:SettingsPaneStyleControl">
                        <StackPanel>
                            <telerik:RadUniformGrid HorizontalAlignment="Stretch" Margin="15" Rows="1">
                                <telerik:RadRadioButton x:Name="ColorTabButton"
                                        GroupName="StyleButtons"
                                        CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadiusLeft}"
                                        Content="{telerik:LocalizableResource Key=SettingsPane_ColorTab}"
                                        MinHeight="22"
                                        FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                        BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}"
                                        BorderThickness="1"
                                        Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"
                                        HorizontalContentAlignment="Center"
                                        VerticalContentAlignment="Center"
                                        Background="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                                        FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"/>
                                <telerik:RadRadioButton x:Name="GeometryTabButton"
                                        IsChecked="True"
                                        GroupName="StyleButtons"
                                        CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadiusRight}"
                                        Content="{telerik:LocalizableResource Key=SettingsPane_GeometryTab}"
                                        MinHeight="22"
                                        FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                        Background="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                                        BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}"
                                        BorderThickness="1"
                                        FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                                        Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"
                                        HorizontalContentAlignment="Center"
                                        VerticalContentAlignment="Center"/>
                                <Grid extensions:SettingsPaneView.ContainerEditProperty="Visibility" extensions:SettingsPaneView.ContainerEditItemType="Connections">
                                    <telerik:RadRadioButton x:Name="ConnectionTypeTabButton"
                                            Margin="-1 0 0 0"
                                            GroupName="StyleButtons"
                                            MinHeight="22"
                                            FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                            Background="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                                            BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}"
                                            BorderThickness="1"
                                            Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"
                                            HorizontalContentAlignment="Center"
                                            VerticalContentAlignment="Center"
                                            Content="{telerik:LocalizableResource Key=SettingsPane_ConnectionTypeTab}"/>
                                </Grid>
                            </telerik:RadUniformGrid>
                            <Grid Margin="15 0">
                                <StackPanel Visibility="{Binding IsChecked, ElementName=GeometryTabButton, Converter={StaticResource BooleanToVisibilityConverter}}">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition/>
                                            <RowDefinition MinHeight="10"/>
                                            <RowDefinition/>
                                        </Grid.RowDefinitions>
                                        <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Height="20" Width="20">
                                            <Rectangle RadiusX="2" RadiusY="2" Stroke="{telerik1:GreenResource ResourceKey=AccentLowBrush}" StrokeThickness="2"/>
                                            <Path Data="{StaticResource GeometryStrokeThicknessIcon}" Fill="{telerik1:GreenResource ResourceKey=AccentLowBrush}" Margin="2 6" Stretch="Fill"/>
                                        </Grid>
                                        <telerik:RadNumericUpDown
                                                Minimum="0"
                                                Maximum="10000"
                                                FontWeight="Normal"
                                                CustomUnit="px"
                                                SmallChange="1"
                                                LargeChange="1"
                                                Grid.Column="1"
                                                Margin="10 0 0 0"
                                                NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                                FontSize="12"
                                                extensions:SettingsPaneView.EditorPropertyName="StrokeThickness"
                                                extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Path=Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                        <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Height="20" Width="20" Grid.Row="2">
                                            <Rectangle RadiusX="2" RadiusY="2" Stroke="{telerik1:GreenResource ResourceKey=AccentLowBrush}" StrokeThickness="2"/>
                                            <Path Data="{StaticResource GeometryStrokeDashArrayIcon}" Fill="{telerik1:GreenResource ResourceKey=AccentLowBrush}" Margin="2 6" Stretch="Fill"/>
                                        </Grid>
                                        <telerik:RadComboBox
                                                ItemsSource="{data:StrokeDashArray}"
                                                Grid.Column="1"
                                                Grid.Row="2"
                                                IsEditable="False"
                                                SelectedIndex="7"
                                                Style="{StaticResource PaneComboStyle}"
                                                Margin="10 0 0 0"
                                                extensions:SettingsPaneView.EditorPropertyName="StrokeDashArray"
                                                extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                                ItemTemplate="{StaticResource StrokeDashArrayItemTemplate}"
                                                SelectionBoxTemplate="{StaticResource StrokeDashArrayItemTemplate}"/>
                                    </Grid>
                                    <Path
                                            Data="M0,0L222,0"
                                            StrokeDashArray="2 2"
                                            Style="{StaticResource PaneHorizontalSeparator}"
                                            Margin="-6 15"
                                            extensions:SettingsPaneView.ContainerEditProperty="Visibility"
                                            extensions:SettingsPaneView.ContainerEditItemType="Connections"/>
                                    <Grid Margin="0 0 0 10" extensions:SettingsPaneView.ContainerEditProperty="Visibility" extensions:SettingsPaneView.ContainerEditItemType="Connections">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <telerik:RadComboBox
                                                Style="{StaticResource PaneComboStyle}"
                                                Padding="0 0 3 0"
                                                IsEditable="False"
                                                ItemsSource="{data:CapType}"
                                                BorderThickness="0 1 1 1"
                                                FlowDirection="RightToLeft"
                                                extensions:SettingsPaneView.EditorPropertyName="SourceCapType"
                                                extensions:SettingsPaneView.EditorItemType="Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                                ItemTemplate="{StaticResource SourceCapTypeItemTemplate}"/>
                                        <telerik:RadComboBox
                                                Style="{StaticResource PaneComboStyle}"
                                                Padding="0 0 3 0"
                                                IsEditable="False"
                                                Grid.Column="1"
                                                ItemsSource="{data:CapType}"
                                                BorderThickness="0 1 1 1"
                                                extensions:SettingsPaneView.EditorPropertyName="TargetCapType"
                                                extensions:SettingsPaneView.EditorItemType="Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"
                                                ItemTemplate="{StaticResource TargetCapTypeItemTemplate}"/>
                                    </Grid>
                                    <Grid extensions:SettingsPaneView.ContainerEditProperty="Visibility" extensions:SettingsPaneView.ContainerEditItemType="Connections">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <telerik:RadNumericUpDown
                                                Minimum="0"
                                                SmallChange="1"
                                                LargeChange="1"
                                                NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                                FontSize="12"
                                                Margin="0 0 5 0"
                                                Padding="4 3"
                                                extensions:SettingsPaneView.EditorPropertyName="SourceCapSize"
                                                extensions:SettingsPaneView.EditorItemType="Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Value, Mode=TwoWay, RelativeSource={RelativeSource Self}, Converter={StaticResource DoubleToSizeConverter}}"/>
                                        <telerik:RadNumericUpDown
                                                Grid.Column="1"
                                                Minimum="0"
                                                SmallChange="1"
                                                LargeChange="1"
                                                NumberDecimalDigits="{StaticResource PaneNumericUpDownNumberDecimalDigits}"
                                                FontSize="12"
                                                Margin="5 0 0 0"
                                                Padding="4 3"
                                                extensions:SettingsPaneView.EditorPropertyName="TargetCapSize"
                                                extensions:SettingsPaneView.EditorItemType="Connections"
                                                extensions:SettingsPaneView.EditorValue="{Binding Value, Mode=TwoWay, RelativeSource={RelativeSource Self}, Converter={StaticResource DoubleToSizeConverter}}"/>
                                    </Grid>
                                </StackPanel>
                                <Grid Visibility="{Binding IsChecked, ElementName=ColorTabButton, Converter={StaticResource BooleanToVisibilityConverter}}">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>
                                    <telerik:RadTabControl Height="150" DropDownDisplayMode="Collapsed" ItemsPanel="{StaticResource PaneTabControlItemsPanel}" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
                                        <telerik:RadTabItem FontSize="12" MinHeight="20" Margin="4 3 0 2" Header="{telerik:LocalizableResource Key=SettingsPane_ColorStyles}">
                                            <ListBox
                                                    Style="{StaticResource PaneListBoxStyle}"
                                                    ItemsSource="{data:SolidColors}"
                                                    BorderThickness="0"
                                                    extensions:SettingsPaneView.EditorPropertyName="Background, BorderBrush, Stroke"
                                                    extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                                    extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                        </telerik:RadTabItem>
                                        <telerik:RadTabItem FontSize="12" Margin="2 3 4 2" Header="{telerik:LocalizableResource Key=SettingsPane_GradientStyles}">
                                            <ListBox
                                                    ItemsSource="{data:GradientColors}"
                                                    Style="{StaticResource PaneListBoxStyle}"
                                                    BorderThickness="0"
                                                    extensions:SettingsPaneView.EditorPropertyName="Background, BorderBrush, Stroke"
                                                    extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                                    extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                        </telerik:RadTabItem>
                                    </telerik:RadTabControl>
                                    <Rectangle Margin="0 10 0 0" MinHeight="28" Grid.Row="1" StrokeThickness="1" StrokeDashArray="1 2" Stroke="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                                    <Border Margin="0 10 0 0" MinHeight="28" Padding="8 2" Grid.Row="1" BorderThickness="1" Background="Transparent" BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}">
                                        <Grid VerticalAlignment="Center">
                                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                                                <TextBlock Style="{StaticResource ButtonTextBlockStyle}" Text="{telerik:LocalizableResource Key=SettingsPane_Opacity}"/>
                                                <TextBlock
                                                        Style="{StaticResource ButtonTextBlockStyle}"
                                                        Margin="5 0 0 0"
                                                        Text="{Binding Value, ElementName=OpacitySlider, Converter={StaticResource PercentageConverter}}"
                                                        Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                                            </StackPanel>
                                            <telerik:RadSlider x:Name="OpacitySlider"
                                                    IsDeferredDraggingEnabled="True"
                                                    IsMoveToPointEnabled="True"
                                                    HorizontalAlignment="Right"
                                                    VerticalAlignment="Center"
                                                    IsSnapToTickEnabled="True"
                                                    TickFrequency="0.01"
                                                    Maximum="1"
                                                    SmallChange="0.01"
                                                    LargeChange="0.1"
                                                    Width="105"
                                                    Background="{telerik1:GreenResource ResourceKey=LowBrush}"
                                                    extensions:SettingsPaneView.EditorPropertyName="Opacity"
                                                    extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                                    extensions:SettingsPaneView.EditorValue="{Binding Value, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                        </Grid>
                                    </Border>
                                </Grid>
                                <Grid
                                        VerticalAlignment="Top"
                                        Visibility="{Binding IsChecked, ElementName=ConnectionTypeTabButton, Converter={StaticResource BooleanToVisibilityConverter}}"
                                        extensions:SettingsPaneView.IsRadioButtonPanel="True"
                                        extensions:SettingsPaneView.EditorItemType="Connections"
                                        extensions:SettingsPaneView.EditorPropertyName="ConnectionType"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=(extensions:SettingsPaneView.RadioButtonValue), Mode=TwoWay, RelativeSource={RelativeSource Self}}">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition MinHeight="10"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <StackPanel Margin="0 0 10 0">
                                        <telerik:RadRadioButton GroupName="ConnectionType" Height="{StaticResource PaneGeometryButtonHeight}">
                                            <telerik:RadRadioButton.ContentTemplate>
                                                <DataTemplate>
                                                    <Path Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}" Stretch="None" Data="{StaticResource PolylineConnectionIcon}"/>
                                                </DataTemplate>
                                            </telerik:RadRadioButton.ContentTemplate>
                                            <extensions:SettingsPaneView.RadioButtonValue>
                                                <core:ConnectionType>Polyline</core:ConnectionType>
                                            </extensions:SettingsPaneView.RadioButtonValue>
                                        </telerik:RadRadioButton>
                                        <TextBlock Style="{StaticResource ButtonTextBlockStyle}" Text="{telerik:LocalizableResource Key=SettingsPane_RightAngleConnectionType}"/>
                                    </StackPanel>
                                    <StackPanel Grid.Column="1" Margin="10 0 0 0">
                                        <telerik:RadRadioButton GroupName="ConnectionType" Height="{StaticResource PaneGeometryButtonHeight}">
                                            <telerik:RadRadioButton.ContentTemplate>
                                                <DataTemplate>
                                                    <Path Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}" Stretch="None" Data="{StaticResource SplineConnectionIcon}"/>
                                                </DataTemplate>
                                            </telerik:RadRadioButton.ContentTemplate>
                                            <extensions:SettingsPaneView.RadioButtonValue>
                                                <core:ConnectionType>Spline</core:ConnectionType>
                                            </extensions:SettingsPaneView.RadioButtonValue>
                                        </telerik:RadRadioButton>
                                        <TextBlock Style="{StaticResource ButtonTextBlockStyle}" Text="{telerik:LocalizableResource Key=SettingsPane_RoundAngleConnectionType}"/>
                                    </StackPanel>
                                    <StackPanel Grid.Row="2" Margin="0 0 10 0">
                                        <telerik:RadRadioButton GroupName="ConnectionType" Height="{StaticResource PaneGeometryButtonHeight}">
                                            <telerik:RadRadioButton.ContentTemplate>
                                                <DataTemplate>
                                                    <Path Fill="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}" Stretch="None" Data="{StaticResource BezierConnectionIcon}"/>
                                                </DataTemplate>
                                            </telerik:RadRadioButton.ContentTemplate>
                                            <extensions:SettingsPaneView.RadioButtonValue>
                                                <core:ConnectionType>Bezier</core:ConnectionType>
                                            </extensions:SettingsPaneView.RadioButtonValue>
                                        </telerik:RadRadioButton>
                                        <TextBlock Style="{StaticResource ButtonTextBlockStyle}" Text="{telerik:LocalizableResource Key=SettingsPane_BezierConnectionType}"/>
                                    </StackPanel>
                                </Grid>
                            </Grid>
                        </StackPanel>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
    <Style TargetType="extensions:SettingsPaneTextControl" x:Key="SettingsPaneTextControlStyle">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="extensions:SettingsPaneTextControl">
                        <Grid Margin="15">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <ScrollViewer MaxHeight="90" BorderThickness="0" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
                                <TextBox
                                        AcceptsReturn="True"
                                        HorizontalAlignment="Stretch"
                                        FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                                        FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                        VerticalContentAlignment="Center"
                                        HorizontalContentAlignment="Stretch"
                                        extensions:SettingsPaneView.EditorPropertyName="Content"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Text, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                            </ScrollViewer>
                            <telerik:RadComboBox
                                    Grid.Row="1"
                                    Margin="0 10"
                                    ItemTemplate="{StaticResource FontFamilyItemTemplate}"
                                    SelectedIndex="0"
                                    Style="{StaticResource PaneComboStyle}"
                                    IsEditable="False"
                                    ItemsSource="{data:FontFamily}"
                                    Padding="7 0 0 0"
                                    extensions:SettingsPaneView.EditorPropertyName="FontFamily"
                                    extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                    extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                            <Grid Grid.Row="2">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <telerik:RadComboBox
                                        ItemsSource="{data:FontSize}"
                                        IsEditable="False"
                                        Style="{StaticResource PaneComboStyle}"
                                        Padding="7 0 0 0"
                                        extensions:SettingsPaneView.EditorPropertyName="FontSize"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                <telerik:RadToggleButton
                                        Grid.Column="1"
                                        Width="22"
                                        MinHeight="22"
                                        Padding="0 0 0 1"
                                        Margin="10 0 0 0"
                                        extensions:SettingsPaneView.EditorPropertyName="FontWeight"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=IsChecked, Mode=TwoWay, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToFontWeightConverter}}">
                                    <telerik:RadToggleButton.ContentTemplate>
                                        <DataTemplate>
                                            <TextBlock
                                                    Text="B"
                                                    FontWeight="Bold"
                                                    TextAlignment="Center"
                                                    FontSize="12"
                                                    FontFamily="Segoe UI"
                                                    Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"/>
                                        </DataTemplate>
                                    </telerik:RadToggleButton.ContentTemplate>
                                </telerik:RadToggleButton>
                                <telerik:RadToggleButton
                                        Grid.Column="2"
                                        Width="22"
                                        MinHeight="22"
                                        Padding="0 0 0 1"
                                        Margin="10 0 0 0"
                                        extensions:SettingsPaneView.EditorPropertyName="FontStyle"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=IsChecked, Mode=TwoWay, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToFontStyleConverter}}">
                                    <telerik:RadToggleButton.ContentTemplate>
                                        <DataTemplate>
                                            <TextBlock
                                                    Text="I"
                                                    Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                                                    FontStyle="Italic"
                                                    TextAlignment="Center"
                                                    FontSize="12"
                                                    FontFamily="Segoe UI"/>
                                        </DataTemplate>
                                    </telerik:RadToggleButton.ContentTemplate>
                                </telerik:RadToggleButton>
                            </Grid>
                            <ListBox
                                    Grid.Row="3"
                                    ItemsSource="{data:FontColors}"
                                    Style="{StaticResource PaneListBoxStyle}"
                                    Margin="0 10 0 0"
                                    extensions:SettingsPaneView.EditorPropertyName="Foreground"
                                    extensions:SettingsPaneView.EditorItemType="Shapes, Connections"
                                    extensions:SettingsPaneView.EditorValue="{Binding Path=SelectedItem, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
    <Style TargetType="extensions:SettingsPane" x:Key="SettingsPaneControlStyle">
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="SettingsPaneViewWidth" Value="255"/>
        <Setter Property="SettingsPaneViewHeight" Value="314"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Margin" Value="0 0 -10 0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:SettingsPane">
                    <Border x:Name="RootBorder" MinWidth="1">
                        <Grid>
                            <Canvas>
                                <telerik:RadToggleButton x:Name="ToggleButton"
                                        Template="{StaticResource ButtonBaseControlTemplate}"
                                        Width="30"
                                        Height="30"
                                        Background="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                                        BorderThickness="1"
                                        Padding="7"
                                        Margin="0 -15 -30 0"
                                        BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}"
                                        Foreground="{telerik1:GreenResource ResourceKey=StrongBrush}"
                                        ContentTemplate="{StaticResource PaneOpenCloseButtonContentTemplate}"
                                        Visibility="{Binding IsActive, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
                                        IsChecked="{Binding Path=IsActive, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                            </Canvas>
                            <Popup x:Name="Popup" AllowsTransparency="True" StaysOpen="False" Focusable="False">
                                <Grid>
                                    <Path
                                            HorizontalAlignment="Left"
                                            VerticalAlignment="Center"
                                            Width="8"
                                            Height="16"
                                            Margin="0 -1 0 0"
                                            Stroke="{TemplateBinding BorderBrush}"
                                            Data="{StaticResource ArrowLeft8x16}"
                                            Fill="{telerik1:GreenResource ResourceKey=AlternativeBrush}"
                                            Stretch="Fill"
                                            UseLayoutRounding="False"
                                            Effect="{StaticResource DiagramEffect}"/>
                                    <extensions:SettingsPaneView x:Name="SettingsPaneView"
                                            Diagram="{TemplateBinding Diagram}"
                                            Margin="7 0 0 0"
                                            IsActive="{Binding IsActive, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                                            Height="{TemplateBinding SettingsPaneViewHeight}"
                                            Width="{TemplateBinding SettingsPaneViewWidth}"
                                            Visibility="{Binding Path=IsActive, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                                    <Rectangle
                                            VerticalAlignment="Center"
                                            Height="13"
                                            Canvas.ZIndex="1"
                                            Width="1"
                                            Fill="{telerik1:GreenResource ResourceKey=AlternativeBrush}"
                                            HorizontalAlignment="Left"
                                            Margin="7 -1 0 0"/>
                                </Grid>
                            </Popup>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:SettingsPaneView" x:Key="SettingsPaneStyle">
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:SettingsPaneView">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}" BorderThickness="1">
                        <telerik:RadTabControl x:Name="TabControl"
                                Effect="{StaticResource DiagramEffect}"
                                DropDownDisplayMode="Collapsed"
                                FontWeight="Normal"
                                BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}"
                                BorderThickness="0"
                                ItemsPanel="{StaticResource PaneTabControlItemsPanel}"
                                ScrollViewer.HorizontalScrollBarVisibility="Disabled">
                            <telerik:RadTabItem Header="{telerik:LocalizableResource Key=SettingsPane_HomeTab}" FontSize="12" Padding="0" Margin="4 4 0 2">
                                <extensions:SettingsPaneHomeControl/>
                            </telerik:RadTabItem>
                            <telerik:RadTabItem
                                    Header="{telerik:LocalizableResource Key=SettingsPane_SizeTab}"
                                    FontSize="12"
                                    Padding="0"
                                    extensions:SettingsPaneView.ContainerEditProperty="IsEnabled"
                                    extensions:SettingsPaneView.ContainerEditItemType="Shapes"
                                    Margin="0 4 0 2">
                                <extensions:SettingsPaneSizeControl/>
                            </telerik:RadTabItem>
                            <telerik:RadTabItem Header="{telerik:LocalizableResource Key=SettingsPane_StyleTab}" FontSize="12" Padding="0" Margin="0 4 0 2">
                                <extensions:SettingsPaneStyleControl x:Name="SettingsPaneStyleControl"/>
                            </telerik:RadTabItem>
                            <telerik:RadTabItem Header="{telerik:LocalizableResource Key=SettingsPane_TextTab}" FontSize="12" Padding="0" Margin="0 4 4 2">
                                <extensions:SettingsPaneTextControl/>
                            </telerik:RadTabItem>
                            <telerik:RadTabControl.AdditionalContent>
                                <telerik:RadToggleButton
                                        Width="18"
                                        MinHeight="18"
                                        Margin="3 0 4 2"
                                        ContentTemplate="{StaticResource PaneCloseButtonDataTemplate}"
                                        IsChecked="{Binding IsActive, Mode=TwoWay, Converter={StaticResource InvertedBooleanConverter}, RelativeSource={RelativeSource TemplatedParent}}"
                                        BorderBrush="Transparent"
                                        BorderThickness="0"
                                        Background="Transparent"
                                        Template="{StaticResource ButtonBaseControlTemplate}"
                                        Foreground="{telerik1:GreenResource ResourceKey=StrongBrush}"
                                        Focusable="False"/>
                            </telerik:RadTabControl.AdditionalContent>
                        </telerik:RadTabControl>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:SettingsPaneView" BasedOn="{StaticResource SettingsPaneStyle}"/>
    <Style TargetType="extensions:SettingsPane" BasedOn="{StaticResource SettingsPaneControlStyle}"/>
    <Style TargetType="extensions:SettingsPaneHomeControl" BasedOn="{StaticResource SettingsPaneHomeControlStyle}"/>
    <Style TargetType="extensions:SettingsPaneSizeControl" BasedOn="{StaticResource SettingsPaneSizeControlStyle}"/>
    <Style TargetType="extensions:SettingsPaneStyleControl" BasedOn="{StaticResource SettingsPaneStyleControlStyle}"/>
    <Style TargetType="extensions:SettingsPaneTextControl" BasedOn="{StaticResource SettingsPaneTextControlStyle}"/>
    <DataTemplate x:Key="ToolboxItemTemplate">
        <Grid Width="70" MinHeight="85">
            <Grid.RowDefinitions>
                <RowDefinition Height="50"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Viewbox VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="5 5 5 0">
                <ContentPresenter Content="{Binding Shape}" Margin="5" IsHitTestVisible="False"/>
            </Viewbox>
            <TextBlock
                    Grid.Row="1"
                    Text="{Binding Header}"
                    TextWrapping="Wrap"
                    Margin="5"
                    TextAlignment="Center"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                    FontSize="{telerik1:GreenResource ResourceKey=FontSize}"/>
        </Grid>
    </DataTemplate>
    <HierarchicalDataTemplate x:Key="ToolboxTemplate" ItemsSource="{Binding Items}" ItemTemplate="{StaticResource ToolboxItemTemplate}">
        <TextBlock Text="{Binding Header}" MinWidth="55"/>
    </HierarchicalDataTemplate>
    <Style x:Key="DiagramCloseButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="Template" Value="{StaticResource ButtonBaseControlTemplate}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="ContentTemplate" Value="{StaticResource CloseDataTemplate}"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="MinWidth" Value="22"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="Margin" Value="5"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
    </Style>
    <Style x:Key="DiagramOpenCloseButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="Template" Value="{StaticResource ButtonBaseControlTemplate}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="MinWidth" Value="22"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="Margin" Value="2 2 3 4"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="ContentTemplate" Value="{StaticResource OpenCloseDataTemplate}"/>
    </Style>
    <Style TargetType="extensions:RadDiagramToolboxItem" x:Key="RadDiagramToolboxItemStyle">
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="telerik:TouchManager.DragStartTrigger" Value="TouchMove"/>
        <Setter Property="Margin" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramToolboxItem">
                    <Grid x:Name="RootGrid">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="MouseOverVisual" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="0" Storyboard.TargetName="ViewContent" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="0" Storyboard.TargetName="DefaultContent" Storyboard.TargetProperty="Foreground">
                                            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ContentStates">
                                <VisualState x:Name="ContentState">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ViewContent" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DefaultContent" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="ViewContentState">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ViewContent" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DefaultContent" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="BorderVisual"
                                CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                Background="{TemplateBinding Background}"/>
                        <Border x:Name="MouseOverVisual"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Visibility="Collapsed"
                                BorderBrush="{telerik1:GreenResource ResourceKey=MouseOverBrush}"
                                Background="{telerik1:GreenResource ResourceKey=MouseOverBrush}"
                                CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
                        <ContentControl x:Name="DefaultContent"
                                Content="{TemplateBinding Content}"
                                Foreground="{TemplateBinding Foreground}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
                        <ContentControl x:Name="ViewContent"
                                Content="{TemplateBinding ViewContent}"
                                Foreground="{TemplateBinding Foreground}"
                                ContentTemplate="{TemplateBinding ViewContentTemplate}"
                                Visibility="Collapsed"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramToolboxGroup" x:Key="RadDiagramToolboxGroupStyle">
        <Setter Property="Padding" Value="4 6"/>
        <Setter Property="MinHeight" Value="30"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <telerik:RadUniformGrid VerticalAlignment="Top" Columns="3"/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramToolboxGroup">
                    <Grid x:Name="RootPanel" MinWidth="100">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid x:Name="HeaderPanel">
                            <Border
                                    Background="{TemplateBinding Background}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"/>
                            <ContentControl x:Name="HeaderElement"
                                    Margin="{TemplateBinding Padding}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    Content="{TemplateBinding Header}"
                                    FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                    ContentTemplate="{TemplateBinding HeaderTemplate}"
                                    Foreground="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Foreground, Mode=TwoWay}"
                                    ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"/>
                        </Grid>
                        <Grid x:Name="ContentPanel" Width="0" Height="0" Visibility="{TemplateBinding Visibility}">
                            <Border Name="OuterBorder">
                                <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible" BorderThickness="0">
                                    <ItemsPresenter/>
                                </ScrollViewer>
                            </Border>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                        </Trigger>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramToolbox" x:Key="RadDiagramToolboxStyle">
        <Setter Property="HeaderBackground" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="CloseButtonStyle" Value="{StaticResource DiagramCloseButtonStyle}"/>
        <Setter Property="OpenCloseButtonStyle" Value="{StaticResource DiagramOpenCloseButtonStyle}"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="ItemTemplate" Value="{StaticResource ToolboxTemplate}"/>
        <Setter Property="Padding" Value="4 7"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <StackPanel/>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramToolbox">
                    <Grid x:Name="RootGrid" VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}">
                        <Grid.Resources>
                            <Storyboard x:Key="hideAnimation">
                                <DoubleAnimation Duration="00:00:00.4" Storyboard.TargetName="hideablePart" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" To="100">
                                    <DoubleAnimation.EasingFunction>
                                        <CircleEase EasingMode="EaseOut"/>
                                    </DoubleAnimation.EasingFunction>
                                </DoubleAnimation>
                            </Storyboard>
                            <Storyboard x:Key="showAnimation">
                                <DoubleAnimation Duration="00:00:00.32" Storyboard.TargetName="hideablePart" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" To="0">
                                    <DoubleAnimation.EasingFunction>
                                        <CircleEase EasingMode="EaseOut"/>
                                    </DoubleAnimation.EasingFunction>
                                </DoubleAnimation>
                            </Storyboard>
                        </Grid.Resources>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Grid x:Name="hideablePart">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid.RenderTransform>
                                <TranslateTransform/>
                            </Grid.RenderTransform>
                            <Border Grid.Row="0" Grid.RowSpan="3" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1 1 0 1"/>
                            <ContentControl
                                    Margin="{TemplateBinding Padding}"
                                    Foreground="{telerik1:GreenResource ResourceKey=AccentLowBrush}"
                                    ContentTemplate="{TemplateBinding TitleTemplate}"
                                    VerticalAlignment="Center"
                                    HorizontalAlignment="Left"
                                    FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                                    FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                    FontWeight="Bold"
                                    Content="{TemplateBinding Title}"/>
                            <ItemsPresenter Grid.Row="1" Margin="2 8 2 3"/>
                            <telerik:RadButton x:Name="CloseButton" Grid.Row="2" Style="{TemplateBinding CloseButtonStyle}"/>
                        </Grid>
                        <Grid Grid.Column="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Border BorderBrush="{telerik1:GreenResource ResourceKey=BasicBrush}" Background="{TemplateBinding HeaderBackground}" BorderThickness="1 1 1 0">
                                <ContentControl
                                        Margin="{TemplateBinding Padding}"
                                        FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                                        FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                        Foreground="{telerik1:GreenResource ResourceKey=AccentLowBrush}"
                                        Content="{TemplateBinding Header}"
                                        ContentTemplate="{TemplateBinding HeaderTemplate}"
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
                            </Border>
                            <Border Grid.Row="1" BorderThickness="1 0" BorderBrush="{TemplateBinding BorderBrush}" Background="{telerik1:GreenResource ResourceKey=AlternativeBrush}">
                                <ContentPresenter x:Name="SelectedTabContent"/>
                            </Border>
                            <Border Grid.Row="2" BorderThickness="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                                    <telerik:RadButton x:Name="OpenCloseButton" Style="{TemplateBinding OpenCloseButtonStyle}">
                                        <ToolTipService.ToolTip>
                                            <ToolTip Content="{telerik:LocalizableResource Key=Open_Close}"/>
                                        </ToolTipService.ToolTip>
                                    </telerik:RadButton>
                                    <TextBlock
                                            Margin="5 0 5 0"
                                            FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                                            FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                            Text="{telerik:LocalizableResource Key=Toolbox_ViewGalleries}"
                                            Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"
                                            VerticalAlignment="Center"/>
                                </StackPanel>
                            </Border>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramToolboxItem" BasedOn="{StaticResource RadDiagramToolboxItemStyle}"/>
    <Style TargetType="extensions:RadDiagramToolboxGroup" BasedOn="{StaticResource RadDiagramToolboxGroupStyle}"/>
    <Style TargetType="extensions:RadDiagramToolbox" BasedOn="{StaticResource RadDiagramToolboxStyle}"/>
    <extensions:PercentageConverter x:Key="percentageConverter"/>
    <extensions:ThicknessToDoubleConverter x:Key="thicknessToDoubleConverter"/>
    <sys:Boolean x:Key="handleButtonsVisibility">True</sys:Boolean>
    <Style TargetType="extensions:RadDiagramThumbnail" x:Key="RadDiagramThumbnailStyle">
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Height" Value="280"/>
        <Setter Property="Width" Value="280"/>
        <Setter Property="ViewportStyle">
            <Setter.Value>
                <Style TargetType="Rectangle">
                    <Setter Property="StrokeThickness" Value="1"/>
                    <Setter Property="Stroke" Value="{telerik1:GreenResource ResourceKey=ValidationBrush}"/>
                    <Setter Property="Opacity" Value="0.3"/>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramThumbnail">
                    <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
                        <Grid>
                            <Image Source="{TemplateBinding ImageSource}" Stretch="None"/>
                            <Canvas x:Name="PART_mainCanvas">
                                <Rectangle x:Name="PART_viewportRect" Style="{TemplateBinding ViewportStyle}"/>
                            </Canvas>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DiagramSliderTrackStyle" TargetType="ContentControl">
        <Setter Property="Height" Value="2"/>
        <Setter Property="IsTabStop" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="HandleRepeatButtonTemplate" TargetType="RepeatButton">
        <Border x:Name="BorderVisual"
                BorderBrush="{TemplateBinding BorderBrush}"
                BorderThickness="{TemplateBinding BorderThickness}"
                Background="{TemplateBinding Background}"
                CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}">
            <Path x:Name="path"
                    Stretch="None"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Fill="{TemplateBinding Foreground}"
                    Data="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"/>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled" Value="False">
                <Setter TargetName="path" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                <Setter TargetName="path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                <Setter TargetName="path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter TargetName="BorderVisual" Property="Background" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                <Setter TargetName="BorderVisual" Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                <Setter TargetName="path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style x:Key="IncreaseNavigationPaneButtonStyle" TargetType="RepeatButton">
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="Margin" Value="4 0 4 0"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="Content" Value="{StaticResource PlusIcon8x8}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Template" Value="{StaticResource HandleRepeatButtonTemplate}"/>
    </Style>
    <Style x:Key="DecreaseNavigationPaneButtonStyle" TargetType="RepeatButton">
        <Setter Property="Width" Value="22"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="Margin" Value="4 0 4 0"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="Content" Value="M0,0 L8,0 L8,2 L0,2 z"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Template" Value="{StaticResource HandleRepeatButtonTemplate}"/>
    </Style>
    <Style x:Key="ThumbnailSliderStyle" TargetType="telerik:RadSlider" BasedOn="{StaticResource RadSliderStyle}">
        <Setter Property="MinWidth" Value="105"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="HandlesVisibility" Value="{Binding Source={StaticResource handleButtonsVisibility}, Converter={StaticResource BooleanToVisibilityConverter}}"/>
        <Setter Property="IsSnapToTickEnabled" Value="True"/>
        <Setter Property="IsMoveToPointEnabled" Value="True"/>
        <Setter Property="TickFrequency" Value="0.1"/>
        <Setter Property="SmallChange" Value="0.1"/>
        <Setter Property="LargeChange" Value="0.1"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=LowBrush}"/>
        <Setter Property="TrackStyle" Value="{StaticResource DiagramSliderTrackStyle}"/>
        <Setter Property="IncreaseHandleStyle" Value="{StaticResource IncreaseNavigationPaneButtonStyle}"/>
        <Setter Property="DecreaseHandleStyle" Value="{StaticResource DecreaseNavigationPaneButtonStyle}"/>
    </Style>
    <Style TargetType="telerik:RadButton" BasedOn="{StaticResource RadButtonStyle}" x:Key="DiagramAutofitButtonStyle">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="Margin" Value="2 4 0 4"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="ContentTemplate" Value="{StaticResource NavigationPaneMapTemplate}"/>
    </Style>
    <Style TargetType="telerik:RadToggleButton" BasedOn="{StaticResource RadToggleButtonStyle}" x:Key="DiagramExpandToggleButtonStyle">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Width" Value="22"/>
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="Margin" Value="2 4"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="ContentTemplate" Value="{StaticResource NavigationPaneToggleTemplate}"/>
    </Style>
    <Style TargetType="extensions:RadDiagramNavigationPane" x:Key="RadDiagramNavigationPaneStyle">
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="ThumbnailStyle">
            <Setter.Value>
                <Style TargetType="extensions:RadDiagramThumbnail" BasedOn="{StaticResource RadDiagramThumbnailStyle}">
                    <Setter Property="Height" Value="162"/>
                    <Setter Property="Margin" Value="4"/>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="SliderStyle" Value="{StaticResource ThumbnailSliderStyle}"/>
        <Setter Property="AutofitButtonStyle" Value="{StaticResource DiagramAutofitButtonStyle}"/>
        <Setter Property="ExpandButtonStyle" Value="{StaticResource DiagramExpandToggleButtonStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramNavigationPane">
                    <Border
                            Background="{TemplateBinding Background}"
                            CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            UseLayoutRounding="True">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid Visibility="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}">
                                <extensions:RadDiagramThumbnail Style="{TemplateBinding ThumbnailStyle}" Diagram="{TemplateBinding Diagram}" x:Name="Thumbnail"/>
                                <Rectangle Fill="{TemplateBinding BorderBrush}" HorizontalAlignment="Stretch" Height="1" VerticalAlignment="Bottom"/>
                            </Grid>
                            <Grid Grid.Row="1">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <telerik:RadButton
                                        Style="{TemplateBinding AutofitButtonStyle}"
                                        Visibility="{Binding IsAutofitButtonVisible, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                        CommandTarget="{TemplateBinding Diagram}"
                                        Command="{x:Static telerik:DiagramCommands.AutoFit}">
                                    <ToolTipService.ToolTip>
                                        <ToolTip Content="{telerik:LocalizableResource Key=Auto_fit}"/>
                                    </ToolTipService.ToolTip>
                                </telerik:RadButton>
                                <telerik:RadToggleButton x:Name="expandCollapseThumbnailButton"
                                        Grid.Column="1"
                                        Style="{TemplateBinding ExpandButtonStyle}"
                                        IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                                <Rectangle
                                        Visibility="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                        Width="1"
                                        Height="22"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Left"
                                        Grid.Column="2"
                                        Fill="{TemplateBinding BorderBrush}"
                                        Margin="0"/>
                                <TextBox
                                        IsHitTestVisible="False"
                                        Background="{telerik1:GreenResource ResourceKey=AccentHighBrush}"
                                        BorderBrush="{telerik1:GreenResource ResourceKey=AccentHighBrush}"
                                        Visibility="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                        FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                        HorizontalAlignment="Right"
                                        Grid.Column="3"
                                        VerticalAlignment="Center"
                                        Width="50"
                                        Margin="2 4 0 4"
                                        FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                                        Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Diagram.Zoom, Converter={StaticResource percentageConverter}}"/>
                                <telerik:RadSlider x:Name="ZoomSlider"
                                        Visibility="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                        Grid.Column="4"
                                        Style="{TemplateBinding SliderStyle}"
                                        Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Diagram.Zoom, Mode=TwoWay}"/>
                                <Border BorderThickness="1" BorderBrush="Transparent" Grid.ColumnSpan="5"/>
                            </Grid>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadGeometryButton" x:Key="RadGeometryButtonStyle">
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="extensions:GeometryButtons.GeometryStroke" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="40"/>
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="40"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadGeometryButton">
                    <Grid Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid Background="Transparent">
                            <Ellipse x:Name="Ellipse"
                                    Stroke="{TemplateBinding BorderBrush}"
                                    Fill="{TemplateBinding Background}"
                                    Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                    Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource thicknessToDoubleConverter}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.EllipseVisibility), RelativeSource={RelativeSource TemplatedParent}}"/>
                            <Path x:Name="Path"
                                    Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding Path=(extensions:GeometryButtons.GeometryStrokeThickness), RelativeSource={RelativeSource TemplatedParent}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                    Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                    Stretch="None"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Data="{TemplateBinding Geometry}"/>
                        </Grid>
                        <ContentControl x:Name="Content"
                                Grid.Row="1"
                                Foreground="{TemplateBinding Foreground}"
                                FontWeight="SemiBold"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                HorizontalAlignment="Center"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadGeometryDropDownButton" x:Key="RadGeometryDropDownButtonStyle">
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="extensions:GeometryButtons.GeometryStroke" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="40"/>
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="40"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadGeometryDropDownButton">
                    <Grid Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid Background="Transparent">
                            <Ellipse x:Name="Ellipse"
                                    Stroke="{TemplateBinding BorderBrush}"
                                    Fill="{TemplateBinding Background}"
                                    Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                    Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource thicknessToDoubleConverter}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.EllipseVisibility), RelativeSource={RelativeSource TemplatedParent}}"/>
                            <Path x:Name="Path"
                                    Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding Path=(extensions:GeometryButtons.GeometryStrokeThickness), RelativeSource={RelativeSource TemplatedParent}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                    Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Data="{TemplateBinding Geometry}"/>
                        </Grid>
                        <ContentControl x:Name="Content"
                                Grid.Row="1"
                                Foreground="{TemplateBinding Foreground}"
                                FontWeight="SemiBold"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                HorizontalAlignment="Center"/>
                        <Popup x:Name="DropDownPopup" VerticalOffset="{TemplateBinding DropDownPopupVerticalOffset}" HorizontalOffset="{TemplateBinding DropDownPopupHorizontalOffset}">
                            <Grid>
                                <Path
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Top"
                                        Data="{StaticResource PopupArrow}"
                                        Fill="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                                        Stretch="Fill"
                                        Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                        UseLayoutRounding="False"/>
                                <Rectangle VerticalAlignment="Top" Width="14" Height="1" Canvas.ZIndex="1" Fill="{telerik1:GreenResource ResourceKey=PrimaryBrush}" HorizontalAlignment="Center" Margin="0 6 0 0"/>
                                <Border x:Name="DropDownPopupBorder"
                                        Margin="2 6 2 2"
                                        BorderBrush="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                        Background="{telerik1:GreenResource ResourceKey=PrimaryBrush}"
                                        BorderThickness="1"
                                        CornerRadius="{telerik1:GreenResource ResourceKey=CornerRadius}"
                                        MinWidth="3"
                                        MinHeight="3"
                                        Width="{TemplateBinding DropDownWidth}"
                                        Height="{TemplateBinding DropDownHeight}"
                                        MaxWidth="{TemplateBinding DropDownMaxWidth}"
                                        MaxHeight="{TemplateBinding DropDownMaxHeight}">
                                    <ContentControl 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.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadGeometryToggleButton" x:Key="RadGeometryToggleButtonStyle">
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="extensions:GeometryButtons.GeometryStroke" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="40"/>
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="40"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadGeometryToggleButton">
                    <Grid Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid Background="Transparent">
                            <Ellipse x:Name="Ellipse"
                                    Stroke="{TemplateBinding BorderBrush}"
                                    Fill="{TemplateBinding Background}"
                                    Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                    Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource thicknessToDoubleConverter}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.EllipseVisibility), RelativeSource={RelativeSource TemplatedParent}}"/>
                            <Path x:Name="Path"
                                    Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                    StrokeThickness="{Binding Path=(extensions:GeometryButtons.GeometryStrokeThickness), RelativeSource={RelativeSource TemplatedParent}}"
                                    Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                    Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                    Stretch="None"
                                    Data="{TemplateBinding Geometry}"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"/>
                        </Grid>
                        <ContentControl x:Name="Content"
                                Grid.Row="1"
                                Foreground="{TemplateBinding Foreground}"
                                FontWeight="SemiBold"
                                Margin="{TemplateBinding Padding}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                HorizontalAlignment="Center"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="RadGeometryRadioButtonStyle" TargetType="extensions:RadGeometryRadioButton">
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=PrimaryBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Foreground" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
        <Setter Property="extensions:GeometryButtons.GeometryFill" Value="{telerik1:GreenResource ResourceKey=StrongBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="extensions:GeometryButtons.GeometryStroke" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="extensions:GeometryButtons.EllipseWidth" Value="40"/>
        <Setter Property="extensions:GeometryButtons.EllipseHeight" Value="40"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Bottom"/>
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSize}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadGeometryRadioButton">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Ellipse x:Name="Ellipse"
                                Stroke="{TemplateBinding BorderBrush}"
                                Fill="{TemplateBinding Background}"
                                Width="{Binding Path=(extensions:GeometryButtons.EllipseWidth), RelativeSource={RelativeSource TemplatedParent}}"
                                Height="{Binding Path=(extensions:GeometryButtons.EllipseHeight), RelativeSource={RelativeSource TemplatedParent}}"
                                StrokeThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource thicknessToDoubleConverter}}"
                                Visibility="{Binding Path=(extensions:GeometryButtons.EllipseVisibility), RelativeSource={RelativeSource TemplatedParent}}"/>
                        <Path x:Name="Path"
                                Stroke="{Binding Path=(extensions:GeometryButtons.GeometryStroke), RelativeSource={RelativeSource TemplatedParent}}"
                                StrokeThickness="{Binding Path=(extensions:GeometryButtons.GeometryStrokeThickness), RelativeSource={RelativeSource TemplatedParent}}"
                                Visibility="{Binding Path=(extensions:GeometryButtons.GeometryVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                Fill="{Binding Path=(extensions:GeometryButtons.GeometryFill), RelativeSource={RelativeSource TemplatedParent}}"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Center"
                                Stretch="None"
                                Data="{TemplateBinding Geometry}"/>
                        <ContentControl x:Name="Content"
                                Grid.Row="1"
                                FontWeight="SemiBold"
                                Foreground="{TemplateBinding Foreground}"
                                IsTabStop="False"
                                Content="{TemplateBinding Content}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                Margin="{TemplateBinding Padding}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Content" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Opacity" Value="{telerik1:GreenResource ResourceKey=DisabledOpacity}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=AccentLowBrush}"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=MouseOverBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="Ellipse" Property="Fill" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Ellipse" Property="Stroke" Value="{telerik1:GreenResource ResourceKey=AccentHighBrush}"/>
                            <Setter TargetName="Path" Property="Fill" Value="{telerik1:GreenResource ResourceKey=SelectedBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramThumbnail" BasedOn="{StaticResource RadDiagramThumbnailStyle}"/>
    <Style TargetType="extensions:RadDiagramNavigationPane" BasedOn="{StaticResource RadDiagramNavigationPaneStyle}"/>
    <Style TargetType="extensions:RadGeometryToggleButton" BasedOn="{StaticResource RadGeometryToggleButtonStyle}"/>
    <Style TargetType="extensions:RadGeometryDropDownButton" BasedOn="{StaticResource RadGeometryDropDownButtonStyle}"/>
    <Style TargetType="extensions:RadGeometryButton" BasedOn="{StaticResource RadGeometryButtonStyle}"/>
    <Style TargetType="extensions:RadGeometryRadioButton" BasedOn="{StaticResource RadGeometryRadioButtonStyle}"/>
    <Style TargetType="extensions:XSmallTickContainer" x:Key="XSmallTickContainerStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:XSmallTickContainer">
                    <Rectangle Fill="{telerik1:GreenResource ResourceKey=StrongBrush}" Width="1" Height="3"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:SmallTickContainer" x:Key="SmallTickContainerStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:SmallTickContainer">
                    <Rectangle Fill="{telerik1:GreenResource ResourceKey=StrongBrush}" Width="1" Height="5"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:MediumTickContainer" x:Key="MediumTickContainerStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:MediumTickContainer">
                    <Rectangle Fill="{telerik1:GreenResource ResourceKey=StrongBrush}" Width="1" Height="8"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:LargeTickContainer" x:Key="LargeTickContainerStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:LargeTickContainer">
                    <Rectangle Fill="{telerik1:GreenResource ResourceKey=StrongBrush}" Width="1" Height="20"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:LabelContainer" x:Key="LabelContainerStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:LabelContainer">
                    <Grid Height="20">
                        <TextBlock x:Name="RootElement" VerticalAlignment="Top" Margin="2 -2 2 0" Text="{Binding Value}" Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MouseIndicatorStyle" TargetType="Path">
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="Stroke" Value="{telerik1:GreenResource ResourceKey=ValidationBrush}"/>
        <Setter Property="Data" Value="M 0.5,0 L 0.5,20"/>
    </Style>
    <Style TargetType="extensions:RadDiagramRuler" x:Key="RadDiagramRulerStyle">
        <Setter Property="FontFamily" Value="{telerik1:GreenResource ResourceKey=FontFamily}"/>
        <Setter Property="FontSize" Value="{telerik1:GreenResource ResourceKey=FontSizeS}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="MouseIndicatorStyle" Value="{StaticResource MouseIndicatorStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramRuler">
                    <Grid x:Name="ContentHolder">
                        <Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"/>
                        <extensions:RulerVirtualizingPanel x:Name="RootPanel" Margin="{TemplateBinding BorderThickness}"/>
                        <Path x:Name="MouseIndicator" Style="{TemplateBinding MouseIndicatorStyle}" Visibility="{TemplateBinding MouseIndicatorVisibility}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ScaleDefinitions">
            <Setter.Value>
                <extensions:DiagramScaleDefinitionCollection>
                    <extensions:DiagramScaleDefinition MaxZoom="0.99">
                        <extensions:DiagramScaleItemDefinition Interval="10" Type="SmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="MediumTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="LargeTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="Label"/>
                    </extensions:DiagramScaleDefinition>
                    <extensions:DiagramScaleDefinition MaxZoom="1.99">
                        <extensions:DiagramScaleItemDefinition Interval="5" Type="XSmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="10" Type="SmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="MediumTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="LargeTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="Label"/>
                    </extensions:DiagramScaleDefinition>
                    <extensions:DiagramScaleDefinition MaxZoom="3.99">
                        <extensions:DiagramScaleItemDefinition Interval="2" Type="XSmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="10" Type="SmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="MediumTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="LargeTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="Label"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="Label"/>
                    </extensions:DiagramScaleDefinition>
                    <extensions:DiagramScaleDefinition>
                        <extensions:DiagramScaleItemDefinition Interval="1" Type="XSmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="10" Type="SmallTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="MediumTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="LargeTick"/>
                        <extensions:DiagramScaleItemDefinition Interval="10" Type="Label"/>
                        <extensions:DiagramScaleItemDefinition Interval="50" Type="Label"/>
                        <extensions:DiagramScaleItemDefinition Interval="100" Type="Label"/>
                    </extensions:DiagramScaleDefinition>
                </extensions:DiagramScaleDefinitionCollection>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:XSmallTickContainer" BasedOn="{StaticResource XSmallTickContainerStyle}"/>
    <Style TargetType="extensions:SmallTickContainer" BasedOn="{StaticResource SmallTickContainerStyle}"/>
    <Style TargetType="extensions:MediumTickContainer" BasedOn="{StaticResource MediumTickContainerStyle}"/>
    <Style TargetType="extensions:LargeTickContainer" BasedOn="{StaticResource LargeTickContainerStyle}"/>
    <Style TargetType="extensions:LabelContainer" BasedOn="{StaticResource LabelContainerStyle}"/>
    <Style TargetType="extensions:RadDiagramRuler" BasedOn="{StaticResource RadDiagramRulerStyle}"/>
    <extensions:PercentageConverter x:Key="DoublePercentageConverter"/>
    <extensions:ReciprocalDoubleConverter x:Key="ReciprocalDoubleConverter"/>
    <DataTemplate x:Key="PageSizesSelectedItemTemplate">
        <StackPanel Orientation="Horizontal">
            <Path Stretch="Fill" Stroke="{Binding Foreground, ElementName=PageMediaSizeName}" Width="8" Height="11" Data="{StaticResource PageSizeIcon}"/>
            <TextBlock x:Name="PageMediaSizeName" Text="{Binding PageMediaSizeName}" Margin="5 0 0 0"/>
        </StackPanel>
    </DataTemplate>
    <Style x:Key="PrintPreviewComboStyle" TargetType="telerik:RadComboBox" BasedOn="{StaticResource RadComboBoxStyle}">
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=MainBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Margin" Value="0 0 0 10"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
    </Style>
    <Style TargetType="extensions:RadDiagramPrintPreviewItem" x:Key="RadDiagramPrintPreviewItemStyle">
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Margin" Value="2"/>
        <Setter Property="Padding" Value="4"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:RadDiagramPrintPreviewItem">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                        <Image
                                Stretch="Uniform"
                                Source="{TemplateBinding PagePreviewImageSource}"
                                Width="{TemplateBinding PagePreviewImageWidth}"
                                Height="{TemplateBinding PagePreviewImageHeight}"
                                Margin="{TemplateBinding Padding}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramPrintPreview" x:Key="RadDiagramPrintPreviewStyle">
        <Setter Property="MinWidth" Value="200"/>
        <Setter Property="MinHeight" Value="200"/>
        <Setter Property="Background" Value="{telerik1:GreenResource ResourceKey=AlternativeBrush}"/>
        <Setter Property="BorderBrush" Value="{telerik1:GreenResource ResourceKey=BasicBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="ItemStyle" Value="{StaticResource RadDiagramPrintPreviewItemStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition MaxWidth="280"/>
                        </Grid.ColumnDefinitions>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" BorderThickness="0">
                                <telerik:RadUniformGrid x:Name="PART_PagesPanel" VerticalAlignment="Top" UseLayoutRounding="True" HorizontalAlignment="Left" Margin="15"/>
                            </ScrollViewer>
                            <StackPanel Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Horizontal" Margin="0 4 4 4">
                                <TextBlock
                                        Width="50"
                                        VerticalAlignment="Center"
                                        Margin="0 0 4 0"
                                        Background="{telerik1:GreenResource ResourceKey=AccentHighBrush}"
                                        Padding="4 2"
                                        Text="{Binding Value, ElementName=ZoomSlider, Converter={StaticResource DoublePercentageConverter}}"
                                        FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                        FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                                        Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"/>
                                <telerik:RadSlider x:Name="ZoomSlider"
                                        TickFrequency="1"
                                        MinWidth="124"
                                        VerticalAlignment="Center"
                                        Minimum="0.1"
                                        Maximum="5"
                                        SmallChange="0.01"
                                        LargeChange="0.1"
                                        HandlesVisibility="Visible"
                                        Style="{StaticResource ThumbnailSliderStyle}"
                                        Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ScaleDownFactor, Mode=TwoWay, Converter={StaticResource ReciprocalDoubleConverter}}"/>
                            </StackPanel>
                            <Rectangle Grid.RowSpan="2" Width="1" Fill="{TemplateBinding BorderBrush}" HorizontalAlignment="Right" VerticalAlignment="Stretch"/>
                            <Rectangle Height="1" Fill="{TemplateBinding BorderBrush}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"/>
                        </Grid>
                        <Grid Grid.Column="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <TextBlock
                                    Margin="15 15 15 0"
                                    HorizontalAlignment="Left"
                                    FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                                    FontSize="{telerik1:GreenResource ResourceKey=FontSize}"
                                    Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"
                                    Text="{telerik:LocalizableResource Key=PrintPreview_Print}"/>
                            <telerik:RadComboBox
                                    Grid.Row="1"
                                    Margin="15 10 15 0"
                                    ItemsSource="{Binding PrintQueues, Mode=OneWay}"
                                    SelectedItem="{Binding SelectedPrintQueue, Mode=TwoWay}"
                                    DisplayMemberPath="Name"
                                    Style="{StaticResource PrintPreviewComboStyle}"/>
                            <TextBlock
                                    Grid.Row="2"
                                    Margin="15 15 15 0"
                                    HorizontalAlignment="Left"
                                    Foreground="{telerik1:GreenResource ResourceKey=MarkerBrush}"
                                    Text="{telerik:LocalizableResource Key=PrintPreview_Settings}"
                                    FontFamily="{telerik1:GreenResource ResourceKey=FontFamily}"
                                    FontSize="{telerik1:GreenResource ResourceKey=FontSize}"/>
                            <telerik:RadComboBox
                                    Grid.Row="3"
                                    Margin="15 10 15 0"
                                    ItemsSource="{Binding PageOrientations, Mode=OneWay}"
                                    SelectedItem="{Binding SelectedPageOrientation, Mode=TwoWay}"
                                    DisplayMemberPath=""
                                    Style="{StaticResource PrintPreviewComboStyle}"/>
                            <telerik:RadComboBox
                                    Grid.Row="4"
                                    Margin="15 15 15 0"
                                    ItemsSource="{Binding PageSizes, Mode=OneWay}"
                                    SelectedItem="{Binding SelectedPageSize, Mode=TwoWay}"
                                    DisplayMemberPath="PageMediaSizeName"
                                    SelectionBoxTemplate="{StaticResource PageSizesSelectedItemTemplate}"
                                    Style="{StaticResource PrintPreviewComboStyle}"/>
                            <telerik:RadButton x:Name="PART_PrintButton"
                                    Grid.Row="6"
                                    HorizontalContentAlignment="Center"
                                    VerticalAlignment="Bottom"
                                    Margin="15 14"
                                    Content="{telerik:LocalizableResource Key=PrintPreview_Print}"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="extensions:RadDiagramPrintPreview" BasedOn="{StaticResource RadDiagramPrintPreviewStyle}"/>
    <Style TargetType="extensions:RadDiagramPrintPreviewItem" BasedOn="{StaticResource RadDiagramPrintPreviewItemStyle}"/>
</ResourceDictionary>
