Hello, I am using the following Style on a custom TabItem that I am using:
<Style TargetType="{x:Type local:GSFTabItem}">
<Style.Resources>
<cmn:EnumDisplayConverter x:Key="Converter"
Type="{x:Type crys:GSFOperator}"/>
<local:GSFTabVisibilityConverter x:Key="visibility"/>
</Style.Resources>
<Setter Property="DataContext" Value="{DynamicResource GSFObject}"></Setter>
<Setter Property="Header" Value="{Binding Field}"/>
<Setter Property="Content" Value="{DynamicResource GSFObject}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type local:GSFTabItem}">
<Grid>
<Border Name="Border"
BorderBrush="Black"
BorderThickness=".5,.5,.5,0"
Background="White"
>
<StackPanel Orientation="Horizontal">
<Label VerticalAlignment="Center"
HorizontalAlignment="Center"
Content="{Binding Field}"/>
<Label Content="X"
IsHitTestVisible="True"
View Complete Post