SelectionMode Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Defines the selection behavior for a ListBox.

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

Syntax

'Declaration
Public Enumeration SelectionMode
public enum SelectionMode

Members

Member name Description
Supported by Silverlight for Windows Phone Single The user can select only one item at a time.
Supported by Silverlight for Windows Phone Multiple The user can select multiple items without pressing a modifier key.
Supported by Silverlight for Windows Phone Extended The user can select multiple items by pressing a modifier key.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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