Export (0) Print
Expand All
Expand Minimize

SelectionMode Enumeration

Defines the selection behavior for a ListBox.

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

Public Enumeration 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.

Community Additions

© 2014 Microsoft