LongListSelector.LayoutMode Property

July 28, 2014

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.

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.

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:
© 2014 Microsoft