Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverlight: Should I be using IDataErrorInfo, INotifyDataErrorInfo, or both?

Tags:

silverlight

Should I be using IDataErrorInfo, INotifyDataErrorInfo, or both?

If I use both, should I offer the same error in both or should I only offer sync errors from IDataErrorInfo and only async errors from INotifyDataErrorInfo?

like image 354
Jonathan Allen Avatar asked Apr 11 '11 18:04

Jonathan Allen


1 Answers

If you're working only in Silverlight, you should implement INotifyDataErrorInfo. From the documentation:

In general, new entity classes for Silverlight should implement INotifyDataErrorInfo for the added flexibility instead of implementing IDataErrorInfo.

However, if you want to share code with WPF, IDataErrorInfo is supported in both Silverlight and WPF.

like image 200
Reed Copsey Avatar answered Sep 17 '22 15:09

Reed Copsey