Attention: you're visiting an archived version of this post on my old website. Click here to view this same post on my new website.

Tweening by code comes to WPF

Darren David has just released the first public version of his tweening classes for Microsoft’s WPF. Called “PennerDoubleAnimation” and “Animator”, they’re hosted at Google Code and help developers create animations by code more easily while fighting some specific WPF caveats. To quote,

I had three primary goals in mind:

* Be able to start an animation and assign an “OnComplete” handler in one line of code
* Have those animations set the final value of the property to the “To” value of the animation, then disappear (basically, if I animate the Canvas.Left property of a Rectangle from 0 to 100, I expect the Canvas.Left property to be 100 when the animation completes, and I want to be able to assign a new value directly to that property)
* Bring the canonical Penner easing equations to WPF, but leverage the WPF animation engine so I can use them in XAML or in code.

Apparently he’s been successful on those goals. Check this blog post for more details.

Posted on 16/May/2007 at 10:26 am | Comments (0) | Trackbacks (0) | Categories: Easing

Comments (0)

Comments are currently closed for this post.