Microsoft.UI.Input 命名空間

提供 Windows 輸入系統的支援。 這包括:

  • 觸控、觸控筆、滑鼠和鍵盤裝置輸入。
  • 手勢與操作偵測、辨識與處理。
  • 慣性配置、偵測與操控。
  • 輸入指標管理。

類別

名稱 Description
CharacterReceivedEventArgs

包含 InputKeyboardSource.CharacterReceived 事件的事件資料。

ContextMenuKeyEventArgs

包含 InputKeyboardSource.ContextMenuKey 事件的事件資料。

CrossSlidingEventArgs

包含 CrossSliding 事件的事件資料。

DraggingEventArgs

包含 拖曳 事件的事件資料。

EnteredMoveSizeEventArgs

包含 EnteredMoveSize 事件的事件資料。

EnteringMoveSizeEventArgs

包含 EnteringMoveSize 事件的事件資料。

ExitedMoveSizeEventArgs

包含 ExitedMoveSize 事件的資料。

FocusChangedEventArgs

包含 InputFocusController.GotFocus 與 InputFocusController.LostFocus 事件的資料。

FocusNavigationRequest

提供焦點導航事件的詳細資訊。

FocusNavigationRequestEventArgs

包含 InputFocusController.NavigateFocusRequested 與 InputFocusNavigationHost.DepartFocusRequested 事件的資料。

GestureRecognizer

提供手勢與操作辨識、事件監聽器及設定。

欲了解更多 API 細節,請參閱 UWP WinRT 手勢識別器 主題。

HoldingEventArgs

包含 Holding 事件的事件資料。

InputActivationListener

提供存取並觀察物件啟動狀態變化的能力。

InputActivationListenerActivationChangedEventArgs

包含 InputActivationChanged 事件的事件資料。

InputCursor

一個可應用於 InputPointerSource 的視覺指標物件的基底類別。

InputCustomCursor

一個可套用到 InputPointerSource 的自訂視覺指標物件。

未實作:請參考 Windows 應用程式 SDK 的穩定頻道釋出說明。

InputDesktopNamedResourceCursor

代表一個視覺指標物件,使用應用程式資源而非預設系統游標。

InputDesktopResourceCursor

代表一個視覺指標物件,使用應用程式資源而非預設系統游標。

InputFocusChangedEventArgs

包含 InputFocusController.GotFocus 與 InputFocusController.LostFocus 事件的資料。

InputFocusController

代表一個支援 ContentIsland 上焦點事件處理與管理的物件。

InputFocusNavigationHost

允許承載 Content.ContentIsland 的應用程式建立並回應主機應用程式與 ContentIsland 之間的焦點移動請求。

InputKeyboardSource

處理目前執行緒的鍵盤輸入。

InputLightDismissAction

可根據偵測視窗外的互動事件或特定鍵盤輸入,關閉目前視窗。

InputLightDismissEventArgs

提供被 駁回 事件的資料。

InputNonClientPointerSource

在視窗的非用戶端區域處理指標輸入與視窗訊息。

InputObject

所有輸入物件的基底類別。

InputPointerSource

代表一個物件,註冊用來回報指標輸入並提供指標游標及輸入事件處理。

InputPopupController

提供 Windows 輸入系統的支援。 這包括:

  • 觸控、觸控筆、滑鼠和鍵盤裝置輸入。
  • 手勢與操作偵測、辨識與處理。
  • 慣性配置、偵測與操控。
  • 輸入指標管理。
InputPreTranslateKeyboardSource

啟用目前執行緒的鍵盤輸入預翻譯。

InputSystemCursor

代表一個視覺指標物件,使用預設系統游標,如 Hand、 IBeam 和 Arrow。

InputUnderlyingWindowController

提供 Windows 輸入系統的支援。 這包括:

  • 觸控、觸控筆、滑鼠和鍵盤裝置輸入。
  • 手勢與操作偵測、辨識與處理。
  • 慣性配置、偵測與操控。
  • 輸入指標管理。
KeyboardInput

可處理目前執行緒的鍵盤輸入。

KeyEventArgs

提供各種鍵上行與鍵下行事件的事件資料。

ManipulationCompletedEventArgs

包含 ManipulationCompleted 事件的事件資料。

ManipulationInertiaStartingEventArgs

包含 GestureRecognizer.ManipulationInertiaStartingEvent 的事件資料。

ManipulationStartedEventArgs

包含 ManipulationStarted 事件的事件資料。

ManipulationUpdatedEventArgs

