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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Overview

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 masked text box control gives you great flexibility to control variable length of data input

Variable length mask expression


Culture

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

Included Euro currency symbol

Included Dollar currency symbol

Included Rupee currency symbol


Custom prompt character

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

Customized prompt character


Validation Mode

The masked text box control lets you to choose when to validate the data input.

Validated Text

Lost focus

Validate the data input when the control loses its focus.

Validation when in lost focus

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.

Formatted Value

Exclude prompt and literals

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

Excluded prompt and literals

Include prompt

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

Included prompt

Include literals

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

Included literals

Include prompt and literals

Value contains typed characters, prompt characters, and literals.


Watermark

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

Watermarked text


Appearance

Appearance is highly customizable.

Customized Appearance

Text appearance

The masked text box control allows you to change the font name, font style, font size and its color.

Customized Text appearance

Border color

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

Customized Border color

Error border color

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


90+ WPF CONTROLS

Transform your applications today by downloading our free evaluation versionDownload Free Trial

Scroll up 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