This project has moved and is read-only. For the latest updates, please go here.

Bug Masked TextBox

Sep 30, 2011 at 4:47 PM
Edited Sep 30, 2011 at 6:16 PM

1) If you select all the text written in a masked textbox and press ctrl, the entire text is deleted

2) If you paste text in a"masked textbox" does not respect the position of the cursor. He always paste the text in the beginning.

3) The property changed event that is called every time the text changes. But I would like thecontent was changed and advised only when the component loses focus. (default WPF)

How to fix this?

Oct 1, 2011 at 3:30 AM

1) This was a bug and has been fixed.  Thanks for reporting it.

2) This behavior is due to the System.ComponentModel.MaskedTextProvider class that is being used in the control.  There may be away around it but I haven't really had the time to look into it.

3) This is by design.  When a new character is typed the MaskedTextProvider has to be updated which in turns updates the Text property.

Oct 3, 2011 at 6:50 PM

Thanks for the help and notifications. You have done a great job here. I wish I had more knowledge for myself to change / adapt the code.....