ProcessInputEventHandler 委托

定义

表示用来处理 PostProcessInput 事件的方法。Represents the method that will handle the PostProcessInput event.

public delegate void ProcessInputEventHandler(System::Object ^ sender, ProcessInputEventArgs ^ e);
public delegate void ProcessInputEventHandler(object sender, ProcessInputEventArgs e);
type ProcessInputEventHandler = delegate of obj * ProcessInputEventArgs -> unit
Public Delegate Sub ProcessInputEventHandler(sender As Object, e As ProcessInputEventArgs)

参数

sender
Object

事件源。The source of the event.

e
ProcessInputEventArgs

事件数据。The event data.

继承
ProcessInputEventHandler

注解

ProcessInputEventHandlerPostProcessInput事件一起使用。The ProcessInputEventHandler is used with the PostProcessInput event.

通过处理输入事件, 可以访问InputManager临时区域, 这将向WPFWPF事件处理输入。Process input events enable access to the InputManager staging area, which processes input into WPFWPF events.

输入在以下阶段WPFWPF的中进行处理:Input is processed in WPFWPF in the follow stages:

  1. 预处理阶段。Pre-process stage. 输入管理器引发PreProcessInput事件。The input manager raises the PreProcessInput event.

  2. 预先通知阶段。Pre-notify stage. 输入管理器引发PreNotifyInput事件。The input manager raises the PreNotifyInput event.

  3. 引发WPFWPF输入事件。The WPFWPF input event or events are raised.

  4. 通知后阶段。Post-notify stage. 输入管理器引发PostNotifyInput事件。The input manager raises the PostNotifyInput event.

  5. 后处理阶段。Post-process stage. 输入管理器引发PostProcessInput事件。The input manager raises the PostProcessInput event.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于

另请参阅