Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
public bool AllowNullValue { get; set; }

#Property Value

Type Default Description
Boolean false

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

<dxe:NumericEdit AllowNullValue="True" 
                 Value="{x:Null}"/>

NumericEdit.AllowNullValue

You can use the PlaceholderText property to show an input prompt in the edit box when the editor is empty.

NumericEdit.PlaceholderText

To specify the placeholder’s text color, use the PlaceholderColor property.

See Also