How can I set the color of a selected row in DataGrid

后端 未结 8 1582

The default background color of a selected row in DataGrid is so dark that I can\'t read it. Is there anyway of overriding it?

Tried this



        
8条回答
  •  暖寄归人
    2020-11-28 20:15

    The default IsSelected trigger changes 3 properties, Background, Foreground & BorderBrush. If you want to change the border as well as the background, just include this in your style trigger.

    
    

提交回复
热议问题