开发者

WP7 - Dynamically change the startup page depending on setting

开发者 https://www.devze.com 2023-02-03 00:37 出处:网络
Is it possible to change the startup page based on a setting in a windows phone 7 application? For example开发者_开发百科, an app with 2 pages.Lets say Movies, and News.I\'d like the user to be able

Is it possible to change the startup page based on a setting in a windows phone 7 application?

For example开发者_开发百科, an app with 2 pages. Lets say Movies, and News. I'd like the user to be able to select which of the 2 pages they want to be shown first when launching the app.

Right now I'm trying to solve the problem by navigating to the correct page on startup but this causes funky back button behavior which is very bad.

Any thoughts?


Yes, you can redirect page navigations without impacting the back stack. Peter outlines two approaches here.

Redirecting an initial navigation - Peter Torr's Blog

0

精彩评论

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

关注公众号