title: How apply MinWidth for ListView columns in WPF in control template?
body: <p>Following the answer to a similar question <a href="https://stackoverflow.com/questions/852872/minwidth-for-listview-column-in-wpf">here</a>, I was able to set the MinWidth on the XAML page.</p>
  
  <p>What I would like to do is accomplish this in the control template for all GridViewColumn's in all ListView's.</p>
  
  <p>Is this possible?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I tried a simple bit of sample code below, but it does not work:</p>
  
  <pre><code>&lt;Window x:Class="WpfApplication4.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="350" Width="525"&gt;
  
      &lt;Window.Resources&gt;
          &lt;Style TargetType="{x:Type GridViewColumnHeader}" &gt;
              &lt;Setter Property="MinWidth" Value="200" /&gt;
          &lt;/Style&gt;
      &lt;/Window.Resources&gt;
  
      &lt;Grid Width="500"&gt;
          &lt;Border BorderBrush="Black" BorderThickness="2" Margin="20"&gt;
              &lt;ListView SelectionMode="Single"&gt;
                  &lt;ListView.View&gt;
                      &lt;GridView&gt;
                          &lt;GridViewColumn Header="Header 1" Width="Auto"&gt;
                              &lt;GridViewColumn.CellTemplate&gt;
                                  &lt;DataTemplate&gt;
                                      &lt;TextBlock Text="Hello There"/&gt;
                                  &lt;/DataTemplate&gt;
                              &lt;/GridViewColumn.CellTemplate&gt;
                          &lt;/GridViewColumn&gt;
                          &lt;GridViewColumn Header="Header 2" Width="Auto" /&gt;
                      &lt;/GridView&gt;
                  &lt;/ListView.View&gt;
              &lt;/ListView&gt;
          &lt;/Border&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>