Windows Phone - 如何在MessageBox打开时限制硬件返回 [英] Windows Phone - How to restrict Hardware Back when MessageBox is Open

查看:73
本文介绍了Windows Phone - 如何在MessageBox打开时限制硬件返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我正在开发Windows Phone应用程序并需要实现以下功能: -


应用程序中有登录部分。如果用户空闲5分钟,MessageBox应该说"会话超时"。请再次登录。"使用消息框上的确定按钮,然后单击确定按钮,用户将退出应用程序并登录页面
应该来。



这已成功实施但是如果用户点击Windows Phone的硬件返回按钮,MessageBox消失,用户即使在5分钟后仍然可以访问该应用程序。



请告诉我如何限制硬件返回当MessageBox处于打开状态时,消息框应保持活动状态,直到用户单击"确定"按钮为止。




提前感谢。





问候,b
Jatin Juneja


Hi,

I am developing a Windows Phone app and need to implement below functionality:-

There is logged in section in the app. And if user is idle for 5 mins MessageBox should come saying "Session Time Out. Please login again." with OK button on Message Box and on click of OK button user will be logged out of application and login page should come.

This is implemented successfully but if the user clicks Hardware Back button of Windows Phone, MessageBox disappears and user can still access the app even after 5 minutes.

Please let me know how to restrict Hardware Back when MessageBox is in open state and Message box should remain active till the time user clicks Ok button.


Thanks in advance.


Regards,
Jatin Juneja

推荐答案

不要阻止用户退出应用程序。让他们退出,但在他们导航回应用程序时显示您的登录页面。

Don't block the user from exiting the app. Let them exit, but show your login page when they navigate back into the app.

- Rob


这篇关于Windows Phone - 如何在MessageBox打开时限制硬件返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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