HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

TabItem custom header foreground color does not change dynamically

Open CodingOctocat opened this issue 1 year ago • 0 comments

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:

微信截图_20220723221633

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

CodingOctocat avatar Jul 23 '22 14:07 CodingOctocat