开发者

Class structure in WP7

开发者 https://www.devze.com 2023-04-11 17:59 出处:网络
helo, The app i\'m developing has a pivot structure with three pivot items called Calendar, Hi开发者_如何学编程story and Statistics. I have developed the UI using Blend, I wud like to keep the code f

helo,

The app i'm developing has a pivot structure with three pivot items called Calendar, Hi开发者_如何学编程story and Statistics. I have developed the UI using Blend, I wud like to keep the code for the three pivot items in three classes and these three classes need to access the UI elements created in the MainPage. How do i get tht done??

In Qt its enough to add the header file. Is there somethin like tht?? or do i have to inherit from the MainPage class??

Thank you,

Alfah


Consider making 3 separate UserControls and using them on each PivotItem.

Also, the Pivot control is designed to be used to show different views of the same thing. (Consider how email uses diffferent pivot items to filter messages which are unread, urgent, etc.) Your item headers strike me as things which may not be related so you may want to consider your IA.

0

精彩评论

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

关注公众号