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
1540
Setting minus sign to XamNumericEditor.Value in EditModeStarted event handler fails
posted

I am attempting to set the value stored in a XamNumericEditor in the EditModeStarted event handler and fails if is set to a minus sign.  All other numeric entry is possible; however, a second press of the minus sign is required after the editor enters edit mode in order for the minus sign to be entered.

It appears that the editor is validating the contents of the editor after edit mode has started thereby preventing valid initial entry such as a minus sign, which is a legitimate value to be entered while in edit mode.

This appears to be a bug and it is preventing me from using the EditModeStarted event to shoehorn initial legitimate entry prior to the user completing the entry before exiting edit mode.

Is there a workaround for this or can this be fixed?  I have attached an example project demonstrating this.

Thanks,

Jason

Sandbox - XamNumericEditor Bug.zip
  • 5124
    posted

    Hi Jason,

    As I mentioned in the private support case, I think this is expected behavior as you are trying to set the Value property of a XamNumericEditor to a non-numeric value.  I am looking into a way to get this functionality and will let you know what I find.

    Thanks,