August 31, 2008 9:34 PM
Posted by: MarkWPF
Animation,
VS 2008,
WPF,
XAMLWith 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
Posted by: MarkWPF
Animation,
VS 2008,
WPF,
XAMLThe 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
Posted by: MarkWPF
Animation,
VS 2008,
WPF,
XAMLFillBehaviour 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
Posted by: MarkWPF
Animation,
VS 2008,
WPF,
XAMLOne 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
Posted by: MarkWPF
Animation,
WPF,
XAMLThe 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
Posted by: MarkWPF
Animation,
Databinding,
WPF,
XAMLWhat 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
Posted by: MarkWPF
Animation,
WPF,
XAMLWhat 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
Posted by: MarkWPF
Animation,
Databinding,
WPF,
XAMLThe 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
Posted by: MarkWPF
Animation,
Databinding,
WPF,
XAMLThis 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...