Compartir a través de


SelectorSelectionAdapter.HandleKeyDown Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Sub HandleKeyDown ( _
    e As KeyEventArgs _
)
public void HandleKeyDown(
    KeyEventArgs e
)

Parameters

Implements

ISelectionAdapter.HandleKeyDown(KeyEventArgs)

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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