ListBox::SelectedItems Property
.NET Framework (current version)
Gets the currently selected items.
Assembly: PresentationFramework (in PresentationFramework.dll)
Property Value
Type: System.Collections::IList^Returns a collection of the currently selected items.
| Exception | Condition |
|---|---|
| InvalidOperationException | The SelectionMode property is set to Single. |
This property is meant to be used when SelectionMode does not equal Single. If the selection mode is Single the correct property to use is SelectedItem.
Identifier field | |
Metadata properties set to true | None |
.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Show: