title: How to vertically center rows' contents in a WPF DataGrid?
body: <p>I want to make the data record's  <code>VerticalAlignment=Center</code> in DataGrid. By default,the data record's  <code>VerticalAlignment=Top</code>, It looks uglily. Can you provide me this style?</p>
  
  <p>I define my style in App.xaml file. The following is my current DataGrid style:</p>
  
  <pre><code>    &lt;Style x:Key="DataGridView" TargetType="DataGrid"&gt;
          &lt;Setter Property="AlternatingRowBackground" Value="AliceBlue"&gt;&lt;/Setter&gt;
          &lt;Setter Property="AlternationCount" Value="1"&gt;&lt;/Setter&gt;
          &lt;Setter Property="AutoGenerateColumns" Value="False"&gt;&lt;/Setter&gt;
          &lt;Setter Property="GridLinesVisibility" Value="Horizontal"&gt;&lt;/Setter&gt;
          &lt;Setter Property="VerticalGridLinesBrush" Value="DarkGray"&gt;&lt;/Setter&gt;
          &lt;Setter Property="HorizontalGridLinesBrush" Value="DarkGray"&gt;&lt;/Setter&gt;
          &lt;Setter Property="RowHeight" Value="32"&gt;&lt;/Setter&gt;
      &lt;/Style&gt;
  </code></pre>