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类和命令中的其他命令库类,如ApplicationCommandsNavigationCommands,用于表示一组的应用程序程序员经常遇到的常见命令。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. 实现逻辑绑定到通过命令CommandBindingsThe 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类提供了逻辑Paste命令,Cut命令,Copy命令,Undo命令,和Redo命令。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.

属性

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.

适用于

另请参阅