Spent last hour researching this, but unable to do this.
I'm trying to center align the column header text, but it seems to be left justified.
Over the forum they mentioned to disable the sort icon indicator, but I'm not sure how to do this in the xaml. I know that I need to set the LabelPresenter style, but what 'Property' should I set.
Kindly help
<igDP:XamDataGrid.Resources>
<Style TargetType="{x:Type igDP:LabelPresenter}" >
</Style>
</igDP:XamDataGrid.Resources>
<!-- _________________________ LabelPresenter __________________________________________ -->
<Style TargetType="{x:Type igDP:LabelPresenter}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:LabelPresenter}">
<ControlTemplate.Resources>
</ControlTemplate.Resources>
<Grid x:Name="labelCntr" Background="#00000000">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition x:Name="fishColumn" Width="0"/>
</Grid.ColumnDefinitions>
<!-- Background Bar -->
<Border
Width="Auto"
Height="Auto"
RenderTransformOrigin="0.5,0.5"
CornerRadius="{DynamicResource {ComponentResourceKey {x:Type igDP:XamDataGrid}, LabelCornerRadius}}"
SnapsToDevicePixels="True"
Background="{TemplateBinding Background}"
x:Name="background"/>
<!-- Highlight -->
x:Name="highlight"
Opacity="0"
CornerRadius="2,2,2,2"
Background="{TemplateBinding LabelHighlight}"
SnapsToDevicePixels="True"/>
BorderBrush="{TemplateBinding OuterBorderBrush}"
BorderThickness="1"
CornerRadius="1.55015910897703"
Background="Transparent"
Margin="0,0,0,0"
x:Name="lineOuter"
BorderBrush="{TemplateBinding InnerBorderBrush}"
CornerRadius="0.550159108977027"
Margin="1,1,1,1"
x:Name="lineInner"
<Path x:Name="fishHeadOuterStroke" SnapsToDevicePixels="True" Visibility="Collapsed" Fill="{TemplateBinding OuterBorderBrush}" Grid.Column="1" Stretch="Fill" Data="M 0,20 C0,20 8,12 8,12 9,11 9,9 8,8 8,8 0,0 0,0 0,0 0,20 0,20 z" />
<Path x:Name="fishHead" SnapsToDevicePixels="True" Visibility="Collapsed" Fill="{TemplateBinding Background}" Grid.Column="1" Margin="0,1,1,1" Stretch="Fill" Data="M 0,20 C0,20 8,12 8,12 9,11 9,9 8,8 8,8 0,0 0,0 0,0 0,20 0,20 z" />
<Path x:Name="fishHeadHighlight" SnapsToDevicePixels="True" Visibility="Collapsed" Fill="{TemplateBinding LabelHighlight}" Opacity="0" Grid.Column="1" Margin="0,1,1,1" Stretch="Fill" Data="M 0,20 C0,20 8,12 8,12 9,11 9,9 8,8 8,8 0,0 0,0 0,0 0,20 0,20 z"/>
<Path
x:Name="fishHeadInnerStroke"
Visibility="Collapsed"
Stretch="Fill"
Data="M 0,20 C0,20 8,12 8,12 9,11 9,9 8,8 8,8 0,0 0,0 0,0 0,1 0,1 0,1 7,8 7,8 8,9 8,11 7,12 7,12 0,19 0,19 0,19 0,20 0,20 z"
Fill="{TemplateBinding InnerBorderBrush}"
Grid.Column="1"
Margin="-1,1,1,1"
<Grid
Margin="{TemplateBinding Padding}"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
x:Name="sortIndicatorAndLabel">
<ColumnDefinition Width="Auto"/>
<ContentPresenter
x:Name="LabelContent"
Focusable="False"
Content="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}"
ContentTemplate="{TemplateBinding ContentTemplate}"
ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
d:LayoutOverrides="Width, Height"
VerticalAlignment="Center"/>
<igWindows:SortIndicator
x:Name="SortIndicator"
SortStatus="{TemplateBinding SortStatus}"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Margin="0,0,0,0"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>