WPF Reflections

Jun 10 2008   12:27PM GMT

WPF Animation classes

Mark Shurmer Profile: MarkWPF

As a slight sea change from the norm, which just shows the (extremely) impressive animation facilities available in WPF, why don’t I explain a bit about the different animation classes.

Out of the box, the nice people on the WPF team(s) have defined three sets of classes for doing the animations.

  • Linear interpolation classes, which start from a positon and smoothly increment to the end position
  • KeyFrame classes, in which you provide a series of steps and the values change according to the steps provided
  • Path classes, in which you use path geometry to specify how the animation proceeds based on the geometry specified (eg a shape like a square)

Also, you are free to create your own animation classes, as all these derive from abstract class TAnimationBase where T is the type name.
For example, there is a DoubleAnimation, a DoubleAnimationUsingKeyFrames and a DoubleAnimationUsingPath – all derived from DoubleAnimationBase.

All of these can be specified in code, or slightly more easily in xaml

I shall go into these different areas in future blogs


 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: