I Create the Style For TabControl When i give this style to any TabControl it gives Exception when i build Project ""'ContentPanel' name cannot be found in the name scope of 'System.Windows.Controls.ControlTemplate'."" Please please help me.
<Style x:Key="MedicalTabControlStyle" TargetType="{x:Type TabControl}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabControl}">
<ControlTemplate.Resources>
<Storyboard x:Key="OnSelectionChanged1">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ContentPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)\[3\].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ContentPanel" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)\[0\].(ScaleTransform.ScaleX)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</ControlTemplate.Resources>
<Grid x:Name="MainGrid" SnapsToDevicePixels="true" KeyboardNavigation.TabNavigation="Local" Background="{x:Null}">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="ColumnDefinition0" Width="Auto" MinWidth="65"/>
<ColumnDefinition x:Name="ColumnDefinition1" Width="\*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition x:Name="RowDefinition0" Height="Auto"/>
<RowDefinition x:Name="RowDefinition1" Height="\*"/>
</Grid.RowDefinitions>
<Grid x:Name="GrdMain" Margin="0,5" ClipToBounds="False" Panel.ZIndex="-1">
<Border Margin="0" MinWidth="100" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Stretch" CornerRadius="3" Padding="1,1,1,2" ClipToBounds="True" BorderThickness="1,1,1,3" BorderBrush="#FF