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

Use ValidationErrorsHostBehavior and POCO view model to validate a View.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Use ValidationErrorsHostBehavior and POCO view model to validate a View.

License:Other


Languages

Language:C# 63.2%Language:Visual Basic .NET 36.8%