HwndHost.OnKeyDown(KeyEventArgs) Method

Definition

裝載的視窗收到 WM_KEYDOWN 訊息時呼叫。Called when the hosted window receives a WM_KEYDOWN message.

protected:
 override void OnKeyDown(System::Windows::Input::KeyEventArgs ^ e);
protected override void OnKeyDown (System.Windows.Input.KeyEventArgs e);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected override void OnKeyDown (System.Windows.Input.KeyEventArgs e);
override this.OnKeyDown : System.Windows.Input.KeyEventArgs -> unit
Protected Overrides Sub OnKeyDown (e As KeyEventArgs)

Parameters

e
KeyEventArgs

事件資料。The event data.

Attributes

Remarks

Important

此類型或成員無法在網際網路安全性區域中使用。This type or member is not available in the Internet security zone.

這是類別處理常式 OnKeyDown 的覆寫,可提供將 Win32Win32 訊息轉譯為 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 事件的行為,並在適當時將事件標示為已處理。This is an override of the class handler OnKeyDown and provides the behavior of translating the Win32Win32 message into a Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) event, marking the event as handled whenever appropriate.

Applies to