You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TabView arrow-key tab navigation does nothing in Release builds #24560
With keyboard focus on a TabViewItem, pressing Left/Right is marked as handled, but focus never moves. This only happens in Release builds; Debug builds behave correctly.
TabView.MoveFocus calls control.Focus(FocusState.Keyboard) inside MUX_ASSERT(...). Uno's MUX_ASSERT is [Conditional("DEBUG")], so the compiler drops the whole call, including its argument, from Release builds, and MoveFocus still returns true.
Expected behavior 🎯
Focus follows the WinUI order: Tab 1 → Tab 1 close button → Tab 2 → … → add-tab button. WinUI fixed the same pattern upstream (winui3/release/2.5.1, TabView::MoveFocus) by hoisting the Focus() call out of the assert.
How to reproduce it (as minimally and precisely as possible) 🔬
Build an app in Release with a TabView containing two TabViewItems.
Tab into the first tab so it has keyboard focus.
Press Right. Focus stays on the first tab.
Workaround 🛠️
None.
Renderer 🎨
Skia
Native
Affected platforms 📱💻🖥️
All platforms 🌍
Uno.Sdk version (and other relevant versions) 📦
master (7.0 dev)
IDE version 🧑💻
No response
Anything else we need to know? 💬
Found while auditing Uno's WinUI ports against winui3/release/2.5.1. No other side-effecting MUX_ASSERT/Debug.Assert calls exist in src/.
Activity
fix(tests): Isolate TabView focus-order test, link issue
fix(tests): Isolate TabView focus-order test, link issue
fix(tests): Isolate TabView focus-order test, link issue
Jen-Uno commentedon Sep 30, 2026
QA: closing out without a manual pass. The fix in #24564 ships with automated tests (
Given_TabView.cs) that exercise the change.If you still see this behaviour on a build that includes that PR, please reopen or comment here.
fix(tests): Isolate TabView focus-order test, link issue
fix(tests): Isolate TabView focus-order test, link issue