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.
Did you like this article? Share it with your friends