public void OnBackButtonPressed(object sender, UniversalBackPressedEventArgs args) { BackButtonPressed?.Invoke(sender, args); }
private void OnBackPressed(object sender, UniversalBackPressedEventArgs args) { System.Diagnostics.Debug.WriteLine("MainPageVM BackPressed!"); _navigationService.GoBack(); }
//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(); }