How to increase the speed of slide or flip transitions?

Oct 21, 2009 at 11:34 AM

I have a slide transition like this:

SlideTransition slideTransition = Resources["SlideTransition"] as SlideTransition;
slideTransition.Direction = Direction.LeftToRight;
TransitionContainer.Transition = slideTransition;

I want to speed it up so that it slides e.g. not in a one second span, but in a half a second.

When try this:

slideTransition.Duration = new Duration(new System.TimeSpan(1000));

the there is no slide animation at all.

How can I speed up the animation?

 

Jan 28, 2010 at 4:17 PM

Try this instead...

slideTransition.Duration = new Duration(TimeSpan.FromSeconds(.3));