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
285
Bind Max and min value in mask
posted

Hi,

Can I Bind Mask value to a property to set max and min value of xam numeric text box?

ex:  Mask="{}{number:0-999999999}" to -->  Mask="{}{number:{MinValue}-{MaxValue}}"

Thanks,

Hemant 

  • 138253
    Offline posted

    Hello Hemant,

     

    Thank you for your post. I have been looking into and I can say that since the Mask Property is string type you cannot bind part of it. If you still want to use bindings, you can bind the ValueConstraints’ MinValue and MaxValue, but this way the user will be able to enter a number outside the bounds and when he tries to set it an error message will appear.

     

    Hope this helps you.