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
50
XamNumericEditor taking Decimal?
posted

Hello,

I am trying to write a xaml code with XamNumericEditor that will take a digit with 15-20 digits before the decimal and 15 after.

I realize XamNumericEditor takes only Double type values. However, Double type values do not provide the precision I need. I looked into XamCurrencyEditor but do not wish to have the '$' sign.

Are there some other ways to approach this using the Editor?

Thank you!

Parents
No Data
Reply
  • 5600
    Offline posted

    Hello,

    If you choose to use the xamCurrencyEditor, then to get rid of the '$' sign you can use the mask like this:

    Mask="{}{double:20.20}".

    Another options is to use the xamNumericEditor and set its ValueType property to Decimal, like this:

    ValueType={x:Type sys:Decimal}, where 'sys' is xmlns:sys="clr-namespace:System;assembly=mscorlib".

    Hope this helps you.

    Regards,

    Anastas

Children