BaseEdit.InvalidValueBehavior Property
Gets or sets a value that specifies the editor’s response to an invalid value. This is a dependency property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
InvalidValueBehavior | One of the InvalidValueBehavior enumeration values. |
Available values:
Name | Description |
---|---|
AllowLeaveEditor | This mode allows you to switch to another editor, and re-enter a value for this editor later. |
WaitForValidValue | This mode locks the entire application until a correct value is entered. |
Remarks
If the InvalidValueBehavior property is set to InvalidValueBehavior.AllowLeaveEditor, an end-user can switch to another editor, and re-enter a value for this editor later. Setting the InvalidValueBehavior property to InvalidValueBehavior.WaitForValidValue locks the entire application until a correct value is entered. The InvalidValueBehavior property works only if an internal editor’s validation fails.
If an editor is used in-place within a container control (e.g., GridControl), setting the InvalidValueBehavior property has no effect.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InvalidValueBehavior property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.