Handling Back Navigation Windows 10 (UWP)
In my Xaml Page I've got a Frame. I'm trying to have a backButton event to just navigate inside frame . so I tried to use this piece of code public MainPage(){ this.InitializeComponent(); if(Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) { Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed; } } private void HardwareButtons_BackPressed(object sender,BackPressedEventArgs e) { if(insideFrame.CanGoBack())insideFrame.GoBack(); else Application.Current.Exit(); } but In phone after doing HardwareButtons_BackPressed