How to handle window button in Windows Phone?

If I press window/home button on my windows phone mid-game, it takes me to the start screen but it doesn’t pause the game. Thus, when I get back to my game, it just continues from where I had left off.

I want to pause the game if the player opens another app, or gets a call, or anything…

Hi see the following guides at

The windows phone one is here and has a full section on back button support,


Use OnApplicationFocus() method to pause/unpause your game.