Microsoft.UI.Xaml.Input 命名空間

定義應用程式和 UI 元素的輸入和輸出事件基礎結構。

類別

名稱 Description
AccessKeyDisplayDismissedEventArgs

提供 AccessKeyDisplayDismissed 事件的事件資料。

AccessKeyDisplayRequestedEventArgs

提供 AccessKeyDisplayRequested 事件的事件資料。

AccessKeyInvokedEventArgs

提供 AccessKeyInvoked 事件的事件資料。

AccessKeyManager

一個輔助類別,能啟用 XAML 使用者介面的存取金鑰(助記法)。

CanExecuteRequestedEventArgs

提供 CanExecuteRequested 事件的事件資料。

CharacterReceivedRoutedEventArgs

提供 UIElement.CharacterReceived 路由事件的事件資料。

ContextRequestedEventArgs

提供 ContextRequested 事件的事件資料。

DoubleTappedRoutedEventArgs

提供 DoubleTapped 事件的事件資料。

ExecuteRequestedEventArgs

提供 ExecuteRequested 事件的事件資料。

FindNextElementOptions

提供選項,協助識別下一個可程式化接收導航焦點的元素。

FocusManager

一個輔助類別,能在應用程式中所有元素中全域管理焦點、動作與事件。

FocusManagerGotFocusEventArgs

提供 GotFocus 活動的數據。

FocusManagerLostFocusEventArgs

提供 LostFocus 事件的數據。

FocusMovementResult

代表焦點作業的狀態。

GettingFocusEventArgs

提供 FocusManager.GettingFocus 與 UIElement.GettingFocus 事件的資料。

HoldingRoutedEventArgs

提供 Holding 活動的活動資料。

InertiaExpansionBehavior

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

InertiaRotationBehavior

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

InertiaTranslationBehavior

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

InputScope

代表與輸入方法所提供資料相關的資訊。

InputScopeName

識別與整體 輸入範圍相關的特定命名輸入範圍。

KeyboardAccelerator

代表一個鍵盤捷徑(或加速器),讓使用者能直接使用鍵盤執行動作,而不必直接或透過存取鍵在應用程式介面中操作。

加速器通常分配給按鈕或選單項目。

KeyboardAcceleratorInvokedEventArgs

提供 被召喚 事件的事件資料。

KeyRoutedEventArgs

提供 KeyUp 與 KeyDown 路由事件的事件資料。

LosingFocusEventArgs

提供 FocusManager.LosingFocus 與 UIElement.LosingFocus 事件的資料。

ManipulationCompletedRoutedEventArgs

提供操作 完成 事件的資料。

ManipulationDeltaRoutedEventArgs

提供 ManipulationDelta 事件的資料。

ManipulationInertiaStartingRoutedEventArgs

提供 ManipulationInertiaStarting 事件的資料。

ManipulationPivot

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

ManipulationStartedRoutedEventArgs

提供 ManipulationStarted 事件的資料。

ManipulationStartingRoutedEventArgs

提供 ManipulationStarting 事件的資料。

NoFocusCandidateFoundEventArgs

提供 NoFocusCandidateFound 事件的數據。

Pointer

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

PointerRoutedEventArgs

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

ProcessKeyboardAcceleratorEventArgs

提供 ProcessKeyboardAccelerators 事件的事件資料。

RightTappedRoutedEventArgs

提供 RightTapped 事件的事件資料。

StandardUICommand

源自 XamlUICommand,加入一組標準平台指令並預設屬性。

TappedRoutedEventArgs

提供 Tapped 事件的事件資料。

XamlUICommand

提供一個基底類別,用以定義互動式 UI 元素的指令行為,該元素在呼叫時執行動作(例如發送電子郵件、刪除項目或提交表單)。

介面

名稱 Description
ICommand

定義互動式 UI 元素的指令行為,當被呼叫時執行動作,例如發送電子郵件、刪除項目或提交表單。

列舉

名稱 Description
FocusInputDeviceKind

指定接收輸入事件的輸入裝置類型。

FocusNavigationDirection

指定你可以在應用程式介面中,程式化地將焦點從一個元素移動到另一個元素的方向。

InputScopeNameValue

指定一個特定命名的輸入模式(InputScopeName)用來填充 InputScope。

KeyboardAcceleratorPlacementMode

定義常數,指定是否顯示鍵盤快捷鍵(加速器)。

KeyboardNavigationMode

指定容器內某一制表序列在分頁停止點間的分頁行為。

KeyTipPlacementMode

定義了指定鍵尖與 UIElement 相對於位置的常數。

ManipulationModes

指定目標 UI 元素如何解讀操作事件。 這個列舉是按旗幟排列的,所以你可以為 ManipulationMode 屬性設定多個模式。

StandardUICommandKind

指定可用於 StandardUICommand 的平台指令集合(具備預設屬性如圖示、鍵盤加速器與描述)。

XYFocusKeyboardNavigationMode

指定使用鍵盤方向鍵時的 2D 方向導航行為。

XYFocusNavigationStrategy

指定使用 XYFocusDownNavigationStrategy、 XYFocusLeftNavigationStrategy、 XYFocusRightNavigationStrategy 及 XYFocusUpNavigationStrategy 在多個候選目標間導航的消歧策略。

Note

其他因素,如先前聚焦的元素或與導航方向軸線的接近程度,也會影響導航的最終結果。

XYFocusNavigationStrategyOverride

規定 XAML 框架如何決定 XY 導覽的目標。

覆蓋 XYFocusButtonNavigationStrategyMode。

委派

名稱 Description
DoubleTappedEventHandler

代表處理 DoubleTapped 事件的方法。

HoldingEventHandler

代表處理 Holding 事件的方法。

KeyEventHandler

代表處理 KeyUp 與 KeyDown 事件的方法。

ManipulationCompletedEventHandler

代表處理 ManipulationCompleted 及相關事件的方法。

ManipulationDeltaEventHandler

代表處理 ManipulationDelta 及相關事件的方法。

ManipulationInertiaStartingEventHandler

代表處理 ManipulationInertiaStarting 事件的方法。

ManipulationStartedEventHandler

代表將處理 ManipulationStarted 及相關事件的方法。

ManipulationStartingEventHandler

代表處理 ManipulationStarting 事件的方法。

PointerEventHandler

代表處理指標訊息事件(如 PointerPressed)的方法。

RightTappedEventHandler

代表處理 RightTipped 路由事件的方法。

TappedEventHandler

代表處理 Tapped 事件的方法。