How do you implement default text for a search box in WPF?

后端 未结 6 899
醉话见心
醉话见心 2021-01-05 07:09

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 wh

6条回答
  •  醉酒成梦
    2021-01-05 07:50

    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

提交回复
热议问题