# Masked Text Box

## Content

Validate input in your WPF and Silverlight applications! **MaskedTextBox for WPF and Silverlight** provides a text box with a mask that automatically validates entered input, similar to the standard Microsoft WinForms **MaskedTextBox** control.

Make the most of **MaskedTextBox for WPF and Silverlight** by taking advantage of the following key features:

* **Validate Data and Enhance Your UI**

The masked text box control (**C1MaskedTextBox**) provides a text box with a mask that automatically validates the input. The edit mask enhances the UI by preventing end-users from entering invalid characters into the control. See Mask Formatting for details and Adding a Mask for Currency for an example.

* **Provide Clues to Prompt Users for Information**

The masked text box control includes a [Watermark](/componentone/api/wpf/online-basiclibrary/dotnet-framework-api/C1.WPF.4.6.2/C1.WPF.C1MaskedTextBox.IsWatermarked.html) property, which lets end-users know what type of information is expected. See Watermark for details.

* **Easily Change Colors with ClearStyle**

**C1MaskedTextBox** supports **ClearStyle** technology which allows you to easily change control brushes without having to override templates. By just setting a few brush properties in Visual Studio you can quickly style the entire control. See ClearStyle Technology for details.

## See Also

[Mask Elements](/componentone/docs/wpf/online-basiclibrary/overview/MaskedTextBox/MaskElements)