Assign Nullable Value in Xamarin NumericUpDown (SfNumericUpDown)

19 May 20211 minute to read

The null values can be set in SfNumericUpDown Value property, by setting AllowNull property value to true.

NOTE

By default, the property value is false.

<numeric:SfNumericUpDown x:Name="numericUpDown" AllowNull="true"/>
numericUpDown.AllowNull=true;

AllowNull

Set Hint Text

The WaterMark property can be used to provide a hint that helps the user to get started with their input. The watermark text is visible when value is empty or null.

<numeric:SfNumericUpDown x:Name="numericUpDown" Watermark="NumericUpDown"/>
numericUpDown.Watermark = "NumericUpDown";

WaterMark