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
1585
XamNumericEditor truncates
posted

When I set the value of the XamNumericEditor to 12.00, it always truncates the 00's in the fractional portion of the mask.

I would like to always have the 00's. Is there a way to do this ??

If I set the value to 12.01 it does display correctly.

 

XamNumericEditor foo = new XamNumericEditor();

foo.Mask = "{double:4.2}";

foo.Value = 12.00; // truncates and displays 12. as the value in the control

XamNumericEditor bar = new XamNumericEditor();

bar.Mask = "{double:4.2}";

bar.Value = 12.01;  // works fine and displays 12.01 as the value in the control