Click or drag to resize

IViewModel Interface

Encapsulates implementations of INotifyPropertyChanged and INotifyDataErrorInfo and adds PropertyValueChanged event which is raised in tandem with PropertyChanged except it provides addition data like old value and new value.

Namespace:  BionicCode.Utilities.Net.Standard.ViewModel
Assembly:  BionicCode.Utilities.Net.Standard (in BionicCode.Utilities.Net.Standard.dll) Version: 1.0.3
Syntax
public interface IViewModel : INotifyPropertyChanged, 
	INotifyDataErrorInfo

The IViewModel type exposes the following members.

Properties
  NameDescription
Public propertyHasErrors
Gets a value that indicates whether the entity has validation errors.
(Inherited from INotifyDataErrorInfo.)
Top
Methods
  NameDescription
Public methodGetErrors
Gets the validation errors for a specified property or for the entire entity.
(Inherited from INotifyDataErrorInfo.)
Public methodGetPropertyErrors
Gets all error messages of the specified property. If the propertyName is null all error messages will be returned.
Public methodPropertyHasError
Checks whether the specified property has errors or is valid.
Top
Events
  NameDescription
Public eventErrorsChanged
Occurs when the validation errors have changed for a property or for the entire entity.
(Inherited from INotifyDataErrorInfo.)
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from INotifyPropertyChanged.)
Public eventPropertyValueChanged
PropertyChanged implementation that sends old value and new value of the change and raises the INotifyPropertyChanged event.
Top
See Also
https://github.com/BionicCode/BionicCode.Net/blob/master/README.md