Repository navigation
refactor!: Give the legacy toolkit types their natural namespaces - #24148
Conversation
|
Claude finished @MartinZikmund's task in 5m 26s —— View job Code Review
SummaryThe namespace reorganisation is well-reasoned and mechanically correct. The Findings: 2 (1 medium, 1 style) Medium — dead generic type parameter ( Style — unused Cross-cutting observation (informational) |
There was a problem hiding this comment.
Pull request overview
This PR completes the post-Uno.UI.Toolkit → Uno.UI.Extras transition by moving “extras” public types into natural, WinUI-mirroring namespaces (e.g., Uno.UI.Xaml.Controls, Uno.UI.Xaml, Uno.UI.Behaviors, Uno.Storage) so consumers no longer see Uno.UI.Extras as part of the API surface. It updates framework call sites, runtime tests, source-generator fixtures/goldens, SamplesApp XAML, and documentation/migration guidance to match the new namespaces and XAML using: declarations.
Changes:
- Move/retarget Extras types into
Uno.UI.*/Uno.*namespaces and update XAMLusing:prefixes accordingly. - Update runtime tests + source generator tests/goldens to validate new XAML type/attached-property resolution.
- Refresh docs and Uno 7 migration guidance to map per-type namespaces rather than an assembly/namespace umbrella.
Reviewed changes
Copilot reviewed 120 out of 123 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Uno.UI/UI/Xaml/Controls/ContentDialog/ContentDialog.Visuals.cs | Update comment to refer to new ElevatedView namespace. |
| src/Uno.UI/UI/Xaml/Automation/AutomationProperties.uno.cs | Update comments/docstrings for role override type location. |
| src/Uno.UI/Helpers/XamlHelper.cs | Replace extras xmlns mapping with new uno/unoxaml/behaviors mappings. |
| src/Uno.UI/Behaviors/VisibleBoundsPadding.cs | Unify namespace; reduce forked namespace blocks; narrow VisibleBoundsDetails visibility. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_UIElement.Manipulations.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_UIElement.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_FlowDirection.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Media/Given_VisualTreeHelper.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Input/Given_GestureRecognizer.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Input/Given_ContextRequested.Injection.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Input/Given_ContextRequested.Injection.Bubbling.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Documents/Given_Hyperlink.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Repeater/Given_ItemsRepeater_FastScroll.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ToolTip.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBlock.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_SwipeControl.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Slider.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ScrollViewer.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_NavigationView.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ListViewBase.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Grid.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_FrameworkTemplatePool.cs | Update ElevatedView construction to new namespace. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Flyout.cs | Remove/update old Extras extension import. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_FlipView.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ContentDialog.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_CommandBar.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ComboBox.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Button.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Border.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_ViewManagement/Given_StatusBar.cs | Update XAML namespace/prefix for VisibleBoundsPadding. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Input_Preview_Injection/Given_InputInjector.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Composition/Given_InteractionTracker.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Composition/Given_ContainerVisual.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Windows_Storage/Given_ApplicationStorage.cs | Update StorageFileHelper to Uno.Storage. |
| src/Uno.UI.RuntimeTests/Tests/Uno_UI_Xaml_Core/Given_InputManager.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Uno_UI_Xaml_Core/Given_InputInjector_RelativeRoot.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Uno_UI_Toolkit/Given_VisibleBoundsPadding.cs | Update using to Uno.UI.Behaviors. |
| src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_TreeView.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_TabView.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_RefreshContainer.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_RatingControl.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_NavigationView.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_ItemContainer.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/SplitButton/SplitButtonTests_InteractionTests.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/SelectorBar/SelectorBarTests.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/NavigationView/NavigationViewTests.uno.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.RuntimeTests/IntegrationTests/common/TestServices.WindowHelper.cs | Update devtools injection hooks to new namespaces. |
| src/Uno.UI.RuntimeTests/IntegrationTests/common/TestServices.InputHelper.cs | Update devtools/usings to new namespaces. |
| src/Uno.UI.Extras/UIElementExtensions.cs | Move namespace to Uno.UI.Xaml; remove duplicated padding/reflection helpers. |
| src/Uno.UI.Extras/Themes/Generic.xaml | Update default style TargetType/xmlns for moved ElevatedView. |
| src/Uno.UI.Extras/Storage/StorageFileHelper.cs | Move namespace to Uno.Storage; make class static. |
| src/Uno.UI.Extras/SplitViewExtensions.cs | Move namespace to Uno.UI.Xaml.Controls. |
| src/Uno.UI.Extras/LinkerDefinition.net6.0.xml | Update preserved type names to new namespaces. |
| src/Uno.UI.Extras/Extensions/UIElementExtensions.cs | Add WinAppSDK-only internal padding/reflection helpers for Uno.UI.Extensions. |
| src/Uno.UI.Extras/Extensions/RectExtensions.cs | Move internal extensions namespace to Uno.UI.Extensions. |
| src/Uno.UI.Extras/ElevatedView.cs | Move namespace to Uno.UI.Xaml.Controls. |
| src/Uno.UI.Extras/Diagnostics/DiagnosticsOverlay.Placement.cs | Update RectExtensions using to new namespace. |
| src/Uno.UI.Extras/DevTools/Xaml/UIElementHelper.cs | Move devtools namespace under Uno.UI.DevTools.Xaml. |
| src/Uno.UI.Extras/DevTools/Input/PointExtensions.cs | Move devtools namespace under Uno.UI.DevTools.Input. |
| src/Uno.UI.Extras/DevTools/Input/Pen.cs | Move devtools namespace under Uno.UI.DevTools.Input. |
| src/Uno.UI.Extras/DevTools/Input/Mouse.cs | Move devtools namespace under Uno.UI.DevTools.Input. |
| src/Uno.UI.Extras/DevTools/Input/InputInjectorExtensions.cs | Move devtools namespace under Uno.UI.DevTools.Input. |
| src/Uno.UI.Extras/DevTools/Input/InjectedPointerExtensions.cs | Move devtools namespace under Uno.UI.DevTools.Input. |
| src/Uno.UI.Extras/DevTools/Input/IInjectedPointer.cs | Move devtools namespace under Uno.UI.DevTools.Input. |
| src/Uno.UI.Extras/DevTools/Input/Finger.cs | Move devtools namespace under Uno.UI.DevTools.Input. |
| src/Uno.UI.Extras/CommandBarExtensions.cs | Move namespace to Uno.UI.Xaml.Controls. |
| src/Uno.UI.Extras/AutomationPropertiesExtensions.cs | Move namespace to Uno.UI.Xaml.Automation + update docs snippet. |
| src/SourceGenerators/XamlGenerationTests/TypeResolutionTests.xaml | Update xmlns + attached property usage for new namespaces. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeGeneratorTests/Verifiers/CSGenerator.cs | Update comment to reflect new Uno.UI.* namespace relocation. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeGeneratorTests/Out/Given_NoFuzzyMatching/TeViBoPa/XamlCodeGenerator_MainPage_d6cd66944958ced0c513e0a04797b51d.cs | Regenerate golden for VisibleBoundsPadding namespace change. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeGeneratorTests/Out/Given_HotReloadEnabledInBuild/SeBaUrInInOuFoFrEl/XamlCodeGenerator_MainPage_d6cd66944958ced0c513e0a04797b51d.cs | Regenerate golden for VisibleBoundsPadding namespace change. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeGeneratorTests/Out/Given_HotReloadEnabledInBuild/SeBaUrInInOuFoFrEl/XamlCodeGenerator_EmbeddedXamlSources.cs | Regenerate embedded XAML golden + hash. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeGeneratorTests/Given_NoFuzzyMatching.cs | Update test XAML strings for new namespaces. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeGeneratorTests/Given_HotReloadEnabledInBuild.cs | Update test XAML strings for new namespaces. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/UnoAssemblyHelper.cs | Update comment for how Toolkit/Extras replacement assembly is used. |
| src/SourceGenerators/System.Xaml.Tests/Test/XmlFiles/Generic.Native.xaml | Update xmlns + attached property binding to new namespaces. |
| src/SourceGenerators/System.Xaml.Tests/Test/XmlFiles/CustomAttachedProperty.xaml | Update xmlns used for unknown attached-property test case. |
| src/SourceGenerators/System.Xaml.Tests/Test/System.Xaml/XamlXmlReaderTest.cs | Update expected member-type string for new xmlns. |
| src/SourceGenerators/System.Xaml.Tests.MS/XmlFiles/Generic.Native.xaml | Update xmlns + attached property binding to new namespaces. |
| src/SourceGenerators/System.Xaml.Tests.MS/XmlFiles/AttachedProperty.xaml | Update xmlns used for unknown attached-property test case. |
| src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Views/Controls/SampleChooserControl.xaml | Update xmlns + VisibleBoundsPadding usage to new namespace. |
| src/SamplesApp/SamplesApp.Shared/App.xaml | Update xmlns and CommandBarExtensions attached-property setters. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/WindowTests/Window_Metrics.xaml.cs | Update VisibleBoundsPadding using to new namespace. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/WindowTests/Window_Metrics.xaml | Update xmlns + VisibleBoundsPadding usage to new namespace. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/UIElementTests/UIElement_Layout_Constrains.xaml | Update xmlns + VisibleBoundsPadding usage to new namespace. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/UIElementTests/TransformToVisual_Transform.xaml.cs | Update VisibleBoundsPadding using to new namespace. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/DragAndDrop/DragDrop_ListView_Custom_States.xaml | Update ElevatedView tag and xmlns to new namespace. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/Controls/CommandBar/CommandBar_With_Long_Sentences.xaml | Update xmlns + CommandBarExtensions.NavigationCommand usage. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/Controls/CommandBar/CommandBar_LongTitle.xaml | Update xmlns + CommandBarExtensions.NavigationCommand usage. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/Controls/CommandBar/CommandBar_Extensions.xaml | Update xmlns + multiple CommandBarExtensions attached properties. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/Controls/CommandBar/CommandBar_Content.xaml | Update xmlns + multiple CommandBarExtensions.NavigationCommand blocks. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/Controls/CommandBar/BackGesture/BackGesture_NavigationCommand.xaml | Update xmlns + NavigationCommand usage. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/Controls/CommandBar/BackGesture/BackGesture_CollapsedNavigationCommand.xaml | Update xmlns + NavigationCommand usage. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/Controls/ComboBox/ComboBox_VisibleBounds.xaml | Update xmlns + VisibleBoundsPadding usage. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Xaml/Automation/AutomationPropertiesExtensions_Role.xaml | Update xmlns + role override attached property usage. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Composition/DamageRegion/DamageRegion_ShadowChildShape.xaml | Update xmlns + UIElementExtensions.Elevation usage. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Composition/DamageRegion/DamageRegion_ShadowChildPaintingCaster.xaml | Update xmlns + UIElementExtensions.Elevation usage. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Composition/DamageRegion/DamageRegion_ShadowChild.xaml | Update xmlns + UIElementExtensions.Elevation usage. |
| src/SamplesApp/SamplesApp.Samples/Windows/UI/Composition/DamageRegion/DamageRegion_Shadow.xaml | Update xmlns + UIElementExtensions.Elevation usage. |
| src/SamplesApp/SamplesApp.Samples/Windows/Data/Pdf/PdfDocumentRenderTest.xaml | Update xmlns + UIElementExtensions.Elevation usage. |
| src/SamplesApp/SamplesApp.Samples/Toolkit/VisibleBoundsPadding_Modal.xaml | Update xmlns + VisibleBoundsPadding usage. |
| src/SamplesApp/SamplesApp.Samples/Toolkit/ElevationView_Clipping.xaml | Update xmlns + ElevatedView usage. |
| src/SamplesApp/SamplesApp.Samples/Toolkit/Elevation.xaml | Update xmlns + UIElementExtensions.Elevation usage. |
| src/SamplesApp/SamplesApp.Samples/Toolkit/ElevatedViewTests.xaml | Update xmlns + ElevatedView usage. |
| src/SamplesApp/SamplesApp.Samples/Toolkit/ElevatedView_Tester.xaml | Update xmlns + ElevatedView usage. |
| src/SamplesApp/SamplesApp.Samples/Toolkit/ElevatedView_Levels.xaml | Update xmlns + ElevatedView usage. |
| src/SamplesApp/SamplesApp.Samples/Toolkit/ElevatedView_Dimensions.xaml | Update xmlns + ElevatedView usage. |
| src/SamplesApp/SamplesApp.Samples/Toolkit/ElevatedView_Corners.xaml | Update xmlns + ElevatedView usage. |
| src/SamplesApp/SamplesApp.Samples/Toolkit/ElevatedView_CornerRadius.xaml | Update xmlns + ElevatedView usage. |
| src/SamplesApp/SamplesApp.Samples/Toolkit/ElevatedView_BorderThickness.xaml | Update xmlns + ElevatedView usage. |
| doc/articles/migrating-to-uno-7.md | Update migration guidance to map per-type Toolkit → Uno.UI.* namespaces. |
| doc/articles/howto-consume-webservices.md | Update docs XAML sample from Uno.UI.Extras to Uno.UI.Behaviors. |
| doc/articles/guides/open-id-connect.md | Update docs XAML sample to Uno.UI.Behaviors.VisibleBoundsPadding. |
| doc/articles/guides/localization.md | Update docs XAML sample to Uno.UI.Behaviors.VisibleBoundsPadding. |
| doc/articles/guides/hotswap-app-language.md | Update docs XAML samples to Uno.UI.Behaviors.VisibleBoundsPadding. |
| doc/articles/features/VisibleBoundsPadding.md | Update feature doc to Uno.UI.Behaviors.VisibleBoundsPadding + updated snippets. |
| doc/articles/features/using-the-uno-sdk.md | Update wording to avoid referring to bundled Uno.UI.Extras.dll directly. |
| doc/articles/features/ElevatedView.md | Update XAML snippet for new namespace (and related WinUI note). |
| doc/articles/features/accessibility/role-override.md | Update doc and snippets to Uno.UI.Xaml.Automation. |
| doc/articles/controls/CommandBar.md | Update docs to new namespaces for extensions/elevation/visible bounds. |
| doc/articles/additional-features.md | Rename/reframe article to “Additional Uno Platform Features”. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24148/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24148/docs/index.html |
|
The build 228933 found UI Test snapshots differences: Details
|
a3c17fb to
9d96327
Compare
|
Claude finished @MartinZikmund's task in 4m 51s —— View job Code Review
SummaryThe namespace reorganisation is mechanically correct and well-scoped. The Findings: 4 (1 medium, 3 style/CI-fail) Medium — Dead generic type parameter (
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24148/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24148/docs/index.html |
|
The build 229244 found UI Test snapshots differences: Details
|
9d96327 to
2f1a74c
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24148/wasm-skia-net9/index.html |
|
Claude finished @MartinZikmund's task in 2m 55s —— View job Code Review
SummaryThe namespace reorganisation is mechanically correct and well-scoped. No behavioural changes were found. The However, three findings from the previous two review rounds remain unresolved in this push: Findings: 3 (2 medium/CI-fail, 1 style) Medium / CI-fail —
|
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24148/docs/index.html |
The keyboard injection tests import the pointer-injection helpers, which moved out of Uno.UI.Toolkit on the 7.0 line. The namespace follows PR #24148, which gives the legacy toolkit types their natural namespaces (Uno.UI.DevTools.Input), rather than the interim Uno.UI.Extras.* form. The file is new on this branch, so the rename never surfaced as a conflict. Depends on #24148 landing first.
|
The build 229445 found UI Test snapshots differences: Details
|
The types shipped alongside Uno.UI for both Skia and WinAppSDK carried the assembly name as their namespace. They now sit where they would have been written had they lived in Uno.UI directly, mirroring the WinUI namespace of whatever each one extends: ElevatedView, CommandBarExtensions, SplitViewExtensions -> Uno.UI.Xaml.Controls UIElementExtensions -> Uno.UI.Xaml AutomationPropertiesExtensions -> Uno.UI.Xaml.Automation VisibleBoundsPadding -> Uno.UI.Behaviors StorageFileHelper -> Uno.Storage RectExtensions (internal) -> Uno.UI.Extensions DevTools.Input/Xaml (internal) -> Uno.UI.DevTools.Input/Xaml VisibleBoundsPadding now declares one namespace for both legs, so the IS_UNO fork only switches the class name. The padding and reflection helpers move out of UIElementExtensions into Uno.UI.Extensions.UIElementExtensions, gated to the WinAppSDK build so the Uno legs use the Uno.UI copy instead of a duplicate. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01H2BKcDZXJgiec1nHY1ZwMf
Samples, runtime tests and the XAML generator fixtures follow the namespace move. XAML declarations lose the `extras:` / `toolkit:` / `utk:` prefixes for a plain `uno:` bound to whichever namespace the file actually uses, and the generator's expected outputs are regenerated to match. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01H2BKcDZXJgiec1nHY1ZwMf
Documentation now names the namespace a type actually lives in rather than the assembly that happens to carry it. The "Other Uno.UI Features" article is renamed to additional-features.md (its uid, which the toc references, is unchanged), and the Uno 7 migration table maps Uno.UI.Toolkit onto the new Uno.UI.* namespaces per type. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01H2BKcDZXJgiec1nHY1ZwMf
Every member of the nested type is internal — its constructor and GetInstance included — so nothing outside the assembly could ever construct or call it. It is also absent from the WinAppSDK build, which made the public surface differ per target for no benefit. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01H2BKcDZXJgiec1nHY1ZwMf
Every member is static, so the implicit public constructor only ever offered consumers a meaningless instance. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01H2BKcDZXJgiec1nHY1ZwMf
XAML prefixes follow the namespace initialism (`uub`, `uux`, `uuxc`, `uuxa`) instead of a single `uno` bound to a different namespace per file, so a page that needs two of them no longer collides. Docs, samples, generator fixtures and XamlHelper's known-xmlns table all use the same scheme. The WinAppSDK-only UIElementExtensions copy opts into nullable, types the reflection cache and lookup as nullable, and drops the `TProperty` parameter the port left behind with nothing reading it. RectExtensions loses the usings the move carried over and stops declaring public members on an internal class. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MVaso7ehpH4uV1RwbMJyxn
2f1a74c to
0995c63
Compare
|
Claude finished @MartinZikmund's task in 1m 26s —— View job Code Review
SummaryThe latest commit ( All prior findings are now closed:
Inline comments: none posted — no new issues found in this push. The namespace reorganisation is mechanically correct, the public surface narrowing is sound, and the documentation is consistent with the new names. The change is ready from a review perspective. |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24148/docs/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24148/wasm-skia-net9/index.html |
|
The build 230092 found UI Test snapshots differences: Details
|
GitHub Issue: closes unoplatform/uno-private#2131, closes #12322
PR Type:
🔄 Refactoring (no functional changes, no api changes)
What changed? 🚀
In one line: after this PR, a developer using Uno Platform never types, reads or sees the word
Extras- the types sit in namespaces that read like the rest of the framework, and the assembly name becomes an invisible build detail.Uno.UIhas always shipped a small companion assembly next to it, so that a handful of Uno-specific helpers (ElevatedView,VisibleBoundsPadding, theCommandBarextensions…) can also compile against the Windows App SDK. Its name has leaked into the API for years: first asUno.UI.Toolkit— routinely confused with the separate Uno Toolkit product — and, after #24010 renamed the artifact, asUno.UI.Extras. Either way, consumers were forced to know the name of a build artifact in order to use a control.This PR removes that coupling. Each type moves to the namespace it would have had if it had simply been written inside
Uno.UI:ElevatedView, theCommandBar/SplitViewextensionsusing:Uno.UI.Toolkitusing:Uno.UI.Xaml.ControlsUIElementExtensions.Elevationusing:Uno.UI.Toolkitusing:Uno.UI.XamlAutomationPropertiesExtensions.Roleusing:Uno.UI.Toolkitusing:Uno.UI.Xaml.AutomationVisibleBoundsPaddingusing:Uno.UI.Toolkitusing:Uno.UI.BehaviorsStorageFileHelperUno.UI.ToolkitUno.StorageUno.Diagnostics.UI,Uno.HelpersandUno.UI.Markupwere already named for what they do and are untouched. Two internal-only namespaces move alongside (Uno.UI.Extensions,Uno.UI.DevTools.*).Why this is a low-risk change
using/xmlnslines exactly one time, straight to the final 7.0 names. Nobody has to learnUno.UI.Extrasand then unlearn it.usingandxmlnsdeclarations, with a per-type mapping table in the 7.0 migration guide.Why the type names themselves were left alone
The repo already has a precedent for naming Uno-specific attached properties after the control they extend —
Uno.UI.Xaml.Controls.ComboBox,Uno.UI.Xaml.Controls.ScrollViewer. Following it here would have meant renamingCommandBarExtensions→CommandBarandAutomationPropertiesExtensions→AutomationProperties.That was deliberately not done. A static
CommandBarinUno.UI.Xaml.Controlsbecomes an ambiguous name for every consumer that also importsMicrosoft.UI.Xaml.Controls, and the same applies toAutomationProperties. The*Extensionssuffix is exactly what keeps these collision-free, so keeping the names both reduces churn for consumers and is the technically correct choice. (FoldingUIElementExtensions.ElevationintoElevatedViewis not possible either —ElevatedView.Elevationis already an instance property.)Beyond the find-and-replace
VisibleBoundsPadding.csno longer forks its namespace. The file is compiled by bothUno.UIand the companion assembly, and each leg used to open a differentnamespaceblock inside the same#if. Both now declarenamespace Uno.UI.Behaviorsonce, and the#ifonly switches the class name. This retires a long-standing piece of awkwardness flagged as a prerequisite for the eventual assembly fold.Uno.UIand in the companion assembly, with the duplicate silently winning by namespace-resolution order. The copy is now gated to the Windows App SDK leg only, so the Uno targets use theUno.UIimplementation.WRITE_EXPECTEDpath, then re-verified with it switched back off, so the generator is genuinely proven rather than the expectations being bent to match. (One of them carries a content checksum, so hand-editing was not even possible.)Uno.UI.Extrasno longer appears anywhere underdoc/.doc/articles/Uno.UI.Extras.md→additional-features.md; the TOC references it byxrefuid, so no published link breaks.Public surface narrowed (2 items)
Every public type was audited against all 13 first-party repositories. Everything else earns its place —
ElevatedView235 XAML usages,VisibleBoundsPadding53,CommandBarExtensions.NavigationCommand27,UIElementExtensions.Elevation10,SplitViewExtensions.IsPaneEnabled1 (uno.themes),StorageFileHelper(uno.extensions),DiagnosticsOverlayandFromJsonExtension(uno.hotdesign). Two did not:VisibleBoundsPadding.VisibleBoundsDetails→internal. It was public, but its constructor and its factory were internal — no consumer could ever construct or call it. It also did not exist at all on the Windows App SDK leg, so the public surface differed per target for no benefit.StorageFileHelper→static. All members were already static; the implicit public constructor only offered consumers a meaningless instance.Known residue, deliberately deferred
The XAML generator derives one generated type name from the project's
RootNamespace, soUno.UI.Extras.GlobalStaticResourcesstill appears in generated code. It is machine-written and never typed by a developer, but it is the last trace of the name. Changing it is a two-line project edit plus a golden regeneration, and it belongs with the assembly rename itself rather than here.PR Checklist ✅
Screenshots Compare Test Runresults.Validation
Uno.UI.Extras.Skia, with analyzers and code-style enforcedUno.UI(VisibleBoundsPadding,XamlHelper), with analyzers and code-style enforcedUno.UI.Extras.Windows(real WinUI markup compiler; resolvesuno:ElevatedViewinThemes/Generic.xaml)Uno.UI.RuntimeTests.Skia,Uno.UI.RuntimeTests.WindowsSamplesApp.Skia,Uno.UI.UnitTestsUno.UI.SourceGenerators.TestsWRITE_EXPECTEDoff so the regenerated goldens are genuinely verifiedUno.Xaml.Testsdotnet xstyler -d src/SamplesApp -r -pThe Windows App SDK leg matters here: it compiles these sources without
Uno.UI, so it is a compiler-enforced check that the new namespaces resolve correctly on both legs rather than only on Skia.Not validated locally, left to CI:
SamplesApp.Windows— it is pinned to$(NetCurrentWinAppSDK)(net11) and the locally installed .NET 11 preview SDK has noandroidworkload, so restore fails on a referenced project. The only extras usage it adds beyond what is already covered isuno:CommandBarExtensions.*inApp.xaml, which goes through the same attached-property resolution as theElevatedViewcase that is proven above. Packaging/PackageDiff and runtime-test execution are also left to CI.Pre-existing and unrelated:
XamlGenerationTestsreports 3UXAML0001errors (Style.PartialOverride,VSM.Test.xaml). Confirmed identical on a stashed clean tree, so they are not caused by this PR.Downstream
Consumers owe one combined edit rather than two, because they never adopted #24010's names:
uno.extensions/src/Uno.Extensions.Storage.UI/FileStorage.cs—Uno.UI.Toolkit.StorageFileHelper→Uno.Storage.StorageFileHelperuno.app-mcp—using Uno.UI.Toolkit.DevTools.{Input,Xaml}→Uno.UI.DevTools.*uno.themes,uno.toolkit.ui,uno.hotdesign,Uno.Gallery,uno.chefs,uno.samples,uno.playground,uno.studio—xmlnsdeclarations, mapped per type in the table aboveEach is a declaration-line change, tracked by the existing 7.0 update items.
🤖 Generated with Claude Code
https://claude.ai/code/session_01H2BKcDZXJgiec1nHY1ZwMf