I have created a simple rotation animation and assigned it to an PictureBox, no problem.
My issue is stopping the animation and maybe restoring the state of the control before the animation was applied (i.e. reset rotation to 0 deg).
There is a .Run() method, but strange there is no .Stop() on the animation properties?
I could use two PictureBox, one with the rotation applied and one without – using the correct one as appropriate, would this be the simpler approach even though it seems a bit of a hack?
thanks for providing that sample.
I have logged issue #1988 and am happy to inform you that in the next Wisej build
a call to animation.ResetAnimation() will also stop a running animation
As a workaround until the new build is available you can now use this code for your sample:
this.pictureBox1.Eval(“this.getContentElement().getDomElement().style.animation = ””);