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

適用於

另請參閱