PropertyStatus Silverlight showing multiple error messages

PropertyStatus Silverlight showing multiple error messages

Old forum URL: forums.lhotka.net/forums/t/10504.aspx


hanspret posted on Friday, July 08, 2011

Hi

I think I am missing something somewhere but can't seem to find it.

I've got a PropertyStatus control next to a textbox. In my business rules section I define a required rule. Everything works fine. If the textbox is empty the error message display and when the user mouse over the errorprovider a popup display the error message. When the user type in some stuff and tab to the next field the error provider disappear as expected and when the user return to that field and clear all the words the error provider return but when you mouse over the error provider there is two of the same error messages.

What is causing this?

 Below is how I add the Rule

#region

 

 

Business Rules

 

 

protected override void AddBusinessRules()

{

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BusinessRules.AddRule(

 

 

new Csla.Rules.CommonRules.Required

(DescriptionProperty));

 

 

}

 

Copyright (c) Marimer LLC