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 ...
Get Pro Silverlight 5 in VB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.