Selector.Unselected Attached Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when an item is unselected.
see AddUnselectedHandler, and RemoveUnselectedHandler
see AddUnselectedHandler, and RemoveUnselectedHandler
see AddUnselectedHandler, and RemoveUnselectedHandler
Examples
The following examples show how to use the Unselected event with a ListBox control and how to create an event handler.
<ListBoxItem Name="lbi0" Selected="OnSelected" Unselected="OnUnselected">
Item 0</ListBoxItem>
private void OnUnselected(object sender, RoutedEventArgs e)
{
Item.Content = ((ListBoxItem)sender).Name + " was unselected.";
}
Private Sub OnUnselected(ByVal sender As Object, ByVal e As RoutedEventArgs)
Item.Content = (CType(sender, ListBoxItem)).Name & " was unselected."
End Sub
Remarks
Routed Event Information
Identifier field | UnselectedEvent |
Routing strategy | Bubbling |
Delegate | RoutedEventHandler |
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.