InputManager.PreProcessInput イベント

定義

InputManager が入力項目の処理を開始すると発生します。

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

イベントの種類

PreProcessInputEventHandler
属性

注釈

フィルターは、リッスンまたはリッスンする任意のPreProcessInputPostProcessInputコードです。 フィルターは、入力ステージング領域を変更できます。

アタッチされた PreProcessInput ハンドラーは逆の順序で呼び出されるため、ユーザーによって追加されたハンドラーは、システム内のハンドラーの前に呼び出されます。

渡された入力をPreProcessInputEventArgs呼び出Cancelすと、PreProcessInputEventHandler入力の処理が取り消されます。

入力は、次の段階で WPF で処理されます。

  1. 前処理ステージ。 入力マネージャーがイベントを PreProcessInput 発生させます。

  2. 事前通知ステージ。 入力マネージャーがイベントを PreNotifyInput 発生させます。

  3. WPF 入力イベントまたはイベントが発生します。

  4. 通知後のステージ。 入力マネージャーがイベントを PostNotifyInput 発生させます。

  5. プロセス後のステージ。 入力マネージャーがイベントを PostProcessInput 発生させます。

適用対象

こちらもご覧ください