PreProcessInputEventArgs 類別

定義

提供前置處理輸入事件的資料。Provides data for preprocess input events.

public ref class PreProcessInputEventArgs sealed : System::Windows::Input::ProcessInputEventArgs
public sealed class PreProcessInputEventArgs : System.Windows.Input.ProcessInputEventArgs
type PreProcessInputEventArgs = class
    inherit ProcessInputEventArgs
Public NotInheritable Class PreProcessInputEventArgs
Inherits ProcessInputEventArgs
繼承

備註

取消前置處理輸入會阻止輸入進行進一步的處理。Canceling a pre-process input stops the input from being processed further. PreNotifyInput接聽以判斷另一個處理常式是否已取消前置處理輸入。Listen for the PreNotifyInput to determine if another handler canceled a pre-process input.

輸入臨時區域會處理輸入WPFWPF事件。The input staging area processes input into WPFWPF events.

即使PreProcessInput其中一個處理常式取消輸入, 還是會呼叫所有事件處理常式。All PreProcessInput event handlers are called, even if one of the handlers cancels the input. 若要確認樹狀結構中進一步的處理常式是否已取消輸入, 請PreNotifyInput接聽事件。To verify if a handler further up the tree canceled the input, listen for the PreNotifyInput event.

PreProcessInputEventArgs會與PreProcessInput事件搭配使用。PreProcessInputEventArgs is used with the PreProcessInput event.

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

屬性

Canceled

判斷是否取消了對輸入事件進行的處理。Determines whether processing of the input event was canceled.

InputManager

取得處理輸入事件的輸入管理員。Gets the input manager processing the input event.

(繼承來源 NotifyInputEventArgs)
StagingItem

取得輸入管理員處理的執行區域輸入項目。Gets the staging area input item being processed by the input manager.

(繼承來源 NotifyInputEventArgs)

方法

Cancel()

取消對輸入事件進行的處理。Cancels the processing of the input event.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
PeekInput()

取得執行區域堆疊上方的輸入事件,但不快顯。Gets, but does not pop, the input event on the top of the staging area stack.

(繼承來源 ProcessInputEventArgs)
PopInput()

移除執行區域堆疊上方的輸入事件。Removes the input event off the top of the staging area stack.

(繼承來源 ProcessInputEventArgs)
PushInput(InputEventArgs, StagingAreaInputItem)

將指定的輸入事件放置到指定執行區域堆疊的上方。Puts the specified input event onto the top of the specified staging area stack.

(繼承來源 ProcessInputEventArgs)
PushInput(StagingAreaInputItem)

將指定的輸入事件放置到執行區域堆疊的上方。Puts the specified input event onto the top of the staging area stack.

(繼承來源 ProcessInputEventArgs)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