Table of Contents

Class DialogViewModel

Namespace
Loehnert.Controls.Dialogs.ViewModels
Assembly
Loehnert.Controls.dll

Represents a base class for a dialog view model.

public class DialogViewModel : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged
Inheritance
PropertyChangedBase
DialogViewModel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Properties

Buttons

Gets the buttons.

public ICollection<IButton> Buttons { get; }

Property Value

ICollection<IButton>

Close

Gets or sets the action to close the dialog.

public Action<string> Close { get; set; }

Property Value

Action<string>

HasValidationErrors

Gets a value indicating whether one of the Items which implements IDataErrorInfo has a validation error.

public virtual bool HasValidationErrors { get; }

Property Value

bool

Items

Gets the view models of items.

public ICollection<ItemViewModelBase> Items { get; }

Property Value

ICollection<ItemViewModelBase>

Title

Gets or sets the title.

public string Title { get; set; }

Property Value

string

Methods

CleanUp()

This method is called after closing a the dialog to clean up.

protected virtual void CleanUp()