title: Alternate row color for a wrappanel
body: <p>I am trying to get an alternate row color effect on a Listbox / wrappanel. However since the orientation is Horizontal, The alternate columns are getting the alternate colors. I want the elements to be listed side ways and then wrapped. How can I set the alternate color on rows based on this.</p>
  
  <pre><code>&lt;ListBox ItemsSource="{Binding MySource}"  ItemContainerStyle="{StaticResource alternatingListItemStyle}" AlternationCount="2"&gt;
   &lt;ListBox.ItemsPanel&gt;
       &lt;ItemsPanelTemplate&gt;
           &lt;WrapPanel Orientation="Horizontal" MaxWidth="300"/&gt;
       &lt;/ItemsPanelTemplate&gt;
   &lt;/ListBox.ItemsPanel&gt;
   &lt;ListBox.ItemTemplate&gt;
       &lt;DataTemplate&gt;
           &lt;CheckBox Content="{Binding MyCaption}"/&gt;
       &lt;/DataTemplate&gt;
   &lt;/ListBox.ItemTemplate&gt;
  </code></pre>
  
  <p></p>