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类中的命令以及其他命令库类中的命令 ( ComponentCommands如和NavigationCommands) 用于表示应用程序程序员经常遇到的一组常见命令。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. 实现逻辑使用CommandBinding绑定到命令。The 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类为PasteCut Copy 、、Redo和命令提供逻辑。 UndoFor 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.

适用于

另请参阅