ComboBox.OnKeyDown Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides handling for the KeyDown event.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- e
- Type: System.Windows.Input.KeyEventArgs
The event data
This implementation routes the key down event to the main content of the combo box, or the drop-down, depending on which is currently active.
The OnKeyDown method is called before any event handler for the KeyDown event is called. This method allows derived classes to handle the KeyDown event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
This implementation does not change the handled state (the Handled property) of the KeyDown event data.
Notes to InheritorsIf you override OnKeyDown, you can prevent registered delegates from receiving events by setting Handled to true. For more information about routed events and the Handled property, see Events for Windows Phone 8.