2
我只想将数据网格中列标题的背景更改为蓝白色文本。我终于可以了,但列标题的鼠标悬停和选择样式将背景更改为白色。正如你可以想象白色背景上的白色文字不会。WPF Toolkit DataGrid如何设置Column Header SelectionBackground?
由于某些原因,这是最难改变的难题。
我尝试使用样式:(无影响)
<Style TargetType="{x:Type xcdg:ColumnManagerCell}">
<Setter Property="SelectionBackground" Value="Black" />
<Setter Property="Background" Value="#475463" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="Foreground" Value="White" />
</Style>
我试图在电网本身做它(只是抛出一个错误)
<xcdg:DataGridControl ....
<xcdg:ColumnManagerCell SelectionBackground="Black"></xcdg:ColumnManagerCell>
什么神奇的咒语需要执行的改变这些单元格悬停背景颜色的简单任务?
感谢