How to change disabled background color of TextBox in WPF

前端 未结 7 2157
野趣味
野趣味 2020-11-27 06:45

I\'ve seen the following thread which is related to my question:

WPF ComboBox: background color when disabled

The above deals with changing the Content Temp

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 07:20

    You never use the ControlTemplate you defined. Also, you want a Style, not (necessarily) a ControlTemplate.

    I think you want something like the following:

    
            
            
            
    
    

提交回复
热议问题