Export (0) Print
Expand All

SelectorSelectionAdapter.HandleKeyDown Method

Silverlight

Provides handling for the KeyDown event that occurs when a key is pressed while the drop-down portion of the AutoCompleteBox has focus.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Input (in System.Windows.Controls.Input.dll)

public void HandleKeyDown(
	KeyEventArgs e
)

Parameters

e
Type: System.Windows.Input.KeyEventArgs
A KeyEventArgs that contains data about the KeyDown event.

Implements

ISelectionAdapter.HandleKeyDown(KeyEventArgs)

This method is called by the KeyDown event of the AutoCompleteBox, when the drop-down portion of the AutoCompleteBox has focus.

This method marks the KeyDown event of the AutoCompleteBox as handled when one of the following keys is pressed:

Enter

Up

Down

Escape

The HandleKeyDown method raises the Commit event when the Enter key is pressed. The method raises the Cancel event when the Escape key is pressed.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft