title: how to get a data templates to display data in columns
body: <p>I have a data template in a listbox that is dynamically creating 6 labels.  It displays the content for those labels in one row.  How would I get the data template to list the data in 3 columns of 2 rows?  So, if I added 9 dynamic labels, it would be arrange it as 3 columns of 3 rows.</p>
  
  <pre><code>    &lt;Grid Grid.Row="1"&gt;
          &lt;ListBox ItemsSource="{Binding AvailableLayoutsOC, Mode=TwoWay}"
                   Margin="0"&gt;
               &lt;ListBox.ItemsPanel&gt;
                    &lt;ItemsPanelTemplate&gt;
                        &lt;WrapPanel Orientation="Horizontal"/&gt;
                     &lt;/ItemsPanelTemplate&gt;
                &lt;/ListBox.ItemsPanel&gt;
                &lt;ListBox.ItemTemplate&gt;
                    &lt;DataTemplate&gt;
                        &lt;StackPanel Orientation="Horizontal"&gt;
                            &lt;Label Content="{Binding AvailableLayoutLabel}"/&gt; 
                        &lt;/StackPanel&gt;
                    &lt;/DataTemplate&gt;
                &lt;/ListBox.ItemTemplate&gt;
          &lt;/ListBox&gt;      
     &lt;/Grid&gt;
  </code></pre>