WPF Reflections:

June, 2008

June 28, 2008  11:44 AM

WPF animation – running multiple animations

Mark Shurmer Profile: MarkWPF

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...

June 28, 2008  7:08 AM

WPF Animation – key frame

Mark Shurmer Profile: MarkWPF

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...

June 21, 2008  2:38 PM

WPF – animation with automatic return

Mark Shurmer Profile: MarkWPF

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...

June 21, 2008  2:04 PM

WPF Animations – where to place them

Mark Shurmer Profile: MarkWPF

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...

June 20, 2008  1:52 PM

WPF – where were the announcements?

Mark Shurmer Profile: MarkWPF

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...

June 20, 2008  1:25 PM

WPF – how to use an anonymous method with Dispatcher

Mark Shurmer Profile: MarkWPF

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...

June 15, 2008  8:52 PM

WPF Animation timeline

Mark Shurmer Profile: MarkWPF

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...

June 12, 2008  2:51 PM

WPF Animations – key properties

Mark Shurmer Profile: MarkWPF

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...

June 10, 2008  12:27 PM

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...

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: