WinUI MaskedTextBox Overview

27 Mar 20231 minute to read

The WinUI MaskedTextBox is an advanced version of the input control that restricts input of certain characters, text, and numbers by using a mask pattern. This control is used to create a template for providing information such as telephone numbers, email IDs, IP addresses, product keys, and so on.

MaskedTextBox control overview in WinUI

Key features

  • MaskTypes: The input can be masked with a fixed or variable length by setting the mask type to simple or regex, respectively.
  • 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.