title: how to manage tile usercontrols(having listbox binding) in MVVM model?
body: <p>//this is usercontrol code</p>
  
  <pre><code>&lt;ListBox  Name="OvernightAverageListBox"  ItemsSource="{Binding Path=OvernightAverageCollections}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  &gt;
   &lt;ListBox.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;StackPanel Name="items" Background="{Binding BackColor}" Height="200" Width="200"&gt;
                  &lt;TextBlock  Height="46" HorizontalAlignment="Left" Margin="26,10,0,0" Name="currentRate" Text="{Binding  Current_rate}" VerticalAlignment="Top" FontSize="36" /&gt;
                  &lt;TextBlock Height="22" HorizontalAlignment="Left" Margin="26,20,0,0" Name="rate_difference" Text="{Binding RateChange_Value}" VerticalAlignment="Top" FontSize="20" /&gt;
                  &lt;TextBlock Height="30" HorizontalAlignment="Left" Margin="26,30,0,0" Name="productName" Text="{Binding Product_name}" VerticalAlignment="Top" FontSize="24" /&gt;
              &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
      &lt;/ListBox.ItemTemplate&gt;
  </code></pre>
  
  <p>//this is binding code on view</p>
  
  <pre><code>&lt;controls:PanoramaItem Header="Overnight Average" Tap="RateTile_Tap"&gt;
              &lt;Grid x:Name="overnightAverage"&gt;
               &lt;views:OvernightAverageTileControl x:Name="eventsView"&gt;       &lt;/views:OvernightAverageTileControl&gt;
              &lt;/Grid&gt;
          &lt;/controls:PanoramaItem&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>now acoording to my code the tiles are coming vertically means each tile is taking in one row.
  but i want them to come both horizontally and vertically means two tiles in each row.
  plz share ur suggetion i am new to xaml designing.</p>
  
  <p>first image shows wat i am getting.</p>
  
  <p>second image is wat i want.</p>
  
  <p>thanks :)</p>
  
  <p><img src="https://i.stack.imgur.com/kSoaJ.png" alt="this is wat it is coming."></p>
  
  <p><img src="https://i.stack.imgur.com/tt3cz.png" alt="but i want like of this kind"></p>