Property | Type | Description | |
---|---|---|---|
Initialize | void | ||
InvokePropertyChanged | void | ||
OnErrorsChanged | void | ||
_ModelBase_OnDeserializing | void |
Method | Description | |
---|---|---|
AddHandler ( IListener |
Adds a weak event handler.
|
|
ClearErrors ( ) : void |
Clears the error collections and the HasErrors property
|
|
GetAllErrors ( ) : ReadOnlyCollection |
Returns a collection of all errors (object and property level). Call Validate() to refresh this property. |
|
GetErrors ( ) : ReadOnlyCollection |
Returns a collection of object-level errors. Call Validate() to refresh this property. |
|
GetErrors ( string propertyName ) : ReadOnlyCollection |
Returns a collection of property-level errors. Call Validate() to refresh this property. |
|
RemoveHandler ( IListener |
Removes a weak event handler.
|
|
Validate ( ) : bool |
This forces the object to be completely revalidated.
|
Method | Description | |
---|---|---|
AbstractModelBase ( ) : System |
Initializes a new instance of the AbstractModelBase class.
|
|
OnErrorsChanged ( string propertyName ) : void |
Used to manually invoke the ErrorsChanged event.
|
|
OnValidateObject ( ValidationResultCollection results ) : void |
Override this method to add imperative validation at the object level.
|
|
OnValidateProperty ( string propertyName, ValidationResultCollection results ) : void |
Override this method to add imperative validation at the property level.
|
Method | Description | |
---|---|---|
Initialize ( ) : void | ||
InvokePropertyChanged ( |
Triggers the PropertyChanged event.
|
|
OnErrorsChanged ( string propertyName, ErrorsDictionaryUpdateType updateType ) : void |
Invoke this method to signal the events associated with changing the errors dictionary. The parameter updateType is returned by the methods on ErrorsDictionary.
|
|
_ModelBase_OnDeserializing ( |
public AddHandler ( IListener |
||
eventHandler | IListener |
|
return | void |
public GetErrors ( string propertyName ) : ReadOnlyCollection |
||
propertyName | string | Null or String.Empty will return the object-level errors |
return | ReadOnlyCollection |
protected OnErrorsChanged ( string propertyName ) : void | ||
propertyName | string | Name of the property. |
return | void |
protected OnValidateObject ( ValidationResultCollection results ) : void | ||
results | ValidationResultCollection | A collection of the declarative validation errors. You may add and remove errors from this collection. |
return | void |
protected OnValidateProperty ( string propertyName, ValidationResultCollection results ) : void | ||
propertyName | string | The name of the property being validated. |
results | ValidationResultCollection | A collection of the declarative validation errors. You may add and remove errors from this collection. |
return | void |
public RemoveHandler ( IListener |
||
eventHandler | IListener |
|
return | void |