System.Windows.Input 命名空间

此命名空间中最支持Windows Presentation Foundation(WPF)输入系统。 这包括鼠标、键盘和触笔设备的设备抽象类、通用输入管理器类、对命令和自定义命令的支持以及各种实用工具类。 但是,类型不适用于WPF。

名称 说明
AccessKeyEventArgs

提供有关访问密钥事件的信息。

AccessKeyManager

维护所有访问键的注册以及处理 Windows 窗体、Win32 和 Windows Presentation Foundation(WPF)之间的互操作键盘命令。

AccessKeyPressedEventArgs

提供路由事件的数据 AccessKeyManager

ApplicationCommands

提供一组与应用程序相关的标准命令。

CanExecuteChangedEventManager

WeakEventManager提供实现,以便可以使用“弱事件侦听器”模式附加事件的CanExecuteChanged侦听器。

CanExecuteRoutedEventArgs

为事件和CanExecute路由事件提供数据PreviewCanExecute

CommandBinding

将 a RoutedCommand 绑定到实现命令的事件处理程序。

CommandBindingCollection

表示 对象的集合 CommandBinding

CommandConverter

ICommand 对象转换为其他类型的对象和从其他类型转换。

CommandManager

提供用于注册 CommandBinding 类所有者和 InputBinding 命令的对象、添加和删除命令事件处理程序的命令相关实用工具方法,并提供用于查询命令状态的服务。

ComponentCommands

提供一组与组件相关的标准命令,这些命令具有预定义的关键输入手势和 Text 属性。

Cursor

表示用于鼠标指针的图像。

CursorConverter

Cursor 对象转换为其他类型的对象和从其他类型转换。

Cursors

定义一组默认游标。

ExecutedRoutedEventArgs

为事件和Executed路由事件提供数据PreviewExecuted

FocusManager

提供一组静态方法、附加属性和事件,用于确定和设置焦点范围,以及设置作用域内的焦点元素。

InertiaExpansionBehavior

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

InertiaRotationBehavior

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

InertiaTranslationBehavior

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

InputBinding

表示一个 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

InputScope 转换为其他类型的和从其他类型转换。

InputScopeName

定义文本输入模式的名称。

InputScopeNameConverter

InputScopeName 的实例转换为其他数据类型和从其他数据类型转换。

InputScopePhrase

表示建议的输入文本模式。

KeyBinding

将 a KeyGesture 绑定到 RoutedCommand (或其他 ICommand 实现)。

Keyboard

表示键盘设备。

KeyboardDevice

表示键盘设备的抽象类。

KeyboardEventArgs

提供与键盘相关的事件的数据。

KeyboardFocusChangedEventArgs

为和LostKeyboardFocus路由事件以及相关的附加事件和预览事件提供数据GotKeyboardFocus

KeyboardInputProviderAcquireFocusEventArgs

提供事件的数据 KeyboardInputProviderAcquireFocus

KeyboardNavigation

提供可聚焦对象之间的逻辑导航和方向导航。

KeyConverter

Key 对象转换为其他类型的对象和从其他类型转换。

KeyEventArgs

为和KeyUp路由事件以及相关的附加事件和预览事件提供数据KeyDown

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 绑定到 RoutedCommand (或其他 ICommand 实现)。

MouseButtonEventArgs

提供鼠标按钮相关事件的数据。

MouseDevice

表示鼠标设备。

MouseEventArgs

提供与鼠标相关的路由事件的数据,这些事件不专门涉及鼠标按钮或鼠标滚轮,例如 MouseMove

MouseGesture

定义可用于调用命令的鼠标输入手势。

MouseGestureConverter

MouseGesture 对象转换为其他类型的对象和从其他类型转换。

MouseGestureValueSerializer

转换 String 到 /从实例 ModifierKeys的实例。

MouseWheelEventArgs

为报告鼠标设备鼠标滚轮增量值更改的各种事件提供数据。

NavigationCommands

提供一组与导航相关的标准命令。

NotifyInputEventArgs

提供由 /> 处理的原始输入的数据。

PreProcessInputEventArgs

提供预处理输入事件的数据。

ProcessInputEventArgs

