Repository navigation
feat!: Remove legacy ProgressRing - #25981
Conversation
Remove Uno.UI.Controls.Legacy.ProgressRing, its style and ProgressRingTemplateSettings. Use Microsoft.UI.Xaml.Controls.ProgressRing. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu1AXKnxQDaBVoc86q6
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu1AXKnxQDaBVoc86q6
|
Claude finished @MartinZikmund's task in 21s —— View job Review of #25981: Remove legacy ProgressRingVerdict: ship. I found no issues, so I posted no inline comments.
What I checked (by code review and repo-wide grep, not by building or running tests):
Notes:
|
There was a problem hiding this comment.
🟡 Changes recommended
The migration guide incorrectly requires an unsupported Lottie package for ProgressRing, contradicting its package-removal guidance and potentially misleading migrating apps.
1 open issue
What changed in this PR
Removes the legacy ProgressRing as part of Uno Platform 7.0’s native-renderer cleanup, addressing #25018 and directing applications to Microsoft.UI.Xaml.Controls.ProgressRing.
Changes:
- Removes the legacy control, template settings, styles, and empty platform partial.
- Retargets runtime tests to the WinUI control with its 32-pixel default size.
- Updates migration guidance and removes obsolete native-renderer documentation.
| File | Description |
|---|---|
src/Uno.UI/UI/Xaml/Controls/ProgressRing/Legacy/ProgressRingTemplateSettings.cs |
Removes legacy template settings. |
src/Uno.UI/UI/Xaml/Controls/ProgressRing/Legacy/ProgressRing.xaml |
Removes the ellipse-based styles and template. |
src/Uno.UI/UI/Xaml/Controls/ProgressRing/Legacy/ProgressRing.iOSAndroid.cs |
Deletes the empty platform partial. |
src/Uno.UI/UI/Xaml/Controls/ProgressRing/Legacy/ProgressRing.cs |
Removes the public legacy control. |
src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Given_Control.cs |
Removes the legacy type from built-in control checks. |
src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Controls/Given_ProgressRing.uno.cs |
Tests the WinUI ring with updated size expectations. |
doc/articles/migrating-to-uno-7.md |
Documents the API removal and replacement. |
doc/articles/features/progressring.md |
Removes obsolete legacy and native-renderer guidance. |
Review effort: Balanced
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25981/docs/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 243297 found UI Test snapshots differences: Details
|
|
@Mergifyio backport release/stable/7.0 |
✅ Backports have been createdDetails
|
Xiaoy312
left a comment
There was a problem hiding this comment.
Build - Managed Binaries fails: the removed types aren't in build/PackageDiffIgnore.xml. From the Generate NuGet Packages step:
Error : Removed type Uno.UI.Controls.Legacy.ProgressRing not found in ignore set.
Error : Removed type Uno.UI.Controls.Legacy.Primitives.ProgressRingTemplateSettings not found in ignore set.
Add the two types under <Types> in both the 6.6 and 6.7 ignore sets, next to the other 7.0 removals (e.g. the Uno.UI.FeatureConfiguration/ProgressRing entries). Type-level entries are enough; members of a removed type aren't reported separately.
Backport to release/stable/7.0. The 7.0 branch was cut with Legacy/ProgressRing* still in it. Merging to master only means 7.0 ships the type, 7.1 removes it (a breaking change in a minor), and the migration guide lists a 7.0 removal that 7.0 doesn't have.
The other failing runtime-test shards are unrelated (TextBox ScrollViewer on Android, MediaPlayerElement, Image release, ScrollPresenter); no ProgressRing or Given_Control test failed.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtyuvDDy6FmFvtAaEUx
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtyuvDDy6FmFvtAaEUx
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtyuvDDy6FmFvtAaEUx
|
@Xiaoy312 thanks!
|
|
Claude finished @MartinZikmund's task in 20s —— View job Re-review of #25981: Remove legacy ProgressRingVerdict: ship. I posted no new inline comments.
Everything below was checked by code inspection only. I did not build or run tests. Earlier feedback, now resolved:
Remaining:
|
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25981/docs/index.html |
|
The build 243578 found UI Test snapshots differences: Details
|
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |

GitHub Issue: closes #25018
PR Type:
✨ Feature (breaking change, Uno Platform 7.0 cleanup)
What changed? 🚀
Removes the public
Uno.UI.Controls.Legacy.ProgressRing, itsDefaultWuxProgressRingStyle/ellipse style (Legacy/ProgressRing.xaml),Uno.UI.Controls.Legacy.Primitives.ProgressRingTemplateSettingsand the emptyProgressRing.iOSAndroid.cs. It only existed to contrast with the native ring on Android/iOS, which is gone with the native renderers.Given_ProgressRing.uno.csnow testsMicrosoft.UI.Xaml.Controls.ProgressRing(WinUI default size is 32, was 20 for the legacy ring).Given_Controlbuilt-in controls list.progressring.mdno longer describes the removed WUX ring or native Android/iOS behaviour; unusedwuxprogressring.pngremoved.migrating-to-uno-7.md: new "Public API removed" entry pointing toMicrosoft.UI.Xaml.Controls.ProgressRing;legacy:prefix notes updated.Validation: Compile (SamplesApp
net11.0-desktop, 0 errors); Runtime (skia desktopGiven_ProgressRing: 2/2 passed;Given_Control: passed after removing the legacy type from the list).PR Checklist ✅
Screenshots Compare Test Runresults.Breaking change:
Uno.UI.Controls.Legacy.ProgressRing(andlegacy:ProgressRingin XAML) no longer exists. Migrate toMicrosoft.UI.Xaml.Controls.ProgressRingby dropping thelegacy:prefix (see the migration guide entry).🤖 Generated with Claude Code
https://claude.ai/code/session_01TXMNu1AXKnxQDaBVoc86q6