Skip to main content

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.v22.1.dll


public bool ValidateOnTextInput { get; set; }

Property Value

Type Description

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


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