System.Windows.Input 命名空間

此命名空間中的大多數類型支援Windows Presentation Foundation(WPF)輸入系統。 這包括滑鼠、鍵盤和觸控筆裝置的裝置抽象類別、通用的輸入管理器類別、對指令與自訂指令的支援,以及各種工具類別。 然而,部分類型適用於超越WPF。

類別

名稱 Description
AccessKeyEventArgs

提供存取鑰匙事件的資訊。

AccessKeyManager

維護所有存取鍵的註冊,以及 Windows Forms、Win32 與 Windows Presentation Foundation(WPF)間的互通鍵盤指令處理。

AccessKeyPressedEventArgs

提供路由 AccessKeyManager 事件的資料。

ApplicationCommands

提供一套標準的應用程式相關指令。

CanExecuteChangedEventManager

提供一種 WeakEventManager 實作,讓你可以使用「弱事件監聽器」模式來附加事件監 CanExecuteChanged 聽者。

CanExecuteRoutedEventArgs

提供路由CanExecutePreviewCanExecute事件的資料。

CommandBinding

將 a RoutedCommand 綁定到實作該指令的事件處理器。

CommandBindingCollection

代表一組 CommandBinding 物件。

CommandConverter

將 ICommand 物件轉換成其他類型。

CommandManager

提供與命令相關的工具方法,用於為類別擁有者與指令註冊 CommandBinding 與 InputBinding 物件、新增與移除指令事件處理器,並提供查詢指令狀態的服務。

ComponentCommands

提供一套標準的元件相關指令,這些指令有預設的輸入手勢與 Text 屬性。

Cursor

表示用於滑鼠指標的影像。

CursorConverter

將 Cursor 物件轉換成其他類型與物件之間。

Cursors

定義了一組預設游標。

ExecutedRoutedEventArgs

提供路由ExecutedPreviewExecuted事件的資料。

FocusManager

提供一組靜態方法、附加屬性與事件,用於決定與設定焦點範圍,以及設定聚焦元素於範圍內。

InertiaExpansionBehavior

控制慣性期間調整尺寸操作的減速。

InertiaRotationBehavior

控制慣性期間旋轉操作的減速。

InertiaTranslationBehavior

控制慣性平移操作時的減速。

InputBinding

代表 a InputGesture 與指令之間的綁定。 該指令可能是 RoutedCommand.

InputBindingCollection

表示一個有序的物件集合 InputBinding 。

InputDevice

描述輸入裝置的抽象類別。

InputEventArgs

提供與輸入相關的事件資料。

InputGesture

描述輸入裝置手勢的抽象類別。

InputGestureCollection

表示一個有序的物件集合 InputGesture 。

InputLanguageChangedEventArgs

包含與該 InputLanguageChanged 事件相關的論點。

InputLanguageChangingEventArgs

包含與該 InputLanguageChanging 事件相關的論點。

InputLanguageEventArgs

提供一個基底類別,用於處理輸入語言變更事件的參數。

InputLanguageManager

提供管理 Windows Presentation Foundation(WPF) 輸入語言的功能。

InputManager

管理 Windows Presentation Foundation(WPF)中的所有輸入系統。

InputMethod

提供管理與互動文本服務框架的功能,該框架支援語音與手寫等替代文字輸入方式。

InputMethodStateChangedEventArgs

包含與該 StateChanged 事件相關的論點。

InputScope

表示與輸入法所提供資料範圍相關的資訊。

InputScopeConverter

將 a InputScope 轉換成 a,並從其他類型轉換。

InputScopeName

定義文字輸入模式的名稱。

InputScopeNameConverter

將 的 InputScopeName 實例轉換到其他資料型態與資料型別之間。

InputScopePhrase

代表建議輸入文字模式。

KeyBinding

將 a KeyGesture 綁定到 a RoutedCommand (或其他 ICommand 實作)。

Keyboard

代表鍵盤裝置。

KeyboardDevice

抽象類別代表鍵盤裝置。

KeyboardEventArgs

提供鍵盤相關事件的資料。

KeyboardFocusChangedEventArgs

提供 LostKeyboardFocus 活動資料及 GotKeyboardFocus 路由事件,以及相關附加與預覽事件。

KeyboardInputProviderAcquireFocusEventArgs

提供 KeyboardInputProviderAcquireFocus 事件的資料。

KeyboardNavigation

提供可聚焦物體間的邏輯與方向導航。

KeyConverter

將 Key 物件轉換成其他類型與物件之間。

KeyEventArgs

提供KeyUpKeyDown路由事件資料,以及相關附加事件與預覽事件。

KeyGesture

定義可用於呼叫指令的鍵盤組合。

KeyGestureConverter

將 KeyGesture 物件轉換成其他類型與物件之間。

KeyGestureValueSerializer

將 的 String 實例轉換為 ,或從 的 KeyGesture實例轉換。

KeyInterop

提供靜態方法,用於在 Win32 Virtual-Keys 與 WPF Key 枚舉之間轉換。

