title: WPF StackPanel content vertical alignment
body: <p>Is there a way in <code>XAML</code> to say that I want to center-align vertically all components inside a horizontal-oriented <code>StackPanel</code>?</p>
  
  <p>I achieve the desired result with the below <code>XAML</code>:</p>
  
  <pre><code>&lt;StackPanel Orientation="Horizontal"&gt;
       &lt;TextBlock VerticalAlignment="Center"/&gt;
       &lt;Button VerticalAlignment="Center"/&gt;
       &lt;TextBox VerticalAlignment="Center"/&gt;
       &lt;Button VerticalAlignment="Center"/&gt;
       &lt;TextBlock VerticalAlignment="Center"/&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>But I need to repeat the <code>VerticalAlignment="Center"</code> for each control separately.</p>
  
  <p>Is there a way to declare on the <code>StackPanel</code> level something like below?</p>
  
  <pre><code>&lt;StackPanel Orientation="Horizontal" VERTICALCONTENTALIGNMENT="Center"&gt;
       &lt;TextBlock/&gt;
       &lt;Button/&gt;
       &lt;TextBox/&gt;
       &lt;Button/&gt;
       &lt;TextBlock/&gt;
  &lt;/StackPanel&gt;
  </code></pre>