Bagikan melalui


Selector.Unselected Kejadian Terlampir

Definisi

Terjadi ketika item tidak dipilih.

see AddUnselectedHandler, and RemoveUnselectedHandler
see AddUnselectedHandler, and RemoveUnselectedHandler
see AddUnselectedHandler, and RemoveUnselectedHandler

Contoh

Contoh berikut menunjukkan cara menggunakan Unselected peristiwa dengan ListBox kontrol dan cara membuat penanganan aktivitas.

<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

Keterangan

Informasi Peristiwa Yang Dirutekan

Bidang pengidentifikasi UnselectedEvent
Strategi perutean Menggelegak
Delegasikan RoutedEventHandler

Berlaku untuk