ComponentCommands ComponentCommands ComponentCommands ComponentCommands Class

定义

提供一组标准的与组件相关的命令,这些命令具有预定义的按键输入笔势和 Text 属性。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
继承
ComponentCommandsComponentCommandsComponentCommandsComponentCommands

注解

ComponentCommands类中的命令以及其他命令库类中的命令 ( ApplicationCommands如和NavigationCommands) 用于表示应用程序程序员经常遇到的一组常见命令。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. 命令仅表示的实例RoutedCommand , 而不表示命令的实现逻辑。The commands only represent the instance of the RoutedCommand and not the implementation logic for the command. 实现逻辑通过CommandBindings绑定到命令。The implementation logic is bound to the command via a CommandBindings. 例如, 如果MoveLeft在控件 (命令目标) 上执行命令, 则命令目标可能不提供MoveLeft执行命令的逻辑, 因此, 应用程序编写器负责编写确定如何命令目标处理命令。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. 例如TextBox , RedoPaste为命令Cut 、命令Copy 、命令、命令和命令提供逻辑。UndoFor 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.

属性

ExtendSelectionDown ExtendSelectionDown ExtendSelectionDown ExtendSelectionDown

获取表示“向下扩展选择”命令的值。Gets the value that represents the Extend Selection Down command.

ExtendSelectionLeft ExtendSelectionLeft ExtendSelectionLeft ExtendSelectionLeft

获取表示 Extend Selection Left 命令的值。Gets the value that represents the Extend Selection Left command.

ExtendSelectionRight ExtendSelectionRight ExtendSelectionRight ExtendSelectionRight

获取表示 Extend Selection Right 命令的值。Gets the value that represents the Extend Selection Right command.

ExtendSelectionUp ExtendSelectionUp ExtendSelectionUp ExtendSelectionUp

获取表示 Extend Selection Up 命令的值。Gets the value that represents the Extend Selection Up command.

MoveDown MoveDown MoveDown MoveDown

获取表示“下移”命令的值。Gets the value that represents the Move Down command.

MoveFocusBack MoveFocusBack MoveFocusBack MoveFocusBack

获取表示“焦点后移”命令的值。Gets the value that represents the Move Focus Back command.

MoveFocusDown MoveFocusDown MoveFocusDown MoveFocusDown

获取表示“焦点下移”命令的值。Gets the value that represents the Move Focus Down command.

MoveFocusForward MoveFocusForward MoveFocusForward MoveFocusForward

获取表示 Move Focus Forward 命令的值。Gets the value that represents the Move Focus Forward command.

MoveFocusPageDown MoveFocusPageDown MoveFocusPageDown MoveFocusPageDown

获取表示“焦点页下移”命令的值。Gets the value that represents the Move Focus Page Down command.

MoveFocusPageUp MoveFocusPageUp MoveFocusPageUp MoveFocusPageUp

获取表示“焦点页上移”命令的值。Gets the value that represents the Move Focus Page Up command.

MoveFocusUp MoveFocusUp MoveFocusUp MoveFocusUp

获取表示“焦点上移”命令的值。Gets the value that represents the Move Focus Up command.

MoveLeft MoveLeft MoveLeft MoveLeft

获取表示“左移”命令的值。Gets the value that represents the Move Left command.

MoveRight MoveRight MoveRight MoveRight

获取表示“右移”命令的值。Gets the value that represents the Move Right command.

MoveToEnd MoveToEnd MoveToEnd MoveToEnd

获取表示“移动到末尾”命令的值。Gets the value that represents the Move To End command.

MoveToHome MoveToHome MoveToHome MoveToHome

获取表示“移动到开头”命令的值。Gets the value that represents the Move To Home command.

MoveToPageDown MoveToPageDown MoveToPageDown MoveToPageDown

获取表示“移到下一页”命令的值。Gets the value that represents the Move To Page Down command.

MoveToPageUp MoveToPageUp MoveToPageUp MoveToPageUp

获取表示“移动到上一页”命令的值。Gets the value that represents the Move To Page Up command.

MoveUp MoveUp MoveUp MoveUp

获取表示“向上移动”命令的值。Gets the value that represents the Move Up command.

ScrollByLine ScrollByLine ScrollByLine ScrollByLine

获取表示“按行滚动”命令的值。Gets the value that represents the Scroll By Line command.

ScrollPageDown ScrollPageDown ScrollPageDown ScrollPageDown

获取表示 Scroll Page Down 命令的值。Gets the value that represents the Scroll Page Down command.

ScrollPageLeft ScrollPageLeft ScrollPageLeft ScrollPageLeft

获取表示“向左滚动一页”命令的值。Gets the value that represents the Scroll Page Left command.

ScrollPageRight ScrollPageRight ScrollPageRight ScrollPageRight

获取表示“向右滚动一页”命令的值。Gets the value that represents the Scroll Page Right command.

ScrollPageUp ScrollPageUp ScrollPageUp ScrollPageUp

获取表示“向上滚动页面”命令的值。Gets the value that represents the Scroll Page Up command.

SelectToEnd SelectToEnd SelectToEnd SelectToEnd

获取表示“选择到末尾”命令的值。Gets the value that represents the Select To End command.

SelectToHome SelectToHome SelectToHome SelectToHome

获取表示“选择到开头”命令的值。Gets the value that represents the Select To Home command.

SelectToPageDown SelectToPageDown SelectToPageDown SelectToPageDown

获取表示“选择下一页”命令的值。Gets the value that represents the Select To Page Down command.

SelectToPageUp SelectToPageUp SelectToPageUp SelectToPageUp

获取表示“选择上一页”命令的值。Gets the value that represents the Select To Page Up command.

适用于

另请参阅