Skip to content

Conversation

@zxbmmmmmmmmm
Copy link
Contributor

@zxbmmmmmmmmm zxbmmmmmmmmm commented Nov 16, 2025

What does the pull request do?

This pull request introduces StopAnimation(propName) to the CompositionObject class to allow stopping animations on a specific property and StopAnimationGroup(grp) to stop an animation group. This addition improves the control developers have over property animations in the composition system.

What is the current behavior?

Currently, to stop a composition animation, we can only start another animation on the same property.

What is the updated/expected behavior with this PR?

Now we can use StopAnimation(propName) or StopAnimationGroup(grp) to stop animations on CompositionObject

Checklist

Breaking changes

None

Obsoletions / Deprecations

None

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 12.0.999-cibuild0060060-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 12.0.999-cibuild0060062-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@MrJul MrJul added feature api-approved The new public APIs have been approved. backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-approved The new public APIs have been approved. backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants