Back to Devexpress

TextEditSettings.ValidateOnTextInput Property

wpf-devexpress-dot-xpf-dot-editors-dot-settings-dot-texteditsettings-bd9f6616.md

latest2.1 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool ValidateOnTextInput { get; set; }
vb
Public Property ValidateOnTextInput As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to validate the edit value while a user types text in the editor’s text box; otherwise, false.

|

Remarks

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 user only after this text is validated.

The DataViewBase.EnableImmediatePosting property has no effect on a column if this column editor’s ValidateOnTextInput property is set to false.

See Also

ValidateOnTextInput

TextEditSettings Class

TextEditSettings Members

DevExpress.Xpf.Editors.Settings Namespace