ValidationBindableBase Class

Base class for a Bindable class that implements data validations.

Definition

Namespace: Aliquo.Windows.Base
Assembly: Aliquo.Windows (in Aliquo.Windows.dll) Version: 5.0.9179.22654
C#
public class ValidationBindableBase : BindableBase, 
	INotifyDataErrorInfo, INotifyDataErrorInView
Inheritance
Object    BindableCore    BindableBase    ValidationBindableBase
Derived
Implements
INotifyDataErrorInView, INotifyDataErrorInfo

Constructors

ValidationBindableBaseInitializes a new instance of the ValidationBindableBase class

Properties

HasErrors Gets a value that indicates whether the entity has validation errors.
ValidationProvider Gets or sets the data validations provider.

Methods

ApplyRules Applies validation rules for the specified property.
GetErrors Gets validation errors for a specific property or for the entire entity.
NotifyErrorInView Allows validation errors that occur in the view to be transferred to this entity.
Validate Applies validation rules to the entity and returns a value indicating whether all rules are valid and does not contain error notifications from the view.
Validate(String) Applies validation rules to the entity and returns a value indicating whether all rules are valid and does not contain error notifications from the view.

Events

ErrorsChanged Occurs when validation errors have changed for a property or for the entire entity.

Extension Methods

GetAttributeFromT Get attribute from a class.
(Defined by ObjectExtensions)
ValidateDataAnnotations Validate class with validator of DataAnnotations.
(Defined by ObjectExtensions)

See Also