Table of Contents

Class VmDialogReference

Namespace
Dmnk.Blazor.Dialogs.Api
Assembly
Dmnk.Blazor.Dialogs.dll

Holds a reference to an open dialog, allowing, among other things, to close or dismiss it from the ViewModel.

public class VmDialogReference
Inheritance
VmDialogReference
Inherited Members

Constructors

VmDialogReference(Func<Task>)

Holds a reference to an open dialog, allowing, among other things, to close or dismiss it from the ViewModel.

public VmDialogReference(Func<Task> onClose)

Parameters

onClose Func<Task>

Properties

Cancelled

Whether the dialog was dismissed by calling Dismiss().

public bool Cancelled { get; }

Property Value

bool

Closed

Whether the dialog was closed by calling Close() or Dismiss().

public bool Closed { get; }

Property Value

bool

WaitClosed

A task that completes when the dialog is closed, either by calling Close() or Dismiss().

public Task WaitClosed { get; }

Property Value

Task

Methods

Close()

Close without settings Cancelled to true. OnDismissed(Async) will also be called before closing.

public Task Close()

Returns

Task

Dismiss()

Close and set Cancelled to true. OnDismissed(Async) will also be called before closing.

public Task Dismiss()

Returns

Task