SelectionMode Property
Collapse the table of content
Expand the table of content

ListBox.SelectionMode Property

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

Gets or sets the selection behavior for the ListBox control.

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

Public Property SelectionMode As SelectionMode
<ListBox SelectionMode="selectionModeValue"/>

XAML Values


A named constant of the SelectionMode enumeration, such as Extended.

Property Value

Type: System.Windows.Controls.SelectionMode
One of the SelectionMode values.

Use the SelectionMode property to specify whether the user can select multiple items and how the user can select the multiple items. Setting SelectionMode to Multiple allows the user to select multiple items. Setting SelectionMode to Extended allows the user to select multiple items by pressing a modifier key, such as CTRL or SHIFT.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft