Tritium UI

TritiumNumericEntry

Edit a decimal with optional bounds, a format, and a valid flag you can bind.

TritiumNumericEntry

Key features

  • Bind a nullable decimal two-way.
  • Reject values outside Minimum and Maximum.
  • Allow an empty box when AllowNull is true.
  • Format the display with a .NET numeric format string.
  • Read IsValid to see whether the current text is an in-range number.
  • Opt in to haptic or sound feedback on commit.

Platforms

Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI).

Main API

  • Value . The number, two-way and nullable.
  • Minimum . Lowest accepted value; Maximum is the highest.
  • NumberFormat . .NET format string used to display the value.
  • AllowNull . When true, an empty box stores null.

Basic example

Declare this namespace on the page.

xmlns:editors="clr-namespace:Tritium.Maui.Editors;assembly=Tritium.Maui.Editors"
<editors:TritiumNumericEntry Value="42.5" Minimum="0" Maximum="100" NumberFormat="0.00" />

Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.

Ask Tritium

How-to help and product fit for FleetPro, Tritium UI, and Tritium Reporting.

Ask how to use a feature, or tell us your company, platforms, team size, and use case. Pricing and upgrades go to sales.

Product fit
Contact sales

Search the FAQ