Skip to content

feat!: Remove legacy ProgressRing - #25981

Merged
MartinZikmund merged 5 commits into
masterfrom
dev/mazi/remove-legacy-progressring
Nov 5, 2026
Merged

MartinZikmund merged 5 commits into
masterfrom
dev/mazi/remove-legacy-progressring

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: closes #25018

PR Type:

✨ Feature (breaking change, Uno Platform 7.0 cleanup)

What changed? 🚀

Removes the public Uno.UI.Controls.Legacy.ProgressRing, its DefaultWuxProgressRingStyle/ellipse style (Legacy/ProgressRing.xaml), Uno.UI.Controls.Legacy.Primitives.ProgressRingTemplateSettings and the empty ProgressRing.iOSAndroid.cs. It only existed to contrast with the native ring on Android/iOS, which is gone with the native renderers.

  • Given_ProgressRing.uno.cs now tests Microsoft.UI.Xaml.Controls.ProgressRing (WinUI default size is 32, was 20 for the legacy ring).
  • Dropped the legacy type from the Given_Control built-in controls list.
  • progressring.md no longer describes the removed WUX ring or native Android/iOS behaviour; unused wuxprogressring.png removed.
  • migrating-to-uno-7.md: new "Public API removed" entry pointing to Microsoft.UI.Xaml.Controls.ProgressRing; legacy: prefix notes updated.

Validation: Compile (SamplesApp net11.0-desktop, 0 errors); Runtime (skia desktop Given_ProgressRing: 2/2 passed; Given_Control: passed after removing the legacy type from the list).

PR Checklist ✅

Breaking change: Uno.UI.Controls.Legacy.ProgressRing (and legacy:ProgressRing in XAML) no longer exists. Migrate to Microsoft.UI.Xaml.Controls.ProgressRing by dropping the legacy: prefix (see the migration guide entry).

🤖 Generated with Claude Code

https://claude.ai/code/session_01TXMNu1AXKnxQDaBVoc86q6

MartinZikmund and others added 2 commits November 3, 2026 16:16
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
Copilot AI balanced review requested due to automatic review settings November 3, 2026 15:16
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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


Review of #25981: Remove legacy ProgressRing

Verdict: ship. I found no issues, so I posted no inline comments.

Severity Count
Blocking 0
Non-blocking 0

What I checked (by code review and repo-wide grep, not by building or running tests):

  • Leftover references: Nothing outside Generated/ still refers to Legacy.ProgressRing, DefaultWuxProgressRingStyle, ProgressRingTemplateSettings or the Legacy/ProgressRing path. The remaining hits are the new migration-guide entry and the generated stubs for the WinUI types, which are unrelated.
  • Project files and resource dictionaries: Neither references the deleted Legacy/ProgressRing.xaml.
  • Docs claim: The migration guide says Uno.UI.Controls.Legacy still holds the Grid extensions. That is true, because GridExtensions.cs still declares the namespace.
  • Tests: Given_ProgressRing.uno.cs now exercises Microsoft.UI.Xaml.Controls.ProgressRing, and the expected size of 32 matches the WinUI default. The Given_Control list entry is removed, and the test was not skipped or ignored.
  • Docs and commits: progressring.md is clean, and the unused PNG is removed. The commits follow Conventional Commits, with feat! for the breaking removal.

Notes:

  • The Contains NO breaking changes checkbox is correctly left unchecked, and the breaking change is documented in the PR body and the migration guide.
  • The runtime-test results quoted in the description (Skia desktop, Given_ProgressRing 2/2 and Given_Control) are the author's. I did not re-run them.
  • The Screenshots Compare Test Run checkbox is still open for the author to complete.

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.

🟡 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

Comment thread doc/articles/migrating-to-uno-7.md Resolved

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.

🔵 Needs a closer look

The removed public ProgressRing APIs are not acknowledged in the applicable package-diff ignore set, so ValidatePackage will report them as unacknowledged breaking changes.

1 open issue

Review effort: Balanced

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 243297 found UI Test snapshots differences: skia-linux-screenshots: 2458, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AppBarToggleButtonTest.png
    • ApplicationViewSpanningRectsPage.png-dark
    • AppWindowFeatures.png
    • AppWindowTitleBar Properties.png-dark
    • Arrange_Performance01.png
    • AuthenticationBroker_Cancel.png
    • AutoBorderStretchwithtopmargin.png-dark
    • AutomationProperties_Relations.png-dark
    • AutomationProperties_Relations.png
    • AutoSuggestBox_Reason.png-dark
    • AutoSuggestBox_Reason.png
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • BeginTime_MultipleAnimations.png-dark
    • BeginTime_MultipleAnimations.png
    • BitmapIcon_Generic.png-dark
    • BitmapIcon_Generic.png
    • BorderCenteredwithmargins.png-dark
    • BorderCenteredwithmargins.png
  • skia-windows-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png-dark
    • AndroidWindowInsets.png
    • AnimatedBackVisualSourceSamplePage.png
    • AnimatedVisualsTestbedPage.png
    • AppBarToggleButtonTest.png-dark
    • ApplicationViewMode.png
    • AppWindowClosing.png-dark
    • AppWindowPresenters.png-dark
    • AppXamlDefinedResources.png
    • ArcSegment.png-dark
    • AutoBorderStretchwithbottommargin.png
    • AutoBorderStretchwithleftmargin.png-dark
    • AutomationProperties_AutomationId.png
    • AutomationProperties_Landmark.png-dark
    • AutoSizedTopLeft.png
    • AutoSuggestBoxChosenSuggestion.png-dark
    • BackGesture.png-dark
    • BackGesture.png
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png

