Skip to content

Applies ColorZoneAssist forwarding to (rail) TabItems#4071

Merged
Keboo merged 1 commit into
masterfrom
nicolai/issue3962
Jun 19, 2026
Merged

Applies ColorZoneAssist forwarding to (rail) TabItems#4071
Keboo merged 1 commit into
masterfrom
nicolai/issue3962

Conversation

@nicolaihenriksen

@nicolaihenriksen nicolaihenriksen commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #3962

Ensures (rail) TabItems within a TabControl correctly inherit ColorZoneAssist properties in the same way normal TabItems do.

This change binds the Foreground and Mode properties of TabItem to the corresponding ColorZoneAssist properties of its ancestor TabControl, providing consistent theming.

I suspect this was unintentionally missed when the forwarding of the ColorZoneAssist values was added to the normal TabItem template in the huge PR #2911.

Ensures TabItems within a TabControl correctly adopt the parent's
ColorZoneAssist.Background, Foreground, and Mode properties.
This resolves styling inconsistencies when a TabControl is used within a ColorZone.

Fixes #3962
@nicolaihenriksen nicolaihenriksen changed the title Applies ColorZoneAssist to TabItems Applies ColorZoneAssist to (rail) TabItems Jun 15, 2026
@nicolaihenriksen nicolaihenriksen added this to the 5.3.3 milestone Jun 15, 2026
@nicolaihenriksen nicolaihenriksen changed the title Applies ColorZoneAssist to (rail) TabItems Applies ColorZoneAssist forwarding to (rail) TabItems Jun 15, 2026
@Keboo Keboo merged commit 34f2666 into master Jun 19, 2026
2 checks passed
@Keboo Keboo deleted the nicolai/issue3962 branch June 19, 2026 04:52
adrbarros added a commit to adrbarros/MaterialDesignInXamlToolkit that referenced this pull request Jun 19, 2026
fix(TabControl): Apply ColorZoneAssist properties to TabItems (MaterialDesignInXAML#4071)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MaterialDesignNavigationRailTabControl with materialDesign:ColorZoneAssist.Mode="Custom"

2 participants