Frage

I need to block return button

private void MainPage_BackKeyPress(object sender, CancelEventArgs e)
{ 
    //?
}

And then I need to unblock it. How can I implement this?

War es hilfreich?

Lösung

To prevent the back-button from actually navigating back, just cancel the event:

e.Cancel = true;
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top