How to change screen's in windows phone 7?

2019-09-06 07:27发布

问题:

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.