The Back button is the only
button that an app can intercept on Windows Phone 7, and for a part of our game it is a requirement that we must do a
specific non-exiting action when the Back button is pressed. However the code
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
is never returning true. The app is always being exited, so I'm
guessing that either
- something else in the XNA Framework is intercepting the Back button
first, or
- there is another way to detect and intercept the Back button.
Silverlight has the OnBackKeyPress method that they can override. How do we intercept the Back button in a XNA app on Windows Phone 7?