Watermark / hint text / placeholder TextBox

后端 未结 30 2574
遇见更好的自我
遇见更好的自我 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:39

    I found this way to do it in a very fast and easy way

    
      
        Please select ...
      
      First Item
      Second Item
      third Item
    
    

    Maybe it can help to anyone trying to do this

    Source: http://www.admindiaries.com/displaying-a-please-select-watermark-type-text-in-a-wpf-combobox/

提交回复
热议问题