InputManager.PreNotifyInput 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果输入未取消,则当处理程序完成处理输入时 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进行处理:
预处理阶段。 输入管理器引发 PreProcessInput 事件。
预通知阶段。 输入管理器引发 PreNotifyInput 事件。
将引发WPF输入事件或事件。
通知后阶段。 输入管理器引发 PostNotifyInput 事件。
后处理阶段。 输入管理器引发 PostProcessInput 事件。