.NET Framework 4.6 and 4.5
Gets the currently selected items.
Public ReadOnly Property SelectedItems As IList
The following example shows how to use the SelectedItems property to determine whether a list box has any selected items.
Private Sub SelectedItems(ByVal sender As Object, ByVal e As RoutedEventArgs)
If lb.SelectedItem IsNot Nothing Then
label1.Content = "Has " & (lb.SelectedItems.Count.ToString()) & " item(s) selected."
Supported in: 4.6, 4.5, 4, 3.5, 3.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
(1500 characters remaining)
Thank you for your feedback