TextEditSettings.ValidateOnTextInput Property
Gets or sets whether the edit value should be validated while typing within the editor’s text box. This is a dependency property.
Namespace: DevExpress.Xpf.Editors.Settings
Assembly: DevExpress.Xpf.Core.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true to validate the edit value while an end-user types text within the editor’s text box; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to ValidateOnTextInput |
---|---|
TokenEditorBehavior |
|
Remarks
By default, the ValidateOnTextInput property is set to true and the TextEdit behaves like the standard TextBox.
If the ValidateOnTextInput property is set to false, the WPF validation mechanism is used. In this instance, to avoid invalid values from posting to a data source, the BaseEdit.EditValue, TextEditBase.Text and BaseEdit.DisplayText properties are synchronized with the text entered by the end-user only after this text is validated.