Column header cell horizontal content alignment

Nov 29, 2013 at 10:47 AM
How can I change the horizontal alignment of the text in the column header cells?

I tried this:
    xmlns:XCol="clr-namespace:ExtendedGrid.ExtendedColumn;assembly=ExtendedGrid"
    xmlns:XControls="clr-namespace:ExtendedGrid.Microsoft.Windows.Controls;assembly=ExtendedGrid"
    ...
    <XCol:ExtendedDataGridTextColumn Binding="{Binding Path=Name}" Header="User Name">
        <XCol:ExtendedDataGridTextColumn.HeaderStyle>
            <Style TargetType="XControls:Primitives.DataGridColumnHeader">
                <Setter Property="HorizontalContentAlignment" Value="Center"/>
            </Style>
        </XCol:ExtendedDataGridTextColumn.HeaderStyle>
    </XCol:ExtendedDataGridTextColumn>
This works to center the header text, but I lose the column chooser, filter, etc. Is there a better way to do this where I don't lose the new features? Thanks,