title: Center single column in ListView holding an image
body: <p>I have a Listview that has three columns. The last columns holds an image that only gets displayed if the data the column bind to is true.</p>
  
  <pre><code>&lt;ListView HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Name="lstPrinters"  ItemsSource="{Binding PrinterCollection}"&gt;
  &lt;ListView.View&gt;
      &lt;GridView&gt;
              &lt;GridViewColumn Width="140" Header="Name" DisplayMemberBinding="{Binding Name}" /&gt;
              &lt;GridViewColumn Width="250" Header="UNC" DisplayMemberBinding="{Binding UNC}" /&gt;
                  &lt;GridViewColumn Width="50" Header="Default"  &gt;
                  &lt;GridViewColumn.CellTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;StackPanel Orientation="Horizontal" HorizontalAlignment="Center" &gt;
                              &lt;Image Width="16" Height="16"  Source="/PrinterController.Agent;component/images/GreenTick.png"&gt;
                                  &lt;Image.Style&gt;
                                      &lt;Style TargetType="{x:Type Image}" &gt;
                                          &lt;Style.Triggers&gt;
                                              &lt;DataTrigger Binding="{Binding IsDefault}" Value="false"&gt;
                                                  &lt;Setter Property="Visibility" Value="Collapsed" /&gt;
                                              &lt;/DataTrigger&gt;
                                              &lt;DataTrigger Binding="{Binding IsDefault}" Value="true"&gt;
                                                  &lt;Setter Property="Visibility" Value="Visible" /&gt;
                                              &lt;/DataTrigger&gt;
                                          &lt;/Style.Triggers&gt;
                                      &lt;/Style&gt;
                                  &lt;/Image.Style&gt;
                              &lt;/Image&gt;
                          &lt;/StackPanel&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/GridViewColumn.CellTemplate&gt;
              &lt;/GridViewColumn&gt;
          &lt;/GridView&gt;
  &lt;/ListView.View&gt;
  </code></pre>
  
  <p></p>
  
  <p>I want the image to be horizontially centred in the column but no matter how I try it wont center.  I have tried so many ways to do this to be honest I am starting to forget what I have and haven't tried! I have followed all the SO articles I can find that relate to this issue but none have worked.  I only want this one column to be centred.</p>
  
  <p>Any pointers would be appreciated.</p>