WPF Style Trigger for DataGridRow Background Color Trumped by AlternatingRowBackground Brush

后端 未结 2 1213
野性不改
野性不改 2020-12-30 08:27

I have a WPF DataGrid which has an AlternatingRowBackground brush. It\'s configured to color every other row. I\'d like to do something on mouse over that highlights the c

2条回答
  •  不思量自难忘°
    2020-12-30 09:11

    What's worked for me in the past with this kind of thing, is to use a setter outside the triggers eg:

    
    

    And them remove the property binding on the DataGrid itself. Although I usually do this with data triggers, and not usually with dynamic resource bindings. But still might be worth a shot

提交回复
热议问题