Jonas W
Jonas W

Reputation: 373

WPF Validation Framework

Given the following requirements:

Is there any built-in or third-party validation framework available for WPF, or do I have to write one on my own? I've given IDataErrorInfo a try, but I failed when it came to validating nested viewmodels or entire collections.

Thanks!

Upvotes: 5

Views: 1481

Answers (1)

Ibrahim Najjar
Ibrahim Najjar

Reputation: 19423

If you want a framework with extensive validation support i would say Catel is your best shot.

It also supports nested validation by the idea of Nested User Controls which propagate validation information to their parent view models or user controls.

It also has support for warnings and works on field and business logic level.

The framework even has an InfoBarMessage control that can display validation information so you won't have to create a template for those.

It also has an extension module that supports Fluent validation, similar to fluent NHibernate or Entity framework but for validation.

Upvotes: 5

Related Questions