WinUI Masked TextBox Overview
19 Dec 20231 minute to read
The WinUI Masked TextBox 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.
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. -
Error Indication
: Indicates errors or other information by displaying an icon and also show additional details when hovering the cursor over the icon.