Skip to content

DevExpress-Examples/wpf-mvvm-framework-validate-ui-container-with-validationerrorshostbehavior-and-poco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF MVVM Framework - Validate a View with ValidationErrorsHostBehavior and POCO

The example shows how to use ValidationErrorsHostBehavior and POCO view model 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 and POCO

Files to Look At

Documentation

More Examples

WPF MVVM Framework - Validate a View with ValidationErrorsHostBehavior and ViewModelBase

Does this example address your development requirements/objectives?

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