Chapter 19. Animation

What Is Animation?

A graphic animation, such as an animated cartoon, is a sequence of frames, where the objects in each frame are moved just a small bit from where they were in the previous frame. When the frames are shown in rapid succession, the objects in the frames appear to be moving.

In WPF, the term animation has a more restricted meaning. It refers to the process of having WPF sequentially change the value of a dependency property from one value to another in extremely small increments over a period of time. You can use this to give objects the appearance of movement.

For example, you could have WPF animate the FontSize property of a button from 12.0 to 22.0 over a period of one second. Figure 19-1 illustrates this animation. ...

Get Illustrated WPF 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.