Rediger

Del via


ComponentCommands Class

Definition

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

public ref class ComponentCommands abstract sealed
public static class ComponentCommands
type ComponentCommands = class
Public Class ComponentCommands
Inheritance
ComponentCommands

Remarks

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.

Properties

ExtendSelectionDown

Gets the value that represents the Extend Selection Down command.

ExtendSelectionLeft

Gets the value that represents the Extend Selection Left command.

ExtendSelectionRight

Gets the value that represents the Extend Selection Right command.

ExtendSelectionUp

Gets the value that represents the Extend Selection Up command.

MoveDown

Gets the value that represents the Move Down command.

MoveFocusBack

Gets the value that represents the Move Focus Back command.

MoveFocusDown

Gets the value that represents the Move Focus Down command.

MoveFocusForward

Gets the value that represents the Move Focus Forward command.

MoveFocusPageDown

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

MoveFocusPageUp

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

MoveFocusUp

Gets the value that represents the Move Focus Up command.

MoveLeft

Gets the value that represents the Move Left command.

MoveRight

Gets the value that represents the Move Right command.

MoveToEnd

Gets the value that represents the Move To End command.

MoveToHome

Gets the value that represents the Move To Home command.

MoveToPageDown

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

MoveToPageUp

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

MoveUp

Gets the value that represents the Move Up command.

ScrollByLine

Gets the value that represents the Scroll By Line command.

ScrollPageDown

Gets the value that represents the Scroll Page Down command.

ScrollPageLeft

Gets the value that represents the Scroll Page Left command.

ScrollPageRight

Gets the value that represents the Scroll Page Right command.

ScrollPageUp

Gets the value that represents the Scroll Page Up command.

SelectToEnd

Gets the value that represents the Select To End command.

SelectToHome

Gets the value that represents the Select To Home command.

SelectToPageDown

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

SelectToPageUp

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

Applies to

See also