Controlling animations


show more Controlling animations provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training show less
please wait ...

Controlling animations

Once you have created an animation, you might need to exert some control over the animation lifetime. The Storyboard class exposes useful methods like Begin, Pause, and Stop. For this demonstration, I'm using Expression Blend and I've opened a project called Controlling Animations. I'm going to start by looking in a BasicControllingAnimation.xaml file. This first screen shows two ellipses that I would like to move across the screen when I click on the Start button: Pause and Resume. Let me show you my storyboard that I have first.

I have the storyboard called MoveStoryboard. I can see what this will do when I click on the Play button. It's going to move these items from left to right and then stop. To control the storyboard, I go to the containing storyboard--in this case called MoveStoryboard-- and I call its Begin method. Let me show you that code. In the Expression Blend, you can look at code. It has a code editor. To see the code, you can go to your projects view, find y...

Controlling animations
Video duration: 4m 18s 8h 52m Beginner

Viewers:

Controlling animations provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training

Subject:
Developer
Software:
Silverlight Visual Studio
Author:
please wait ...