I'm trying to center the Column header in DataGrid. To add DataGrid in UWP UI i'm using nuget package "Microsoft.Toolkit.Uwp.UI.Controls.DataGrid" as mentioned in microsoft documentation link enter link description here . I tried searching here but there is solution for WPF only it's in this link enter link description here.
In this code i can't use TargetType="DataGridColumnHeader".
<controls:DataGrid.Columns>
<controls:DataGridTextColumn Header="Area Name" Binding="{Binding Height_m}" Width="*">
<controls:DataGridTextColumn.HeaderStyle>
<Style TargetType="DataGridColumnHeader">
<Setter Property="HorizontalContentAlignment" Value="Center" />
</Style>
</controls:DataGridTextColumn.HeaderStyle>
</controls:DataGridTextColumn>
</controls:DataGrid.Columns>
It Shows Exception : The name "DataGridColumnHeader" does not exist in the namespace "using:Microsoft.Toolkit.Uwp.UI.Controls".