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.

Syntax

Public Property LayoutMode As LongListSelectorLayoutMode
public LongListSelectorLayoutMode LayoutMode { get; set; }
<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.

Remarks

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

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

LongListSelector Class

Microsoft.Phone.Controls Namespace