Edit

Share via


TreeViewItem.OnKeyDown(KeyEventArgs) Method

Definition

Provides class handling for a KeyDown event.

C#
protected override void OnKeyDown(System.Windows.Input.KeyEventArgs e);

Parameters

e
KeyEventArgs

The event data.

Remarks

This method sets Handled to true and collapses or expands the TreeViewItem when one of the following keys is pressed:

Applies to