包含 ManipulationUpdated 事件的事件資料。

MouseWheelParameters

提供與滑鼠裝置按鈕輪子相關的屬性。

NonClientCaptionTappedEventArgs

包含 CaptionTapped 事件的事件資料。

NonClientPointerEventArgs

提供各種指標事件的事件資料。

NonClientRegionsChangedEventArgs

包含 InputNonClientPointerSource.RegionsChanged 事件的資料。

PointerEventArgs

包含最後指標事件回傳的參數。

PointerPoint

提供與單一滑鼠、觸控筆或觸控觸控筆相關的輸入指標基本屬性。

PointerPointProperties

提供 PointerPoint 物件的擴充屬性。

PointerPredictor

支援產生一組預測當前輸入 Pointer 最可能路徑的 PointerPoint 物件。

RightTappedEventArgs

包含 GestureRecognizer.RightTapped 事件的事件資料。

欲了解更多 API 細節,請參閱 UWP WinRT RightTappedEventArgs 主題。

TappedEventArgs

包含 Tapped 事件的事件資料。

欲了解更多 API 細節,請參閱 UWP WinRT TappedEventArgs 主題。

TouchHitTestingEventArgs

提供 Windows 輸入系統的支援。 這包括:

  • 觸控、觸控筆、滑鼠和鍵盤裝置輸入。
  • 手勢與操作偵測、辨識與處理。
  • 慣性配置、偵測與操控。
  • 輸入指標管理。
WindowRectChangedEventArgs

包含 WindowRectChanged 事件的事件資料。

WindowRectChangingEventArgs

包含 WindowRectChanging 事件的事件資料。

結構

名稱 Description
CrossSlideThresholds

包含 交叉滑動 交互作用的距離閾值。

ManipulationDelta

包含目前操作累積的轉換。

ManipulationVelocities

描述操作發生的速度。

PhysicalKeyStatus

指定實體鍵盤按鍵的可能狀態。

ProximityEvaluation

提供 Windows 輸入系統的支援。 這包括:

  • 觸控、觸控筆、滑鼠和鍵盤裝置輸入。
  • 手勢與操作偵測、辨識與處理。
  • 慣性配置、偵測與操控。
  • 輸入指標管理。

介面

名稱 Description
IPointerPointTransform

提供廣義轉換函數。

列舉

名稱 Description
CrossSlidingState

指定交叉 滑動 事件的可能狀態。

DraggingState

指定 拖曳 事件的可能狀態。

FocusNavigationReason

說明聚焦導航事件的可能原因。

FocusNavigationResult

指定聚焦導航事件可能產生的結果。

GestureSettings

指定應用程式所支援的互動方式。

HoldingState

指定 持有 事件的狀態。

InputActivationState

指定視窗所有可能的啟動狀態。

InputLayoutPolicy

提供 Windows 輸入系統的支援。 這包括:

  • 觸控、觸控筆、滑鼠和鍵盤裝置輸入。
  • 手勢與操作偵測、辨識與處理。
  • 慣性配置、偵測與操控。
  • 輸入指標管理。
InputPointerActivationBehavior

提供 Windows 輸入系統的支援。 這包括:

  • 觸控、觸控筆、滑鼠和鍵盤裝置輸入。
  • 手勢與操作偵測、辨識與處理。
  • 慣性配置、偵測與操控。
  • 輸入指標管理。
InputPointerSourceDeviceKinds

指定可用於 InputPointerSource 的指標輸入裝置類型。

InputSystemCursorShape

指定由 InputSystemCursor 物件支援的標準系統視覺指標類型。

LightDismissReason

提供 Windows 輸入系統的支援。 這包括:

  • 觸控、觸控筆、滑鼠和鍵盤裝置輸入。
  • 手勢與操作偵測、辨識與處理。
  • 慣性配置、偵測與操控。
  • 輸入指標管理。
MoveSizeOperation

指定對物件執行的移動與調整大小操作類型。

NonClientRegionKind

指定非客戶區域的類型。

PointerDeviceType

指定 Windows 識別的指標式輸入裝置類型。

PointerUpdateKind

指定應用程式所支援的指標更新類型。

PopupPointerMode

提供 Windows 輸入系統的支援。 這包括:

  • 觸控、觸控筆、滑鼠和鍵盤裝置輸入。
  • 手勢與操作偵測、辨識與處理。
  • 慣性配置、偵測與操控。
  • 輸入指標管理。
VirtualKeyStates

指定虛擬金鑰的可能狀態。

另請參閱