New to Telerik UI for WinUI? Download free 30-day trial

Mask Types

There are separate masked input controls which can handle different types of user input. They all inherit from a common RadMaskedInputBase class.

The available mask controls and their purpose are listed below:

  • Text: Used for handling all types of text user input. The Value property is a string.
  • Numeric: Used for handling numeric user input. The Value property is of type object but is coerced to either double or decimal.
  • DateTime: Used for handling DateTime user input. The Value property is of type object but is coerced to DateTime.
  • TimeSpan: Used for handling TimeSpan user input. The Value property is of type object but is coerced to TimeSpan.
  • Regex: Used for handling and validating a standard (alphanumeric) user input against a regular expression. Provides errors if the regex is not matched. The Value property is a string.
  • IP: Used for handling and validating an IP Address input. The Value property is string.
  • Email: Used for handling and validating an email input. The Value property is string.

The Value can also be null for all mask types when the AllowNullValue property is set to True.

See Also

In this article
Not finding the help you need?