WPF: Controlling multiple storybords?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: WPF: Controlling multiple storybords?

  1. #1
    Join Date
    Apr 2009
    Posts
    5

    WPF: Controlling multiple storybords?

    Im 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,

  2. #2
    Join Date
    Jan 2009
    Posts
    36

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center