MultiSelector.SelectedItems Property

Gets the items in the MultiSelector that are selected.

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

'Declaration
<BindableAttribute(True)> _
Public ReadOnly Property SelectedItems As IList

Property Value

Type: System.Collections.IList
The items in the MultiSelector that are selected.

If CanSelectMultipleItems is false, you cannot add more than one item to the SelectedItems collection. Attempts to do so will cause an exception.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1, 3.0 SP2

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft