-api-id | -api-type |
---|---|
E:Windows.UI.Xaml.UIElement.PreviewKeyDown |
winrt event |
Occurs when a keyboard key is pressed while the UIElement has focus.
<uiElement PreviewKeyDown="eventhandler"/>
PreviewKeyDown is a routed event. For more info on the routed event concept, see Events and routed events overview.
This event uses the tunneling routing strategy. The corresponding bubbling event is KeyDown.