How can i add watermark to textbox in WINRT XAML C# code for Windows 8 application. There is a direct property for tooltip but same is not for Watermark so what is the shortest and efficient way to implement this?
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.
Fill a control with the watermark you want to display, such as an Image control, place a TextBox over it (such as by putting them both in a grid with the same Row and Column) and set the Background to
Brushes.Transparent.See Set background color of WPF Textbox in C# code for more information on Brushes and setting the TextBox pacground.