Class DialogReference
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
An instance of a MudDialog.
public class DialogReference : IDialogReference
- Inheritance
-
DialogReference
- Implements
- Inherited Members
- Extension Methods
Constructors
DialogReference(Guid, IDialogService)
Creates a new instance.
public DialogReference(Guid dialogInstanceId, IDialogService dialogService)
Parameters
dialogInstanceId
GuidThe unique ID of the dialog.
dialogService
IDialogServiceThe service used to manage dialogs.
- See Also
Properties
Dialog
public object? Dialog { get; }
Property Value
- See Also
Id
public Guid Id { get; }
Property Value
- See Also
RenderFragment
public RenderFragment? RenderFragment { get; set; }
Property Value
- See Also
Result
public Task<DialogResult?> Result { get; }
Property Value
- See Also
Methods
Close()
public void Close()
- See Also
Close(DialogResult?)
public void Close(DialogResult? result)
Parameters
result
DialogResult
- See Also
Dismiss(DialogResult?)
public virtual bool Dismiss(DialogResult? result)
Parameters
result
DialogResult
Returns
- See Also
GetReturnValueAsync<T>()
public Task<T?> GetReturnValueAsync<T>()
Returns
- Task<T>
Type Parameters
T
- See Also
InjectDialog(object)
public void InjectDialog(object inst)
Parameters
inst
object
- See Also
InjectRenderFragment(RenderFragment)
public void InjectRenderFragment(RenderFragment rf)
Parameters
- See Also