title: Make a StackPanel Orientation Horizontal in WPF
body: <p>I have this <code>xaml</code> code in a <code>View</code></p>
  
  <pre><code>&lt;StackPanel&gt;
      &lt;Button Content="I am IRON" /&gt;
      &lt;ListView ItemsSource="{Binding Path=MeasuringDeviceCommunicators}"&gt;
          &lt;ListView.ItemTemplate&gt;              
              &lt;DataTemplate&gt;
              &lt;StackPanel Orientation="Horizontal"&gt;
                  &lt;TextBlock Text="{Binding Path=Name}"/&gt;
              &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
          &lt;/ListView.ItemTemplate&gt;
      &lt;/ListView&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>The <code>ItemSource</code> of the <code>ListView</code> is bound to a <code>List</code> in my <code>ViewModel</code> (as shown in the code)</p>
  
  <p>When I run the application all my <code>TextBlocks</code> are shown vertically even though I have set the <code>Orientation</code> of the inner StackPanel to <code>Horizontal</code>.</p>