Bewerken

Delen via


TreeViewItem.OnKeyDown(KeyEventArgs) Method

Definition

Provides class handling for a KeyDown event.

protected:
 override void OnKeyDown(System::Windows::Input::KeyEventArgs ^ e);
protected override void OnKeyDown (System.Windows.Input.KeyEventArgs e);
override this.OnKeyDown : System.Windows.Input.KeyEventArgs -> unit
Protected Overrides Sub OnKeyDown (e As KeyEventArgs)

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