I am developing an app in which the user register to EULA then only he proceeds and is navigated to next page, but still after registration the app starts with EULA not the navigated page.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I recommend reviewing Peter Torr's advice with respect to navigation redirections and places.
Introducing the concept of “Places” - Peter Torr's Blog
Redirecting an initial navigation - Peter Torr's Blog
This recent release may also be worth consideration.
Solving Circular Navigation in Windows Phone Silverlight Applications
回答2:
If I'm following right, I'd do something like this:
Store a variable isEulaAccepted and then, in the Initializer method:
public EulaPage(){
if(isEulaAccepted){
NavigationService.Navigate(new Uri("/FirstPage.xaml", UriKind.Relative));
}
}
This might not be the best solution, but I hope it helps.
标签:
windows-phone-7