Skip to content

Instantly share code, notes, and snippets.

@wtuts
Created January 12, 2016 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtuts/0fa8786851890a03c211 to your computer and use it in GitHub Desktop.
Save wtuts/0fa8786851890a03c211 to your computer and use it in GitHub Desktop.
HardwareButtons.BackPressed += HardwareButtons_BackPressed;
private void HardwareButtons_BackPressed(object sender, BackPressedEventArgs e)
{
//Code to disable the back button
e.Handled = true;
//Here you can add your own code and perfrom any task
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment