Reversing an animation in Silverlight on button press or any other event?

Ok, the way I got it working was by pausing the animation, swapping the To and From values, and using the Seek method to move the animation forward by a set amount. The amount I needed it to move forward is "Duration.TimeSpan() - GetCurrentTime()", but accessing Duration seems to throw an exception (Operation not valid for the current state of the object).

Ok, the way I got it working was by pausing the animation, swapping the To and From values, and using the Seek method to move the animation forward by a set amount. The amount I needed it to move forward is "Duration.TimeSpan() - GetCurrentTime()", but accessing Duration seems to throw an exception (Operation not valid for the current state of the object). For now, I just hard coded the Duration value for a test and seems to be working fine.

I guess for a real implementation the Duration can be bound to some value and the calculation can use that value too.

1 I did more or less the same in a similar situation. My problem with getting the StoryBoard. Duration was that the value was Automatic and I had to navigate to the actual animation classes in the storyboard and get their durations.

– Martin Liversage Jul 15 '10 at 9:18.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send