title: Wpf Centering Cell content in DataGridTemplateColumn
body: <p>I am able to center the header without any problems but the cell with the checbox... if I set it to <code>HorizontalAlignment=Center</code> it shows all the way in the left, if I change it to <code>HorizontalContentAlignemnt=Center</code> it shows all the way to the right... what am I doing wrong?</p>
  
  <pre><code>&lt;DataGridTemplateColumn Header="Enable?" SortMemberPath="Enable" Width="75"&gt;
      &lt;DataGridTemplateColumn.HeaderStyle&gt;
          &lt;Style TargetType="{x:Type DataGridColumnHeader}"&gt;
               &lt;Setter Property="HorizontalContentAlignment" Value="Center"/&gt;
          &lt;/Style&gt;
      &lt;/DataGridTemplateColumn.HeaderStyle&gt;
      &lt;DataGridTemplateColumn.CellTemplate &gt;
       &lt;DataTemplate &gt;
      &lt;CheckBox IsChecked="{Binding Enable, UpdateSourceTrigger=PropertyChanged}"&gt;        
  &lt;/CheckBox&gt;
      &lt;/DataTemplate&gt;
         &lt;/DataGridTemplateColumn.CellTemplate&gt;
              &lt;DataGridTemplateColumn.CellStyle&gt;
                   &lt;Style TargetType="DataGridCell"&gt;
                      &lt;Setter Property="HorizontalContentAlignment" Value="Center"/&gt;
                   &lt;Style.Triggers&gt;
                          &lt;DataTrigger Binding="{Binding Path=Activated}" Value="Yes"&gt;
                              &lt;Setter Property="IsEnabled" Value="False" /&gt;
                           &lt;/DataTrigger&gt;
                   &lt;/Style.Triggers&gt;
                   &lt;/Style&gt;
           &lt;/DataGridTemplateColumn.CellStyle&gt;
  </code></pre>
  
  <p></p>