ItemsPanel property in the Longlistselector Windows Phone 8 SDK

Does anyone know if the Longlistselector control from the Windows Phone 8 SDK (not the Windows Phone toolkit for WP 7.5) has the ItemsPanel property or equivalent?

The ListBox control has this property, I use it to wrap items in a WrapPanel.

<ListBox> <ListBox.ItemsPanel> <ItemsPanelTemplate> <toolkit:WrapPanel/> </ItemsPanelTemplate> </ListBox.ItemsPanel> </ListBox> 

Here is the answer: How to transfer ItemsPanel to LongListSelector? but this applies to the Longlistselector found in the Toolkit NOT in the WP8 SDK (where I don't have access to the source code to use the specified solution).

Does anyone have any ideas?

+4
source share
1 answer

You must accomplish this using the LayoutMode property. Set to Grid

Gets or sets a value indicating whether Microsoft.Phone.Controls.LongListSelector is in list mode or in a grid from Microsoft.Phone.Controls.LongListSelectorLayoutMode ENUM mode.

 <phone:LongListSelector ItemsSource="{Binding Items}" LayoutMode="Grid" > 
+7
source

All Articles