title: Can use a wrappanel with datatemplate for horizontal alignment of items in a listbox
body: <p>I am trying to horizontally align items in a listbox(items are checkbox items). How can i use a wrap panel with datatemplate?</p>
  
  <pre><code>&lt;ListBox  Name="Horizontal"  ItemsSource="{Binding Solution}" scrollViewer.HorizontalScrollBarVisibility="Disabled" &gt;
  &lt;ListBox.ItemTemplate &gt;
   &lt;DataTemplate &gt;
    &lt;CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="5 5 0 0"/&gt;
    &lt;/DataTemplate&gt;
   &lt;/ListBox.ItemTemplate&gt;
  &lt;/ListBox&gt;
  </code></pre>