Overview

Check below the available mask types that MaskedEntry offers and their purpose.

Email Mask

EmailMaskedEntry control is used for handling and validating an email input. Resulting value is string object.

Create a RadEmailMaskedEntry instance like this:

<telerik:RadEmailMaskedEntry x:Name="emailMaskedEntry" />

RadEmailMaskedEntry

Numeric Mask

NumericMaskedEntry is used for handling numeric user input. The numeric mask is used when you need to display:

  • Percent values.
  • Decimal values.
  • Currency (culture-aware).
  • Fixed point values.

Through the Mask property you can specify the exact format of the expected input. Here is an example of RadNumericMaskedEntry with "Currency" value:

<telerik:RadNumericMaskedEntry x:Name="numericMaskedEntry" Mask="C" />

RadNumericMaskedEntry

Regex Mask

RegexMaskedEntry is used for handling and validating a standard (alphanumeric) user input against a regular expression. Provides errors if regex is not matched. Resulting value is a string.

Check a simple example of RadRegexMaskedEntry below:

<telerik:RadRegexMaskedEntry x:Name="regexMaskedEntry" Mask="^[a-z]$" PlaceholderText="^[a-z]$" />

RadRegexMaskedEntry

IP Mask

IPMaskedEntry is used for handling and validating an IP Address input. Resulting value is string object.

Create a RadIPMaskedEntry like this:

<telerik:RadIPMaskedEntry x:Name="ipMaskedEntry" />

RadIPMaskedEntry

Text Mask

TextMaskedEntry is used for handling standard (alphanumeric) user input. Resulting value is string object.

Create a RadTextMaskedEntry like this:

<telerik:RadTextMaskedEntry x:Name="textMaskedEntry" Mask="aaaaaaaaaaaaaaaaaaaa" />```

RadTextMaskedEntry

See Also

In this article
Not finding the help you need?