ApplicationCommands ApplicationCommands ApplicationCommands ApplicationCommands Class

定义

提供一组与应用程序相关的标准命令。Provides a standard set of application related commands.

public ref class ApplicationCommands abstract sealed
public static class ApplicationCommands
type ApplicationCommands = class
Public Class ApplicationCommands
继承
ApplicationCommandsApplicationCommandsApplicationCommandsApplicationCommands

注解

中的命令ApplicationCommands类和命令中的其他命令库类,如ComponentCommandsNavigationCommands,用于表示一组的应用程序程序员经常遇到的常见命令。The commands in the ApplicationCommands class and commands in the other command library classes, such as ComponentCommands 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. 实现逻辑绑定到与命令CommandBindingThe implementation logic is bound to the command with a CommandBinding. 例如,如果Close控件,后者将执行的逻辑上执行命令Close命令可能无法提供由该控件,因此应用程序编写器将负责编写逻辑,用于确定如何将控件处理命令。For example, if the Close command is executed on a control, the logic which performs the Close command may not be provided by the control, so the application writer will be responsible for writing the logic that determines how the control will handle the command.

许多控件对于许多命令库中的命令提供的实现逻辑。Many controls do provide implementation logic for many of the commands in the command library. 例如,TextBox类提供了逻辑PasteCutCopyUndo,并Redo命令。For example, the TextBox class provides logic for the Paste, Cut, Copy, Undo, and Redo commands.

有关详细信息命令和命令,请参阅命令概述For more information on commands and commanding see the Commanding Overview.

属性

CancelPrint CancelPrint CancelPrint CancelPrint

获取表示“取消打印”命令的值。Gets the value that represents the Cancel Print command.

Close Close Close Close

获取表示“关闭”命令的值。Gets the value that represents the Close command.

ContextMenu ContextMenu ContextMenu ContextMenu

获取表示上下文菜单命令的值。Gets the value that represents the Context Menu command.

Copy Copy Copy Copy

获取表示“复制”命令的值。Gets the value that represents the Copy command.

CorrectionList CorrectionList CorrectionList CorrectionList

获取表示“更正列表”命令的值。Gets the value that represents the Correction List command.

Cut Cut Cut Cut

获取表示“剪切”命令的值。Gets the value that represents the Cut command.

Delete Delete Delete Delete

获取表示“删除”命令的值。Gets the value that represents the Delete command.

Find Find Find Find

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

Help Help Help Help

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

New New New New

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

NotACommand NotACommand NotACommand NotACommand

表示始终被忽略的命令。Represents a command which is always ignored.

Open Open Open Open

获取表示“打开”命令的值。Gets the value that represents the Open command.

Paste Paste Paste Paste

获取表示“粘贴”命令的值。Gets the value that represents the Paste command.

Print Print Print Print

获取表示“打印”命令的值。Gets the value that represents the Print command.

PrintPreview PrintPreview PrintPreview PrintPreview

获取表示“打印预览”命令的值。Gets the value that represents the Print Preview command.

Properties Properties Properties Properties

获取表示“属性”命令的值。Gets the value that represents the Properties command.

Redo Redo Redo Redo

获取表示“重做”命令的值。Gets the value that represents the Redo command.

Replace Replace Replace Replace

获取表示“替换”命令的值。Gets the value that represents the Replace command.

Save Save Save Save

获取表示“保存”命令的值。Gets the value that represents the Save command.

SaveAs SaveAs SaveAs SaveAs

获取表示“另存为”命令的值。Gets the value that represents the Save As command.

SelectAll SelectAll SelectAll SelectAll

获取表示“全选”命令的值。Gets the value that represents the Select All command.

Stop Stop Stop Stop

获取表示“停止”命令的值。Gets the value that represents the Stop command.

Undo Undo Undo Undo

获取表示“撤销”命令的值。Gets the value that represents the Undo command.

适用于

另请参阅