The example shows how to use ValidationErrorsHostBehavior and POCO view model to validate a View.
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.
- MainView.xaml (VB: MainView.xaml)
- MainViewMode.cs (VB: MainViewMode.vb)
WPF MVVM Framework - Validate a View with ValidationErrorsHostBehavior and ViewModelBase
(you will be redirected to DevExpress.com to submit your response)
