Repository navigation
refactor(controls)!: ContentPresenter.ContentTemplateRoot internal (BC36) - #23748
Conversation
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23748/wasm-skia-net9/index.html |
|
The build 222146 found UI Test snapshots differences: Details
|
265c8ac to
fc10621
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23748/wasm-skia-net9/index.html |
|
The build 222373 found UI Test snapshots differences: Details
|
fc10621 to
1c13164
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23748/wasm-skia-net9/index.html |
|
The build 222516 found UI Test snapshots differences: Details
|
|
|
1c13164 to
fd99d46
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23748/wasm-skia-net9/index.html |
|
The build 222657 found UI Test snapshots differences: Details
|
|
|
fd99d46 to
19f385a
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23748/wasm-skia-net9/index.html |
|
The build 223580 found UI Test snapshots differences: Details
|
745b9b5 to
19f385a
Compare
…C36) Reduce the Uno-only public `ContentPresenter.ContentTemplateRoot` to internal (getter public->internal, setter protected->private). WinUI's ContentPresenter exposes no such member — the real WinUI `ContentTemplateRoot` lives on ContentControl, which is unchanged. All in-assembly readers (e.g. HyperlinkButton) keep working via the internal getter, and every set-site is inside ContentPresenter itself. Registered the getter/setter (and property form) under PackageDiffIgnore <IgnoreSet baseVersion="6.5">. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
19f385a to
88fa51a
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23748/wasm-skia-net9/index.html |
|
The build 224354 found UI Test snapshots differences: Details
|
GitHub Issue: #8339
PR Type:
💬 Other... Breaking change (API alignment with WinUI)
What changed? 🚀
Reduces the Uno-only public
ContentPresenter.ContentTemplateRoottointernal(BC36 of the Phase 5 breaking-changes wave):public→internal; setterprotected→private.ContentPresenterexposes noContentTemplateRootmember. The real WinUIContentTemplateRootlives onContentControl, which is unchanged (it stays public — it is a genuine WinUI API, confirmed by the sync-generator stub).All in-assembly readers keep working via the internal getter (e.g.
HyperlinkButton, which readscontentPresenter.ContentTemplateRoot);InternalsVisibleTocovers the test assemblies. Every set-site is insideContentPresenteritself, so the setter safely narrows toprivate.Validation
SamplesApp.Skia.Generic(net10.0 Skia) builds clean (0 warnings / 0 errors). Theprivate setcompiling proves there is no cross-type/subclass set-site.PackageDiffIgnore.xml(6.5 baseline) gets three entries — the property form in<Properties>and theget_/set_accessors in<Methods>— since a public→internal reduction removes the member from the compared public surface.PR Checklist ✅
Screenshots Compare Test Runresults — N/A (no visual change).Breaking change — impact & migration path
ContentPresenter.ContentTemplateRoot, or subclasses that set it, no longer compile. (The property onContentControl— the WinUI API — is unaffected.)ContentControl.ContentTemplateRootwhere aContentControlis available, or via the visual tree (VisualTreeHelper). This matches WinUI, which never exposedContentTemplateRootonContentPresenter.