<Window.Resources>
<Style x:Key="dataGridColumnStyle" TargetType="DataGridColumnHeader" >
<Setter Property="Background" Value="White" />
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontSize" Value="15" />
<Setter Property="BorderBrush" Value="#FF766E6E"></Setter>
<Setter Property="BorderThickness" Value="0.4"></Setter>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
</Style>
</Window.Resources>
DataGridColumnHeader 可以设置成功 Cell你试过吗?
|