Skip to content

fix(tabview): Sync TabView with WinUI 2.6.5 - #26504

Merged
MartinZikmund merged 3 commits into
masterfrom
sync/winui/tabview
Nov 23, 2026
Merged

MartinZikmund merged 3 commits into
masterfrom
sync/winui/tabview

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #26503

PR Type:

💬 Other: automated sync of ported WinUI code

What changed? 🚀

Ports the upstream changes to TabView up to WinUI 2.6.5 and moves its sync baseline.

  • Port build: passed (no tests were run)
  • Skipped items: 0

Sync to WinUI 2.6.5 (65718e2813 → c29edd64ae)

Upstream changes

  • TabView.cpp: removed velocity.h include.
  • TabView.cpp: RequestCloseTab uses FocusManager::GetFocusedElement(XamlRoot()).
  • TabView.cpp: RequestCloseTab losing-focus handler returns early if the new focused element equals args.NewFocusedElement().
  • TabView.cpp: MoveFocus uses GetFocusedElement(XamlRoot()), and returns the real Focus() result instead of asserting inside MUX_ASSERT.
  • TabView.xaml: removed TabContainer.Padding setters from the three selected visual states; CloseIconStates now sets padding with TabViewItemHeaderPaddingWithCloseButton / TabViewItemHeaderPaddingWithoutCloseButton.
  • TabView_themeresources.xaml: added the two padding resources; TabViewSelectedItemHeaderMargin changed to -1,0,-1,1.
  • TabView_perf2026.xaml and TabView.vcxitems: new perf2026 variant, plus its project registration.

Ported

  • TabView.cpp (GetFocusedElement with XamlRoot in RequestCloseTab) -> TabView.cs; already present.
  • TabView.cpp (same-element no-op in OnLosingFocus) -> TabView.cs; already present.
  • TabView.cpp (MoveFocus GetFocusedElement and focusResult) -> TabView.cs; already present.
  • TabView.xaml (padding setters and CloseIconStates) -> Uno.UI.FluentTheme TabView.xaml; already present.
  • TabView_themeresources.xaml (new padding resources, margin change) -> Uno.UI.FluentTheme TabView_themeresources.xaml; already present.

Not applicable

  • velocity.h include removal: C++ include, no equivalent in Uno.
  • TabView_perf2026.xaml: perf2026 variant that Uno does not use.
  • TabView.vcxitems: Windows project file.
  • No test changes upstream in this range.

Skipped

None

PR Checklist ✅

@github-actions github-actions Bot added the winui-sync Automated sync of code ported from WinUI label Nov 16, 2026
@CLAassistant

CLAassistant commented Nov 16, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ MartinZikmund
❌ github-actions[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

Moves the branch's baseline into build/winui-sync/areas/tabview.json, which
replaced areas.json on master (#26653).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtzaC5dx4oo2ZVG5BHB
@github-actions github-actions Bot added area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation labels Nov 23, 2026
@MartinZikmund
MartinZikmund marked this pull request as ready for review November 23, 2026 10:08
@MartinZikmund
MartinZikmund merged commit b62a52a into master Nov 23, 2026
19 checks passed
@MartinZikmund
MartinZikmund deleted the sync/winui/tabview branch November 23, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation winui-sync Automated sync of code ported from WinUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[WinUI Sync] TabView → WinUI 2.6.5

2 participants