Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Windows Phone back button bug?

$
0
0

Hi, in Windows Phone canceling the OnBackKeyPress event doesn't prevent backward navigation. I think this is either a bug, or a crappy feature:

Example (Windows Phone MainPage.xaml.cs):

protected override void OnBackKeyPress(CancelEventArgs e)
{
     e.Cancel = true;
}

Is there a workaround or preferred method for canceling NavigationPage.Popped in response to a back button press?

Thanks,
Gabe


Viewing all articles
Browse latest Browse all 58056

Trending Articles