I'm fairly new to Silverlight and RIA. However, we're developing an app with a SL frontend using WCF/RIA to connect to our service layer. We're using the mvvm pattern so that may play into this as well.
I have a particular dataform where I use commanding to hook the EditEnding event of the dataform. In EditEnding, I call my Service to save the edited object. The service performs some heavy duty validation on the object and currently throws exceptions which I trap in my viewmodel and display with MessageBox.
I want to display those exceptions as validation errors rather than displaying them with messagebox. I've seen a few articles that talk about SL4s new INotifyDataErrorInfo and maybe that is a solution; but I'm a bit confused as to how that is actually implemented. The other thing is that I get the impression that INotifyDataErrorInfo is used to cause "immediate" property validation (of a single property at a time) as opposed to allowing one to validate an entire object in the service layer when the user presses the Submit button.
One requirement I have due to our users and their high latency issues, is that the app not be too chatty. So, I don't want the client making calls to the service for each property being edited in the dataform.
Can anyone shed some light on how I can accomplish this?
Thanks in advance!