How can I put some text into a TextBox which will be removed automatically when the user types something in it?
How can I put some text into a TextBox which will be removed automatically
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is a sample which demonstrates how to create a watermark textbox in WPF:
TextInputToVisibilityConverter is defined as:
Note: This is not my code. I found it here, but I think this is the best approach.