Back to Devexpress

NumericEdit.Value Property

maui-devexpress-dot-maui-dot-editors-dot-numericedit-e1f838f0.md

latest1.9 KB
Original Source

NumericEdit.Value Property

Gets or sets a number entered in the editor. This is a bindable property.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public decimal? Value { get; set; }

Property Value

TypeDescription
Nullable<Decimal>

A nullable decimal value.

|

Remarks

To specify the minimum and maximum values that users can assign to the editor, use the MinValue and MaxValue properties.

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

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

To prevent users from changing the editor’s value, set the IsReadOnly property to true.

Handle the ValueChanged event or use the ValueChangedCommand property to specify the action that occurs after the editor’s value is changed.

See Also

NumericEdit Class

NumericEdit Members

DevExpress.Maui.Editors Namespace