Hello,
I'm using XamMaskedEditor with a mask:
<ig:XamMaskedEditor Mask="{}{number:100000-999999}.99 / {number:100000-999999}.99" />
My problem is that if I enter a value in the 'number' sections but not anything in the '9' placeholder, the valueToDisplayTextConverter deletes everything entered after the first decimal point.
example input:
333333.__ / 333333.__
After pressing enter the display text becomes:
333333.__ / ______.__
What am I doing wrong? Is there a way to define the mask differently to get what I need?
Thanks ahead.
My opinion is that you should use two separate editors. I think that the problem here is that, ValueToDisplayTextConverter tries to convert entered value to Double and that's why only first "333333." digits are displayed after exit the editor.
Regards,
Anastas
That is not possible for me at the moment, is there another option?
Either way, I find this behavior as odd because I defined the section as a number, not a double. I could have very well put '??' instead of the '99' and the problem persists, even if it has nothing to do with doubles (plus, If I use the double mask, the converter knows how to deal with an empty precision section, but I don't know how to define value constraints to two different sections in the mask).
and as far as I can tell, with this complex mask the value is saved anyway as a string (I also binded the value property to a string) so I don't see why it would try to convert it to a double...
I found one way which this works. When set PadChar="0".
After that you can change the DisplayMode, to display '0', or not.