ApplicationCommands Class

Provides a standard set of application related commands.

System.Object
  System.Windows.Input.ApplicationCommands

Namespace:  System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public static class ApplicationCommands

The ApplicationCommands type exposes the following members.

  NameDescription
Public propertyStatic memberCancelPrintGets the value that represents the Cancel Print command.
Public propertyStatic memberCloseGets the value that represents the Close command.
Public propertyStatic memberContextMenuGets the value that represents the Context Menu command.
Public propertyStatic memberCopyGets the value that represents the Copy command.
Public propertyStatic memberCorrectionList Gets the value that represents the Correction List command.
Public propertyStatic memberCut Gets the value that represents the Cut command.
Public propertyStatic memberDelete Gets the value that represents the Delete command.
Public propertyStatic memberFind Gets the value that represents the Find command.
Public propertyStatic memberHelp Gets the value that represents the Help command.
Public propertyStatic memberNew Gets the value that represents the New command.
Public propertyStatic memberNotACommandRepresents a command which is always ignored.
Public propertyStatic memberOpen Gets the value that represents the Open command.
Public propertyStatic memberPaste Gets the value that represents the Paste command.
Public propertyStatic memberPrint Gets the value that represents the Print command.
Public propertyStatic memberPrintPreview Gets the value that represents the Print Preview command.
Public propertyStatic memberPropertiesGets the value that represents the Properties command.
Public propertyStatic memberRedo Gets the value that represents the Redo command.
Public propertyStatic memberReplace Gets the value that represents the Replace command.
Public propertyStatic memberSave Gets the value that represents the Save command.
Public propertyStatic memberSaveAs Gets the value that represents the Save As command.
Public propertyStatic memberSelectAllGets the value that represents the Select All command.
Public propertyStatic memberStop Gets the value that represents the Stop command.
Public propertyStatic memberUndoGets the value that represents the Undo command.
Top

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. The commands only represent the instance of the RoutedCommand and not the implementation logic for the command. The implementation logic is bound to the command with a CommandBinding. 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. 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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft