DataFieldValidation Class

Field data element that implements data validation support.

Definition

Namespace: Aliquo.Windows.Models
Assembly: Aliquo.Windows (in Aliquo.Windows.dll) Version: 5.0.9179.22654
C#
public class DataFieldValidation : DataField, 
	INotifyDataErrorInfo
Inheritance
Object    BindableCore    DataField    DataFieldValidation
Implements
INotifyDataErrorInfo

Remarks

Observaciones:

In a data binding scenario, use the Value property as the binding source path for controls of the view and the field name specified in the Field property to associate validation rules and errors for this field element. So when Binding requests GetErrors() for errors for the bound property Value the errors associated with Field are returned and when it is required to notify changes in the errors of the field The ErrorsChanged event is raised for the Value property.

Constructors

DataFieldValidationInitializes a new instance of the DataFieldValidation class

Properties

AllowNull Indicates if the field allows .
DataType Type of data stored in the field.
HasErrors Indicates if the field has errors in view or rules.
ValidationProvider Gets or sets the reference of the data validations provider.

Methods

GetErrors Gets all data field validation errors.

Events

ErrorsChanged Event that occurs when field errors have changed.

Extension Methods

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

See Also