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 

事件類型

屬性

備註

監視器是接聽 PreNotifyInputPostNotifyInput的任何程序代碼。 監視器無法修改輸入暫存區域。

附加至 PreNotifyInput 的處理程式會以反向順序叫用,以便在系統中的處理程式之前叫用使用者新增的處理程式。

在 WPF 中,輸入會在下列階段中處理:

  1. 前置處理階段。 輸入管理員會 PreProcessInput 引發 事件。

  2. 預先通知階段。 輸入管理員會 PreNotifyInput 引發 事件。

  3. 會引發 WPF 輸入事件或事件。

  4. 通知後階段。 輸入管理員會 PostNotifyInput 引發 事件。

  5. 後續處理階段。 輸入管理員會 PostProcessInput 引發 事件。

適用於

另請參閱