Skip to content

To validate a UI container with the ValidationErrorsHostBehavior, implement the IDataErrorInfo interface (if your View is a ViewModeBase descendant).

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/wpf-mvvm-framework-validationerrorshostbehavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF MVVM Framework - Validate a View with ValidationErrorsHostBehavior and ViewModelBase

The example shows how to use ValidationErrorsHostBehavior to validate a View.

Overview

You can define ValidationErrorsHostBehavior for the root element to track all validation errors within the View. To enable validation error notifications, set the NotifyOnValidationError and ValidatesOnDataErrors properties to true.

Use the ValidationErrorsHostBehavior.HasErrors property to check whether a validation error occured.

WPF MVVM Framework | ValidationErrorsHostBehavior

Files to Look At

Documentation

More Examples

WPF MVVM Framework - Validate a View with ValidationErrorsHostBehavior and POCO

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

To validate a UI container with the ValidationErrorsHostBehavior, implement the IDataErrorInfo interface (if your View is a ViewModeBase descendant).

Topics

Resources

License

Stars

Watchers

Forks