WP7 - 根据设置动态更改启动页面 [英] WP7 - Dynamically change the startup page depending on setting
问题描述
是否可以根据 Windows Phone 7 应用程序中的设置更改启动页面?
Is it possible to change the startup page based on a setting in a windows phone 7 application?
例如,一个有 2 个页面的应用.让我们说电影和新闻.我希望用户能够在启动应用程序时选择他们想要首先显示的 2 个页面中的哪一个.
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.
有什么想法吗?
推荐答案
是的,您可以重定向页面导航而不影响返回堆栈.Peter 在此概述了两种方法.
Yes, you can redirect page navigations without impacting the back stack. Peter outlines two approaches here.
这篇关于WP7 - 根据设置动态更改启动页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!