Keyboard.PreviewKeyDownEvent 字段

定义

标识 PreviewKeyDown 附加事件。Identifies the PreviewKeyDown attached event.

public: static initonly System::Windows::RoutedEvent ^ PreviewKeyDownEvent;
public static readonly System.Windows.RoutedEvent PreviewKeyDownEvent;
 staticval mutable PreviewKeyDownEvent : System.Windows.RoutedEvent
Public Shared ReadOnly PreviewKeyDownEvent As RoutedEvent 

字段值

RoutedEvent

注解

在注册路由事件时创建路由事件标识符,并将结果存储为注册路由事件的类中的字段。Routed event identifiers are created when routed events are registered, and the result is stored as a field on the class that registers the routed event. 这些标识符包含标识名称、所有者类型、处理程序类型、路由策略和用于为事件添加所有者的实用工具方法。These identifiers contain an identifying name, owner type, handler type, routing strategy, and a utility method for adding owners for the event. 通常使用这些标识符作为事件系统方法的参数来标识特定路由事件。You often use these identifiers as parameters to event system methods, to identify a particular routed event.

适用于