I have a custom control (extended TextBox) that I added Ghost text functionality to.
Essentially if the text value is empty, the textbox displays the ghost message in a light gray color in the textbox.
If the ghost message is displayed and the user sets focus to the TextBox, the Text value is then reset to empty string.
My problem comes into play when databinding the textbox Text field. If the user clears the text form the TextBox then the value that is updated to the binding source is the ghost message. I don't want that, I am wondering if there is a way to interrupt
the binding source update value, and inject an empty string instead of the ghost message.
I hope I explained it effectively, any help would be appreciated.
View Complete Post