How to limit the values within a specified range in the .NET MAUI Numeric Entry?
The .NET MAUI Numeric Entry (SfNumericEntry) control provides Minimum and Maximum properties to constrain the values within a desired range. To limit the values, set Minimum
to 10 and Maximum
to 20.
XAML
<syncfusion:SfNumericEntry x:Name="numericEntry"
Value="9"
Minimum="10"
Maximum="20"
CustomFormat="0.00 cm"
UpDownPlacementMode="Inline" />
C#
SfNumericEntry numericEntry = new SfNumericEntry();
numericEntry.Value = 9;
numericEntry.Minimum = 10;
numericEntry.Maximum = 20;
numericEntry.CustomFormat = "0.00 cm";
numericEntry.UpDownPlacementMode = NumericEntryUpDownPlacementMode.Inline;
Output
Conclusion
I hope you enjoyed learning how to limit the values within a specified range in .NET MAUI Numeric Entry (SfNumericEntry).
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 forum, Direct-Trac, or feedback portal. We are always happy to assist you!