Вопрос

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?

Это было полезно?

Решение

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

e.Cancel = true;
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top