Note that there are some explanatory texts on larger screens.

plurals
  1. POGridView and Virtualizing Stackpanel to display a grid of items
    primarykey
    data
    text
    <p>I am trying to create a grid containing elements such as</p> <pre><code>| 1 | 4 | 7 | | 2 | 5 | 8 | ===&gt; extend | 3 | 6 | 9 | </code></pre> <p>Since the data is very large, I need to use UI virtualization and what I see in most example is the VirtualizingStackPanel</p> <p>Here is how I have setup my Gridview in XAML . The problem is that the following code creates a horizontal row of single element (which makes sense given it is just a stack panel). </p> <pre><code>| 1 | 2 | 3 | 4 | ..... &lt;GridView x:Name="itemGridView" AutomationProperties.AutomationId="ItemsGridView" AutomationProperties.Name="Items" TabIndex="1" Grid.RowSpan="3" Padding="116,136,116,46" ItemsSource="{Binding Source={StaticResource itemsViewSource}}" ItemTemplateSelector="{StaticResource CellStyleSelector}" ItemClick="ItemView_ItemClick" IsItemClickEnabled="True" SelectionMode="Extended" SelectionChanged="ItemView_SelectionChanged" IsSwipeEnabled="true"&gt; &lt;GridView.ItemsPanel&gt; &lt;ItemsPanelTemplate&gt; &lt;VirtualizingStackPanel Orientation="Horizontal"/&gt; &lt;/ItemsPanelTemplate&gt; &lt;/GridView.ItemsPanel&gt; &lt;/GridView&gt; </code></pre> <p>How would one go about making it display a grid that extends horizontally using virtualizingstackpanel? I have no groups in my data so all the examples that show virtualizingstackpanel show this ? I am completely new at Windows Store app dev (mostly have been on iOS and Android ) so would appreciate any code sample or resources.</p> <p>Thank you</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload