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
2085
XamMaskedEditor Mask with Space
posted

I have the following XAML:

<igEditors:XamMaskedEditor Text="{Binding Config.DataProcedure, Mode=TwoWay}" Mask="{}{char:50:0-9a-zA-Z_-}" HorizontalAlignment="Left" VerticalAlignment="Center" Width="200" Margin="5" />

I want to allow space characters with the mask shown in the code, however, if I add a space in the mask, ex:

Mask="{}{char:50:0-9a-zA-Z_- }"

then the XamMaskedEditor  allows the user to type in other characters that are not in the mask like !@#$%^&*()

How can I include the space character as valid in the above mask?

  • 7535
    Offline posted

    Hello Gary,

    Thank you for posting to our forum.

    The behavior you are getting is because of (-) before empty space.
    When can replace the (-) it would work as expected.

    Something like this:

    Mask="{}{char:50:0-9a-zA-Z_\- }"

    Please let me know if it helps.