Is it possible to create a storyboard where the second half repeates, but the first half doesn’t? Or alternatively, can I cause one storyboard to start after another finishes, all in xaml?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think you can work with animations just in XAML/Blend you need to begin them in code anyways.
But the code to start another animation just as the first one finishes is quite simple:
First you subscribe to the Completed events in code:
Then in the respected eventhandlers if Storyboard1 finished you start storyboard2 and vice versa.
To add the eventhandlers you just have to type Storyboard.Completed += and then hit tab twice and it will generate the needed methods.