Click to See Complete Forum and Search --> : WPF: Controlling multiple storybords?


vladc77
April 6th, 2009, 11:43 AM
I’m trying to find the best way to control multiple storyboards presentation. I have a set of 10 storyboards that have to be played in sequence by clicking forward key on a keyboard. I can play them in forward sequence without problems with this line of code:



else if (clip_number == 1)

{

Storyboard myStoryboard = (Storyboard)TryFindResource("Storyboard_01");

myStoryboard.Begin(this, true);

}



My problem is that when I want the user to go back by clicking back key then the storyboards did not start from Zero time point. I believe that I need a code that will set storyboard to 0 and then play it.



Please let me know if you have any useful information on it.

I am highly appreciate any advice.



Thanks,

gurge60
April 9th, 2009, 03:28 PM
For your scenario I would check out the section titled "Remove an animation from an individual property" in this MSDN whitepaper:

http://msdn.microsoft.com/en-us/library/aa970493.aspx