Create WPF Watermark in Pure XAML

前端 未结 3 966
-上瘾入骨i
-上瘾入骨i 2020-12-10 09:16

This is for a TextBox control on a login screen, where the TextBox contains the username. I want the TextBox to perform in the following way:

  • When the conte

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-10 09:33

    Find the below samples help you to find your way.

    http://bendewey.wordpress.com/2008/09/27/wpf-shadowed-textbox-watermark/

    http://www.c-sharpcorner.com/uploadfile/rahul4_saxena/watermark-textbox-in-wpf/

    http://www.codeproject.com/Articles/26977/A-WatermarkTextBox-in-3-lines-of-XAML

提交回复
热议问题