@MartinZikmund MartinZikmund added the 7.0 PRs only. For issues, use the Release field. label Nov 4, 2026
@MartinZikmund

Copy link
Copy Markdown
Member Author

@Mergifyio backport release/stable/7.0

@mergify

mergify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

backport release/stable/7.0

✅ Backports have been created

Details

@Xiaoy312 Xiaoy312 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.

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.

Comment thread doc/articles/migrating-to-uno-7.md Resolved
Comment thread doc/articles/features/progressring.md Resolved
Copilot AI balanced review requested due to automatic review settings November 4, 2026 10:31
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Nov 4, 2026
@MartinZikmund

Copy link
Copy Markdown
Member Author

@Xiaoy312 thanks!

  • PackageDiffIgnore: fixed in cebbad8. Uno.UI.Controls.Legacy.ProgressRing and Uno.UI.Controls.Legacy.Primitives.ProgressRingTemplateSettings are now under <Types> in both the 6.6 and 6.7 ignore sets, next to the FeatureConfiguration/ProgressRing entries.
  • Backport: agreed. The mergify backport to release/stable/7.0 is already queued (see the comment above), so 7.0 ships without the type and the migration guide matches.

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.

🟢 Approval recommended

No active review issues are identified for the legacy ProgressRing removal and associated migration updates.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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


Re-review of #25981: Remove legacy ProgressRing

Verdict: ship. I posted no new inline comments.

Severity Count
Blocking 0
Non-blocking 0

Everything below was checked by code inspection only. I did not build or run tests.

Earlier feedback, now resolved:

  • PackageDiffIgnore: Uno.UI.Controls.Legacy.ProgressRing and ...Primitives.ProgressRingTemplateSettings are now in both the 6.6 and 6.7 ignore sets (build/PackageDiffIgnore.xml:2157-2158 and 3853-3854). That should clear the "Removed type ... not found in ignore set" errors.
  • Lottie: The migration guide entry no longer asks for the Lottie package. It now states that no extra package is needed. It also notes the default size change from 20 to 32, as Xiaoy312 suggested. The [!IMPORTANT] block in progressring.md is gone.
  • Tests: The two test files are merged into Given_ProgressRing.cs, and Given_ProgressRing.uno.cs is deleted.

Remaining:

  • The @mergifyio backport release/stable/7.0 request is waiting for this PR to merge. Its condition is merged.
  • The runtime-test results in the description are the author's. The Screenshots Compare Test Run checkbox is still unchecked. The screenshot diff reports 2458 of 2492 changed on both skia-linux and skia-windows, which looks like a baseline issue rather than something this PR causes.
  • The remaining failing runtime-test shards were reported as unrelated by Xiaoy312. I did not re-check them.

@MartinZikmund

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 243578 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 118 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • DisplayInformation.png-dark
    • DynamicFont.png-dark
    • DynamicFont.png
    • Examples.png
    • DoubleImageBrushInList.png-dark
    • DropDownButtonPage.png-dark
    • DoubleImageBrushInList.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
  • skia-windows-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png
    • AndroidWindowInsets.png-dark
    • AndroidWindowInsets.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedBackVisualSourceSamplePage.png
    • AnimatedIconPage.png-dark
    • Application_DispatcherShutdownMode.png-dark
    • AppBarToggleButtonTest.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AppBar_KeyBoard.png-dark
    • ApplicationViewSpanningRectsPage.png-dark
    • AnimatedVisualsTestbedPage.png
    • AppWindowTitleBar Properties.png
    • Application_DispatcherShutdownMode.png
    • ApplicationViewMode.png
    • ApplicationViewSizing.png
    • AppWindowFeatures.png
    • ApplicationViewMode.png-dark
    • Attributed_text_FontSize_Changing.png-dark
    • ArcSegment.png-dark

@mergify

mergify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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.

@MartinZikmund
MartinZikmund merged commit 1932270 into master Nov 5, 2026
61 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/remove-legacy-progressring branch November 5, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.0 PRs only. For issues, use the Release field. area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Uno.UI.Controls.Legacy.ProgressRing in 7.0

5 participants