.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
- Setting the TextMaskedEntry
Customization
To change the default prompt character, set the PromptChar
(char
) property.
- IPMaskedEntry with
PromptChar="#"
- TextMaskedEntry with
PromptChar=" "