How to Trigger Animations(Storyboard)

Apr 16, 2010 at 3:16 AM

So is there an elegant solution as to how i can trigger Animations, also if i want to change the SpeedRatio property how would i go about doing that?

Coordinator
Apr 16, 2010 at 10:09 AM

Hi,

For animations, check Jeremy Likness' article at http://csharperimage.jeremylikness.com/2010/04/model-view-viewmodel-mvvm-explained.html

My favorite solution is to use the ControlStoryboardAction behavior (available in Expression Blend). This is a neat, code-less way to start, stop etc a Storyboard.

A simple way is also to define your animations by creating states for your page, and transitions between the states. Then you can use the VSM to trigger the states, for example with a Blend behavior again.

Cheers,

Laurent