Megosztás a következőn keresztül:


Control.OnPreviewKeyDown(KeyRoutedEventArgs) Method

Definition

Called before the PreviewKeyDown event occurs.

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

e
KeyRoutedEventArgs

The data for the event.

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Applies to