O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Animations in Code

Sometimes, you'll need to create every detail of an animation programmatically in code. In fact, this scenario is fairly common. It occurs any time you have multiple animations to deal with, and you don't know in advance how many animations there will be or how they should be configured. (This is the case with the simple bomb-dropping game you'll see in this section.) It also occurs if you want to use the same animation in different pages or you simply want the flexibility to separate all the animation-related details from your markup for easier reuse. (This is the case with animation that's used for page transitions later in this chapter.)

It isn't difficult to create, configure, and launch an animation programmatically. You ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required