title: WPF - How to center column data in ListView?
body: <p>I'm still learning WPF, but I'm really confused about something that should be really simple.  What I want to do is to center the contents of the 3rd and 4th columns.  When I run this, the columns are left justified:</p>
  
  <pre><code>&lt;ListView Margin="0" x:Name="listMonitoredUrls" AlternationCount="1"
            ItemsSource="{Binding}"  &gt;
      &lt;ListView.View&gt;
          &lt;GridView&gt;
              &lt;GridViewColumn Header="Description" DisplayMemberBinding="{Binding FriendlyDesc}"/&gt;
              &lt;GridViewColumn Header="Url" DisplayMemberBinding="{Binding Url}"/&gt;
              &lt;GridViewColumn Header="Frequency"&gt;
                  &lt;GridViewColumn.CellTemplate &gt;
                      &lt;DataTemplate&gt;
                          &lt;TextBlock Text="{Binding ScanFrequencyMinutes}"
                                     HorizontalAlignment="Center"/&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/GridViewColumn.CellTemplate&gt;
              &lt;/GridViewColumn&gt;
              &lt;GridViewColumn Header="Next Scan"  &gt;
                  &lt;GridViewColumn.CellTemplate &gt;
                      &lt;DataTemplate&gt;
                          &lt;TextBlock Text="{Binding TimeNextScanStr}"
                                     HorizontalAlignment="Center"/&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/GridViewColumn.CellTemplate&gt;
              &lt;/GridViewColumn&gt;
          &lt;/GridView&gt;
      &lt;/ListView.View&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>I"m really starting to like WPF, but some simple things like this seem to be really hard.  </p>