开发者

Panorama Page Layout Change? Windows Phone 7

开发者 https://www.devze.com 2023-03-10 09:16 出处:网络
Is there a way to know when the panorama view gets changed from say a current title \"Settings\" to \"Help\"? I need this so I know what view to open if they click the add button or remove appbar butt

Is there a way to know when the panorama view gets changed from say a current title "Settings" to "Help"? I need this so I know what view to open if they click the add button or remove appbar buttons.

So lets say we got a panerama view like:

Panorama Page Layout Change? Windows Phone 7

How can we know when the user changed from the recent part to the part the phone is currently on or the network part?开发者_C百科


The Panorama control raises a SelectionChanged event each time the user navigates from one PanoramaItem to the next. You can then determine the index of the current page by inspecting the SelectedIndex property.



PanoramaControl has a property called SelectedIndex, which gives the index of the currently selected PanoramaItem. By this index you can decide which page has been selected.

0

精彩评论

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

关注公众号