WPF Reflections:

August, 2008


August 31, 2008  10:38 PM

WPF Animations – PointAnimationUsingKeyFrames

Mark Shurmer Profile: MarkWPF

Another key aspect to WPF animations is the ability to specify point movements. What do I mean by that? Well a point can be defined as a x and a y co-ordinate, and a movement is simply an animation. What is key to this though, is that it enables you to easily animate shapes along a specified...

August 31, 2008  9:34 PM

WPF Animations – KeyFrame animations

Mark Shurmer Profile: MarkWPF

With WPF animations, as well as linear ones you can also have keyframe animations. What are keyframe animations? Well, they allow you to control the animation changes of state completely. You specify all of the steps, by providing a value and a time that that frame pertains to. An example...


August 31, 2008  8:59 PM

WPF Animations – RepeatBehaviour property

Mark Shurmer Profile: MarkWPF

The RepeatBehaviour property allows you to specify how long the animation will repeat. You can do this either as a TimeSpan or you can choose to specify Forever. If you specify Forever, funnily enough it repeats the animation and carries on repeating it. If however you specify a TimeSpan,...


August 25, 2008  10:29 PM

WPF Animations – FillBehaviour property

Mark Shurmer Profile: MarkWPF

FillBehaviour is a handy little property when you are doing animations. It specifies what happens when the animation ends. It's actually an enum, and you can specify the following values: HoldEnd Stop HoldEnd will keep the ending value of the animation, whereas Stop will revert back to...


August 24, 2008  6:15 PM

WPF Animations – Slow down then speed up

Mark Shurmer Profile: MarkWPF

One thing that struck me when I was first looking at the AccelerationRatio and DecelerationRatio properties in animations, was whether they could be combined to give the animation a double wobble?!? Of course is the answer. In the following example, observe how the bottom ellipse is out of step...


August 24, 2008  6:07 PM

WPF Animations – Deceleration property

Mark Shurmer Profile: MarkWPF

The Deceleration property gives you the facility to turn a linear animation into a non linear one. In a similar way to the AccelerationRatio property, you specify the property and the animation makes a gradual transition. In the case of the Deceleration property, the animation gradually slows...


August 24, 2008  2:46 PM

WPF Animations – AccelerationRatio

Mark Shurmer Profile: MarkWPF

What does AccelerationRatio do? In a nutshell, it turns a linear animation into a non-linear one. Whaaaaaaaaaaat I hear someone say. What I mean by that is that it allows you to specify that an animation will build up to it's final destination, therefore it starts slowly and accelerates. The...


August 16, 2008  4:59 PM

WPF Animations – SpeedRatio property

Mark Shurmer Profile: MarkWPF

What does the SpeedRatio property do? Well it provides you with the ability to speed up an animation or slow one down. The deafault speed for an animation is 1. To speed up an animation, change the SpeedRatio to a bigger number. The numbers are relative, so using SpeedRatio="4" will make it...


August 16, 2008  7:47 AM

WPF Animations – BeginTime property

Mark Shurmer Profile: MarkWPF

The BeginTime property sits in the Timeline class. It specifies a delay before the animation starts. Why would you want to do that? One thing it allows you to do is have multiple animations running at the same time, but for one to start at a specified time after the other. In the following...


August 5, 2008  2:42 PM

WPF Animations – Duration property

Mark Shurmer Profile: MarkWPF

This is a very important property in the world of WPF animations, as it specifies how long the animation will last. The property is actually of type Duration. What does that mean? Well, in addition to being able to specify every thing that a TimeSpan can specify - like hours, minutes or...


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: