在DataGrid中,所选行的默认背景颜色太暗了,我无法阅读它。有没有什么方法可以覆盖它?
尝试过这个:
<dg:DataGrid.RowStyle>
<Style TargetType="{x:Type dg:DataGridRow}">
<Style.Triggers>
<Trigger Property="IsSelected" Value="True" >
<Setter Property="Background" Value="Gainsboro" />
</Trigger>
</Style.Triggers>
</Style>
</dg:DataGrid.RowStyle>
但仍然没有任何进展...
SystemColors.ControlBrushKey
。 - RolfiSystemColors.InactiveSelectionHighlightBrushKey
。 - Gerard