F
F
foxlye2020-04-16 15:37:16
WPF
foxlye, 2020-04-16 15:37:16

How to restart animation?

I use animations through ControlStoryBoardAction
And in the code itself I start the animation: But I can't restart the animation with the same code. How to restart it?
Name.Storyboard.Begin (this, true);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
foxlye, 2020-04-16
@foxlye

Figured out the issue myself. For those who are looking for an answer:
Before restarting, you need to completely roll back the animation to its original position, i.e. stop it:
Name.Storyboard.Stop(this);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question