Skip to main content

BaseEdit.DoValidate() Method

Validates the editor.

Namespace: DevExpress.UI.Xaml.Editors

Assembly: DevExpress.UI.Xaml.Editors.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public virtual bool DoValidate()

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.

See Also