LayoutMode Property

LongListSelector.LayoutMode Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that specifies if the LongListSelector is in a list mode or grid mode from the LongListSelectorLayoutMode enum.

Namespace:  Microsoft.Phone.Controls
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Property LayoutMode As LongListSelectorLayoutMode
<object LayoutMode="LongListSelectorLayoutMode" .../>

Property Value

Type: Microsoft.Phone.Controls.LongListSelectorLayoutMode
A LongListSelectorLayoutMode value that specifies if the LongListSelector is in a list mode or grid mode.

When you specify Grid as the value of the LayoutMode property, you also have to provide a value for the GridCellSize property.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft