How can I add watermark text to a textbox in wpf?

后端 未结 3 976
不思量自难忘°
不思量自难忘° 2021-01-20 03:50

Im working on a wpf application.How I can add watermark text to the textbox and passwordbox?



        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-20 03:56

    MahApps.Metro has a built-in watermark control and it's fairly straightforward to use. It does work with a PasswordBox.

     
                
                    Password
                
      
    

提交回复
热议问题