ApplicationCommands 類別

定義

提供一組標準的應用程式相關命令。Provides a standard set of application related commands.

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

備註

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類別會提供PasteCutCopyUndo和命令的邏輯RedoFor 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

取得表示 Cancel Print 的命令。Gets the value that represents the Cancel Print command.

Close

取得表示 Close 命令的值。Gets the value that represents the Close command.

ContextMenu

取得表示 Context Menu 命令的值。Gets the value that represents the Context Menu command.

Copy

取得表示 Copy 命令的值。Gets the value that represents the Copy command.

CorrectionList

取得表示 Correction List 命令的值。Gets the value that represents the Correction List command.

Cut

取得代表 Cut 命令的值。Gets the value that represents the Cut command.

Delete

取得表示 Delete 命令的值。Gets the value that represents the Delete command.

Find

取得代表 Find 命令的值。Gets the value that represents the Find command.

Help

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

New

取得代表 New 命令的值。Gets the value that represents the New command.

NotACommand

表示通常會被忽略的命令Represents a command which is always ignored.

Open

取得表示 Open 命令的值。Gets the value that represents the Open command.

Paste

取得表示 Paste 命令的值。Gets the value that represents the Paste command.

Print

取得代表 Print 命令的值。Gets the value that represents the Print command.

PrintPreview

取得代表 Print Preview 命令的值。Gets the value that represents the Print Preview command.

Properties

取得表示 Properties 命令的值。Gets the value that represents the Properties command.

Redo

取得代表 Redo 命令的值。Gets the value that represents the Redo command.

Replace

取得表示 Replace 命令的值。Gets the value that represents the Replace command.

Save

取得代表 Save 命令的值。Gets the value that represents the Save command.

SaveAs

取得代表 Save As 命令的值。Gets the value that represents the Save As command.

SelectAll

取得表示全選命令的值。Gets the value that represents the Select All command.

Stop

取得表示 Stop 命令的值。Gets the value that represents the Stop command.

Undo

取得代表 Undo 命令的值。Gets the value that represents the Undo command.

適用於

另請參閱