title: C# WPF Limit items per row in a Listview
body: <p>My Listview:</p>
  
  <pre><code>&lt;ListView ItemTemplate="{StaticResource GridViewItemTemplate}" Name="gridView_movies"&gt;
      &lt;ListView.ItemsPanel&gt;
          &lt;ItemsPanelTemplate&gt;
              &lt;StackPanel Orientation="Horizontal" HorizontalAlignment="Left"  VerticalAlignment="Top"/&gt;
          &lt;/ItemsPanelTemplate&gt;
      &lt;/ListView.ItemsPanel&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>Datatemplate of the list:</p>
  
  <pre><code>&lt;DataTemplate x:Key="GridViewItemTemplate"&gt;
      &lt;StackPanel Orientation="Vertical" &gt;
          &lt;Image Width="250" Height="290" Source="{Binding Image}"/&gt;
          &lt;TextBlock Text="{Binding Title}" HorizontalAlignment="Center"  VerticalAlignment="Top" FontSize="20"/&gt;
      &lt;/StackPanel&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>When i load this, all items are showed in one row, my question is, How can i show only 3 items per row instead of all items in one row.</p>
  
  <p>Thanks for the attention.</p>