Uredi

Deli z drugimi prek


TreeViewItem.OnSelected(RoutedEventArgs) Method

Definition

Raises the Selected routed event when the IsSelected property changes from false to true.

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 arguments.

Remarks

The control raises the Selected event by calling RaiseEvent. For more information, see Routed Events Overview.

Notes to Inheritors

When overriding OnSelected(RoutedEventArgs) in a derived class, be sure to call the base class' OnSelected(RoutedEventArgs) method so that registered delegates receive the event.

Applies to

See also