NumericEdit.AllowNullValue Property
Gets or sets whether the editor can be empty. This is a bindable property.
Namespace: DevExpress.Maui.Editors
Assembly: DevExpress.Maui.Editors.dll
NuGet Package: DevExpress.Maui.Editors
Declaration
public bool AllowNullValue { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
Remarks
If no value is entered, the editor displays 0. To allow setting a null value to the Value property and display an empty editor, set the AllowNullValue property to true
.
<dxe:NumericEdit AllowNullValue="True"
Value="{x:Null}"/>
You can use the PlaceholderText property to show an input prompt in the edit box when the editor is empty.
To specify the placeholder’s text color, use the PlaceholderColor property.
See Also