Skip to content

fix(TabBar): make SimpleVerticalTabBarStyle a real vertical rail (backport #1624) - #1625

Merged
kazo0 merged 1 commit into
release/stable/9.1from
mergify/bp/release/stable/9.1/pr-1624
Aug 7, 2026
Merged

kazo0 merged 1 commit into
release/stable/9.1from
mergify/bp/release/stable/9.1/pr-1624

Conversation

@mergify

@mergify mergify Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): N/A — gap found while building a responsive dual-TabBar navigation shell (bottom TabBar when narrow, vertical side-rail TabBar when wide) on the Simple theme.

PR Type

  • Bugfix

What is the current behavior?

SimpleVerticalTabBarStyle is a bare alias of SimpleTopTabBarStyle (a first-pass mapping from the SDS bring-up), so Style="{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 a VerticalTabBarBackground resource that nothing consumes — the vertical style was clearly intended but never fleshed out. The same markup works on Material because MaterialVerticalTabBarStyle is a real rail style.

What is the new behavior?

SimpleVerticalTabBarStyle is a real vertical rail, mirroring the Material vertical setters on top of BaseSimpleTabBarStyle:

  • Orientation="Vertical" with a vertical utu:TabBarListPanel items panel (same panel MaterialVerticalTabBarStyle uses)
  • Background="{ThemeResource VerticalTabBarBackground}" — the previously unused resource
  • MinWidth="{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 Simple
  • ItemContainerStyle stays SimpleVerticalTabBarItemStyle (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

  • Note for maintainers: running the Debug samples app from source currently trips an unrelated Debug.Assert on startup (CreateWeakHandler: onEvent must be a static/non-capturing delegate) in SafeArea/WeakEventHelper — Target is null is false even for static lambdas because the compiler emits them as instance methods on the cached field-less <>c singleton. 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.

@kazo0
kazo0 enabled auto-merge (squash) August 7, 2026 19:19
@kazo0
kazo0 merged commit 156824a into release/stable/9.1 Aug 7, 2026
17 checks passed
@kazo0
kazo0 deleted the mergify/bp/release/stable/9.1/pr-1624 branch August 7, 2026 19:32
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.

2 participants