How to disable TextBlock?

前端 未结 3 1722
逝去的感伤
逝去的感伤 2021-02-05 02:07

I want my TextBlock to look disabled (grayed out) but when I set IsEnabled property to false nothing happens, it stays black:



        
3条回答
  •  孤城傲影
    2021-02-05 02:12

    You can play with Background and apply a SystemColor.
    Here is an example to get you started.

    
    

    Your other option is to try the IsReadOnly property of the TextBox.

提交回复
热议问题