async Task OnCancelCommand() { if (await _pageDialogService.DisplayAlertAsync("Cancel", "Are you sure you want to cancel without saving?", "Yes", "No")) { DontSaveOnClose = true; if (_wizardController != null) { await _wizardController.Cancel(); } else { await _navigationService.GoBackAsync(); } } }
async Task OnCancelCommand() { await _wizardController.Cancel(); }