Back to Devexpress

BaseEdit.InvalidValueBehavior Property

wpf-devexpress-dot-xpf-dot-editors-dot-baseedit-2f60df97.md

latest2.3 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public InvalidValueBehavior InvalidValueBehavior { get; set; }
vb
Public Property InvalidValueBehavior As InvalidValueBehavior

Property Value

TypeDescription
InvalidValueBehavior

One of the InvalidValueBehavior enumeration values.

|

Available values:

NameDescription
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.

The InvalidValueBehavior property has no effect if an in-place editor is used within a container control. For example, the AllowLeaveInvalidEditor property controls this behavior in the GridControl.

See Also

BaseEdit Class

BaseEdit Members

DevExpress.Xpf.Editors Namespace