Articles in this section

How to create Numeric Entry sample in .NET MAUI Platform?

.NET MAUI (Multi-platform App UI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. A Numeric Entry is a UI component that allows users to input numbers. It typically provides features such as formatting and validation to ensure that the input is a valid number. The following steps will guide you on creating the .NET MAUI Numeric Entry sample in .NET MAUI.

Step 1: Create a New .NET MAUI Project
Open Visual Studio and create a new .NET MAUI project. Select the template for a .NET MAUI App and configure the project’s name and location.

Step 2: Adding the .NET MAUI Numeric Entry control
Add the NuGet package for the .NET MAUI Numeric Entry control to your projects. Then, include the namespace in the following code sample.

XAML

<xmlns:editors="clr-namespace:syncfusion.maui.inputs;assembly=syncfusion.maui.inputs">

C#

using Syncfusion.Maui.Inputs;

Step 3: Define the Numeric Entry
In the main XAML file, define the Numeric Entry. Add the SfNumericEntry control with an appropriate name using the provided namespace.

XAML

<editors:SfNumericEntry x:Name="numericEntry" />

C#

SfNumericEntry sfNumericEntry = new SfNumericEntry();

Output

Screenshot 2023-12-12 124404.png

Conclusion
I hope you enjoyed learning how to create a Numeric Entry sample in the .NET MAUI platform.

Refer to our .NET MAUI Numeric Entry feature tour page to learn about its other groundbreaking feature representations. You can explore our .NET MAUI Numeric Entry documentation to understand its features and how to use it.

Check out our .NET MAUI components from the License and Downloads page for current customers. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Numeric Entry and other .NET MAUI components.

Please let us know in the comments section if you have any queries or require clarification. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied