DataGridCell BorderBrush 不工作
DataGridCell BorderBrush not working
我尝试设置 DataGridCell
BorderBrush
,但看起来还有一些其他设置,也设置了单元格之间的边框。
当前Style
:
<Style x:Key="DataGridCellStyle1" TargetType="{x:Type DataGridCell}">
<Setter Property="BorderBrush" Value="Yellow"/>
</Style>
看起来像这样:
我不想要那里的黑色边框。我只想要黄色边框。有人可以指点我吗,我可以在哪里设置 "black" 边框?
DataGrid 有额外的网格线属性
尝试为两者设置黄色
VerticalGridLinesBrush="Yellow"
HorizontalGridLinesBrush="Yellow"
或隐藏它们
GridLinesVisibility="None"
我尝试设置 DataGridCell
BorderBrush
,但看起来还有一些其他设置,也设置了单元格之间的边框。
当前Style
:
<Style x:Key="DataGridCellStyle1" TargetType="{x:Type DataGridCell}">
<Setter Property="BorderBrush" Value="Yellow"/>
</Style>
看起来像这样:
我不想要那里的黑色边框。我只想要黄色边框。有人可以指点我吗,我可以在哪里设置 "black" 边框?
DataGrid 有额外的网格线属性
尝试为两者设置黄色
VerticalGridLinesBrush="Yellow"
HorizontalGridLinesBrush="Yellow"
或隐藏它们
GridLinesVisibility="None"