Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 851 Bytes

uielement_previewkeydown.md

File metadata and controls

34 lines (20 loc) · 851 Bytes
-api-id -api-type
E:Windows.UI.Xaml.UIElement.PreviewKeyDown
winrt event

Windows.UI.Xaml.UIElement.PreviewKeyDown

-description

Occurs when a keyboard key is pressed while the UIElement has focus.

-xaml-syntax

<uiElement PreviewKeyDown="eventhandler"/>

-remarks

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.

-see-also

KeyRoutedEventArgs, KeyDown

-examples