New Posts New Posts RSS Feed: Where do I find INotifyDataErrorInfo.ErrorChanged event?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Where do I find INotifyDataErrorInfo.ErrorChanged event?

 Post Reply Post Reply
Author
katit View Drop Down
Senior Member
Senior Member


Joined: 09-Sep-2011
Posts: 146
Post Options Post Options   Quote katit Quote  Post ReplyReply Direct Link To This Post Topic: Where do I find INotifyDataErrorInfo.ErrorChanged event?
    Posted: 05-Jul-2012 at 8:36pm
I'm working with verification engine(Silverlight). All is great when I bind and do field validations. I get red borders, etc.
 
Now I need to create couple of entity-level validations and some of the OkWarn type of validations. I want to subscribe to ErrorsChanged event programmatically but got stuck. Can't find it. It should be on Entity, but I don't see it. I see PropertyChanged but not ErrorChanged.
 
Basically, I want to plug in into verification engine and get notified when there is changes so I can update UI
 
For example, when my ViewModel created I want to subscribe to ErrorChanged of Entity bound on this ViewModel. Then, when I get event I will populate list of errors and bind on my UI


Edited by katit - 05-Jul-2012 at 8:43pm
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 06-Jul-2012 at 10:18am
Both the Entity and EntityAspect implement the INotifyDataErrorInfo interface explicitly, so you'll need to cast your entity (or your entity.EntityAspect) to the interface in order to access the ErrorsChanged event, and any other members of the interface.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down