Default PromptChar in UWP Masked TextBox

18 Apr 20231 minute to read

Displays prompt character for the absence of your input in Mask and its default value is ‘_’.

PromptChar_In_Mask_Img1

Custom PromptChar

The following example shows how to customize the prompt character using PromptChar property

<Input:SfMaskedEdit  MaskType="Simple" Mask="00/00/0000" PromptChar="*" Width="255" Height="46"/>
SfMaskedEdit maskededit = new SfMaskedEdit();
maskededit.MaskType = MaskType.Simple;
maskedEdit.Mask = "00/00/0000";
maskedEdit.PromptChar = "*";

PromptChar_In_Mask_Img2