2010-12-20 60 views

回答

9

您可以爲DataGridColumnHeader指定BorderBrush和BorderThickness。示例

<DataGrid.Resources> 
    <Style TargetType="{x:Type DataGridColumnHeader}"> 
     <Setter Property="Background" Value="Blue"/> 
     <Setter Property="BorderBrush" Value="Red"/> 
     <Setter Property="BorderThickness" Value="1,1,1,1"/> 
    </Style> 
</DataGrid.Resources>