TreeViewItem.OnSelected(RoutedEventArgs) Method
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.
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
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.