Print Page | Close Window

Where do I find INotifyDataErrorInfo.ErrorChanged event?

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3521
Printed Date: 10-Oct-2025 at 7:47am


Topic: Where do I find INotifyDataErrorInfo.ErrorChanged event?
Posted By: katit
Subject: Where do I find INotifyDataErrorInfo.ErrorChanged event?
Date 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



Replies:
Posted By: kimj
Date 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.



Print Page | Close Window