コード例 #1
0
        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();
                }
            }
        }
コード例 #2
0
 async Task OnCancelCommand()
 {
     await _wizardController.Cancel();
 }