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);
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);