Skip to content

refactor(animation)!: Remove ColorKeyFrameCollection shadows (BC67) - #23675

Merged
Xiaoy312 merged 2 commits into
feature/breakingchangesfrom
dev/xygu/20260707/bc67-remove-colorkeyframe-shadows
Jul 9, 2026
Merged

Xiaoy312 merged 2 commits into
feature/breakingchangesfrom
dev/xygu/20260707/bc67-remove-colorkeyframe-shadows

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: https://github.com/unoplatform/uno-private/issues/2125

PR Type:

🔄 Refactoring (no functional changes, no api changes)

⚠️ Contains a breaking change (refactor!) — removes public API. See the breaking-changes section below.

What changed? 🚀

Implements BC67 from breaking-changes Phase 3 (#8339): removes the binary-compatibility new-shadow block from ColorKeyFrameCollection.

  • Deletes the whole new-shadow member block (Size, GetEnumerator, Add, Clear, Contains, CopyTo, Remove, Count, IsReadOnly, IndexOf, Insert, RemoveAt, indexer) from ColorKeyFrameCollection.cs. The Count / IsReadOnly setters only threw NotSupportedException; the rest merely forwarded to the base.
  • The get-only base DependencyObjectCollection<ColorKeyFrame> members now show through with identical behavior and still satisfy IList<ColorKeyFrame> — matching the zero-shadow sibling collections DoubleKeyFrameCollection / ObjectKeyFrameCollection.
  • Registers the removed members in build/PackageDiffIgnore.xml (6.5 set), in both <Properties> and <Methods> (the diff tool reports the shadowed declared members even though the base provides them — see the existing "indexer provided by base class" entries).

The file's own comment marked this block as removable "in an eventual breaking new version"; the only in-repo user (ColorAnimationUsingKeyFrames) constructs/casts the type and never calls the shadowed setters.

On default settings runtime behavior is unchanged — reads go to the identical base members; only the throw-only setters and the redundant forwarders are gone.

PR Checklist ✅

Breaking changes & migration

  • ColorKeyFrameCollection shadow members (BC67): the type's new-shadow members are removed. This is a binary break; the members remain source-compatible for any realistic consumer because the identical base DependencyObjectCollection<ColorKeyFrame> members show through. The only observable prior difference — the Count / IsReadOnly setters throwing NotSupportedException — is gone: those become the get-only base properties (a compile error to assign, as on the sibling collections). Migration: none for normal use.

Validation evidence

  • Compile: Uno.UI.Skia (net10.0) builds clean — 0 warnings, 0 errors — confirming the base satisfies IList<ColorKeyFrame> without the shadows.
  • Code review: the sole in-repo user (ColorAnimationUsingKeyFrames) only constructs/casts the type; a repo-wide search finds no caller of the removed setters.
  • Not validated locally (CI-gated): native heads (iOS/Android) were not built locally; the change is in shared code with no platform guards. The PackageDiff allow-list runs CI-only.

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

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221143 found UI Test snapshots differences: skia-linux-screenshots: 0, skia-windows-screenshots: 78

Details
  • skia-linux-screenshots: 0 changed over 2366

  • skia-windows-screenshots: 78 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • DisplayInformation.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • Gamepad_Enumeration.png-dark
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • DropDownButtonPage.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • Buttons.png-dark
    • Buttons.png
    • ElementLevelTheme.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • ClipboardTests.png-dark

@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260707/bc67-remove-colorkeyframe-shadows branch from 89ff5ff to 42f53df Compare July 8, 2026 15:11
@Xiaoy312
Xiaoy312 enabled auto-merge July 8, 2026 15:11
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221299 found UI Test snapshots differences: skia-linux-screenshots: 0, skia-windows-screenshots: 76

Details
  • skia-linux-screenshots: 0 changed over 2366

  • skia-windows-screenshots: 76 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png-dark
    • Buttons.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • ContentControl_Nested_TemplatedParent.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ClipboardTests.png-dark
    • DisplayInformation.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • ImageIconPage.png-dark
    • ImageIconPage.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • Focus_FocusVisual_Properties.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • Gamepad_Enumeration.png-dark
    • Image_AnimatedWebP.png

@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260707/bc67-remove-colorkeyframe-shadows branch from 42f53df to f578a89 Compare July 8, 2026 19:42
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221399 found UI Test snapshots differences: skia-linux-screenshots: 0, skia-windows-screenshots: 2364

Details
  • skia-linux-screenshots: 0 changed over 2366

  • skia-windows-screenshots: 2364 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png
    • AppBarToggleButtonTest.png
    • AppBar_KeyBoard.png
    • ApplicationViewSizing.png
    • ApplicationViewSpanningRectsPage.png-dark
    • AppWindowFeatures.png-dark
    • AppWindowClosing.png
    • Attributed_text_FontSize_Changing.png-dark
    • Arrange_Performance01.png-dark
    • AutoBorderStretchwithtopmargin.png
    • AuthenticationBroker_Demo.png
    • AutoSuggestBox_Description.png
    • AutoSizedPathCentered.png-dark
    • BackGesture.png-dark
    • AutoSuggestBox_Icons.png-dark
    • Basics.png
    • BasicEnability.png
    • BezierSegment.png
    • Basics Pivot Test.png-dark
    • BindableDrawerLayout_ChangePane.png-dark

Xiaoy312 and others added 2 commits July 9, 2026 10:45
ColorKeyFrameCollection declared a full binary-compat 'new'-shadow
block (Size, GetEnumerator, Add, Clear, Contains, CopyTo, Remove,
Count, IsReadOnly, IndexOf, Insert, RemoveAt, indexer) whose own
comment marked it removable "in an eventual breaking new version".
The Count/IsReadOnly setters only threw NotSupportedException; the
rest merely forwarded to the base. Its sibling collections
Double/ObjectKeyFrameCollection carry no such shadows.

Delete the whole block: the get-only base DependencyObjectCollection<T>
members show through with identical behavior and still satisfy
IList<ColorKeyFrame>. Record the removed members in
PackageDiffIgnore.xml (6.5 baseline) so the package-diff gate accepts
the intentional binary break.

Part of #2125 (Phase 3 breaking changes).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@Xiaoy312
Xiaoy312 force-pushed the dev/xygu/20260707/bc67-remove-colorkeyframe-shadows branch from f578a89 to c687ad1 Compare July 9, 2026 14:45
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 221509 found UI Test snapshots differences: skia-linux-screenshots: 72, skia-windows-screenshots: 89

Details
  • skia-linux-screenshots: 72 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • EllipsemaskingEllipseGrid.png
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • ContentControl_Inheritance.png
    • DropDownButtonPage.png-dark
    • ImageBrushInList.png-dark
    • Image_AnimatedWebP.png-dark
    • ImageBrushInList.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Examples.png
    • Image_Margin_Large.png
    • DynamicFont.png-dark
    • DynamicFont.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • ImageBrush_Stretch.png
    • ButtonClippingTestsControl.png-dark
  • skia-windows-screenshots: 89 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DropDownButtonPage.png-dark
    • Buttons.png-dark
    • Buttons.png
    • Gamepad_Enumeration.png-dark
    • ImagesInlineInFlipView.png-dark
    • ImagesInlineInFlipView.png
    • Image_UseTargetSize.png
    • ClipboardTests.png-dark
    • DisplayInformation.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • DynamicFont.png
    • Gamepad_CurrentReading.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 221509 has failed on Uno.UI - CI.

@Xiaoy312
Xiaoy312 merged commit 46e34fd into feature/breakingchanges Jul 9, 2026
68 checks passed
@Xiaoy312
Xiaoy312 deleted the dev/xygu/20260707/bc67-remove-colorkeyframe-shadows branch July 9, 2026 20:43
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 kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants