Change disabled listbox background to gray

前端 未结 3 1084
孤街浪徒
孤街浪徒 2020-12-20 22:54

I have a ListBox which I need to gray out when it\'s disabled. Per user request it\'s not enough to disable it, but it also has to appear differently. shrug

3条回答
  •  自闭症患者
    2020-12-20 23:13

    I don't think you need to override the ControlTemplate, just adding a Style.Trigger worked fine for me.

    Example:

       
            
                
            
        
    

提交回复
热议问题