Setting the Mask in .NET MAUI MaskedEntry
The Telerik MaskedEntry for .NET MAUI exposes a Mask
(string
) property, which represents a string of characters restricting user input. The Mask
property can contain literals and special mask characters depending on the used mask type (numeric, text, or regex).
Mask for the NumericMaskedEntry
You can set one of the Standard Numeric Format Specifiers to the Mask
property of the RadNumericMaskedEntry
.
This example shows how to set the Percent (double) Mask
This example shows how to set the Fixed (decimal) Mask
This example shows how to set the Fixed (decimal) Mask
This example shows how to set the Decimal (decimal) Mask
This example shows how to set the Standard (long) Mask
This example shows how to set the Currency (decimal) Mask
Mask for the TextMaskedEntry
To allow users to enter only numbers inside the RadTextMaskedEntry
, apply the Mask
for numeric restriction:
To allow users to enter only literals inside the RadTextMaskedEntry
, apply the Mask
for letter characters restriction:
Mask for RegexMaskedEntry
You can define an input pattern of your choice and set it to the Mask
property of the RadRegexMaskedEntry
:
For the MaskedEntry Mask Types examples, go to the SDKBrowser Demo Application and navigate to MaskedEntry -> Mask Types category.