<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:primitive="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls.Navigation"
		xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
		xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
                    >
    
    <!--Normal State:-->                
    <Storyboard x:Key="TabItemNormalVisualState"/>

    <!--TabItemTopTemplate-->
    <ControlTemplate x:Key="TabItemTopTemplate" TargetType="telerik:RadTabItem">
        <Grid x:Name="wrapper">
            <Grid.Resources>
                <primitive:TabItemMarginConverter x:Key="TabItemMarginConverter" SelectedMargin="0 2 -1 -2" UnselectedMargin="0 4 -1 0" />
            </Grid.Resources>
            <vsm:VisualStateManager.VisualStateGroups>
                <vsm:VisualStateGroup x:Name="CommonStateGroup">
                    <!--Normal State-->
                    <vsm:VisualState x:Name="Normal" Storyboard="{StaticResource TabItemNormalVisualState}" />
                    <!--MouseOver State-->
                    <vsm:VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="innerBorder" Storyboard.TargetProperty="Background">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <LinearGradientBrush EndPoint="0,1">
                                                <GradientStop Offset="0" Color="#E8FFFFFF"/>
                                                <GradientStop Offset="0.4" Color="#68FFFFFF"/>
                                                <GradientStop Offset="0.4" Color="#17CCCCCC"/>
                                                <GradientStop Offset="1" Color="#B0FFFFFF"/>
                                            </LinearGradientBrush>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                    <!--Selected State-->
                    <vsm:VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="innerBorder" Storyboard.TargetProperty="Background">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <LinearGradientBrush EndPoint="0,1">
                                            <GradientStop Offset="0" Color="#E8FFFFFF"/>
                                            <GradientStop Offset="0.35" Color="#B3FFFFFF"/>
                                            <GradientStop Offset="0.35" Color="#78EEEEEE"/>
                                            <GradientStop Offset="1" Color="#4CFFFFFF"/>
                                        </LinearGradientBrush>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation 
                                Storyboard.TargetName="HeaderWrapper"
                                Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)"
                                To="-2"
                                Duration="0"
                                />
                        </Storyboard>
                    </vsm:VisualState>
                    <!--Disabled State-->
                    <vsm:VisualState x:Name="Disabled">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="Visibility">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Visible</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                </vsm:VisualStateGroup>
                <vsm:VisualStateGroup x:Name="FocusStates">
                    <!--Normal State-->
                    <vsm:VisualState x:Name="Unfocused">
                        <Storyboard/>
                    </vsm:VisualState>
                    <vsm:VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusRectangleElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                </vsm:VisualStateGroup>

            </vsm:VisualStateManager.VisualStateGroups>
            <Border 
                    x:Name="outerBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    BorderBrush="{TemplateBinding BorderBrush}" 
                    BorderThickness="1 1 1 0" 
                    CornerRadius="4,4,0,0"
                    Background="{TemplateBinding Background}"
                    />
            <Border 
                    Margin="1 1 1 0" x:Name="innerBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    BorderBrush="#FFFFFF" 
                    BorderThickness="1 1 1 0" 
                    CornerRadius="3,3,0,0" 
                    >
                <Border.Background>
                    <LinearGradientBrush EndPoint="0,1">
                        <GradientStop Offset="0" Color="#E8FFFFFF"/>
                        <GradientStop Offset="0.4" Color="#9CFFFFFF"/>
                        <GradientStop Offset="0.4" Color="#94DDDDDD"/>
                        <GradientStop Offset="1" Color="#B0FFFFFF"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Grid x:Name="HeaderWrapper">
                    <primitive:TabItemContentPresenter x:Name="HeaderElement"
                                                  Content="{TemplateBinding Header}"
                                                  ContentTemplate="{TemplateBinding HeaderTemplate}"
												  FontFamily="{TemplateBinding FontFamily}"
												  FontSize="{TemplateBinding FontSize}"
												  FontStretch="{TemplateBinding FontStretch}"
												  FontStyle="{TemplateBinding FontStyle}"
												  FontWeight="{TemplateBinding FontWeight}"
												  Foreground="{TemplateBinding Foreground}"
												  HorizontalAlignment="Stretch"
												  HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
												  VerticalAlignment="Stretch"
												  VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
												  Padding="{TemplateBinding Padding}"
												  >
                    </primitive:TabItemContentPresenter>
                    <Grid.RenderTransform>
                        <TranslateTransform/>
                    </Grid.RenderTransform>
                    </Grid>
            </Border>
            <Rectangle 
                        x:Name="FocusRectangleElement" 
                        Stroke="#333333" 
                        StrokeDashArray=".2 3"
                        Margin="3"
                        Visibility="Collapsed"
                        StrokeDashCap="Square" 
                        IsHitTestVisible="false" />
            <Border 
                    x:Name="disabledBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    CornerRadius="5,5,0,0"
                    Visibility="Collapsed"
                    IsHitTestVisible="True"
                    Background="#80FFFFFF"/>
        </Grid>
    </ControlTemplate>

    <!--TabItemRightTemplate-->
    <ControlTemplate x:Key="TabItemRightTemplate" TargetType="telerik:RadTabItem">
        <Grid x:Name="wrapper">
            <Grid.Resources>
                <primitive:TabItemMarginConverter x:Key="TabItemMarginConverter" SelectedMargin="-2 0 2 -1" UnselectedMargin="0 0 4 -1" />
            </Grid.Resources>
            <vsm:VisualStateManager.VisualStateGroups>
                <vsm:VisualStateGroup x:Name="CommonStateGroup">
                    <!--Normal State-->
                    <vsm:VisualState x:Name="Normal">
                        <Storyboard>
                        </Storyboard>
                    </vsm:VisualState>
                    <!--MouseOver State-->
                    <vsm:VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="innerBorder" Storyboard.TargetProperty="Background">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <LinearGradientBrush StartPoint="1,0" EndPoint="0,0">
                                                <GradientStop Offset="0" Color="#E8FFFFFF"/>
                                                <GradientStop Offset="0.4" Color="#68FFFFFF"/>
                                                <GradientStop Offset="0.4" Color="#17CCCCCC"/>
                                                <GradientStop Offset="1" Color="#B0FFFFFF"/>
                                            </LinearGradientBrush>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                    <!--Selected State-->
                    <vsm:VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="innerBorder" Storyboard.TargetProperty="Background">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <LinearGradientBrush StartPoint="1,0" EndPoint="0,0">
                                                <GradientStop Offset="0" Color="#E8FFFFFF"/>
                                                <GradientStop Offset="0.35" Color="#B3FFFFFF"/>
                                                <GradientStop Offset="0.35" Color="#78EEEEEE"/>
                                                <GradientStop Offset="1" Color="#4CFFFFFF"/>
                                            </LinearGradientBrush>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation 
                                Storyboard.TargetName="HeaderWrapper"
                                Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                                To="2"
                                Duration="0"
                                />
                        </Storyboard>
                    </vsm:VisualState>
                    <!--Disabled State-->
                    <vsm:VisualState x:Name="Disabled" >
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="Visibility">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Visible</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                </vsm:VisualStateGroup>
                <vsm:VisualStateGroup x:Name="FocusStates">
                    <!--Normal State-->
                    <vsm:VisualState x:Name="Unfocused">
                        <Storyboard/>
                    </vsm:VisualState>
                    <vsm:VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusRectangleElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                </vsm:VisualStateGroup>
            </vsm:VisualStateManager.VisualStateGroups>
            <Border 
                    x:Name="outerBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    BorderBrush="{TemplateBinding BorderBrush}" 
                    BorderThickness="0 1 1 1" 
                    CornerRadius="0,4,4,0"
                    Background="{TemplateBinding Background}"
                    />
            <Border 
                    Margin="0 1 1 1" x:Name="innerBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    BorderBrush="#FFFFFF" 
                    BorderThickness="0 1 1 1" 
                    CornerRadius="0,3,3,0" 
                    >
                <Border.Background>
                    <LinearGradientBrush StartPoint="1,0" EndPoint="0,0">
                        <GradientStop Offset="0" Color="#E8FFFFFF"/>
                        <GradientStop Offset="0.4" Color="#9CFFFFFF"/>
                        <GradientStop Offset="0.4" Color="#94DDDDDD"/>
                        <GradientStop Offset="1" Color="#B0FFFFFF"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Grid x:Name="HeaderWrapper">
                <primitive:TabItemContentPresenter x:Name="HeaderElement"
                                                  Content="{TemplateBinding Header}"
                                                  ContentTemplate="{TemplateBinding HeaderTemplate}"
												  FontFamily="{TemplateBinding FontFamily}"
												  FontSize="{TemplateBinding FontSize}"
												  FontStretch="{TemplateBinding FontStretch}"
												  FontStyle="{TemplateBinding FontStyle}"
												  FontWeight="{TemplateBinding FontWeight}"
												  Foreground="{TemplateBinding Foreground}"
												  HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
												  Padding="{TemplateBinding Padding}"
												  VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
												  VerticalAlignment="Stretch"
												  HorizontalAlignment="Stretch"
												  />
                    <Grid.RenderTransform>
                        <TranslateTransform/>
                    </Grid.RenderTransform>
                </Grid>
            </Border>
            <Rectangle 
                        x:Name="FocusRectangleElement" 
                        Stroke="#333333" 
                        StrokeDashArray=".2 3"
                        Margin="3"
                        StrokeDashCap="Square" 
                        IsHitTestVisible="false"
                        Visibility="Collapsed" />
            <Border 
                    x:Name="disabledBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    CornerRadius="0,4,4,0"
                    Visibility="Collapsed"
                    IsHitTestVisible="True"
                    Background="#80FFFFFF"/>
        </Grid>
    </ControlTemplate>

    <!--TabItemBottomTemplate-->
    <ControlTemplate x:Key="TabItemBottomTemplate" TargetType="telerik:RadTabItem">
        <Grid x:Name="wrapper">
            <Grid.Resources>
                <primitive:TabItemMarginConverter x:Key="TabItemMarginConverter" SelectedMargin="0 -2 -1 2" UnselectedMargin="0 0 -1 4" />
            </Grid.Resources>
            <vsm:VisualStateManager.VisualStateGroups>
                <vsm:VisualStateGroup x:Name="CommonStateGroup">
                    <!--Normal State-->
                    <vsm:VisualState x:Name="Normal">
                        <Storyboard>
                        </Storyboard>
                    </vsm:VisualState>
                    <!--MouseOver State-->
                    <vsm:VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="innerBorder" Storyboard.TargetProperty="Background">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <LinearGradientBrush StartPoint="0,1" EndPoint="0,0">
                                                <GradientStop Offset="0" Color="#E8FFFFFF"/>
                                                <GradientStop Offset="0.4" Color="#68FFFFFF"/>
                                                <GradientStop Offset="0.4" Color="#17CCCCCC"/>
                                                <GradientStop Offset="1" Color="#B0FFFFFF"/>
                                            </LinearGradientBrush>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                    <!--Selected State-->
                    <vsm:VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="innerBorder" Storyboard.TargetProperty="Background">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <LinearGradientBrush StartPoint="0,1" EndPoint="0,0">
                                                <GradientStop Offset="0" Color="#E8FFFFFF"/>
                                                <GradientStop Offset="0.35" Color="#B3FFFFFF"/>
                                                <GradientStop Offset="0.35" Color="#78EEEEEE"/>
                                                <GradientStop Offset="1" Color="#4CFFFFFF"/>
                                            </LinearGradientBrush>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation 
                                Storyboard.TargetName="HeaderWrapper"
                                Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)"
                                To="2"
                                Duration="0"
                                />
                        </Storyboard>
                    </vsm:VisualState>
                    <!--Disabled State-->
                    <vsm:VisualState x:Name="Disabled" >
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="Visibility">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Visible</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                </vsm:VisualStateGroup>
                <vsm:VisualStateGroup x:Name="FocusStates">
                    <!--Normal State-->
                    <vsm:VisualState x:Name="Unfocused">
                        <Storyboard/>
                    </vsm:VisualState>
                    <vsm:VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusRectangleElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                </vsm:VisualStateGroup>
            </vsm:VisualStateManager.VisualStateGroups>
            <Border 
                    x:Name="outerBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    BorderBrush="{TemplateBinding BorderBrush}" 
                    BorderThickness="1 0 1 1" 
                    CornerRadius="0,0,4,4"
                    Background="{TemplateBinding Background}"
                    />
            <Border 
                    Margin="1 0 1 1" x:Name="innerBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    BorderBrush="#FFFFFF" 
                    BorderThickness="1 0 1 1" 
                    CornerRadius="0,0,3,3" 
                    >
                <Border.Background>
                    <LinearGradientBrush StartPoint="0,1" EndPoint="0,0">
                        <GradientStop Offset="0" Color="#E8FFFFFF"/>
                        <GradientStop Offset="0.4" Color="#9CFFFFFF"/>
                        <GradientStop Offset="0.4" Color="#94DDDDDD"/>
                        <GradientStop Offset="1" Color="#B0FFFFFF"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Grid x:Name="HeaderWrapper">
                <primitive:TabItemContentPresenter x:Name="HeaderElement"
                                                  Content="{TemplateBinding Header}"
                                                  ContentTemplate="{TemplateBinding HeaderTemplate}"
												  FontFamily="{TemplateBinding FontFamily}"
												  FontSize="{TemplateBinding FontSize}"
												  FontStretch="{TemplateBinding FontStretch}"
												  FontStyle="{TemplateBinding FontStyle}"
												  FontWeight="{TemplateBinding FontWeight}"
												  Foreground="{TemplateBinding Foreground}"
												  HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
												  Padding="{TemplateBinding Padding}"
												  VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
												  VerticalAlignment="Stretch"
												  HorizontalAlignment="Stretch"
												  />
		            <Grid.RenderTransform>
                        <TranslateTransform/>
                    </Grid.RenderTransform>
                </Grid>
            </Border>
            <Rectangle 
                        x:Name="FocusRectangleElement" 
                        Stroke="#333333" 
                        StrokeDashArray=".2 3"
                        Margin="3"
                        StrokeDashCap="Square" 
                        IsHitTestVisible="false"
                        Visibility="Collapsed" />
            <Border 
                    x:Name="disabledBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    CornerRadius="0,0,4,4"
                    Visibility="Collapsed"
                    IsHitTestVisible="True"
                    Background="#80FFFFFF"/>
        </Grid>
    </ControlTemplate>

    <!--TabItemLeftTemplate-->
    <ControlTemplate x:Key="TabItemLeftTemplate" TargetType="telerik:RadTabItem">
        <Grid x:Name="wrapper">
            <Grid.Resources>
                <primitive:TabItemMarginConverter x:Key="TabItemMarginConverter" SelectedMargin="2 0 -2 -1" UnselectedMargin="4 0 0 -1" />
            </Grid.Resources>
            <vsm:VisualStateManager.VisualStateGroups>
                <vsm:VisualStateGroup x:Name="CommonStateGroup">
                    <!--Normal State-->
                    <vsm:VisualState x:Name="Normal">
                        <Storyboard/>
                    </vsm:VisualState>
                    <!--MouseOver State-->
                    <vsm:VisualState x:Name="MouseOver">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="innerBorder" Storyboard.TargetProperty="Background">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                                <GradientStop Offset="0" Color="#E8FFFFFF"/>
                                                <GradientStop Offset="0.4" Color="#68FFFFFF"/>
                                                <GradientStop Offset="0.4" Color="#17CCCCCC"/>
                                                <GradientStop Offset="1" Color="#B0FFFFFF"/>
                                            </LinearGradientBrush>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                    <!--Selected State-->
                    <vsm:VisualState x:Name="Selected">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="innerBorder" Storyboard.TargetProperty="Background">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                                <GradientStop Offset="0" Color="#E8FFFFFF"/>
                                                <GradientStop Offset="0.35" Color="#B3FFFFFF"/>
                                                <GradientStop Offset="0.35" Color="#78EEEEEE"/>
                                                <GradientStop Offset="1" Color="#4CFFFFFF"/>
                                            </LinearGradientBrush>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimation 
                                Storyboard.TargetName="HeaderWrapper"
                                Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                                To="-2"
                                Duration="0"
                                />
                        </Storyboard>
                    </vsm:VisualState>
                    <!--Disabled State-->
                    <vsm:VisualState x:Name="Disabled" >
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="Visibility">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Visible</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                </vsm:VisualStateGroup>
                <vsm:VisualStateGroup x:Name="FocusStates">
                    <!--Normal State-->
                    <vsm:VisualState x:Name="Unfocused">
                        <Storyboard/>
                    </vsm:VisualState>
                    <vsm:VisualState x:Name="Focused">
                        <Storyboard>
                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="FocusRectangleElement" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                    <DiscreteObjectKeyFrame.Value>
                                        <Visibility>Visible</Visibility>
                                    </DiscreteObjectKeyFrame.Value>
                                </DiscreteObjectKeyFrame>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </vsm:VisualState>
                </vsm:VisualStateGroup>
            </vsm:VisualStateManager.VisualStateGroups>
            <Border 
                    x:Name="outerBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    BorderBrush="{TemplateBinding BorderBrush}" 
                    BorderThickness="1 1 0 1" 
                    CornerRadius="4,0,0,4"
                    Background="{TemplateBinding Background}"
                    />
            <Border 
                    Margin="1 1 0 1" x:Name="innerBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    BorderBrush="#FFFFFF" 
                    BorderThickness="1 1 0 1" 
                    CornerRadius="3,0,0,3" 
                    >
                <Border.Background>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                        <GradientStop Offset="0" Color="#E8FFFFFF"/>
                        <GradientStop Offset="0.4" Color="#9CFFFFFF"/>
                        <GradientStop Offset="0.4" Color="#94DDDDDD"/>
                        <GradientStop Offset="1" Color="#B0FFFFFF"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Grid x:Name="HeaderWrapper">
                <primitive:TabItemContentPresenter x:Name="HeaderElement"
                                                  Content="{TemplateBinding Header}"
                                                  ContentTemplate="{TemplateBinding HeaderTemplate}"
												  FontFamily="{TemplateBinding FontFamily}"
												  FontSize="{TemplateBinding FontSize}"
												  FontStretch="{TemplateBinding FontStretch}"
												  FontStyle="{TemplateBinding FontStyle}"
												  FontWeight="{TemplateBinding FontWeight}"
												  Foreground="{TemplateBinding Foreground}"
												  HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
												  HorizontalAlignment="Stretch"
												  VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
												  VerticalAlignment="Stretch"
												  Padding="{TemplateBinding Padding}"
												  />
		            <Grid.RenderTransform>
                        <TranslateTransform/>
                    </Grid.RenderTransform>
                </Grid>
            </Border>
            <Rectangle 
                        x:Name="FocusRectangleElement" 
                        Stroke="#333333" 
                        StrokeDashArray=".2 3"
                        Margin="3"
                        StrokeDashCap="Square" 
                        IsHitTestVisible="false"
                        Visibility="Collapsed" />
            <Border 
                    x:Name="disabledBorder" 
                    HorizontalAlignment="Stretch" 
                    VerticalAlignment="Stretch" 
                    CornerRadius="5,5,0,0"
                    Visibility="Collapsed"
                    IsHitTestVisible="True"
                    Background="#80FFFFFF"/>
        </Grid>
    </ControlTemplate>

    <!--RadTabItem-->
    <Style TargetType="telerik:RadTabItem">
        <Setter Property="Background"
				Value="#87C6EF" />
        <Setter Property="Foreground"
				Value="#333333" />
        <Setter Property="MinWidth"
				Value="10" />
        <Setter Property="BorderThickness"
				Value="1" />
        <Setter Property="MinHeight"
				Value="10" />
        <Setter Property="BorderBrush" 
                Value="#8B919F"/>
        <Setter Property="HorizontalContentAlignment"
				Value="Center" />
        <Setter Property="VerticalContentAlignment"
				Value="Center" />
        <Setter Property="Cursor"
				Value="Arrow" />
        <Setter Property="Margin"
	            Value="0 0 0 0"/>
        <Setter Property="Padding" 
	            Value="2" />
        <Setter Property="IsEnabled"
	            Value="True" />
        <Setter Property="Template" 
                Value="{StaticResource TabItemLeftTemplate}"/>
        <Setter Property="FontSize" Value="12" />
    </Style>

</ResourceDictionary>