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
390
The mask problem
posted

Hi,

I use a XamEditor. Here's my dilema. The precision of 2 decimals is not right for the application that we are doing. If the user enters "2.34", I want to see 2.34 in the editor, if the user enters "2.34521234", that is what I'd like to see. Now, by default I can only enter two decimals. Fine, I have changed the mask to "{double:-15.10}". But not the problem is, that the formatting forces the number to display with ten decimals, so the user entering 2.34 becomes 2.3400000000. What I need is essentially the same formatting provided by Single.ToString().

And there is no "Format" property for XamEditor.

Regards