/wpf-mvvm-framework-validationerrorshostbehavior

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

Primary LanguageC#OtherNOASSERTION

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)