Skip to content

chore(winui-sync): Track Generic.xaml - #26478

Merged
MartinZikmund merged 2 commits into
masterfrom
dev/mazi/winui-sync-genericxaml
Nov 14, 2026
Merged

MartinZikmund merged 2 commits into
masterfrom
dev/mazi/winui-sync-genericxaml

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: closes #26477

PR Type:

  • 🤖 Project automation (WinUI port sync onboarding)

What changed? 🚀

Follow-up to #26467: onboards Uno.UI's Generic.xaml to the WinUI Port Sync, recorded at WinUI 2.6.5.

Path
Upstream dxaml/xcp/dxaml/themes/generic.xaml (file-level)
Uno src/Uno.UI/UI/Xaml/Style/Generic/Generic.xaml
Uno src/Uno.UI/UI/Xaml/Style/Generic/UnoGenericOverlay.xaml

The overlay is mapped deliberately: it holds Uno's copies of the GridView and FlipView styles, so a sync that changes those upstream styles is told to update the copies too. Upstream's generic_perf2026.xaml is Windows build plumbing and is not mapped. No tests or strings belong to this area.

Starting point and catch-up

Line-by-line review against 2.6.5

  • Generic.xaml is byte-identical to upstream 2.6.5 (ignoring line endings), apart from its header line.
  • The overlay's copied styles, compared with the same styles in upstream 2.6.5:
Style Difference from upstream 2.6.5
GridView ItemsWrapGrid Orientation="Horizontal" → WrapPanel (Horizontal is its default); the Border attributes are reflowed, same values
FlipView VirtualizingStackPanel → StackPanel, nothing else

Workaround audit (UnoGenericOverlay.xaml)

Entry What it does Verdict Evidence
ItemsControl style Gives ItemsControl a template with an ItemsPresenter Kept Uno's ItemsControl.OnApplyTemplate still relies on a templated ItemsPresenter; WinUI's CItemsControl::ApplyTemplate behaviour is not ported
WebView / WebView2 styles Template with a WebViewTemplateRoot presenter Kept CoreWebView2 attaches the native view to that presenter
GridView style WrapPanel instead of ItemsWrapGrid Kept ItemsWrapGrid is still [Uno.NotImplemented("__SKIA__")]
FlipView style StackPanel instead of VirtualizingStackPanel Kept VirtualizingStackPanel is still [Uno.NotImplemented("__SKIA__")]; its port holds only a layout helper

All four overlay comments state the current reason; none needed rewording.

Headers

The MUX Reference header now names only the upstream file. The area's baseline records the version, the convention proposed in #26474 for tracked areas. The overlay is Uno-only and has no MUX header.

Validation

  • Compile: src/Uno.UI/Uno.UI.csproj (net10.0, analyzers on), 0 errors. This covers the XAML merge and generator over the edited file.
  • Tooling: detect.ps1 -AreaFilter genericxaml reports up to date at the 2.6.5 baseline; 110 Pester tests pass on this branch.
  • Not run: runtime tests. The only source change is the header comment.

PR Checklist ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw

MartinZikmund and others added 2 commits November 14, 2026 11:54
Uno.UI's Generic.xaml is WinUI's dxaml/xcp/dxaml/themes/generic.xaml verbatim, and its Uno deltas live in UnoGenericOverlay.xaml; both are mapped, so a sync that changes a style Uno overrides is told about the overlay copy too.

Recorded at WinUI 2.6.5 (c29edd64ae): the file is byte-identical to upstream 2.6.5 apart from its header, and upstream did not change it between 2.5.1 (the header's tag) and 2.6.5. Detection reports the area up to date.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
The area is tracked, so the MUX Reference header names only the upstream file; the area's baseline records the version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
Copilot AI balanced review requested due to automatic review settings November 14, 2026 10:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Nov 14, 2026
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 13s —— View job


Review of PR #26478

Verdict: ship. No issues found (0 blocker, 0 major, 0 minor), so I posted no inline comments.

  • Scope: The diff is small. It adds a genericxaml area to build/winui-sync/areas.json and trims the MUX Reference header in Generic.xaml. The only source change is an XML comment.
  • Fit with the existing config: The new areas.json entry has the same shape as the neighbouring entries: id, title, baseline, upstream.sources and uno.sources. Mapping UnoGenericOverlay.xaml as a Uno source is reasonable, because it holds the GridView and FlipView style copies.
  • Header change: Dropping the tag and commit from the header matches the convention the PR cites, where the area baseline records the version. I did not check whether other tracked files follow that convention.
  • Conventions: The PR title and commits are Conventional Commits. The PR links an issue, and I saw no code-style, events, async or DependencyProperty concerns.
  • Validation: I reviewed the diff only. I did not build, run detect.ps1 or run the Pester tests. The PR description reports a clean compile and a passing detect.ps1 check.
    · branch dev/mazi/winui-sync-genericxaml

@mergify

mergify Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@MartinZikmund
MartinZikmund merged commit cf61ea6 into master Nov 14, 2026
20 of 28 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/winui-sync-genericxaml branch November 14, 2026 10:58
@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WinUI Port Sync: track Generic.xaml

3 participants