title: How to center DataGridTemplateColumn.HeaderTemplate
body: <p>Any clue? The code below doesn't work properly...</p>
  
  <p>Thank you!</p>
  
  <pre><code> &lt;DataGrid AutoGenerateColumns="False"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  Name="dg1"   Grid.Row="0" &gt;
       &lt;DataGridTemplateColumn  Width="SizeToCells" IsReadOnly="True"&gt;
           &lt;DataGridTemplateColumn.HeaderTemplate&gt;
               &lt;DataTemplate&gt;
                   &lt;Label HorizontalAlignment="Center" Content="First Name"&gt;&lt;/Label&gt;
               &lt;/DataTemplate&gt;
            &lt;/DataGridTemplateColumn.HeaderTemplate&gt;
            &lt;DataGridTemplateColumn.CellTemplate&gt;
                &lt;DataTemplate&gt;
                   &lt;Label Content="{Binding FirstName}" /&gt;
                &lt;/DataTemplate&gt;
            &lt;/DataGridTemplateColumn.CellTemplate&gt;
       &lt;/DataGridTemplateColumn&gt;
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>Solution of @ArsenMkrt is great but I am facing some strange vertical lines...</p>
  
  <p><img src="https://i.stack.imgur.com/7wspc.png" alt="enter image description here"></p>