Back to Devexpress

How to: Enable Masked Input (Text Editor)

wpf-10478-controls-and-libraries-data-editors-getting-started-how-to-enable-masked-input-text-editor.md

latest1.1 KB
Original Source

How to: Enable Masked Input (Text Editor)

  • May 22, 2020
  • 2 minutes to read

TextEdit is a single or multiline text editor. It supports all basic text editing features like selections, built-in context menu, word wrapping, etc. It also supports masked input.

This document demonstrates how to create a TextEdit control and specify a phone mask.

Create a New Project and Add a TextEdit

  1. Run MS Visual Studio.
  2. Create a new WPF Application project. For this, choose New Project on the File menu or press Ctrl+Shift+N and then choose WPF Application.
  3. Add a TextEdit component to the project.

Specify the Phone Mask

  1. In the design view, select the TextEdit and click the smart tag glyph at the top right corner of the control to invoke the smart tag panel.

  2. Locate the TextEdit.Mask property within the smart tag panel and click the ellipsis button to invoke the Mask Editor dialog window. Specify the desired mask and click OK.