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
250
XamMaskedEditor - leaves -- for empty phone numbers. How to remove that?
posted

I have a XamMaskedEditor for phone number. When there is no number entered, it leaves back literals(--) in the TextBlock. With options of DisplayMode to Raw or IncludePromtChars, there is no change in the behavior. How to empty the textblock, if no number is typed?

Thanks in advance.

Parents
  • 138253
    Offline posted

    Hello Gayathri,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I handled the XamMaskedInput’s ValueChanged event and in the handler I change the Mask if there is value or not. Please let me know if this helps you or you have further questions on this matter.

     

    Looking forward for your reply.

    XamMaskedInputMask.zip
Reply Children