Watermark / hint text / placeholder TextBox

后端 未结 30 3117
遇见更好的自我
遇见更好的自我 2020-11-22 02:20

How can I put some text into a TextBox which is removed automatically when user types something in it?

30条回答
  •  情书的邮戳
    2020-11-22 02:28

    I can't believe that no one posted the obvious Extended WPF Toolkit - WatermarkTextBox from Xceed. It works quite well and is open source in case you want to customise.

提交回复
热议问题