System.Windows.Input 命名空间
提供支持 Windows Presentation Foundation (WPF) 输入系统的类型。 Provides types to support the Windows Presentation Foundation (WPF) input system. 其中包括用于鼠标、键盘和触笔设备的设备抽象类;公共输入管理器类;支持命令和自定义命令的类;以及各种实用工具类。 This includes device abstraction classes for mouse, keyboard, and stylus devices, a common input manager class, support for commanding and custom commands, and various utility classes.
类
AccessKeyEventArgs |
为访问键事件提供信息。Provides information for access keys events. |
AccessKeyManager |
维护所有访问键的注册和 Windows Forms、Win32 和 Windows Presentation Foundation (WPF) 之间互操作键盘命令的处理。Maintains the registration of all access keys and the handling of interop keyboard commands between Windows Forms, Win32, and Windows Presentation Foundation (WPF). |
AccessKeyPressedEventArgs |
为 AccessKeyManager 路由事件提供数据。Provides data for the AccessKeyManager routed event. |
ApplicationCommands |
提供一组与应用程序相关的标准命令。Provides a standard set of application related commands. |
CanExecuteChangedEventManager |
提供 WeakEventManager 实现,以便可以使用“弱事件侦听器”模式附加 CanExecuteChanged 事件的侦听器。Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the CanExecuteChanged event. |
CanExecuteRoutedEventArgs |
为 CanExecute 和 PreviewCanExecute 路由事件提供数据。Provides data for the CanExecute and PreviewCanExecute routed events. |
CommandBinding |
将 RoutedCommand 绑定到实现该命令的事件处理程序。Binds a RoutedCommand to the event handlers that implement the command. |
CommandBindingCollection |
表示 CommandBinding 对象集合。Represents a collection of CommandBinding objects. |
CommandConverter |
在 ICommand 对象与其他类型之间进行转换。Converts an ICommand object to and from other types. |
CommandManager |
提供为类所有者和命令注册 CommandBinding 和 InputBinding 对象、添加和移除命令事件处理程序的与命令有关的实用程序方法,并提供查询命令状态的服务。Provides command related utility methods that register CommandBinding and InputBinding objects for class owners and commands, add and remove command event handlers, and provides services for querying the status of a command. |
ComponentCommands |
提供一组与组件相关的标准命令,这些命令具有预定义的按键输入笔势和 Text 属性。Provides a standard set of component-related commands, which have predefined key input gestures and Text properties. |
Cursor |
代表用于鼠标指针的图像。Represents the image used for the mouse pointer. |
CursorConverter |
在 Cursor 对象与其他类型之间进行转换。Converts a Cursor object to and from other types. |
Cursors |
定义一组默认光标。Defines a set of default cursors. |
ExecutedRoutedEventArgs |
为 Executed 和 PreviewExecuted 路由事件提供数据。Provides data for the Executed and PreviewExecuted routed events. |
FocusManager |
提供一组静态方法、附加属性和事件,用于确定和设置焦点范围以及设置该范围内具有焦点的元素。Provides a set of static methods, attached properties, and events for determining and setting focus scopes and for setting the focused element within the scope. |
InertiaExpansionBehavior |
控制惯性运动期间大小调整操作的减速度。Controls the deceleration of a resizing manipulation during inertia. |
InertiaRotationBehavior |
控制惯性运动期间旋转操作的减速度。Controls the deceleration of a rotation manipulation during inertia. |
InertiaTranslationBehavior |
控制惯性运动期间转换操作的减速度。Controls deceleration on a translation manipulation during inertia. |
InputBinding |
表示 InputGesture 和命令之间的绑定。Represents a binding between an InputGesture and a command. 此命令可能是 RoutedCommand。The command is potentially a RoutedCommand. |
InputBindingCollection |
表示 InputBinding 对象的有序集合。Represents an ordered collection of InputBinding objects. |
InputDevice |
描述输入设备的抽象类。Abstract class that describes an input device. |
InputEventArgs |
为与输入相关的事件提供数据。Provides data for input related events. |
InputGesture |
介绍输入设备笔势的抽象类。Abstract class that describes input device gestures. |
InputGestureCollection |
表示 InputGesture 对象的有序集合。Represents an ordered collection of InputGesture objects. |
InputLanguageChangedEventArgs |
包含与 InputLanguageChanged 事件关联的参数。Contains arguments associated with the InputLanguageChanged event. |
InputLanguageChangingEventArgs |
包含与 InputLanguageChanging 事件关联的参数。Contains arguments associated with the InputLanguageChanging event. |
InputLanguageEventArgs |
提供用于处理输入语言更改的事件的自变量的基类。Provides a base class for arguments for events dealing with a change in input language. |
InputLanguageManager |
提供用于管理 Windows Presentation Foundation (WPF) 中的输入语言的工具。Provides facilities for managing input languages in Windows Presentation Foundation (WPF). |
InputManager |
管理 Windows Presentation Foundation (WPF) 中的所有输入系统。Manages all the input systems in Windows Presentation Foundation (WPF). |
InputMethod |
提供用于管理文本服务框架和与文本服务框架交互的功能。文本服务框架提供对备用文本输入法(例如语音和手写功能)的支持。Provides facilities for managing and interacting with the Text Services Framework, which provides support for alternate text input methods such as speech and handwriting. |
InputMethodStateChangedEventArgs |
包含与 StateChanged 事件关联的参数。Contains arguments associated with the StateChanged event. |
InputScope |
表示与输入法提供的数据范围相关的信息。Represents information related to the scope of data provided by an input method. |
InputScopeConverter |
在 InputScope 与其他类型之间进行转换。Converts a InputScope to and from other types. |
InputScopeName |
为文本输入模式定义名称。Defines a name for text input patterns. |
InputScopeNameConverter |
在 InputScopeName 实例与其他数据类型之间进行转换。Converts instances of InputScopeName to and from other data types. |
InputScopePhrase |
表示建议的输入文本模式。Represents a suggested input text pattern. |
KeyBinding |
将 KeyGesture 绑定到 RoutedCommand(或另一个 ICommand 实现)。Binds a KeyGesture to a RoutedCommand (or another ICommand implementation). |
Keyboard |
表示键盘设备。Represents the keyboard device. |
KeyboardDevice |
表示键盘设备的抽象类。Abstract class that represents a keyboard device. |
KeyboardEventArgs |
为键盘相关事件提供数据。Provides data for keyboard-related events. |
KeyboardFocusChangedEventArgs |
为 LostKeyboardFocus 和 GotKeyboardFocus 路由事件以及相关的附加事件和预览事件提供数据。Provides data for LostKeyboardFocus and GotKeyboardFocus routed events, as well as related attached and Preview events. |
KeyboardInputProviderAcquireFocusEventArgs |
为 KeyboardInputProviderAcquireFocus 事件提供数据。Provides data for the KeyboardInputProviderAcquireFocus event. |
KeyboardNavigation |
在可获得焦点的对象之间提供逻辑和方向导航。Provides logical and directional navigation between focusable objects. |
KeyConverter |
在 Key 对象与其他类型之间进行转换。Converts a Key object to and from other types. |
KeyEventArgs |
为 KeyUp 和 KeyDown 路由事件以及相关的附加和预览事件提供数据。Provides data for the KeyUp and KeyDown routed events, as well as related attached and Preview events. |
KeyGesture |
定义可用来调用命令的组合键。Defines a keyboard combination that can be used to invoke a command. |
KeyGestureConverter |
在 KeyGesture 对象与其他类型之间进行转换。Converts a KeyGesture object to and from other types. |
KeyGestureValueSerializer |
将 String 的实例与 KeyGesture 的实例进行来回转换。Converts instances of String to and from instances of KeyGesture. |
KeyInterop |
提供在 Win32 虚拟键和 WPF Key 枚举之间进行转换的静态方法。Provides static methods to convert between Win32 Virtual-Keys and the WPF Key enumeration. |
KeyValueSerializer |
将 String 的实例与 Key 的实例进行来回转换。Converts instances of String to and from instances of Key. |
Manipulation |
包含用于获取和更新有关操作的信息的方法。Contains methods to get and update information about a manipulation. |
ManipulationBoundaryFeedbackEventArgs |
为 ManipulationBoundaryFeedback 事件提供数据。Provides data for the ManipulationBoundaryFeedback event. |
ManipulationCompletedEventArgs |
为 ManipulationCompleted 事件提供数据。Provides data for the ManipulationCompleted event. |
ManipulationDelta |
包含操作事件发生时聚合的转换数据。Contains transformation data that is accumulated when manipulation events occur. |
ManipulationDeltaEventArgs |
为 ManipulationDelta 事件提供数据。Provides data for the ManipulationDelta event. |
ManipulationInertiaStartingEventArgs |
为 ManipulationInertiaStarting 事件提供数据。Provides data for the ManipulationInertiaStarting event. |
ManipulationPivot |
指定如何使用一个用户输入点发生旋转。Specifies how a rotation occurs with one point of user input. |
ManipulationStartedEventArgs |
为 ManipulationStarted 事件提供数据。Provides data for the ManipulationStarted event. |
ManipulationStartingEventArgs |
为 ManipulationStarting 事件提供数据。Provides data for the ManipulationStarting, event. |
ManipulationVelocities |
描述操作发生的速度。Describes the speed at which manipulations occurs. |
MediaCommands |
提供媒体相关命令的标准集。Provides a standard set of media related commands. |
ModifierKeysConverter |
在 ModifierKeys 对象与其他类型之间进行转换。Converts a ModifierKeys object to and from other types. |
ModifierKeysValueSerializer |
将 String 的实例与 ModifierKeys 的实例进行来回转换。Converts instances of String to and from instances of ModifierKeys. |
Mouse |
将鼠标设备表示为特定线程。Represents the mouse device to a specific thread. |
MouseActionConverter |
在 MouseAction 对象与其他类型之间进行转换。Converts a MouseAction object to and from other types. |
MouseActionValueSerializer |
将 String 的实例与 MouseAction 的实例进行来回转换。Converts instances of String to and from instances of MouseAction. |
MouseBinding |
将 MouseGesture 绑定到 RoutedCommand(或另一个 ICommand 实现)。Binds a MouseGesture to a RoutedCommand (or another ICommand implementation). |
MouseButtonEventArgs |
为鼠标按钮相关事件提供数据。Provides data for mouse button related events. |
MouseDevice |
表示鼠标设备。Represents a mouse device. |
MouseEventArgs |
为与鼠标相关且并不具体涉及鼠标按钮或鼠标滚轮的路由事件(如 MouseMove)提供数据。Provides data for mouse related routed events that do not specifically involve mouse buttons or the mouse wheel, for example MouseMove. |
MouseGesture |
定义可用于调用命令的鼠标输入笔势。Defines a mouse input gesture that can be used to invoke a command. |
MouseGestureConverter |
在 MouseGesture 对象与其他类型之间进行转换。Converts a MouseGesture object to and from other types. |
MouseGestureValueSerializer |
将 String 的实例与 ModifierKeys 的实例进行来回转换。Converts instances of String to and from instances of ModifierKeys. |
MouseWheelEventArgs |
为报告鼠标设备的鼠标滚轮增量值更改的各事件提供数据。Provides data for various events that report changes to the mouse wheel delta value of a mouse device. |
NavigationCommands |
提供一组标准的与导航相关的命令。Provides a standard set of navigation-related commands. |
NotifyInputEventArgs |
为 InputManager 所处理的原始输入提供数据。Provides data for raw input being processed by the InputManager. |
PreProcessInputEventArgs |
提供用于预处理输入事件的数据。Provides data for preprocess input events. |
ProcessInputEventArgs |
为处理后输入事件提供数据。Provides data for postprocess input events. |
QueryCursorEventArgs |
为 QueryCursor 事件提供数据。Provides data for the QueryCursor event. |
RoutedCommand |
定义一个实现 ICommand 并在元素树之内进行路由的命令。Defines a command that implements ICommand and is routed through the element tree. |
RoutedUICommand |
定义一个在元素树中路由并包含一个文本属性的 ICommand。Defines an ICommand that is routed through the element tree and contains a text property. |
StagingAreaInputItem |
在输入管理器处理输入事件时封装该事件。Encapsulates an input event when it is being processed by the input manager. |
Stylus |
提供对有关触笔的一般信息的访问。Provides access to general information about a tablet pen. |
StylusButton |
表示触笔上的按钮。Represents a button on a stylus. |
StylusButtonCollection |
包含 StylusButton 对象的集合。Contains a collection of StylusButton objects. |
StylusButtonEventArgs |
提供有关 StylusButtonDown 和 StylusButtonUp 事件的数据。Provides data for the StylusButtonDown and StylusButtonUp events. |
StylusDevice |
表示与 Tablet PC 一起使用的触笔。Represents a tablet pen used with a Tablet PC. |
StylusDeviceCollection |
包含 StylusDevice 对象,该对象表示平板电脑的触笔设备。Contains the StylusDevice objects that represent a Tablet PC's stylus devices. |
StylusDownEventArgs |
为 StylusDown 事件提供数据。Provides data for the StylusDown event. |
StylusEventArgs |
为与 Stylus 类相关联的多个事件提供数据。Provides data for several of the events that are associated with the Stylus class. |
StylusPointCollection |
包含 StylusPoint 对象的集合。Contains a collection of StylusPoint objects. |
StylusPointDescription |
指定 StylusPoint 中的属性。Specifies the properties that are in a StylusPoint. |
StylusPointProperties |
包含 WPF 支持的每个属性的 StylusPointProperty。Contains a StylusPointProperty for each property that the WPF supports. |
StylusPointProperty |
表示存储在 StylusPoint 中的属性。Represents a property stored in a StylusPoint. |
StylusPointPropertyInfo |
指定 StylusPoint 中属性的约束。Specifies the constraints of a property in a StylusPoint. |
StylusSystemGestureEventArgs |
为 StylusSystemGesture 事件提供数据。Provides data for the StylusSystemGesture event. |
Tablet |
提供对返回挂接到系统的 Tablet 设备的静态方法的访问。Provides access to static methods that return the tablet devices attached to the system. |
TabletDevice |
表示 Tablet PC 的数字化仪设备。Represents the digitizer device of a Tablet PC. |
TabletDeviceCollection |
包含表示 Tablet 设备的数字化仪设备的 TabletDevice 对象。Contains the TabletDevice objects that represent the digitizer devices of a tablet device. |
TextComposition |
表示与文本输入相关的撰写,其中包含撰写文本本身、任何相关控件或系统文本以及撰写的完成状态。Represents a composition related to text input which includes the composition text itself, any related control or system text, and a state of completion for the composition. |
TextCompositionEventArgs |
包含与 TextComposition 的更改关联的参数。Contains arguments associated with changes to a TextComposition. |
TextCompositionManager |
提供用于管理与输入和文本撰写相关的事件的设备。Provides facilities for managing events related to input and text compositions. |
Touch |
提供一个应用程序级服务,该服务处理来自操作系统的多点触控输入并引发 FrameReported 事件。Provides an application-level service that processes multitouch input from the operating system and raises the FrameReported event. |
TouchDevice |
表示触摸屏上的一个手指产生的单个触控输入。Represents a single touch input produced by a finger on a touchscreen. |
TouchEventArgs |
为触摸屏输入事件提供数据。Provides data for touch input events. |
TouchFrameEventArgs |
为 FrameReported 事件提供数据。Provides data for the FrameReported event. |
TouchPoint |
表示来自多点触控消息源的单个触控点。Represents a single touch point from a multitouch message source. |
TouchPointCollection |
包含 TouchPoint 对象的集合。Contains a collection of TouchPoint objects. |
TraversalRequest |
表示要将焦点移到另一个控件的请求。Represents a request to move focus to another control. |
结构
StylusPoint |
表示从数字化仪和触笔收集到的单个数据点。Represents a single data point collected from the digitizer and stylus. |
接口
ICommand |
定义一个命令。Defines a command. |
ICommandSource |
定义一个知道如何调用命令的对象。Defines an object that knows how to invoke a command. |
IInputLanguageSource |
定义要用作输入语言源的对象的必要功能。Defines necessary facilities for an object that intends to behave as an input language source. |
IManipulator |
提供创建操作所需的输入的位置。Provides the position of input that is needed to create a manipulation. |
枚举
CaptureMode |
指定鼠标捕获策略。Specifies the mouse capture policies. |
CursorType |
指定内置光标类型。Specifies the built in cursor types. |
FocusNavigationDirection |
指定用户界面 (UI) 内尝试所需焦点更改请求的方向。 该方向基于 Tab 键顺序,或者根据布局中的相关方向。The direction is either based on tab order or by relative direction in layout. |
ImeConversionModeValues |
描述要由输入法执行的输入转换的模式。Describes a mode of input conversion to be performed by an input method. |
ImeSentenceModeValues |
指定输入法执行的句型转换的模式。Specifies the mode of sentence conversion performed by an input method. |
InputMethodState |
描述 InputMethod 的状态。Describes the state of an InputMethod. |
InputMode |
为输入模式指定可能的值。Specifies the possible values for the input mode. |
InputScopeNameValue |
指定修改解释其他输入法输入的方式的输入范围名称。Specifies the input scope name which modifies how input from alternative input methods is interpreted. |
InputType |
指定所报告输入的可能类型。Specifies the possible types of input being reported. |
Key |
指定键盘上可能的键值。Specifies the possible key values on a keyboard. |
KeyboardNavigationMode |
指定当发生逻辑和方向导航时,对焦点所做更改的可能值。Specifies the possible values for changes in focus when logical and directional navigation occurs. |
KeyStates |
指定用来定义键状态的常数。Specifies constants that define the state of a key. |
ManipulationModes |
指定如何解释操作事件。Specifies how manipulation events are interpreted. |
ModifierKeys |
指定修改键集。Specifies the set of modifier keys. |
MouseAction |
指定定义鼠标所执行的操作的常量。Specifies constants that define actions performed by the mouse. |
MouseButton |
定义用于指定鼠标设备上的按钮的值。Defines values that specify the buttons on a mouse device. |
MouseButtonState |
指定鼠标按钮的可能状态。Specifies the possible states of a mouse button. |
RestoreFocusMode |
指定 Windows Presentation Foundation (WPF) 如何将焦点还原到窗口。Specifies how Windows Presentation Foundation (WPF) restores focus to the window. |
SpeechMode |
指定语音输入的转译模式。Specifies the mode of interpretation for speech input. |
StylusButtonState |
表示 StylusButton 的状态。Represents the state of a StylusButton. |
StylusPointPropertyUnit |
指定 StylusPoint 属性的度量单位。Specifies the unit of measurement for a StylusPoint property. |
SystemGesture |
定义可用的系统笔势。Defines the available system gestures. |
TabletDeviceType |
定义 Tablet 设备所使用的设备类型的值。Defines values for the type of devices the tablet device uses. |
TabletHardwareCapabilities |
定义指定 Tablet 设备(包括桌面数字化仪和鼠标)的硬件功能的值。Defines values that specify the hardware capabilities of a tablet device, including desktop digitizers and mice. |
TextCompositionAutoComplete |
定义用于处理自动完成文本撰写过程的状态集。Defines a set of states for the handling of automatic completion of a text composition. |
TouchAction |
描述特定触控点的操作。Describes the action of a specific touch point. |
委托
AccessKeyPressedEventHandler |
表示将处理 AccessKeyPressed 附加事件的方法。Represents the method that will handle the AccessKeyPressed attached event. |
CanExecuteRoutedEventHandler |
表示用来处理 CanExecute 事件的方法。Represents the method that will handle the CanExecute event. |
ExecutedRoutedEventHandler |
表示将处理 Executed 和 PreviewExecuted 路由事件以及相关附加事件的方法。Represents the method that will handle the Executed and PreviewExecuted routed events, as well as related attached events. |
InputEventHandler |
表示处理输入相关路由事件的方法。Represents the method that handles input related routed events. |
InputLanguageEventHandler |
表示将用来处理 InputLanguageChanged 和 InputLanguageChanging 事件的方法。Represents the method that will handle the InputLanguageChanged and InputLanguageChanging events. |
InputMethodStateChangedEventHandler |
表示用来处理 StateChanged 事件的方法。Represents the method that will handle the StateChanged event. |
KeyboardEventHandler |
表示将处理键盘相关路由事件的方法。Represents the method that will handle keyboard-related routed events. |
KeyboardFocusChangedEventHandler |
表示将处理 LostKeyboardFocus 和 GotKeyboardFocus 路由事件以及相关附加事件和预览事件的方法。Represents the method that will handle the LostKeyboardFocus and GotKeyboardFocus routed events, as well as related attached and Preview events. |
KeyboardInputProviderAcquireFocusEventHandler |
表示用来处理 KeyboardInputProviderAcquireFocus 事件的方法。Represents the method that will handle the KeyboardInputProviderAcquireFocus event. |
KeyEventHandler |
表示将处理 KeyUp 和 KeyDown 路由事件以及相关附加事件和预览事件的方法。Represents the method that will handle the KeyUp and KeyDown routed events, as well as related attached and Preview events. |
MouseButtonEventHandler |
表示将处理与鼠标按钮相关的路由事件的方法,例如 MouseLeftButtonDown。Represents the method that will handle mouse button related routed events, for example MouseLeftButtonDown. |
MouseEventHandler |
表示将处理与鼠标相关且不具体涉及鼠标按钮或鼠标滚轮的路由事件(如 MouseMove)的方法。Represents the method that will handle mouse related routed events that do not specifically involve mouse buttons or the mouse wheel; for example, MouseMove. |
MouseWheelEventHandler |
表示将处理 MouseWheel 和 MouseWheel 路由事件以及相关附加事件和预览事件的方法。Represents the method that will handle the MouseWheel and MouseWheel routed events, as well as related attached and Preview events. |
NotifyInputEventHandler |
表示将处理 PreNotifyInput 和 PostNotifyInput 事件的方法。Represents the method that will handle PreNotifyInput and PostNotifyInput events. |
PreProcessInputEventHandler |
表示用来处理 PreProcessInput 事件的方法。Represents the method that will handle the PreProcessInput event. |
ProcessInputEventHandler |
表示用来处理 PostProcessInput 事件的方法。Represents the method that will handle the PostProcessInput event. |
QueryCursorEventHandler |
表示将处理 QueryCursor 和 QueryCursor 事件以及 QueryCursor 附加事件的方法。Represents the method that will handle the QueryCursor and QueryCursor events, as well as the QueryCursor attached event. |
StylusButtonEventHandler |
表示处理 StylusButtonDown 的 StylusButtonUp 事件或 UIElement 事件的方法。Represents the method that handles either the StylusButtonDown event or the StylusButtonUp event of a UIElement. |
StylusDownEventHandler |
表示处理 StylusDown 事件以及若干变体(包括对应的预览事件)的方法。Represents the method that handles the StylusDown event, as well as several variations, including the corresponding Preview event. 另外,还在基元素类中重新公开该事件。Also re-exposes the event in the base element classes. |
StylusEventHandler |
表示处理实现 IInputElement 接口的类的触笔事件的方法。Represents the method that handles a stylus event for a class that the implements the IInputElement interface. |
StylusSystemGestureEventHandler |
表示处理 UIElement 的 StylusSystemGesture 事件的方法。Represents the method that handles the StylusSystemGesture event of a UIElement. |
TextCompositionEventHandler |
表示将处理与 TextComposition 和 TextCompositionManager 类相关的路由事件的方法(例如 TextInput)。Represents the method that will handle the routed events related to the TextComposition and TextCompositionManager classes, for example TextInput. |
TouchFrameEventHandler |
表示将用来处理 FrameReported 的 Touch 事件的方法。Represents the method that will handle the FrameReported event of a Touch. |