WPF animation – running multiple animations
When you are contemplating animations in WPF, you can have more than one running at any particular time. Remember though, that each one creates a whole gamut of objects in order to run that animation. Here is an example of how to change the width of a rectangle and also change the colour...
WPF Animation – key frame
Firstly, what does a key frame animation mean? It is a way of specifying steps for your animation to follow. The WPF runtime will work out the smooth transition between the steps for you. Why would you want to do such a thing? If you want to control how the animation flows, but don't want...
WPF – animation with automatic return
In a previous blog I talked about how to make an animation return to it's original value. Actually all you need to do is add a property called AutoReverse to your animation declaration. It needs to be set to true...
WPF Animations – where to place them
In previous blogs , I talked about the classes in animation and what the different types are; not to mention how great WPF is that doing animations is so easy Now, where do you place animations in xaml? Firstly, they have to be defined within a storyboard. A storyboard (I've...
WPF – where were the announcements?
Well TechEd 2008 has come and gone (USA version anyway) Where were the announcements about new things for WPF? There was a new beta for Silverlight (Beta 2), which is good as I believe Silverlight will be a great thing for web development I was hoping there might be something about MVC and...
WPF – how to use an anonymous method with Dispatcher
Have you ever been in the situation where you'd thought you were in the UI thread nice and safely, but got the exception message: The calling thread cannot access this object because a different thread owns it" What this means is that you have created an object on a thread (usually UI...
WPF Animation timeline
All of the interesting WPF classes derive from the TimeLine class. What do I mean by interesting? All of the classes for animating different types (like DoubleAnimation and ColorAnimation), MediaTimeLine (for playing videos and audio) and TimeLineGroup from which StoryBoard (which provides...
WPF Animations – key properties
In a previous blog, I spoke about the different sets of animation classes. Also when you are doing animations in WPF, there are some key properties. These are properties that apply to most...
WPF Animation classes
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...