Editar

Compartilhar via


ListBoxItem.OnSelected(RoutedEventArgs) Method

Definition

Called when the ListBoxItem is selected in a ListBox.

protected:
 virtual void OnSelected(System::Windows::RoutedEventArgs ^ e);
protected virtual void OnSelected (System.Windows.RoutedEventArgs e);
abstract member OnSelected : System.Windows.RoutedEventArgs -> unit
override this.OnSelected : System.Windows.RoutedEventArgs -> unit
Protected Overridable Sub OnSelected (e As RoutedEventArgs)

Parameters

e
RoutedEventArgs

The event data.

Remarks

This method is called when the IsSelected property changes to true.

Applies to