Skip to content

feat(TabControl): Allow changing NavigationButtonStyle - #4109

Merged
Keboo merged 3 commits into
MaterialDesignInXAML:masterfrom
corvinsz:feat/tabControl-navigationButtonStyle
Oct 16, 2026
Merged

Keboo merged 3 commits into
MaterialDesignInXAML:masterfrom
corvinsz:feat/tabControl-navigationButtonStyle

Conversation

@corvinsz

Copy link
Copy Markdown
Member

This PR changes the default style for the navigation buttons in the TabControl to the MaterialDesignIconForegroundButton style.
Additionally an attached property TabAssist.NavigationButtonStyle was added so users can go back to the old style (or use their own) if they wanted to.

The MD3 demo app does not contain a "Tabs" page, so the showcase for the TabAssist.NavigationButtonStyle property has not been added there.

grafik

Adds a new attached property TabAssist.NavigationButtonStyle so users can change the style of the navigation buttons in the TabControl. Additionally the default style for the button was changed to the MaterialDesignIconForegroundButton
@corvinsz corvinsz added the visual breaking change Items here have affected the visual look of controls. label Oct 15, 2026
Update ScrollingTabs_NavigationPanel_ScrollsAndBringsSelectedTabIntoView to use earlier tab indices for selection and assertions, matching the updated scrolling and visibility behavior.
@corvinsz

Copy link
Copy Markdown
Member Author

The new styling increases the width of the buttons. As a result, the test ScrollingTabs_NavigationPanel_ScrollsAndBringsSelectedTabIntoView fails because it selects tabs that are no longer within the visible viewport due to the reduced available space.

Should be fixed now.

Updates the Get/Set methods for `NavigationButtonStyle` to handle null `Style` values and renames the parameter for improved readability.
@Keboo
Keboo enabled auto-merge (squash) October 16, 2026 04:20
@Keboo Keboo added this to the 5.4.0 milestone Oct 16, 2026
@Keboo Keboo added the release notes Items are likely to be highlighted in the release notes. label Oct 16, 2026
@Keboo
Keboo merged commit 4e70396 into MaterialDesignInXAML:master Oct 16, 2026
2 checks passed
adrbarros added a commit to adrbarros/MaterialDesignInXamlToolkit that referenced this pull request Oct 17, 2026
feat(TabControl): Allow changing NavigationButtonStyle (MaterialDesignInXAML#4109)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes Items are likely to be highlighted in the release notes. visual breaking change Items here have affected the visual look of controls.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants