BaseEdit.AllowNullInput Property
Gets or sets whether users can set the editor’s value to a null reference by pressing the CTRL
+DEL
or CTRL
+0
key combinations. 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 |
---|---|
Boolean | true to allow null input by pressing the |
Remarks
If the AllowNullInput property is set to true, users can set the editor’s value to a null reference by pressing the CTRL
+DEL
or CTRL
+0
key combinations. If the BaseEdit.NullValue property is specified, its value is assigned to the BaseEdit.EditValue property. Otherwise, the BaseEdit.EditValue property is set to null.
Note
The CTRL
+0
key combination does not work when using a French or German keyboard.
Note
When the user clears the text displayed within the text edit box by selecting it and pressing the Delete or Backspace key, the BaseEdit.EditValue property is set to a null reference. The AllowNullInput property is not in effect in this instance.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowNullInput 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.