HandyControl
HandyControl copied to clipboard
TabItem custom header foreground color does not change dynamically
Describe the bug
TabItem custom header foreground does not change dynamically.
Steps to reproduce the bug
<TabControl Style="{StaticResource TabControlCapsuleSolid}">
<TabItem>
<TabItem.Header>
<TextBlock Text="MyHeader" />
</TabItem.Header>
</TabItem>
</TabControl>
Expected behavior
The effect should be equivalent to this:
<TabControl Header="MyHeader"
Style="{StaticResource TabControlCapsuleSolid}">
</TabControl>
Screenshots
The foreground color of the selected header should be white:
NuGet package version
HandyControls (Custom version) 3.4.0
IDE
Visual Studio 2022
Framework type
.Net 6.0
Windows version
Windows 11 (22000)
Additional context
No response