.NET MAUI MaskedEntry Overview

27 Mar 20231 minute to read

The .NET MAUI MaskedEntry is an advanced version of the input control that restricts input of certain characters, text, and numbers by using a mask pattern. This control creates a template for providing information such as telephone numbers, email IDs, IP addresses, product keys, and more.

MaskedEntry control overview in MAUI

Key features

  • MaskTypes : The input can be masked with a fixed or variable length by setting the mask type to simple or regex.
  • PromptChar : Customize the prompt characters used to set the default characters as input in the absence of input.
  • Value : Enter values and clipboard operations in the control based on the ValueMaskFormat property.
  • ValueMaskFormat : Setting formatted values in the control using mask format values such as prompt, literals, and both.
  • Customization : Customize the UI of the masked text box.