How can I block return button?
-
24-05-2021 - |
Вопрос
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;
Не связан с StackOverflow