WPF TabControl theme issue
When using this theme for tabs, the IsMouseOver trigger, triggered whenever you enter the whole space of the tab, I want it to be triggered just when its over the tab header.
<Style TargetType="TabItem">
<Setter Property="FontFamily" Value="{StaticResource ResourceFont}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TabItem">
<Border Name="Border" BorderThickness="3,3,3,0" BorderBrush="Navy" Padding="5,1,5,2" CornerRadius="5,5,0,0" Margin="2,0" >
<ContentPresenter x:Name="ContentSite"
VerticalAlignment="Center"
HorizontalAlignment="Center"
ContentSource="Header"
RecognizesAccessKey="True" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Foreground" Value="Cyan"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="TabItem">
<Setter Property="FontFamily" Value="{StaticResource ResourceFont}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TabItem">
<Border Name="Border" BorderThickness="3,3,3,0" BorderBrush="Navy" Padding="5,1,5,2" CornerRadius="5,5,0,0" Margin="2,0" >
<ContentPresenter x:Name="ContentSite"
VerticalAlignment="Center"
HorizontalAlignment="Center"
ContentSource="Header"
RecognizesAccessKey="True" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Foreground" Value="Cyan"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
0 Replies