New to Telerik UI for .NET MAUI? Start a free 30-day trial
.NET MAUI MaskedEntry Prompt Character
Updated over 6 months ago
The MaskedEntry exposes a PromptChar(char) property, which represents a symbol (char) for any mask position that the user has not filled in yet. The default PromptChar value is _ (underscore).
- Setting the IPMaskedEntry
xaml
<telerik:RadIPMaskedEntry AutomationId="ipMask"/>
- Setting the TextMaskedEntry
xaml
<telerik:RadTextMaskedEntry Mask="LLLLL" AutomationId="textMaskTextOnly"/>
Customization
To change the default prompt character, set the PromptChar(char) property.
- IPMaskedEntry with
PromptChar="#"
xaml
<telerik:RadIPMaskedEntry PromptChar="#" AutomationId="ipMaskChangedPropmtChar"/>
- TextMaskedEntry with
PromptChar=" "
xaml
<telerik:RadTextMaskedEntry Mask="(000) 000-000" PromptChar=" " AutomationId="textMaskNumbersOnly"/>