C# Class MvvmValidation.NotifyDataErrorInfoAdapter

Adapts an instance of ValidationHelper to the INotifyDataErrorInfo interface.
Inheritance: INotifyDataErrorInfo
Mostra file Open project: pglazkov/MvvmValidation Class Usage Examples

Private Properties

Property Type Description
OnErrorsChanged void
OnValidatorResultChanged void

Public Methods

Method Description
GetErrors ( string propertyName ) : IEnumerable

Gets the validation errors for a specified property or for the entire object.

NotifyDataErrorInfoAdapter ( [ validator ) : System

Initializes a new instance of the NotifyDataErrorInfoAdapter class.

NotifyDataErrorInfoAdapter ( [ validator, [ errorsChangedNotificationContext ) : System

Initializes a new instance of the NotifyDataErrorInfoAdapter class.

Private Methods

Method Description
OnErrorsChanged ( string propertyName ) : void
OnValidatorResultChanged ( object sender, ValidationResultChangedEventArgs e, SynchronizationContext syncContext ) : void

Method Details

GetErrors() public method

Gets the validation errors for a specified property or for the entire object.
public GetErrors ( string propertyName ) : IEnumerable
propertyName string The name of the property to retrieve validation errors for, or null or to retrieve errors for the entire object.
return IEnumerable

NotifyDataErrorInfoAdapter() public method

Initializes a new instance of the NotifyDataErrorInfoAdapter class.
public NotifyDataErrorInfoAdapter ( [ validator ) : System
validator [ The adaptee.
return System

NotifyDataErrorInfoAdapter() public method

Initializes a new instance of the NotifyDataErrorInfoAdapter class.
public NotifyDataErrorInfoAdapter ( [ validator, [ errorsChangedNotificationContext ) : System
validator [ The adaptee.
errorsChangedNotificationContext [ Synchronization context that should be used to raise the event on.
return System