KeyValueSerializer

將 的 String 實例轉換為 ,或從 的 Key實例轉換。

Manipulation

包含取得及更新操作資訊的方法。

ManipulationBoundaryFeedbackEventArgs

提供 ManipulationBoundaryFeedback 事件的資料。

ManipulationCompletedEventArgs

提供 ManipulationCompleted 事件的資料。

ManipulationDelta

包含在操作事件發生時累積的轉換資料。

ManipulationDeltaEventArgs

提供 ManipulationDelta 事件的資料。

ManipulationInertiaStartingEventArgs

提供 ManipulationInertiaStarting 事件的資料。

ManipulationPivot

指定一個使用者輸入點如何進行旋轉。

ManipulationStartedEventArgs

提供 ManipulationStarted 事件的資料。

ManipulationStartingEventArgs

提供事件資料 ManipulationStarting。

ManipulationVelocities

描述操作發生的速度。

MediaCommands

提供一套標準的媒體相關指令。

ModifierKeysConverter

將 ModifierKeys 物件轉換成其他類型與物件之間。

ModifierKeysValueSerializer

將 的 String 實例轉換為 ,或從 的 ModifierKeys實例轉換。

Mouse

代表滑鼠裝置對特定執行緒。

MouseActionConverter

將 MouseAction 物件轉換成其他類型與物件之間。

MouseActionValueSerializer

將 的 String 實例轉換為 ,或從 的 MouseAction實例轉換。

MouseBinding

將 a MouseGesture 綁定到 a RoutedCommand (或其他 ICommand 實作)。

MouseButtonEventArgs

提供滑鼠按鈕相關事件的資料。

MouseDevice

代表滑鼠裝置。

MouseEventArgs

提供與滑鼠相關的路由事件資料,這些事件不特別涉及滑鼠按鈕或滾輪,例如 MouseMove。

MouseGesture

定義一個滑鼠輸入手勢,可用來呼叫指令。

MouseGestureConverter

將 MouseGesture 物件轉換成其他類型與物件之間。

MouseGestureValueSerializer

將 的 String 實例轉換為 ,或從 的 ModifierKeys實例轉換。

MouseWheelEventArgs

提供各種事件資料,報告滑鼠滾輪 delta 值的變化。

NavigationCommands

提供一套標準的導航相關指令。

NotifyInputEventArgs

提供原始 InputManager輸入資料,由 處理。

PreProcessInputEventArgs

提供預處理輸入事件的資料。

ProcessInputEventArgs

提供後處理輸入事件的資料。

QueryCursorEventArgs

提供 QueryCursor 事件的資料。

RoutedCommand

定義一個指令 ICommand ,實作並路由元素樹。

RoutedUICommand

定義 一個 ICommand ,透過元素樹路由,並包含文字屬性。

StagingAreaInputItem

當輸入事件被輸入管理器處理時,封裝該事件。

Stylus

提供關於平板電腦的一般資訊。

StylusButton

代表觸控筆上的一個按鈕。

StylusButtonCollection

包含一組 StylusButton 物件。

StylusButtonEventArgs

提供 StylusButtonDown 和 StylusButtonUp 事件的數據。

StylusDevice

代表一款與平板電腦搭配使用的平板筆。

StylusDeviceCollection

包含 StylusDevice 代表平板電腦觸控筆裝置的物件。

StylusDownEventArgs

提供 StylusDown 事件的資料。

StylusEventArgs

提供與該類別相關的 Stylus 多個事件資料。

StylusPointCollection

包含一組 StylusPoint 物件。

StylusPointDescription

指定屬於 StylusPoint的屬性。

StylusPointProperties

包含每個WPF所支援屬性的 StylusPointProperty。

StylusPointProperty

代表儲存在 的 StylusPoint屬性。

StylusPointPropertyInfo

指定 中屬性的 StylusPoint限制條件。

StylusSystemGestureEventArgs

提供 StylusSystemGesture 事件的資料。

Tablet

提供靜態方法存取,回傳連接於系統的平板裝置。

TabletDevice

代表平板電腦的數位化裝置。

TabletDeviceCollection

包含 TabletDevice 代表平板裝置數位化裝置的物件。

TextComposition

代表與文本輸入相關的組成,包含合成文本本身、任何相關的控制或系統文本,以及該合成的完成狀態。

TextCompositionEventArgs

包含與變更 TextComposition相關的參數。

TextCompositionManager

提供管理與輸入及文本寫作相關事件的設施。

Touch

提供一個應用層級服務,處理作業系統的多點輸入並引發 FrameReported 事件。

TouchDevice

代表由手指在觸控螢幕上產生的單點觸控輸入。

TouchEventArgs

提供觸控輸入事件的數據。

TouchFrameEventArgs

提供 FrameReported 事件的資料。

TouchPoint

表示多點訊息來源的單一觸控點。

TouchPointCollection

包含一組 TouchPoint 物件。

TraversalRequest

