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
1935
Change the number of decimals programmatically
posted

Hello,

Just a simple question.

Is it possible to change the number of decimals in a XamNumericEditor programmatically?

  • 5600
    Verified Answer
    Offline posted

    Hello,

    You can change the number of decimals using the Mask property. 

    In your case just set the Mask in code behind:

    Mask="{double:10.5}"; 

    In this mask the decimals will be 5(the desired number of decimals)

    Hope this helps,

    Anastas