private async void CancelDialogs(object sender, LocationChangedEventArgs e) { foreach (var DialogReference in Dialogs.ToList()) { DialogReference.Dismiss(DialogResult.Cancel()); } Dialogs.Clear(); await InvokeAsync(StateHasChanged); }
public void DismissAll() { _dialogs.ToList().ForEach(r => r.Dismiss(DialogResult.Cancel())); _dialogs.Clear(); StateHasChanged(); }
public async Task Cancel() { await Close(DialogResult.Cancel()); }
internal void CancelInstance(Guid Id) { var reference = GetDialogReference(Id); CloseInstance(reference, DialogResult.Cancel()); }
public void Cancel() { Close(DialogResult.Cancel()); }
public void DismissAll() { _dialogs.ToList().ForEach(r => DismissInstance(r, DialogResult.Cancel())); StateHasChanged(); }