is there a way to navigate two pages back in Windows Phone 7? I know the URI, but I'd like to clear the navigation stack.
Yes you can programmatically walk back the stack. I would recommend reading this guidance doc on this topic:
http://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/12/13/solving-circular-navigation-in-windows-phone-silverlight-applications.aspx
Thanks, Stefan Wick - Microsoft Silverlight
The easiest way to do this is like this:
NavigationService.RemoveBackEntry();
NavigationService.GoBack();
This doesn't exactly go back twice, it removes the previous page from the navigation stack, then goes back once, but the effect is the same.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With