title: WPF: Setting the text alignment of a GridViewColumn
body: <p>By default, text is centered in the headers of a <code>ListView</code> (<strong>not</strong> in the content cells!), I've been struggling to make it left aligned, here's what I've come up with:</p>
  
  <pre><code>&lt;ListView.Resources&gt;
      &lt;DataTemplate x:Key="Templ"&gt;
         &lt;TextBlock HorizontalAlignment="Left" Text="{Binding}"/&gt;
      &lt;/DataTemplate&gt;
  &lt;/ListView.Resources&gt;   
  ...
  &lt;GridViewColumn HeaderTemplate="{StaticResource Templ}"&gt;File&lt;/GridViewColumn&gt;
  </code></pre>
  
  <p>This does seem to be the right place to alter the appearance of the header, since I can change other properties like <code>Margin</code>, etc., yet it does not respond to the <code>HorizontalAlignment</code> property! I'm guessing the textbox is sized to content and itself centered, thus making the alignment property redundant. </p>
  
  <p>How can I make the text left aligned ?</p>