Hi !!!
I'm experiencing strange behavior of UltraValidator . When i move the mouse over the control that has ICondition validator on him he invokes the Matches function of the ICondition interface, it this behavior correct or is it bug ?
p.s
I don't change the values of the control nor invoke Validate() medthod
if someone can explain this behavior i will appreciate it !!!!
tnx
Assuming the control is an Infragistics control, that is correct behavior - in order to apply the ErrorAppearance to the embeddable editor element used by the control, the Matches method has to be called to determine whether the control's value currently violates the condition.
Brian tnx for reply
I can understand that behavior , what i can't understand is that why it invokes on every mouse move, selections don't change on every mouse move or don't change at all on mouse move.
if you can explain it to me it would be great
I doubt it is on every mouse move, it is more than likely on every MouseEnter/MouseLeave, since that causes the control to invalidate itself, which we use as a trigger to re-evaluate the condition in case the ErrorAppearance has to be applied, or no longer has to be applied.