How to disable TextBlock?

前端 未结 3 1731
逝去的感伤
逝去的感伤 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:16

    I played a little and found out that half opacity is giving the same resultat as IsEnabled="False".

    
    

    Advantage : it fits to every Foreground color.

提交回复
热议问题