New to Telerik UI for .NET MAUI? Start a free 30-day trial

.NET MAUI MaskedEntry Prompt Character

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
<telerik:RadIPMaskedEntry AutomationId="ipMask"/>
  • Setting the TextMaskedEntry
<telerik:RadTextMaskedEntry Mask="LLLLL" AutomationId="textMaskTextOnly"/>


To change the default prompt character, set the PromptChar(char) property.

  • IPMaskedEntry with PromptChar="#"
<telerik:RadIPMaskedEntry PromptChar="#" AutomationId="ipMaskChangedPropmtChar"/>
  • TextMaskedEntry with PromptChar=" "
<telerik:RadTextMaskedEntry Mask="(000) 000-000" PromptChar=" " AutomationId="textMaskNumbersOnly"/>

See Also

In this article