This topic has not yet been rated - Rate this topic

ListBox.SelectionMode Property

April 12, 2014

Gets or sets the selection behavior for the ListBox control.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
public SelectionMode SelectionMode { get; set; }
<ListBox SelectionMode="selectionModeValue"/>

XAML Values


A named constant of the SelectionMode enumeration, such as Extended.

Property Value

Type: System.Windows.Controls.SelectionMode
One of the SelectionMode values.

Use the SelectionMode property to specify whether the user can select multiple items and how the user can select the multiple items. Setting SelectionMode to Multiple allows the user to select multiple items. Setting SelectionMode to Extended allows the user to select multiple items by pressing a modifier key, such as CTRL or SHIFT.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.