Migrating from Xamarin SfNumericTextBox and SfNumericUpDown to .NET MAUI SfNumericEntry

8 Jan 20241 minute to read

To migrate easier from the Xamarin SfNumericTextBox and SfNumericUpDown to .NET MAUI SfNumericEntry, most of the APIs are kept from the Xamarin SfNumericTextBox and SfNumericUpDown in MAUI SfNumericEntry. However, to maintain the consistency of API naming in MAUI SfNumericEntry, rename some of the APIs. The APIs changed in MAUI SfNumericEntry from Xamarin SfNumericTextBox and SfNumericUpDown are detailed as follows.

Namespaces

Xamarin SfNumericTextBox
Xamarin SfNumericUpDown
.NET MAUI SfNumericEntry
Syncfusion.SfNumericTextBox.XForms Syncfusion.Maui.Inputs

Properties

Xamarin SfNumericTextBox
Xamarin SfNumericUpDown
.NET MAUI SfNumericEntry Description

BorderColor

Stroke

Get or set a color that describes the stroke.

ClearButtonVisibility

ShowClearButton

Get or set a value indicating whether to show or hide the clear button in the SfNumericEntry.

FormatString

CustomFormat

Get or set the format used to specify the formatting of Value.

IsReadOnly

IsEditable

Get or set a value indicating whether the SfNumericEntry allows editing the value or not.

Watermark

Placeholder

Get or set the text that is displayed in the control until the value is changed by a user action or some other operation.

WatermarkColor

PlaceholderColor

Get or set the text that is displayed in the control until the value is changed by a user action or some other operation.

Events

Event Name Xamarin SfNumericTextBox
Xamarin SfNumericUpDown
.NET MAUI SfNumericEntry Description
ValueChanged

ValueEventArgs


NumericEntryValueChangedEventArgs


Occurs after the user triggers evaluation of new input by pressing the Enter key, clicking a spin button, or by changing focus.

Upcoming features

  • ReturnCommand and ReturnCommandParameter support
  • SelectAllOnFocus boolean support
  • GroupSeparatorMode support