Jun 10 2008 12:27PM GMT
Posted by: Mark Shurmer
WPF, Animation, XAML
WPF Animation classes
Posted by: Mark Shurmer
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
![]()



You must be logged-in to post a comment. Log-in/Register