The requested page is not available for the requested platform. You are viewing the content for Default platform.

BaseEdit.Validate Event

Enables you to validate the editor's value.

Namespace: DevExpress.UI.Xaml.Editors

Assembly: DevExpress.UI.Xaml.Editors.v19.1.dll

Declaration

public event ValidateEventHandler Validate
Public Event Validate As ValidateEventHandler

Event Data

The Validate event handler receives an argument of the ValidationEventArgs type. The following properties provide information specific to this event.

Property Description
ErrorContent Gets or sets an object that describes the validation error.
ErrorType Gets or sets the error type.
IsValid Gets or sets a value specifying whether the value is valid.
UpdateSource Gets the action that caused the validation.
Value Gets the editor's value.

Remarks

Handle the Validate event to manually validate the editor (e.g. to limit the range of valid values, implement a custom conditional validation mechanism, etc).

To specify when the editor should automatically validate its value, use the BaseEdit.ValidateOnEnterKeyPressed and BaseEdit.ValidateOnTextInput properties. To manually force the editor's validation, call the BaseEdit.DoValidate method.

Note

The Validate event is not raised if the editor's BaseEdit.CausesValidation property is set to false.

See Also