You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope this message finds you well. I am writing to report an issue I encountered with the animation playback in Avalonia's Composition API. Specifically, when triggering a Composition animation multiple times, the second frame of the animation stops playing.
To Reproduce
Step:
Place a UI control, such as a Border control, on the interface.
Use the ElementComposition.GetElementVisual method to obtain a CompositionVisual object, and then create and play a Vector3DKeyFrameAnimation using this object.
Repeat step 2.
Upon repeating step 2, you will observe that the originally playing animation stops.
Describe the bug
I hope this message finds you well. I am writing to report an issue I encountered with the animation playback in Avalonia's Composition API. Specifically, when triggering a Composition animation multiple times, the second frame of the animation stops playing.
To Reproduce
Step:
Border
control, on the interface.ElementComposition.GetElementVisual
method to obtain aCompositionVisual
object, and then create and play aVector3DKeyFrameAnimation
using this object.Upon repeating step 2, you will observe that the originally playing animation stops.
XAML Code:
C# Code:
I have uploaded a minimal reproducible example project on GitHub for your reference, see https://github.com/lindexi/lindexi_gd/tree/f82af28bab6f5cdfbd13c48c19b4f0a21a50ae06/AvaloniaIDemo/JallkeleejurCihayaiqalker
You can pull my project code and run it. And then you can click the
Click
button to reproduce this issues.Expected behavior
The expected behavior is to be able to control the stopping of an existing Composition animation and start a new one seamlessly.
Avalonia version
11.1.0
OS
Windows
Additional context
I found some links to related issues, but these links do not help with this issues.
The text was updated successfully, but these errors were encountered: