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
2090
XamMaskedInput: Allow only specific charaters
posted

Hello,

I need a text input that allows only a specific set of characters:

  • a-z
  • A-Z
  • 0-9
  • , (= comma)
  • - (= the minus sign)

I tried to use following mask Mask="{char:50:0-9a-zA-Z,}" but it doesn't do the trick.

Additional functionality: It would be great if the characters a-z would be set automatically into Uppercase.

Please advice how this can be achieved. I guess that the - minus sign needs to be escaped in some way.

Thanks

Niko