Setting the text Colour of a WPF DataGrid Row when row is selected

后端 未结 2 1309
青春惊慌失措
青春惊慌失措 2020-12-16 13:04

I\'m trying to change the colour of Text in the selected row in a WPF datagrid. By default it changes the text colour white is there a way to change this using styles / trig

2条回答
  •  一生所求
    2020-12-16 13:53

    If you want to completely remove the Foreground color changes (say, if your DataGrid has different colors for different rows), you can do this:

        
    

    If you want to give this style a name, like in the previous answer, add x:Key.

提交回复
热议问题