开发者

Silverlight page vs user control approach

Using which of these is the best approach while planning Silverlight application? UserControls or Page.

My understanding is that when you have to encapsulate some of the logic of some component, which is truly generic and reusable then use usercontrol else use Page because Page is tightl开发者_如何学运维y integrated with browser's history etc, so you can move back and forth and can make use of NavigationService to navigate across pages because if you keep using usercontrols, it is very tiresome to navigate all the way to the required page. Thus we cannot bookmark it because it serves no purpose. We will have to again find our way through the menus in application to reach our desired location.

Is my understanding correct?


Your understanding is correct. Use Pages to integrate with the Navigation framework and the main pages and controls for custom components etc.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