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
210
XamNumericEditor Mask
posted

Hi,

I am using a XamNumericEditor and having trouble with the mask.

I want there to always be 2 and only 2 decimal places. So if a user enters 12.50 then it displays 12.50. If a user enters 12.5 then it displays 12.50. If a user enters 12 then I want it to display 12.00.

How can I achieve this?

 

Thanks in Advance,

Dave

  • 5600
    Offline posted

    Hi,

    You can use this mask(set it in XAML): 

    Mask="{}{double:2.2}"


    This mask should meet your requirements.

    Regards,

    Anastas