0

I read articles here http://msmvps.com/blogs/theproblemsolver/archive/2008/12/24/data-validation-silverlight-versus-wpf.aspx

and proposal here WPF Data Binding and Validation Rules Best Practices

Sorry but fundamentally it's still awfull because the view should have no dependency on ValidationException: it should just render ONCE data has been validated and not participate in the workflow of validation.

So is there any other solution ?

Community
  • 1
  • 1
user310291
  • 35,095
  • 76
  • 252
  • 458
  • *"because the view should have no dependency on ValidationException: it should just render ONCE data has been validated and not participate in the workflow of validation."* Well, that's, like, your opinion. – H.B. Jun 05 '11 at 15:36
  • No it's not an opinion it's best practice: PASSIVE VIEW see Martin Fowler. – user310291 Jun 05 '11 at 20:57
  • Right, *passive view* in WPF, good one! (Also, calling a pattern "best practice" is quite amusing on its own) – H.B. Jun 05 '11 at 21:13
  • "Validation only one time" isn't used even on web pages with javascript. For WPF another solution is the IDataErrorInfo interface. – vortexwolf Jun 06 '11 at 17:11

0 Answers0