WPF: Trigger for ListBoxItem.IsSelected not working for Background property

前端 未结 4 1134
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-31 02:17

I try to change the Background property for my ListBoxItems using triggers in the ItemContainerStyle of my ListBox as fol

4条回答
  •  难免孤独
    2020-12-31 02:36

    delete IsSelected trigger And add to listbox:

    
        
        
    
    

    First brush for focused second for otherwise

提交回复
热议问题