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

后端 未结 6 901
醉话见心
醉话见心 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 08:02

    I think the WatermarkTextBox included in the WPF extended toolkit does exactly what you want.

    http://wpftoolkit.codeplex.com/wikipage?title=WatermarkTextBox&referringTitle=Documentation

提交回复
热议问题