How to Override Back Key Press in Windows Phone 8

Choose the Page where you want to Override “Back key ”
 
In .CS page declare “using System.ComponentModel;” on Top
 
Copy The Code Below and paste it where ever you want handle Back Key press event.
  1. using System.ComponentModel;  
  2.   
  3. protected override void OnBackKeyPress(CancelEventArgs e)   
  4. {  
  5.     if (MessageBox.Show("Are you sure you want to exit?""Attention !!!",  
  6.     MessageBoxButton.OKCancel) != MessageBoxResult.OK)   
  7.     {  
  8.         e.Cancel = true;  
  9.     }  
  10. }