title: WPF ListBox that lays out its items horizontally
body: <p>I'm trying to write a WPF application for displaying images from a selection.
  I want to display all of the available images in a banner along the top of the window, and display the main selected image in the main window for further processing.</p>
  
  <p>If I wanted the list on the <i>Left</i> of the window, displaying the images vertically, I can do this quite elegantly using databinding.</p>
  
  <pre><code>    &lt;ListBox 
          Name="m_listBox"
          IsSynchronizedWithCurrentItem="True"
          ItemsSource="{Binding}"            
          &gt;
          &lt;ListBox.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                  &lt;Image Source="{Binding}" Width="60" Stretch="Uniform" /&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListBox.ItemTemplate&gt;
      &lt;/ListBox&gt;
  </code></pre>
  
  <p>Is there a straightforward way I can make this horizontal instead of vertical?
  The main requirements of a solution is:</p>
  
  <ul>
  <li>The items are populated using databinding</li>
  <li>The selected item is changed simply by the user clicking it.</li>
  </ul>