Пример #1
0
 public void OnBackButtonPressed(object sender, UniversalBackPressedEventArgs args)
 {
     BackButtonPressed?.Invoke(sender, args);
 }
Пример #2
0
 private void OnBackPressed(object sender, UniversalBackPressedEventArgs args)
 {
     System.Diagnostics.Debug.WriteLine("MainPageVM BackPressed!");
     _navigationService.GoBack();
 }
Пример #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();
 }