I want to implement something exactly like ‘Changing the Default Text in the Search Box‘ for a WPF search TextBox. The box should show some greyed out ‘Search..’ text when it’s empty, and then it should function normally when text is typed in. The linked article shows how to do this in javascript. How would one start down this path in WPF? The best idea I’ve had so far is another text box on top of the main one that goes invisible whenever the search textbox gets focus or text.
I want to implement something exactly like Changing the Default Text in the Search
Share
Try the InfoTextBox sample from Kevin Moore’s Bag-o-Tricks. You can download it from http://work.j832.com/2008/01/real-update-to-bag-o-tricks.html