Hi,
On edit mode I have 11 undercore "," and 2 underscore.
I just want 4 underscore "," and 2 underscore.
Because my max value is 9 999,99$
I add <Custom:ValueConstraint MaxLength="7"/>
but there are 11 underscore again.
it's is possible tu add mask like decimal:6.2 ?
Francois.
Hello,
Here is an example how to set the Mask property so you can enter values like
9 999,99$:
Mask="{}{currency:4.2}"
You can learn more about masks at the link below:
https://ko.infragistics.com/help/wpf/xameditors-masks
Let me know if you need from any further assistance.
Sincerely,ZhivkoAssociate Software Developer
Hi Zhivko,
Thank you.
I had written Mask="{currency:4.2}", that was why it did not work.
What serves the first two {} ?
You need to add the extra set of curly braces, when defining the Mask in XAML. The reason is that WPF may otherwise confuse the syntax with the one used for Markup Extensions.
Let me know if you have any questions.