Table of Contents

Interface IDialogReference

Namespace
MudBlazor
Assembly
MudBlazor.dll

An instance of a MudDialog.

public interface IDialogReference
Extension Methods

Properties

Dialog

The dialog linked to this reference.

object? Dialog { get; }

Property Value

object
See Also

Id

The unique ID of this dialog.

Guid Id { get; }

Property Value

Guid
See Also

RenderCompleteTaskCompletionSource

TaskCompletionSource<bool> RenderCompleteTaskCompletionSource { get; }

Property Value

TaskCompletionSource<bool>
See Also

RenderFragment

The content within this dialog.

RenderFragment? RenderFragment { get; set; }

Property Value

RenderFragment
See Also

Result

The result of closing the dialog.

Task<DialogResult?> Result { get; }

Property Value

Task<DialogResult>
See Also

Methods

Close()

Hides the dialog.

void Close()
See Also

Close(DialogResult?)

Hides the dialog and returns a result.

void Close(DialogResult? result)

Parameters

result DialogResult

The result of closing the dialog.

See Also

Dismiss(DialogResult?)

Notifies that this dialog has been dismissed.

bool Dismiss(DialogResult? result)

Parameters

result DialogResult

The result of closing the dialog.

Returns

bool

Returns true if the result was set successfully.

See Also

GetReturnValueAsync<T>()

Gets the result of closing the dialog.

Task<T?> GetReturnValueAsync<T>()

Returns

Task<T>

The results of closing the dialog.

Type Parameters

T

The type of value to return.

See Also

InjectDialog(object)

Replaces the dialog with the specified reference.

void InjectDialog(object inst)

Parameters

inst object

The new dialog to use.

See Also

InjectRenderFragment(RenderFragment)

Replaces the dialog content.

void InjectRenderFragment(RenderFragment rf)

Parameters

rf RenderFragment

The new content to use.

See Also

See Also