title: WPF Databinding stackpanel
body: <p>Im a beginner in WPF programming, coming from .NET 2.0 C#.</p>
  
  <p>Im trying to make a horizontal <code>StackPanel</code> which should be filled with data from a table in a database. The problem is that I want it to display an image with some text from the table below and then stack those two items horizontally.</p>
  
  <p>Here's some pseudo-code to display what I want to do:</p>
  
  <pre><code>&lt;StackPanel Orientation="horizontal" ItemsSource="{Binding Path=myTable}"&gt;
      &lt;StackPanel&gt;
          &lt;Image Source="User.png"/&gt;
          &lt;Label HorizontalAlignment="Center" Content="{Binding Path=UserName}"&gt;&lt;/Label&gt;
      &lt;/StackPanel&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>I simply cannot figure oout how to do this.</p>