-
April 6th, 2009, 10:43 AM
#1
WPF: Controlling multiple storybords?
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,
-
April 9th, 2009, 02:28 PM
#2
Re: WPF: Controlling multiple storybords?
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|