Cancel Remove From Collection
@code { [CascadingParameter] IMudDialogInstance MudDialog { get; set; } [Parameter] public string EntityType { get; set; } [Parameter] public string EntityName { get; set; } [Parameter] public string DetailText { get; set; } [Parameter] public string DetailHighlight { get; set; } private string FormatText() => $"Do you really want to remove the {EntityType} {EntityName} from this collection?"; private void Submit() => MudDialog.Close(DialogResult.Ok(true)); private void Cancel() => MudDialog.Cancel(); private void OnKeyDown(KeyboardEventArgs e) { if (e.Code is "Enter" or "NumpadEnter") { Submit(); } } }