Windows Phone XNA Games Hangs on Resume when Guide is Visible on WP7.x
My Windows Phone XNA game calls Guide.BeginShowKeyboardInput to get the user's name. While the Guide's input screen is shown, if the user presses the Home or Search (hardware) buttons, the game is deactivated as usual - but if the user then presses the Back (hardware) button, the game should resume but it doesn't. Instead it shows the "Resuming..." message until Windows Phone gives up trying to resume the game and kills the process.
Please note:
Any other ideas on what could be blocking the game from resuming when the Guide.IsVisible or how to debug/resolve this problem?
解决此问题的方法很简单,就是在处理任何将应用程序传递到应用程序之外的操作(例如启动器,选择器和指南)时,不要使用SuppressDraw。
Have you tried calling "Guide.EndShowKeyboardInput" in either the Deactivating or closing events?
So that the guide is closed before the app suspends, you do get 10 seconds to suspend so this might be worth looking into. If you want the guide to re-show on resume, then in your state saving code just have a flag and open the guide if it's set.
链接地址: http://www.djcxy.com/p/22776.html上一篇: 如何将Silverlight与XNA整合