Windows Phone 7如何访问上一页的URI [英] How to access the URI of the previous page in Windows Phone 7

查看:26
本文介绍了Windows Phone 7如何访问上一页的URI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在我的 WP7 应用程序的当前页面上找出用户来自哪个页面?

Is there a way to find out on the current page of my WP7 app which page the user came from?

我在这里寻找相当于 http 引用的.

I'm looking for the equivalent of a http referer here.

推荐答案

参考本页 http://msdn.microsoft.com/en-us/library/system.windows.navigation(v=VS.92).aspx并查看 NavigationService 的 BackStack 属性,但缺点是如果您之前在 WP7.0 上进行开发,则 BackStack 属性不可用.希望这会有所帮助.

reference this page http://msdn.microsoft.com/en-us/library/system.windows.navigation(v=VS.92).aspx and have a look at BackStack property of the NavigationService, the drawback though is if you were previously developing on WP7.0 then the BackStack property isn't available. hope this helps.

这篇关于Windows Phone 7如何访问上一页的URI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