public void OnBackButtonPressed(object sender, UniversalBackPressedEventArgs args)
 {
     BackButtonPressed?.Invoke(sender, args);
 }
Exemple #2
0
 private void OnBackPressed(object sender, UniversalBackPressedEventArgs args)
 {
     System.Diagnostics.Debug.WriteLine("MainPageVM BackPressed!");
     _navigationService.GoBack();
 }
Exemple #3
0
 //This is seperate from GoBack() because the MVVM Commanding model requires async void, and the
 //event handler style here for the hardware back button requires async Task<T> or void. So we need both!
 private void OnBackPressed(object sender, UniversalBackPressedEventArgs args)
 {
     GoBack();
 }