Flip Animation with single storyboard for multiple targets
Flip animation is a simple animation and has been done by several geeks in the past. But, I wanted to share something else. This blog post is on how to use a single storyboard to target multiple elements or controls. There are chances of improvement for this, as I have used a straight forward technique to implement this.
In the expample provided, we have two storyboards and three panels. This is to make sure that, the code works for complicated structure as well!!!
Both the storyboards are created, ignoring the target name (name of the object to be animated) as it targets multiple object in runtime.
A possible error is as follows
"Operation is not valid on an active Animation or Storyboard. Root Storyboard must be stopped first."
All you need to do is, Stop the animation before you set the target again!!!
Click here to download the sample application
In the expample provided, we have two storyboards and three panels. This is to make sure that, the code works for complicated structure as well!!!
Both the storyboards are created, ignoring the target name (name of the object to be animated) as it targets multiple object in runtime.
A possible error is as follows
"Operation is not valid on an active Animation or Storyboard. Root Storyboard must be stopped first."
All you need to do is, Stop the animation before you set the target again!!!
Click here to download the sample application
Comments
Post a Comment