.net - Detecting validation errors in Silverlight 4 -


I am using new Silverlight 4 support for IDataErrorInfo so I have a Poko object that has implemented the interface, And when a verification rule is signed, then the Silverlight UI correctly indicates an error. So all this is working fine.

The POCO object looks like this:

  Public class SomeDomainClass: IDataErrorInfo {public string SomeString {get; Set; } Public string error {back {return String.Empty; }} Public string this [string columnName] {get (if (columnName == "SomeString" & amp;; PolicyNumber.Contains ("%")) "SomeString" '%' not included You can ruin everything !!! "; return string; empty;}}}  

However, I want to know if there are any errors on the page or not For example, if I have a Save button and I want to disable it, if there is an error, or display a message or something.

On the page What is the best way to detect verification errors? Is this a feature around Silverlight in IDataErrorInfo support? Or do I have to track myself in domain model?

You must use the root event. The MSDN text shows in this action.


Comments