At this point in time the SDK only allows you to get events off the back button. The windows button is like the iPhone main button - for all intents and purposes in your app it's a close button. When it's pressed, your app should save state and be ready to be terminated. The best event that you get for this is Exit
event in Application
class (App.xaml.cs
).
In a Silverlight app, the back button fires a BackKeyPress
event that lives off PhoneApplicationPage
. In Silverlight, you might need to do things a little bit different.
This is the only thing I could find about getting a back key press event in an XNA application:
http://msdn.microsoft.com/en-us/library/bb203902.aspx