为此导航实例加载单独的页面
我刚刚在 Windows Phone 市场上拒绝了一个应用程序,因为我没有遵守“后退按钮关闭应用程序”规则。
目前我正在执行以下操作:
打开应用程序
如果您从未输入过详细信息,请导航到保存详细信息页面
到达此“第一个条目”页面时,我取消使用后退按钮
,因为您可以看到用户看到的第一个视图是我的“第一个条目”页面,尽管我试图变得聪明并锁定用户返回到空的主页(因为他们还没有输入他们的详细信息)我真的阻止他们在第一个屏幕上退出。
无法使用 silverlight 中的代码退出
因为按照http://blogs.msdn.com/b/ptorr/archive/2010/08/01/exiting-a-windows-phone-application.aspx
我应该做什么做?
我应该让用户导航回来,然后尝试捕获他们刚刚返回并再次导航回来吗? (这似乎是一种奇怪的做法)
或者有没有一种方法可以让我捕获第一个导航实例,并且简单地不存储实际加载到历史记录中的第一页,以便当他们回击时,它还是退出了吗?
i have just had an app denied in the windows phone market place because i didn't adhere to the "close application on back button" rule.
currently i am doing the following:
open app
if you've never entered your details, navigate to the save details page
on arriving at this "first entry" page i cancel the use of the back button
because as you can see the first view that the user sees is my "first entry" page although i'm trying to be smart and lock the user from going back to an empty main page (because they havent entered their details) i'm really stopping them from exiting on the first screen.
as there is no way to exit using code in silverlight as per
http://blogs.msdn.com/b/ptorr/archive/2010/08/01/exiting-a-windows-phone-application.aspx
what am i supposed to do?
should i let the user navigate back and then try and capture that they have just hit back and navigate back again? (this seems like and odd way of doing it)
or is there a way for me to capture the first navigation instance and simply not store the first page actually loading into the history, so that when they hit back, it exits anyway?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您的意思是“在后退按钮规则上关闭应用程序”
我认为对您有用并坚持在证书要求内的方法是重定向初始导航...这将导致您的初始页面无法进入后退堆栈。 Peter 在此提供了两种实现方式。
重定向初始导航 - Peter Torr 的博客
I'm going to assume you mean "close app on back button rule"
I think the approach that will work for you and stick within cert reqs is to redirect the intial navigation... this will cause your initial page to not enter the backstack. Peter offers two implementations for this here.
Redirecting an initial navigation - Peter Torr's Blog