Search code examples
silverlightsilverlight-4.0visualstatemanager

silverlight Best practices when to use visual States versus storyboards


From what I have seen so far, it seems that you can use both visual states and storyboards to do the same thing visually to a silverlight application's UI. Am I wrong in making that statement? Does anyone here know of which one should be chosen over the other in a practical scenario?

Please excuse if my question is not specific enough. Im just a bit hazy on all things Silverlight. :)

Thanks for your time.


Solution

  • Your question implies some conflict between Visual states and storyboards but no such conflict exists.

    A VisualState contains a Storyboard which animates the visual change in the UI to represent the state.