为后处理输入事件提供数据。

QueryCursorEventArgs

提供事件的数据 QueryCursor

RoutedCommand

定义实现并通过元素树路由的命令 ICommand

RoutedUICommand

定义通过元素树路由并包含文本属性的一 ICommand 个。

StagingAreaInputItem

在由输入管理器处理输入事件时封装输入事件。

Stylus

提供对有关平板电脑笔的常规信息的访问权限。

StylusButton

表示触笔上的按钮。

StylusButtonCollection

包含对象的集合 StylusButton

StylusButtonEventArgs

StylusButtonDownStylusButtonUp事件提供数据。

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

包含与对 a TextComposition的更改关联的参数。

TextCompositionManager

提供用于管理与输入和文本组合相关的事件的功能。

Touch

提供一个应用程序级服务,该服务处理来自操作系统的多触摸输入并引发 FrameReported 事件。

TouchDevice

表示触摸屏上的手指生成的单个触摸输入。

TouchEventArgs

提供触摸输入事件的数据。

TouchFrameEventArgs

提供事件的数据 FrameReported

TouchPoint

表示多点消息源中的单个触摸点。

TouchPointCollection

包含对象的集合 TouchPoint

TraversalRequest

表示将焦点移动到另一个控件的请求。

结构

名称 说明
StylusPoint

表示从数字化器和触笔收集的单个数据点。

接口

名称 说明
ICommand

定义命令。

ICommandSource

定义知道如何调用命令的对象。

IInputLanguageSource

为打算充当输入语言源的对象定义必要的设施。

IManipulator

提供创建操作所需的输入位置。

枚举

名称 说明
CaptureMode

指定鼠标捕获策略。

CursorType

指定内置游标类型。

FocusNavigationDirection

指定用户界面(UI)中尝试所需焦点更改请求的方向。 方向基于 Tab 键顺序或布局中的相对方向。

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

描述特定触摸点的操作。

委托

名称 说明
AccessKeyPressedEventHandler

表示将处理 AccessKeyPressed 附加事件的方法。

CanExecuteRoutedEventHandler

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

ExecutedRoutedEventHandler

表示将处理 ExecutedPreviewExecuted 路由事件以及相关附加事件的方法。

InputEventHandler

表示处理输入相关路由事件的方法。

InputLanguageEventHandler

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

InputMethodStateChangedEventHandler

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

KeyboardEventHandler

表示将处理与键盘相关的路由事件的方法。

KeyboardFocusChangedEventHandler

表示将处理 LostKeyboardFocusGotKeyboardFocus 路由事件以及相关附加事件和预览事件的方法。

KeyboardInputProviderAcquireFocusEventHandler

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

KeyEventHandler

表示将处理 KeyUpKeyDown 路由事件以及相关附加事件和预览事件的方法。

MouseButtonEventHandler

表示将处理与鼠标按钮相关的路由事件的方法,例如 MouseLeftButtonDown

MouseEventHandler

表示将处理不专门涉及鼠标按钮或鼠标滚轮的与鼠标相关的路由事件的方法;例如, MouseMove.

MouseWheelEventHandler

表示将处理 MouseWheelMouseWheel 路由事件以及相关附加事件和预览事件的方法。

NotifyInputEventHandler

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

PreProcessInputEventHandler

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

ProcessInputEventHandler

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

QueryCursorEventHandler

表示将处理 QueryCursorQueryCursor 事件以及 QueryCursor 附加事件的方法。

StylusButtonEventHandler

表示处理 StylusButtonDown 事件或 StylusButtonUp 事件 UIElement的方法。

StylusDownEventHandler

表示处理 StylusDown 事件的方法以及多个变体,包括相应的预览事件。 此外,重新公开基元素类中的事件。

StylusEventHandler

表示处理实现 IInputElement 接口的类的触笔事件的方法。

StylusSystemGestureEventHandler

表示处理 StylusSystemGesture 事件 UIElement的方法。

TextCompositionEventHandler

表示将处理与 TextCompositionTextCompositionManager 类相关的路由事件的方法,例如 TextInput

TouchFrameEventHandler

表示将处理 FrameReported 事件 Touch的方法。