Skip to main content
A newer version of this page is available. .

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

public bool ValidateOnTextInput { get; set; }

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
.NewTokenEditSettings.ValidateOnTextInput

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.

See Also