代表請求將焦點轉移到另一個控制點。

結構

名稱 Description
StylusPoint

表示從數位板和手寫筆收集的單一數據點。

介面

名稱 Description
ICommand

定義了一個指令。

ICommandSource

定義一個知道如何呼叫指令的物件。

IInputLanguageSource

定義物件作為輸入語言來源的必要功能。

IManipulator

提供產生操作所需的輸入位置。

列舉

名稱 Description
CaptureMode

指定滑鼠擷取原則。

CursorType

指定內建的數據指標類型。

FocusNavigationDirection

指定使用者介面 (UI) 內嘗試所需焦點變更要求的方向。 方向是根據定位順序或版面配置中的相對方向。

ImeConversionModeValues

描述輸入方法所要執行的輸入轉換模式。

ImeSentenceModeValues

指定輸入方法所執行的句子轉換模式。

InputMethodState

描述 InputMethod的狀態。

InputMode

指定輸入模式的可能值。

InputScopeNameValue

指定輸入範圍名稱,這個名稱會修改如何解譯替代輸入方法的輸入。

InputType

指定要報告之輸入的可能類型。

Key

指定鍵盤上可能的按鍵值。

KeyboardNavigationMode

指定邏輯和方向瀏覽發生時焦點變更的可能值。

KeyStates

指定定義索引鍵狀態的常數。

ManipulationModes

指定如何解譯操作事件。

ModifierKeys

指定修飾詞索引鍵集。

MouseAction

指定常數,定義滑鼠所執行的動作。

MouseButton

定義值,指定滑鼠裝置上的按鈕。

MouseButtonState

指定滑鼠按鈕的可能狀態。

RestoreFocusMode

規定 Windows Presentation Foundation(WPF)如何將焦點還原到視窗。

SpeechMode

指定語音輸入的解譯模式。

StylusButtonState

表示 StylusButton的狀態。

StylusPointPropertyUnit

指定 StylusPoint 屬性的度量單位。

SystemGesture

定義可用的系統手勢。

TabletDeviceType

定義平板電腦裝置所使用的裝置類型值。

TabletHardwareCapabilities

定義值,指定平板電腦裝置的硬體功能,包括桌面數位板和滑鼠。

TextCompositionAutoComplete

定義一組狀態,以處理自動完成文字組合。

TouchAction

描述特定觸控點的動作。

委派

名稱 Description
AccessKeyPressedEventHandler

代表將處理 AccessKeyPressed 附加事件的方法。

CanExecuteRoutedEventHandler

代表處理 CanExecute 事件的方法。

ExecutedRoutedEventHandler

代表處理ExecutedPreviewExecuted路由事件及相關附加事件的方法。

InputEventHandler

代表處理輸入相關路由事件的方法。

InputLanguageEventHandler

代表處理 InputLanguageChanged 和 InputLanguageChanging 事件的方法。

InputMethodStateChangedEventHandler

代表處理 StateChanged 事件的方法。

KeyboardEventHandler

代表處理鍵盤相關路由事件的方法。

KeyboardFocusChangedEventHandler

代表處理LostKeyboardFocusGotKeyboardFocus路由事件、相關附加事件和預覽事件的方法。

KeyboardInputProviderAcquireFocusEventHandler

代表處理 KeyboardInputProviderAcquireFocus 事件的方法。

KeyEventHandler

代表處理KeyUpKeyDown路由事件、相關附加事件和預覽事件的方法。

MouseButtonEventHandler

代表處理滑鼠按鈕相關路由事件的方法,例如 MouseLeftButtonDown。

MouseEventHandler

代表處理與滑鼠相關、不涉及滑鼠按鈕或滾輪的路由事件的方法;例如, MouseMove。

MouseWheelEventHandler

代表處理MouseWheelMouseWheel路由事件、相關附加事件和預覽事件的方法。

NotifyInputEventHandler

代表將處理 PreNotifyInput 事件的方法 PostNotifyInput 。

PreProcessInputEventHandler

代表處理 PreProcessInput 事件的方法。

ProcessInputEventHandler

代表處理 PostProcessInput 事件的方法。

QueryCursorEventHandler

代表處理 QueryCursor 和 QueryCursor 事件以及附加事件的方法 QueryCursor 。

StylusButtonEventHandler

代表處理StylusButtonDown事件或StylusButtonUpUIElement事件的方法。

StylusDownEventHandler

代表處理 StylusDown 事件的方法,以及多種變體,包括對應的預覽事件。 同時也會重新暴露該事件在基礎元素類別中。

StylusEventHandler

代表處理該類別觸控筆事件的方法,該類別實作該 IInputElement 介面。

StylusSystemGestureEventHandler

代表處理 StylusSystemGesture 事件 UIElement的方法。

TextCompositionEventHandler

代表將處理與TextCompositionTextCompositionManager類別相關的路由事件的方法,例如TextInput。

TouchFrameEventHandler

代表將處理FrameReportedTouch事件的方法。