Selector.Selected Attached Event
.NET Framework (current version)
Occurs when an item is selected.
Assembly: PresentationFramework (in PresentationFramework.dll)
Return to top
The following examples show how to use the ListBox control. The first example raises the event and the second shows how to handle the event.event with a
<ListBoxItem Name="lbi0" Selected="OnSelected" Unselected="OnUnselected"> Item 0</ListBoxItem>