Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
755
InvalidValueBehavior="DisplayErrorMessage" : How to control the text displayed in the EditModeValidationError event?
posted

Hi,

I'm using a XamDateTimeEditor and I specified a ValueConstraint in the xaml.  I also specified InvalidValueBehavior="DisplayErrorMessage".

I dont want to show the default message.  I want to control the message depending on the value specified.  If it's over or lower...  In the EditModeValidationError event, I only have acces to the original value.  I dont see the new value.  I tried to set the message to e.ErrorMessage = "";

and use the CellUpdated event to check the value, but its not called until the ValueConstraint is respected.

How can I access the old and new valeur of the cell to control the message displayed?  Or is there a way to set the InvalidValueBehavior to none?