We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies


The WPF MaskedTextBox control is an enhanced version of the text box that additionally restricts input to conform to a specific structure or mask.

Variable length mask expression

The WPF MaskedTextBox control gives you great flexibility to control variable length of data input.

WPF MaskedTextBox control variable length


Special symbols like currency symbols, date separators, decimal separators etc., are applied based on the provided culture

WPF MaskedTextBox based on culture

Custom prompt character

The WPF MaskedTextBox control provides the flexibility to customize the prompt character when the default prompt character ( _ ) is not suitable for your scenario.

WPF MaskedTextBox using custom prompt character

Validation Mode

The WPF MaskedTextBox control lets you to choose when to validate the data input.

WPF MaskedTextBox update value on lostfocus

Lost focus

Validate the data input when the control loses its focus.

WPF MaskedTextBox update value on keypress

Key press

Validation triggers for each key press.

Formatting Value

While fetching the value, masked text box control provides the option to format the text with literals and prompt characters.

WPF MaskedTextBox without prompt and literals

Exclude prompt and literals

Value contains only the typed characters; the prompt characters and literals are excluded.

WPF MaskedTextBox with prompt

Include prompt

Value contains the typed characters and available prompt characters, literals are excluded.

WPF MaskedTextBox with literals

Include literals

Value contains the typed characters and literals; prompt characters are excluded.

WPF MaskedTextBox with prompts and literals

Include prompt and literals

Value contains typed characters, prompt characters, and literals.


The watermark will prompt you with instructions or important information, when it is not in focus and no characters are not entered.

WPF MaskedTextBox watermark text


Appearance is highly customizable.

WPF MaskedTextBox change text color

Text appearance

The WPF MaskedTextBox control allows you to change the font name, font style, font size and its color.

WPF MaskedTextBox change border color

Border color

Customize border color of the masked edit control to any of the preferred color.

WPF MaskedTextBox change error border color

Error border color

The WPF MaskedTextBox control provides the flexibility to customize the error border color when the default error border color (Color.Red) is not suitable for your scenario.


Read independent,
authenticated reviews
on G2

Download Now Pricing

What do our customers say about us?

double quotes

I work for an electrical instruments plant. I purchased the Gantt control from Syncfusion. It has saved me many hours as well as stores our information more efficiently… now.
Marco Del Frate

Marco Del Frate

Tecnel SRL

double quotes

I am really thankful for the wonderful set of controls for WPF. I was able to deliver things on time and could focus on core business logic rather than control development.
Umair Ahmed

Umair Ahmed

Technical Lead at Vercom

Transform your applications today by downloading our free evaluation version Download Free Trial

Syncfusion WPF Resoures


Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile