Microsoft Silverlight will reach end of support after October 2021. Learn more.
Defines the selection behavior for a ListBox.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Public Enumeration SelectionMode
public enum SelectionMode
|Single||The user can select only one item at a time.|
|Multiple||The user can select multiple items without pressing a modifier key.|
|Extended||The 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.