Table of Contents

Class DialogViewModelBase<T>

Namespace
EasySoftware.MvvmMini
Assembly
EasySoftware.MvvmMini.dll

Base class for modal dialog view models that produce a result.

public abstract class DialogViewModelBase<T> : DialogViewModelBase, IDialogViewModel<T>, IDialogViewModel, IWindowViewModel, IClosableViewModel, IViewModel, IModel, INotifyPropertyChanged, INotifyDataErrorInfo, IErrorContainer

Type Parameters

T

The type of the dialog result.

Inheritance
DialogViewModelBase<T>
Implements
Inherited Members

Constructors

DialogViewModelBase(IViewAdapter)

Initializes a new instance of the DialogViewModelBase<T> class.

protected DialogViewModelBase(IViewAdapter viewAdapter)

Parameters

viewAdapter IViewAdapter

The adapter of the dialog window that belongs to this view model.

Properties

DialogResult

Gets or sets the result of the dialog, available after it is closed.

public abstract T DialogResult { get; protected set; }

Property Value

T