InputManager.PreNotifyInput 事件

定義

如果沒有取消輸入,則發生於 PreProcessInput 處理常式完成輸入處理時。Occurs when the PreProcessInput handlers have finished processing the input, if the input was not canceled.

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

備註

「監視」是接聽PreNotifyInputPostNotifyInput的任何程式碼。A monitor is any code that listens to PreNotifyInput or PostNotifyInput. 監視器無法修改輸入暫存區域。Monitors cannot modify the input staging area.

附加至PreNotifyInput的處理常式會以相反順序叫用,以便在系統中的處理常式之前叫用使用者加入的處理常式。The handlers attached to PreNotifyInput are invoked in reverse order so that handlers added by the users are invoked before handlers in the system.

在下列階段中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.

安全性

UIPermission
用於加入或移除事件處理常式。for adding or removing an event handler. 相關聯的列舉:UnrestrictedAssociated enumerations: Unrestricted

適用於

另請參閱