InputManager.PreNotifyInput 事件

定义

如果输入未取消,则当处理程序完成处理输入时 PreProcessInput 发生。

public:
 event System::Windows::Input::NotifyInputEventHandler ^ PreNotifyInput;
[add: System.Security.SecurityCritical]
[remove: System.Security.SecurityCritical]
public event System.Windows.Input.NotifyInputEventHandler PreNotifyInput;
public event System.Windows.Input.NotifyInputEventHandler PreNotifyInput;
[<add: System.Security.SecurityCritical>]
[<remove: System.Security.SecurityCritical>]
member this.PreNotifyInput : System.Windows.Input.NotifyInputEventHandler 
member this.PreNotifyInput : System.Windows.Input.NotifyInputEventHandler 
Public Custom Event PreNotifyInput As NotifyInputEventHandler 

事件类型

属性

注解

监视器是侦 PreNotifyInput 听或侦听的任何 PostNotifyInput代码。 监视器无法修改输入暂存区域。

附加到 PreNotifyInput 的处理程序按相反顺序调用,以便在系统中的处理程序之前调用用户添加的处理程序。

输入在以下阶段中的WPF进行处理:

  1. 预处理阶段。 输入管理器引发 PreProcessInput 事件。

  2. 预通知阶段。 输入管理器引发 PreNotifyInput 事件。

  3. 将引发WPF输入事件或事件。

  4. 通知后阶段。 输入管理器引发 PostNotifyInput 事件。

  5. 后处理阶段。 输入管理器引发 PostProcessInput 事件。

适用于

另请参阅