A newer version of this page is available. Switch to the current version.

Input Validation Overview

  • 2 minutes to read

Data Validation Basics

Data Validation takes place when a value specified by an end user (e.g., a user types within a text editor and presses the ENTER key), is to be assigned to the editor's BaseEdit.EditValue property. If the new value is invalid, it isn't accepted by the editor. The editor temporarily stores the invalid value, until it is corrected or reset.

There are two validation types: automatic and manual. Automatic validation controls user input using the mask functionality. Manual validation should be implemented within the BaseEdit.Validate event handler. To learn more, see Input Validation Types.


If your form contains multiple standalone editors, it is possible to check that all of them are valid using the ValidationService class


You can enable the input validation only for the BaseEdit class descendants.

Data Validation Features

With the new data validation system available in Data Editors, you can introduce the following features to your WPF application: