Windows Phone应用程序中的HTML5和硬件后退按钮 [英] HTML5 and the Hardware back button in Windows phone apps

查看:87
本文介绍了Windows Phone应用程序中的HTML5和硬件后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已经设置了一个简单的基于html5的Windows Phone 5应用程序。


由于硬件后退按钮的行为,它被拒绝了:应用程序关闭后转到了上一页。


有没有一个简单的解决方案可以解决这个问题?



解决方案





这里有一些资源:



http://blogs.msdn.com/b/jaimer/archive/2011/02/04/back-button-press-when-using-webbrowser-control-in-wp7.aspx


http://developer.nokia.com/Community/Wiki/WebBrowser_Control_Techniques_in_Windows_Phone



http://stackoverflow.com/questions/5100538/handling-hardware-back-button-and-sending-it-to-webbrowser-control-running-on-wi/5102699#5102699


不要担心这些适用于WP7和WP8。



希望这会有所帮助;)



问候,

Christian H。



Have have set up a simple html5 based Windows Phone 5 app.

It was rejected because of the behaviour of the hardware back button: application closing instaed of going to the previous page.

Is there a simple solution to solve this?

解决方案

Hi,

You got some ressources here :

http://blogs.msdn.com/b/jaimer/archive/2011/02/04/back-button-press-when-using-webbrowser-control-in-wp7.aspx

http://developer.nokia.com/Community/Wiki/WebBrowser_Control_Techniques_in_Windows_Phone

http://stackoverflow.com/questions/5100538/handling-hardware-back-button-and-sending-it-to-webbrowser-control-running-on-wi/5102699#5102699

Don't worry these apply both for WP7 and WP8.

Hope that will help ;)

Regards,
Christian H.


这篇关于Windows Phone应用程序中的HTML5和硬件后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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