0

I want to do some work if user presses back key on the phone with navigating back How to do it?

With following code it cancel navigation to back page & do some stuff but i want to do stuff while going back please help...

protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
{
    // do some stuff...

    e.Cancel = true;
}
xsheru
  • 467
  • 4
  • 25

0 Answers0