Table of Contents

Interface IVmDialogViewModel

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

Defines an MVVM ViewModel for a dialog. Basically just a regular ViewModel, except it holds a reference to the dialog and can react to dismissal by the user.

public interface IVmDialogViewModel : INotifyPropertyChanged
Inherited Members

Properties

Dialog

A reference to the dialog.

VmDialogReference Dialog { get; set; }

Property Value

VmDialogReference

Methods

OnDismiss()

Called when the dialog is dismissed by the user, e.g. by clicking outside the dialog or by clicking a cancel button. This is called before the dialog is actually closed, so you can e.g. still do some cleanup work.

void OnDismiss()

OnDismissAsync()

Async version of OnDismiss()

Task OnDismissAsync()

Returns

Task