You must rewrite the HardwareButtons_BackPressed method in the App.xaml.cs file.
Also, if you handled an event, you need to set e.Handled = true to tell the system with which you already handled the event, and do not click the event below in the queue.
See MSDN for more details and examples.
source share