ComponentCommands Class
TOC
Collapse the table of content
Expand the table of content

ComponentCommands Class

 

Provides a standard set of component-related commands, which have predefined key input gestures and RoutedUICommand.Text properties.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

System.Object
  System.Windows.Input.ComponentCommands

public static class ComponentCommands

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticExtendSelectionDown

Gets the value that represents the Extend Selection Down command.

System_CAPS_pubpropertySystem_CAPS_staticExtendSelectionLeft

Gets the value that represents the Extend Selection Left command.

System_CAPS_pubpropertySystem_CAPS_staticExtendSelectionRight

Gets the value that represents the Extend Selection Right command.

System_CAPS_pubpropertySystem_CAPS_staticExtendSelectionUp

Gets the value that represents the Extend Selection Up command.

System_CAPS_pubpropertySystem_CAPS_staticMoveDown

Gets the value that represents the Move Down command.

System_CAPS_pubpropertySystem_CAPS_staticMoveFocusBack

Gets the value that represents the Move Focus Back command.

System_CAPS_pubpropertySystem_CAPS_staticMoveFocusDown

Gets the value that represents the Move Focus Down command.

System_CAPS_pubpropertySystem_CAPS_staticMoveFocusForward

Gets the value that represents the Move Focus Forward command.

System_CAPS_pubpropertySystem_CAPS_staticMoveFocusPageDown

Gets the value that represents the Move Focus Page Down command.

System_CAPS_pubpropertySystem_CAPS_staticMoveFocusPageUp

Gets the value that represents the Move Focus Page Up command.

System_CAPS_pubpropertySystem_CAPS_staticMoveFocusUp

Gets the value that represents the Move Focus Up command.

System_CAPS_pubpropertySystem_CAPS_staticMoveLeft

Gets the value that represents the Move Left command.

System_CAPS_pubpropertySystem_CAPS_staticMoveRight

Gets the value that represents the Move Right command.

System_CAPS_pubpropertySystem_CAPS_staticMoveToEnd

Gets the value that represents the Move To End command.

System_CAPS_pubpropertySystem_CAPS_staticMoveToHome

Gets the value that represents the Move To Home command.

System_CAPS_pubpropertySystem_CAPS_staticMoveToPageDown

Gets the value that represents the Move To Page Down command.

System_CAPS_pubpropertySystem_CAPS_staticMoveToPageUp

Gets the value that represents the Move To Page Up command.

System_CAPS_pubpropertySystem_CAPS_staticMoveUp

Gets the value that represents the Move Up command.

System_CAPS_pubpropertySystem_CAPS_staticScrollByLine

Gets the value that represents the Scroll By Line command.

System_CAPS_pubpropertySystem_CAPS_staticScrollPageDown

Gets the value that represents the Scroll Page Down command.

System_CAPS_pubpropertySystem_CAPS_staticScrollPageLeft

Gets the value that represents the Scroll Page Left command.

System_CAPS_pubpropertySystem_CAPS_staticScrollPageRight

Gets the value that represents the Scroll Page Right command.

System_CAPS_pubpropertySystem_CAPS_staticScrollPageUp

Gets the value that represents the Scroll Page Up command.

System_CAPS_pubpropertySystem_CAPS_staticSelectToEnd

Gets the value that represents the Select To End command.

System_CAPS_pubpropertySystem_CAPS_staticSelectToHome

Gets the value that represents the Select To Home command.

System_CAPS_pubpropertySystem_CAPS_staticSelectToPageDown

Gets the value that represents the Select To Page Down command.

System_CAPS_pubpropertySystem_CAPS_staticSelectToPageUp

Gets the value that represents the Select To Page Up command.

The commands in the ComponentCommands class and commands in the other command library classes, such as ApplicationCommands and NavigationCommands, are intended to represent a set of common commands that application programmers encounter frequently. The commands only represent the instance of the RoutedCommand and not the implementation logic for the command. The implementation logic is bound to the command via a CommandBindings. For example, if the MoveLeft command is executed on a control (the command target), the logic that performs the MoveLeft command may not be provided by the command target, so the application writer is responsible for writing the logic that determines how the command target handles the command.

Many controls do provide implementation logic, though, for many of the commands in the command library. For example, the TextBox class provides logic for the Paste command, Cut command, Copy command, Undo command, and Redo command. See the class documentation for particular control classes for more information.

For more information on commands and commanding, see Commanding Overview.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft