Posted by Anuraj on Wednesday, August 28, 2013 Reading time :1 minute
If you want to display an exit confirmation from your Windows Phone app, if user press the hardware back button, here is the code snippet. (It is not a recommended practice, as per Windows Phone market place certification requirements, if user pressing the back button from the application’s first page, application should exit)
It will display a message box like this, if user press the back button.
Clicking on OK will exit the application.
What do you think? I would like to hear your thoughts, suggestions, and questions in the comments section below.