In my application the app closes if the back button is pressed on a child page.
How can I called Frame.Navigate on a back button press?
I have seen examples how to do this in C# but these do not seem to translate over too well into VB.NET.
Below is a method of which I have tried
Private Sub OnHardwareButtonsBackPressed(sender As Object, e As Windows.UI.Core.SystemNavigationManager.GetForCurrentView().BackRequested)
The correct syntax is:
Private Sub OnHardwareButtonsBackPressed(sender As Object, e As BackRequestedEventArgs) ' Tell the app that you have handled the event ' Otherwise, the back button will be processed normally and the app will close e.handled = true End Sub
Then, to attach your event:
AddHandler SystemNavigationManager.GetForCurrentView().BackRequested, AddressOf OnHardwareButtonsBackPressed