ComponentCommands Class

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

System.Object
  System.Windows.Input.ComponentCommands

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

public static class ComponentCommands

The ComponentCommands type exposes the following members.

  NameDescription
Public propertyStatic memberExtendSelectionDownGets the value that represents the Extend Selection Down command.
Public propertyStatic memberExtendSelectionLeftGets the value that represents the Extend Selection Left command.
Public propertyStatic memberExtendSelectionRightGets the value that represents the Extend Selection Right command.
Public propertyStatic memberExtendSelectionUpGets the value that represents the Extend Selection Up command.
Public propertyStatic memberMoveDownGets the value that represents the Move Down command.
Public propertyStatic memberMoveFocusBackGets the value that represents the Move Focus Back command.
Public propertyStatic memberMoveFocusDownGets the value that represents the Move Focus Down command.
Public propertyStatic memberMoveFocusForwardGets the value that represents the Move Focus Forward command.
Public propertyStatic memberMoveFocusPageDownGets the value that represents the Move Focus Page Down command.
Public propertyStatic memberMoveFocusPageUpGets the value that represents the Move Focus Page Up command.
Public propertyStatic memberMoveFocusUpGets the value that represents the Move Focus Up command.
Public propertyStatic memberMoveLeftGets the value that represents the Move Left command.
Public propertyStatic memberMoveRightGets the value that represents the Move Right command.
Public propertyStatic memberMoveToEndGets the value that represents the Move To End command.
Public propertyStatic memberMoveToHomeGets the value that represents the Move To Home command.
Public propertyStatic memberMoveToPageDownGets the value that represents the Move To Page Down command.
Public propertyStatic memberMoveToPageUpGets the value that represents the Move To Page Up command.
Public propertyStatic memberMoveUpGets the value that represents the Move Up command.
Public propertyStatic memberScrollByLineGets the value that represents the Scroll By Line command.
Public propertyStatic memberScrollPageDownGets the value that represents the Scroll Page Down command.
Public propertyStatic memberScrollPageLeftGets the value that represents the Scroll Page Left command.
Public propertyStatic memberScrollPageRightGets the value that represents the Scroll Page Right command.
Public propertyStatic memberScrollPageUpGets the value that represents the Scroll Page Up command.
Public propertyStatic memberSelectToEndGets the value that represents the Select To End command.
Public propertyStatic memberSelectToHomeGets the value that represents the Select To Home command.
Public propertyStatic memberSelectToPageDownGets the value that represents the Select To Page Down command.
Public propertyStatic memberSelectToPageUpGets the value that represents the Select To Page Up command.
Top

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft