Back to Devexpress

NumericEdit.AllowNullValue Property

maui-devexpress-dot-maui-dot-editors-dot-numericedit-5df70112.md

latest1.7 KB
Original Source

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

csharp
public bool AllowNullValue { get; set; }

Property Value

TypeDefaultDescription
Booleanfalse

true to allow an empty editor; otherwise, false.

|

Remarks

If no value is entered, the editor displays 0. To display an empty editor when no value is entered, set the AllowNullValue property to true (also allows you to set the Value property to Null).

xaml
<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

NumericEdit Class

NumericEdit Members

DevExpress.Maui.Editors Namespace