Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SelectionMode Enumeration

Defines the selection behavior for a ListBox.

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

public enum SelectionMode

Member nameDescription
Supported by Silverlight for Windows PhoneSingleThe user can select only one item at a time.
Supported by Silverlight for Windows PhoneMultipleThe user can select multiple items without pressing a modifier key.
Supported by Silverlight for Windows PhoneExtendedThe user can select multiple items by pressing a modifier key.

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.

If ListBox.SelectionMode is set to Extended, the user can select multiple consecutive items by pressing the SHIFT key, or multiple non-consecutive items by pressing the CTRL key.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

© 2018 Microsoft