title: Showing a collection of items inside of a ItemsControl horizontally
body: <p>Here is the XAML markup:</p>
  
  <pre><code>        &lt;ScrollViewer Grid.Column="1" Grid.Row="2" HorizontalScrollBarVisibility="Disabled" Width="990"&gt;
              &lt;StackPanel Margin="50 0 0 40"&gt;                    
                  &lt;ItemsControl x:Name="streamList" ItemsSource="{Binding StreamInformations}"&gt;
                      &lt;ItemsControl.ItemTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;StackPanel Margin="10" Orientation="Horizontal" &gt;
                                  &lt;StackPanel Orientation="Horizontal"&gt;
                                      &lt;Image Source="{Binding ImageUrl}" Height="60" /&gt;
                                      &lt;StackPanel Margin="10 0 0 0" VerticalAlignment="Center"&gt;
                                          &lt;TextBlock Foreground="Black" Text="{Binding ChannelName}" FontSize="12" /&gt;
                                          &lt;TextBlock Foreground="#999" Text="{Binding PlayerName}" FontSize="10" /&gt;
                                          &lt;TextBlock Foreground="#999" Text="{Binding ViewCount}" FontSize="10" /&gt;
                                      &lt;/StackPanel&gt;                                        
                                  &lt;/StackPanel&gt;                                   
                              &lt;/StackPanel&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/ItemsControl.ItemTemplate&gt;
                  &lt;/ItemsControl&gt;
              &lt;/StackPanel&gt;
          &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p>And this is how it looks:</p>
  
  <p><img src="https://i.stack.imgur.com/wW1Mw.jpg" alt="enter image description here"></p>
  
  <p>I'd like these items to appear horizontally and flow down when it reaches the edge of the StackPanel. </p>
  
  <p>It seems that currently, each item in my DataContext collection is creating it's own StackPanel, so this isn't what I want.</p>
  
  <p>Any suggestions?</p>