WP7:向后导航两次
有没有办法在 Windows Phone 7 中向后导航两个页面?我知道 URI,但我想清除导航堆栈。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,您可以通过编程方式走回堆栈。我建议阅读有关此主题的指导文档:
http://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/12/13/solving-circular-navigation-in-windows-phone-silverlight-applications。谢谢
,
Stefan Wick - 微软 Silverlight
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:
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.
如果您尝试导航到主页,这可以帮助您。
This could help you out in case you are trying to navigate to your home page.