SelectionMode Property

ListBox.SelectionMode Property


Gets or sets the selection behavior for a ListBox.

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

public SelectionMode SelectionMode { get; set; }

Property Value

Type: System.Windows.Controls.SelectionMode

One of the SelectionMode values. The default is Single selection.

Identifier field


Metadata properties set to true


Legacy Code Example

The following example sets the SelectionMode property to Multiple.

Code snippet is not found. Confirm that the code snippet name 'ListBoxEvent' is correct.

.NET Framework
Available since 3.0
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft