Microsoft.UI.Xaml.Input 命名空间

定义应用和 UI 元素的输入和输入事件基础结构。

名称 说明
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.GettingFocusUIElement.GettingFocus 事件的数据。

HoldingRoutedEventArgs

保留 事件提供事件数据。

InertiaExpansionBehavior

控制惯性期间调整操作大小的减速。

InertiaRotationBehavior

控制惯性期间旋转操作的减速。

InertiaTranslationBehavior

控制惯性期间翻译操作的减速。

InputScope

表示与输入法提供的数据相关的信息。

InputScopeName

标识与整体 InputScope 相关的特定命名输入范围。

KeyboardAccelerator

表示一个键盘快捷方式(或快捷键),允许用户使用键盘执行操作,而不是直接或通过访问键导航应用 UI。

加速器通常分配给按钮或菜单项。

KeyboardAcceleratorInvokedEventArgs

提供 已调用 事件的事件数据。

KeyRoutedEventArgs

提供 KeyUpKeyDown 路由事件的事件数据。

LosingFocusEventArgs

提供 FocusManager.LosingFocusUIElement.LosingFocus 事件的数据。

ManipulationCompletedRoutedEventArgs

提供 ManipulationCompleted 事件的数据。

ManipulationDeltaRoutedEventArgs

提供 ManipulationDelta 事件的数据。

ManipulationInertiaStartingRoutedEventArgs

ManipulationInertiaStarting 事件提供数据。

ManipulationPivot

指定如何使用一个用户输入点进行轮换。

ManipulationStartedRoutedEventArgs

提供 ManipulationStarted 事件的数据。

ManipulationStartingRoutedEventArgs

ManipulationStarting 事件提供数据。

NoFocusCandidateFoundEventArgs

NoFocusCandidateFound 事件提供数据。

Pointer

为与单个鼠标、笔/触笔或触摸接触关联的输入指针提供基本属性。

PointerRoutedEventArgs

包含最后一个指针事件消息返回的参数。

ProcessKeyboardAcceleratorEventArgs

提供 ProcessKeyboardAccelerators 事件的事件数据。

RightTappedRoutedEventArgs

RightTapped 事件提供事件数据。

StandardUICommand

派生自 XamlUICommand,添加一组具有预定义属性的标准平台命令。

TappedRoutedEventArgs

点击 事件提供事件数据。

XamlUICommand

提供一个基类,用于定义交互式 UI 元素的命令行为,该元素在调用时执行操作(例如发送电子邮件、删除项或提交表单)。

接口

名称 说明
ICommand

定义交互式 UI 元素的命令行为,该元素在调用时执行操作,例如发送电子邮件、删除项目或提交表单。

枚举

名称 说明
FocusInputDeviceKind

指定从中接收输入事件的输入设备类型。

FocusNavigationDirection

指定可以编程方式将焦点从一个元素移动到应用 UI 中的另一个元素的方向。

InputScopeNameValue

指定用于填充 InputScope 的特定命名输入模式( InputScopeName)。

KeyboardAcceleratorPlacementMode

定义指定是否显示键盘快捷方式(快捷键)的常量。

KeyboardNavigationMode

为容器中的制表符序列指定制表位之间的制表符行为。

KeyTipPlacementMode

定义常量,该常量指定键提示相对于 UIElement 的位置。

ManipulationModes

指定目标 UI 元素如何解释操作事件。 此枚举是有标志的,因此可以为 ManipulationMode 属性设置多个模式。

StandardUICommandKind

指定可用于 StandardUICommand 的平台命令集(具有预定义的属性,如图标、键盘加速器和说明)。

XYFocusKeyboardNavigationMode

使用键盘箭头键时,指定 2D 方向导航行为。

XYFocusNavigationStrategy

指定用于使用 XYFocusDownNavigationStrategy、XYFocusLeftNavigationStrategyXYFocusRightNavigationStrategy 和 XYFocusUpNavigationStrategy 在多个候选目标之间导航的歧义策略。

注释

其他因素(如之前聚焦的元素或与导航方向轴的邻近度)可能会影响导航结束结果。

XYFocusNavigationStrategyOverride

指定 XAML 框架如何确定 XY 导航的目标。

重写 XYFocusKeyboardNavigationStrategyMode

委托

名称 说明
DoubleTappedEventHandler

表示将处理 DoubleTapped 事件的方法。

HoldingEventHandler

表示将处理 Holding 事件的方法。

KeyEventHandler

表示处理 KeyUpKeyDown 事件的方法。

ManipulationCompletedEventHandler

表示将处理 ManipulationCompleted 和相关事件的方法。

ManipulationDeltaEventHandler

表示将处理 ManipulationDelta 和相关事件的方法。

ManipulationInertiaStartingEventHandler

表示将处理 ManipulationInertiaStarting 事件的方法。

ManipulationStartedEventHandler

表示将处理 ManipulationStarted 和相关事件的方法。

ManipulationStartingEventHandler

表示将处理 ManipulationStarting 事件的方法。

PointerEventHandler

表示将处理指针消息事件(如 PointerPressed)的方法。

RightTappedEventHandler

表示将处理 RightTapped 路由事件的方法。

TappedEventHandler

表示将处理 点击 事件的方法。