views:

68

answers:

1

I've using FluidKit in a WPF application and would like to speed up the animations.

SlideTransition slideTransition = Resources["SlideTransition"] as SlideTransition;
slideTransition.Direction = Direction.LeftToRight;
slideTransition.Duration = new Duration(new System.TimeSpan(1000)); //does not work
TransitionContainer.Transition = slideTransition;

It has a "Duration" property which is of type Duration which expects a TimeSpan, but any timespan I give it just causes there to be no animation.

How can I set a duration to control the speed of the animation?

(If anyone is looking for answers to this, I also posted it on the codeplex forum.)

A: 

this works:

slideTransition.Duration = TimeSpan.FromMilliseconds(200);
Edward Tanguay