HwndHost.OnKeyDown Method (KeyEventArgs)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Called when the hosted window receives a WM_KEYDOWN message.

Namespace:   System.Windows.Interop
Assembly:  PresentationFramework (in PresentationFramework.dll)

[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
protected override void OnKeyDown(
	KeyEventArgs e
)

Parameters

e
Type: System.Windows.Input.KeyEventArgs

The event data.

System_CAPS_security Security Note

This type or member is not available in the Internet security zone.

This is an override of the class handler OnKeyDown and provides the behavior of translating the Win32 message into a Windows Presentation Foundation (WPF) event, marking the event as handled whenever appropriate.

.NET Framework
Available since 3.0
Return to top
Show: