Tritium UI

TritiumMaskedEntry

Force typed text into a mask and expose the raw value plus whether the mask is complete.

TritiumMaskedEntry

Key features

  • Use 0 for a digit, L for a letter, A for a letter or digit, and any other character as a literal.
  • Show a prompt character in slots the user has not filled.
  • Keep Value as the raw characters, separate from the formatted display.
  • Set IsValid when every slot is filled.
  • Opt in to haptic or sound feedback when the user leaves the field.
  • DataForm applies DataFormMasked to string properties automatically.

Platforms

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

Main API

  • Mask . Pattern such as (000) 000-0000.
  • Value . Raw characters entered, two-way.
  • PromptChar . Placeholder shown in empty slots; default is underscore.
  • IsValid . True when the mask is complete.

Basic example

Declare this namespace on the page.

xmlns:editors="clr-namespace:Tritium.Maui.Editors;assembly=Tritium.Maui.Editors"
<editors:TritiumMaskedEntry Mask="(000) 000-0000" Value="5551234567" />

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