Checking WPF data? Is there anything better than IDataErrorInfo?

Is there a preferred practice for checking data from your ViewModel?

Having looked at it, some people prefer IDataErrorInfo , and some prefer to deploy their own validation framework (http://www.codeproject.com/KB/WPF/wpf_custom_validation.aspx)?

I am wondering what is Best Practice for data validation? Is there something community accepted when it comes to following the MV-VM guidelines?

Oh, and FYI, I use Prism as my MVVM structure, but I don’t think it has any laid out code to help validate.

+6
source share
1 answer

You can use the Validation Framework .NET Framework. It can be used with PRISM or any other MVVM Framework. The WPF Application Framework (WAF) BookLibrary application shows how to use it with WPF binding.

+4
source

Source: https://habr.com/ru/post/888851/


All Articles