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
-
PropertyChangedBaseDialogViewModel
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Properties
Buttons
Gets the buttons.
public ICollection<IButton> Buttons { get; }
Property Value
Close
Gets or sets the action to close the dialog.
public Action<string> Close { get; set; }
Property Value
HasValidationErrors
Gets a value indicating whether one of the Items which implements IDataErrorInfo has a validation error.
public virtual bool HasValidationErrors { get; }
Property Value
Items
Gets the view models of items.
public ICollection<ItemViewModelBase> Items { get; }
Property Value
Title
Gets or sets the title.
public string Title { get; set; }
Property Value
Methods
CleanUp()
This method is called after closing a the dialog to clean up.
protected virtual void CleanUp()