WPF Watermark PasswordBox from Watermark TextBox

前端 未结 4 1924
谎友^
谎友^ 2020-12-05 22:01

I am using a Watermark textbox as in Watermark TextBox in WPF

 

        
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 22:15

    you can use my approach for a watermark behavior. all you have to do is copy and paste the TextBoxWatermarkBehavior and the change the Behavior to Behavior.

    you can find a demo project here

提交回复
热议问题