Search code examples
silverlightmvvmsilverlight-4.0odataidataerrorinfo

Adding IDataErrorInfo (or validation) to custom OData service (w/o WCF RIA Services) + MVVM


I'm not using WCF RIA Services... I've got a custom OData service that my SL4 application is using. I need to add validation to my forms. I notice the proxy that VS2010 creates does not implement IDataErrorInfo on the entities. I'm tyring to add it to my view model, but the validation isn't being recognized by my SL app.

Is it possible to add validation like this? Surprised I haven't been able to find more results on this in my searches... :(


Solution

  • Have your ViewModel implement INotifyDataErrorInfo and it should be working. :)