开发者

silverlight Best practices when to use visual States versus storyboards

开发者 https://www.devze.com 2023-02-02 18:39 出处:网络
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?

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 t开发者_开发技巧hings Silverlight. :)

Thanks for your time.


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.


  • If at the end of the animation your UI looks the same as before, use storyboard(s).
  • If you cannot "design" the desired effect using states in Blend, use storeboards.
  • Otherwise, use states.
0

精彩评论

暂无评论...
验证码 换一张
取 消