SelectionMode Enumeration
TOC
Collapse the table of content
Expand the table of content

SelectionMode Enumeration

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

Defines the selection behavior for a ListBox.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public enum SelectionMode

Member nameDescription
SingleThe user can select only one item at a time.
MultipleThe user can select multiple items.
ExtendedThe user can select multiple items by pressing a modifier key, such as SHIFT.

Set the ListBox.SelectionMode property to one of the SelectionMode values to specify whether the user can select more that one item in a list box.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft