The Numeric Entry control for .NET MAUI offers an intuitive and touch-friendly interface for providing numeric input in various numeric formats. Users can easily restrict input by specifying minimum and maximum values. The control also allows placeholders and includes an up-down button for convenient value adjustments.
Easily get started with the .NET MAUI Numeric Entry using a few simple lines of XAML code example as demonstrated below. Also explore our .NET MAUI Numeric Entry Example that shows you how to render the Numeric Entry control in .NET MAUI.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="NumericEntryGettingStarted.MainPage"
xmlns:inputs="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs">
<VerticalStackLayout VerticalOptions="Center">
<inputs:SfNumericEntry x:Name="NumericEntry"
WidthRequest="200"
Value="100"
CustomFormat="C2"
ShowClearButton="True"
Placeholder="Enter input here..."/>
</VerticalStackLayout>
</ContentPage>
Apply custom formats to select precise decimal digits and add prefixes and suffixes to the entered numeric values.
The values of the .NET MAUI Numeric Entry control are automatically formatted based on regional or cultural settings.
The .NET MAUI Numeric Entry control accepts only numerical inputs. There are many more restrictions that can be imposed as explained in the following sections.
Easily restrict users from entering input values outside a range set with minimum and maximum values.
Prevent users from editing the numerical values in the editor using the IsEditable property in Numeric Entry.
Prevent users from entering empty or null input. To prevent an empty editor in a .NET MAUI Numeric Entry, you can use data validation and input handling techniques.
Display hints using placeholder text when a null value is set in the Numeric Entry control when the input is cleared.
You can increase or decrease values by using the built-in up-down button in the Numeric Entry control.
The value in the .NET MAUI Numeric Entry control can be increased or decreased using the arrow keys and Page up and Page down. The values can also be changed by rotating the wheel button when mousing over the control.
This feature lets users specify the number of decimal places in the Numeric Entry control, ensuring precision where it matters.
This feature allows users to present the value in the Numeric Entry in the following percentage formats:
Displays the actual value with the percent sign.
Displays the computed value with the percent sign.
The Syncfusion .NET MAUI Numeric Entry control supports the following features:
You can find our .NET MAUI Numeric Entry demo, which demonstrates how to render and configure the Numeric Entry control.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.