Applying DoubleAnimation

A DoubleAnimation object enables animating the specified transform property; it allows reverting the motion and specifying the duration and if the animation needs to be repeated unlimitedly. The first example animates an image, applying the animation to a SkewTransform and to a ScaleTransform contextually. Code in Listing 33.4 shows how to accomplish this.

Listing 33.4 Applying a DoubleAnimation to an Image

image

image

The code first applies to transformations. They are empty, with no properties set, therefore with no changes to the ...

Get Visual Basic® 2010 Unleashed 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.