Share via


TreeView.SelectionChanged Event

Definition

Occurs when there's a change to the items currently selected in the TreeView.

public event TypedEventHandler<TreeView,TreeViewSelectionChangedEventArgs> SelectionChanged;

Event Type

Remarks

Handle the TreeView.SelectionChanged event to respond when the set of selected nodes in the TreeView control is changed either by a user or programmatically. The TreeView control raises this event in response to selection changing, which corresponds to changes in the TreeView.SelectedItem, TreeView.SelectedItems, and TreeView.SelectedNodes properties.

Applies to