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
xamnumeric editor - masking neagtive numbers with decimal places
posted

Hi

Hopefully this is an easy question.

In my XAML I am applying a mask to numeric fields.  These masks are auto generated from data definitions which know the size of the field and number of decimal places

For no decimal places, the mask used is :         Mask="{}{char:10:0-9}"

for decimal places, the mask used is  Mask="{}{double:10.2}"

These masks only allow positive values and do not display negative values.

I changed the mask for no decimal places to Mask="{}{char:10:0-9-}" and that works - I can enter and display negative values

How can I change the mask on fields with decimal places to show negative values ?

Parents
No Data
Reply
  • 1560
    Offline posted

    Hello,

    I have been looking into your question and my suggestion is to try to set the mask to "{}{double:-10.2}".
    According to this topic in our documentation the presence of ‘-‘ symbol in {double:-i.f:c} is optional and indicates that the negative values are allowed. If ‘-‘ symbol is not included then only non-negative values will be allowed.

    Additionally, in the same topic could be found more information about masks as well.

    Let me know if I may be of any further assistance.


    Sincerely,
    Teodosia Hristodorova
    Associate Software Developer

Children
No Data