title: Multi-column stackpanel or alternative
body: <p>I have the following XAML code:</p>
  
  <pre><code> &lt;StackPanel Background="White" Margin="267,207,0,44" Grid.ColumnSpan="2"&gt;
     &lt;ScrollViewer Margin="30,30,0,30" Height="444"&gt;
        &lt;ItemsControl Name="ListCountries"&gt;
           &lt;ItemsControl.ItemsPanel&gt;
              &lt;ItemsPanelTemplate&gt;
                 &lt;StackPanel Orientation="Horizontal" /&gt;
              &lt;/ItemsPanelTemplate&gt;
           &lt;/ItemsControl.ItemsPanel&gt;
           &lt;ItemsControl.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                 &lt;StackPanel Margin="0,0,10,0" Width="100"&gt;
                    &lt;TextBlock Text="{Binding Key}" Foreground="Red" /&gt;
                    &lt;ItemsControl ItemsSource="{Binding}"&gt;
                       &lt;ItemsControl.ItemTemplate&gt;
                          &lt;DataTemplate&gt;
                             &lt;StackPanel Margin="0,10,0,0"&gt;
                                &lt;TextBlock TextWrapping="Wrap" Text="{Binding title}" Foreground="Black" /&gt;
                                &lt;TextBlock TextWrapping="Wrap" Text="{Binding desc}" Foreground="Gray" /&gt;
                             &lt;/StackPanel&gt;
                          &lt;/DataTemplate&gt;
                       &lt;/ItemsControl.ItemTemplate&gt;
                    &lt;/ItemsControl&gt;
                 &lt;/StackPanel&gt;
              &lt;/DataTemplate&gt;
           &lt;/ItemsControl.ItemTemplate&gt;
        &lt;/ItemsControl&gt;
     &lt;/ScrollViewer&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>I set the itemSource of the itemsControl named ListCountries, with a IEnumerable> and it prints a list of titles, followed by a list of objects of the OtherClass.</p>
  
  <p>My problem is that , the columns that are filled sometimes are bigger than the height of the  Stackpanel that they are inserted to, i want to be able to split my inner list of into columns.</p>
  
  <p><img src="https://i.stack.imgur.com/WvHd1.png" alt="enter image description here">
  as you can see in the image, Belgium country gets splited into 2 columns
  right now all my countries are single column with vertical scroll.</p>