BaseEdit.DoValidate() Method

Validates the editor.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public virtual bool DoValidate()
Public Overridable Function DoValidate As Boolean

Returns

Type Description
Boolean

true if the editor's value has been validated; false if the editor's value is invalid.

Remarks

The DoValidate method is automatically called by the editor or its container control, each time the editor's value should be validated. This occurs when an end-user accepts the edit value (for example, when the editor is about to lose focus).

Use the DoValidate method to manually force the validation. If the editor's BaseEdit.CausesValidation property is set to true, the editor fires the BaseEdit.Validate event, allowing you to manually validate its value.

To learn more, see Input Validation.

Implements

DevExpress.Xpf.Editors.IBaseEdit.DoValidate()
DevExpress.Xpf.Editors.Validation.ISupportDXValidation.DoValidate()
See Also