Table of Contents

Class MudDialogProvider

Namespace
MudBlazor
Assembly
MudBlazor.dll

A manager for MudDialog instances.

public class MudDialogProvider : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
MudDialogProvider
Implements
Inherited Members
Extension Methods

Remarks

Add this component to your layout page if your application needs to display dialogs.

Constructors

MudDialogProvider()

public MudDialogProvider()
See Also
MudBlazor.MudDialogProvider.DialogService

Properties

BackdropClick

Allows dialogs to be closed by clicking outside of them by default.

[Parameter]
[Category("Behavior")]
public bool? BackdropClick { get; set; }

Property Value

bool?

Remarks

Defaults to true.

See Also
MudBlazor.MudDialogProvider.DialogService

BackgroundClass

The custom CSS classes to apply to dialogs by default.

[Parameter]
[Category("Appearance")]
public string? BackgroundClass { get; set; }

Property Value

string

Remarks

Multiple classes must be separated by spaces.

See Also
MudBlazor.MudDialogProvider.DialogService

CloseButton

Shows a close button in the top-right corner for all dialogs by default.

[Parameter]
[Category("Behavior")]
public bool? CloseButton { get; set; }

Property Value

bool?

Remarks

Defaults to null.

See Also
MudBlazor.MudDialogProvider.DialogService

CloseOnEscapeKey

Allows dialogs to be closed by pressing the Escape key by default.

[Parameter]
[Category("Behavior")]
public bool? CloseOnEscapeKey { get; set; }

Property Value

bool?
See Also
MudBlazor.MudDialogProvider.DialogService

FullWidth

Sets the width of dialogs to the width of the screen by default.

[Parameter]
[Category("Appearance")]
public bool? FullWidth { get; set; }

Property Value

bool?

Remarks

Defaults to null.

See Also
MudBlazor.MudDialogProvider.DialogService

MaxWidth

The maximum allowed with of the dialog.

[Parameter]
[Category("Appearance")]
public MaxWidth? MaxWidth { get; set; }

Property Value

MaxWidth?

Remarks

Defaults to null.

See Also
MudBlazor.MudDialogProvider.DialogService

NoHeader

Hides headers for all dialogs by default.

[Parameter]
[Category("Behavior")]
public bool? NoHeader { get; set; }

Property Value

bool?

Remarks

Defaults to null.

See Also
MudBlazor.MudDialogProvider.DialogService

Position

The location of dialogs by default.

[Parameter]
[Category("Appearance")]
public DialogPosition? Position { get; set; }

Property Value

DialogPosition?

Remarks

Defaults to null.

See Also
MudBlazor.MudDialogProvider.DialogService

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder
See Also
MudBlazor.MudDialogProvider.DialogService

DismissAll()

Hides all currently visible dialogs.

public void DismissAll()
See Also
MudBlazor.MudDialogProvider.DialogService

Dispose()

Releases resources used by this provider.

public void Dispose()
See Also
MudBlazor.MudDialogProvider.DialogService

OnAfterRenderAsync(bool)

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender bool

Returns

Task
See Also
MudBlazor.MudDialogProvider.DialogService

OnInitialized()

protected override void OnInitialized()
See Also
MudBlazor.MudDialogProvider.DialogService

See Also

MudDialog
MudDialogInstance
DialogOptions
DialogParameters<T>
DialogReference
MudBlazor.MudDialogProvider.DialogService