0
내 표 머리글의 전경색을 변경하려고합니다. 나는 이것을 시도했지만 열의 요소 만 변경하고 머리글은 변경하지 않습니다.DataGridTextColumn 전경색
<DataGrid Name="Datagrid" RowBackground="Black" FontFamily="Trebuchet MS" Grid.ColumnSpan="2" Foreground="WhiteSmoke"
<DataGrid.Columns >
<DataGridTextColumn Header="ID" Binding="{Binding Id}" Width="*" Foreground="WhiteSmoke" >
<DataGridTextColumn.ElementStyle>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="Black"></Setter>
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
</DataGrid>