WPF Reflections:

XAML


August 16, 2008  7:47 AM

WPF Animations – BeginTime property



Posted by: MarkWPF
Animation, Databinding, WPF, XAML

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



Posted by: MarkWPF
Animation, Databinding, WPF, XAML

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


August 5, 2008  7:28 AM

WPF Animation – To property



Posted by: MarkWPF
Animation, Databinding, WPF, XAML

In WPF animations, the To property is an important one. It tells the animation where to stop. Quite bizarrely, in my opinion, it can be left out. When it is, the animation will use the value specified in the definition of the element. In doing so, it will ignore any changes to that...


August 4, 2008  7:05 AM

WPF Animation – From property



Posted by: MarkWPF
Animation, Databinding, WPF, XAML

When you are doing a WPF animation, with a storyboard, the From property lets you specify the starting value. It means you can start the animation with a different value than the current value. You may want to do that so that you can control the starting value, or if you are doing a cumulative...


June 28, 2008  11:44 AM

WPF animation – running multiple animations



Posted by: MarkWPF
Animation, WPF, XAML

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



Posted by: MarkWPF
Animation, WPF, XAML

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



Posted by: MarkWPF
Animation, WPF, XAML

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



Posted by: MarkWPF
Animation, WPF, XAML

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?



Posted by: MarkWPF
VS 2008, WPF, XAML

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 15, 2008  8:52 PM

WPF Animation timeline



Posted by: MarkWPF
Animation, Databinding, Development, WPF, XAML

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


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: