开发者

Set visibility of the group of controls in silverlight

开发者 https://www.devze.com 2022-12-18 12:39 出处:网络
I have 2 logical groups of controls (textboxes,buttons, etc), and I\'d like to have an opportunity to change their visibility: for example when the program loads the first group is visible, and after

I have 2 logical groups of controls (textboxes,buttons, etc), and I'd like to have an opportunity to change their visibility: for example when the program loads the first group is visible, and after clicking on some button it becomes collapsed and the other group becomes visible. What's the best way to implement this kind of behav开发者_C百科ior?


Sounds like you want a functionality similar to a TabPanel. You might actually use one and change the style so it doesn't look like a TabPanel but more like a Navigation bar.

Otherwise all would have to implement the functionality by yourself of showing and hiding your areas.

Maybe you should also take a look at the navigation framework: http://www.silverlightshow.net/items/The-Silverlight-3-Navigation-Framework.aspx ... It adds the functionality that view changes are tracked in the URL so that users can also use back/forward buttons in their browsers when navigating through your page.

0

精彩评论

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

关注公众号