Class DataFormNumericItem
Represents the class that encapsulates the layout and numeric editor(SfNumericEntry) settings for data field.
Inherited Members
Namespace: Syncfusion.Maui.DataForm
Assembly: Syncfusion.Maui.DataForm.dll
Syntax
public class DataFormNumericItem : DataFormTextEditorItem, IThemeElement
Examples
The below example shows how to create data form numeric item and how to assign properties to numeric editor.
<dataForm:SfDataForm x:Name="dataForm"
DataObject="{Binding DataModel}">
<dataForm:SfDataForm.Items>
<dataForm:DataFormNumericItem
x:Name="numericItem"
FieldName="Amount"
AllowNull="True">
</dataForm:DataFormNumericItem>
</dataForm:SfDataForm.Items>
</dataForm:SfDataForm>
Constructors
DataFormNumericItem()
Initializes a new instance of the DataFormNumericItem class.
Declaration
public DataFormNumericItem()
Fields
AllowNullProperty
Identifies the AllowNull dependency property.
Declaration
public static readonly BindableProperty AllowNullProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for AllowNull dependency property. |
CultureProperty
Identifies the Culture dependency property.
Declaration
public static readonly BindableProperty CultureProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Culture dependency property. |
CustomFormatProperty
Identifies the CustomFormat dependency property.
Declaration
public static readonly BindableProperty CustomFormatProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for CustomFormat dependency property. |
LargeChangeProperty
Identifies the LargeChange dependency property.
Declaration
public static readonly BindableProperty LargeChangeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for LargeChange dependency property. |
MaximumProperty
Identifies the Maximum dependency property.
Declaration
public static readonly BindableProperty MaximumProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Maximum dependency property. |
MinimumProperty
Identifies the Minimum dependency property.
Declaration
public static readonly BindableProperty MinimumProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Minimum dependency property. |
ShowClearButtonProperty
Identifies the ShowClearButton dependency property.
Declaration
public static readonly BindableProperty ShowClearButtonProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for ShowClearButton dependency property. |
SmallChangeProperty
Identifies the SmallChange dependency property.
Declaration
public static readonly BindableProperty SmallChangeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for SmallChange dependency property. |
UpDownPlacementModeProperty
Identifies the UpDownPlacementMode dependency property.
Declaration
public static readonly BindableProperty UpDownPlacementModeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for UpDownPlacementMode dependency property. |
Properties
AllowNull
Gets or sets a value indicating whether the Syncfusion.Maui.DataForm.DataFormNumericEditor allows null value or not.
Declaration
public bool AllowNull { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true when Syncfusion.Maui.DataForm.DataFormNumericEditor allows null value input, otherwise false. The default value is true. |
Remarks
Placeholder text will only appear when value is set to NaN or null or when the input is cleared by the user.
Culture
Gets or sets the culture for Syncfusion.Maui.DataForm.DataFormNumericEditor.
Declaration
public CultureInfo Culture { get; set; }
Property Value
Type |
---|
System.Globalization.CultureInfo |
CustomFormat
Gets or sets the format used to specify the formatting of editor value.
Declaration
public string CustomFormat { get; set; }
Property Value
Type |
---|
System.String |
LargeChange
Gets or sets the value that is added to or subtracted from Syncfusion.Maui.DataForm.DataFormNumericEditor value, when a large change is made such as with the PageUP and PageDown keys.
Declaration
public double LargeChange { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 10.0. |
Maximum
Gets or sets the numerical maximum value for Syncfusion.Maui.DataForm.DataFormNumericEditor.
Declaration
public double Maximum { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is |
Remarks
If the entered value is greater than Maximum than Maximum value is updated.
Minimum
Gets or sets the numerical minimum value for Syncfusion.Maui.DataForm.DataFormNumericEditor.
Declaration
public double Minimum { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is |
Remarks
If the entered value is less than Minimum than Minimum value is updated.
ShowClearButton
Gets or sets a value indicating whether to show or hide the clear button.
Declaration
public bool ShowClearButton { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true. |
SmallChange
Gets or sets the value that is added to or subtracted from Syncfusion.Maui.DataForm.DataFormNumericEditor value when a small change is made such as with an arrow key, scrolling or using up down button.
Declaration
public double SmallChange { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1.0. |
UpDownPlacementMode
Gets or sets a value that indicates the placement of buttons used to increment or decrement Syncfusion.Maui.DataForm.DataFormNumericEditor value.
Declaration
public NumericEditorUpDownPlacementMode UpDownPlacementMode { get; set; }
Property Value
Type | Description |
---|---|
NumericEditorUpDownPlacementMode | The default value is Hidden. |