Property | Type | Description | |
---|---|---|---|
EmptyErrorsCollection | ReadOnlyCollection |
Method | Description | |
---|---|---|
BindableValidator ( INotifyPropertyChanged entityToValidate ) : System |
Initializes a new instance of the BindableValidator class with the entity to validate.
|
|
BindableValidator ( INotifyPropertyChanged entityToValidate, Func |
Initializes a new instance of the BindableValidator class with the entity to validate.
|
|
GetAllErrors ( ) : ReadOnlyCollection |
Returns a new ReadOnlyDictionary containing all the errors of the Entity, separated by property.
|
|
SetAllErrors ( IDictionary |
Updates the errors collection of the entity, notifying if the errors collection has changed.
|
|
ValidateProperties ( ) : bool |
Validates all the properties decorated with the ValidationAttribute attribute. It updates each property errors collection with the new validation results (notifying if necessary).
|
|
ValidateProperty ( string propertyName ) : bool |
Validates the property, based on the rules set in the property ValidationAttributes attributes. It updates the errors collection with the new validation results (notifying if necessary).
|
|
this ( string propertyName ) : ReadOnlyCollection |
Returns the errors of the property.
|
Method | Description | |
---|---|---|
OnErrorsChanged ( string propertyName ) : void |
Notifies listeners that the errors of a property have changed.
|
|
OnPropertyChanged ( string propertyName ) : void |
Notifies listeners that a property value has changed.
|
|
SetPropertyErrors ( string propertyName, IList |
Updates the errors collection of the property.
|
|
TryValidateProperty ( |
Performs a validation of a property, adding the results in the propertyErrors list.
|
public BindableValidator ( INotifyPropertyChanged entityToValidate ) : System | ||
entityToValidate | INotifyPropertyChanged | The entity to validate |
return | System |
public BindableValidator ( INotifyPropertyChanged entityToValidate, Func |
||
entityToValidate | INotifyPropertyChanged | The entity to validate |
getResourceDelegate | Func |
A delegate that returns a string resource given a resource map Id and resource Id |
return | System |
public GetAllErrors ( ) : ReadOnlyCollection |
||
return | ReadOnlyCollection |
public SetAllErrors ( IDictionary |
||
entityErrors | IDictionary |
The collection of errors for the entity. |
return | void |
public ValidateProperty ( string propertyName ) : bool | ||
propertyName | string | The name of the property to validate. |
return | bool |
public this ( string propertyName ) : ReadOnlyCollection |
||
propertyName | string | The name of the property. |
return | ReadOnlyCollection |