Windows Phone应用程序中的HTML5和硬件后退按钮 [英] HTML5 and the Hardware back button in Windows phone apps
问题描述
已经设置了一个简单的基于html5的Windows Phone 5应用程序。
由于硬件后退按钮的行为,它被拒绝了:应用程序关闭后转到了上一页。
有没有一个简单的解决方案可以解决这个问题?
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.aspxhttp://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#5102699Don't worry these apply both for WP7 and WP8.
Hope that will help ;)
Regards,
Christian H.
这篇关于Windows Phone应用程序中的HTML5和硬件后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!