IInputElement.PreviewKeyDown 事件

定义

在此元素聚焦于键盘并且按下某个键时发生。Occurs when a key is pressed while the keyboard is focused on this element.

public:
 event System::Windows::Input::KeyEventHandler ^ PreviewKeyDown;
event System.Windows.Input.KeyEventHandler PreviewKeyDown;
member this.PreviewKeyDown : System.Windows.Input.KeyEventHandler 
Event PreviewKeyDown As KeyEventHandler 

注解

此接口不用于公共实现。This interface is not intended for public implementation. 有关详细信息, 请参阅界面的IInputElement "备注"。For more information, see remarks for the IInputElement interface.

适用于

另请参阅