Control.OnPreviewKeyDown(KeyRoutedEventArgs) Method
Definition
Called before the PreviewKeyDown event occurs.
Equivalent WinUI method: Microsoft.UI.Xaml.Controls.Control.OnPreviewKeyDown.
protected:
virtual void OnPreviewKeyDown(KeyRoutedEventArgs ^ e) = OnPreviewKeyDown;
void OnPreviewKeyDown(KeyRoutedEventArgs const & e);
protected virtual void OnPreviewKeyDown(KeyRoutedEventArgs e);
function onPreviewKeyDown(e)
Protected Overridable Sub OnPreviewKeyDown (e As KeyRoutedEventArgs)
Parameters
The data for the event.
Windows 10 requirements
Device family |
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v5.0)
|