Repository navigation
fix(TabBar): make SimpleVerticalTabBarStyle a real vertical rail (backport #1624) - #1625
Merged
Merged
Conversation
(cherry picked from commit ef8016f)
kazo0
approved these changes
Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue (If applicable): N/A — gap found while building a responsive dual-
TabBarnavigation shell (bottomTabBarwhen narrow, vertical side-railTabBarwhen wide) on the Simple theme.PR Type
What is the current behavior?
SimpleVerticalTabBarStyleis a bare alias ofSimpleTopTabBarStyle(a first-pass mapping from the SDS bring-up), soStyle="{StaticResource VerticalTabBarStyle}"on the Simple theme silently renders a horizontal top bar: default horizontal items panel, no rail width, squished icons and truncated labels when hosted in a narrow side column. The theme dictionaries already define aVerticalTabBarBackgroundresource that nothing consumes — the vertical style was clearly intended but never fleshed out. The same markup works on Material becauseMaterialVerticalTabBarStyleis a real rail style.What is the new behavior?
SimpleVerticalTabBarStyleis a real vertical rail, mirroring the Material vertical setters on top ofBaseSimpleTabBarStyle:Orientation="Vertical"with a verticalutu:TabBarListPanelitems panel (same panelMaterialVerticalTabBarStyleuses)Background="{ThemeResource VerticalTabBarBackground}"— the previously unused resourceMinWidth="{ThemeResource NavigationTabBarWidthOrHeight}"— the shared toolkit key (80), now defined in the Simple theme dictionaries too, so the existing C# Markup helper (ToolkitTheme.TabBar.Resources.Navigation.WidthOrHeight) resolves on SimpleItemContainerStylestaysSimpleVerticalTabBarItemStyle(the existing icon-over-label item template works vertically as-is)A dual-TabBar responsive shell now renders correctly under the Simple theme with the same markup as Material.
PR Checklist
Please check if your PR fulfills the following requirements:
Other information
Debug.Asserton startup (CreateWeakHandler: onEvent must be a static/non-capturing delegate) inSafeArea/WeakEventHelper—Target is nullis false even forstaticlambdas because the compiler emits them as instance methods on the cached field-less<>csingleton. Deterministic on any Debug source run that touches SafeArea; Release/NuGet consumers are unaffected. Worth a follow-up issue; boot verification for this PR was done with that assert locally patched.Internal Issue (If applicable): N/A
This is an automatic backport of pull request #1624 done by Mergify.