ApplicationCommands Class

 

Provides a standard set of application related commands.

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

System::Object
  System.Windows.Input::ApplicationCommands

public ref class ApplicationCommands abstract sealed 

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticCancelPrint

Gets the value that represents the Cancel Print command.

System_CAPS_pubpropertySystem_CAPS_staticClose

Gets the value that represents the Close command.

System_CAPS_pubpropertySystem_CAPS_staticContextMenu

Gets the value that represents the Context Menu command.

System_CAPS_pubpropertySystem_CAPS_staticCopy

Gets the value that represents the Copy command.

System_CAPS_pubpropertySystem_CAPS_staticCorrectionList

Gets the value that represents the Correction List command.

System_CAPS_pubpropertySystem_CAPS_staticCut

Gets the value that represents the Cut command.

System_CAPS_pubpropertySystem_CAPS_staticDelete

Gets the value that represents the Delete command.

System_CAPS_pubpropertySystem_CAPS_staticFind

Gets the value that represents the Find command.

System_CAPS_pubpropertySystem_CAPS_staticHelp

Gets the value that represents the Help command.

System_CAPS_pubpropertySystem_CAPS_staticNew

Gets the value that represents the New command.

System_CAPS_pubpropertySystem_CAPS_staticNotACommand

Represents a command which is always ignored.

System_CAPS_pubpropertySystem_CAPS_staticOpen

Gets the value that represents the Open command.

System_CAPS_pubpropertySystem_CAPS_staticPaste

Gets the value that represents the Paste command.

System_CAPS_pubpropertySystem_CAPS_staticPrint

Gets the value that represents the Print command.

System_CAPS_pubpropertySystem_CAPS_staticPrintPreview

Gets the value that represents the Print Preview command.

System_CAPS_pubpropertySystem_CAPS_staticProperties

Gets the value that represents the Properties command.

System_CAPS_pubpropertySystem_CAPS_staticRedo

Gets the value that represents the Redo command.

System_CAPS_pubpropertySystem_CAPS_staticReplace

Gets the value that represents the Replace command.

System_CAPS_pubpropertySystem_CAPS_staticSave

Gets the value that represents the Save command.

System_CAPS_pubpropertySystem_CAPS_staticSaveAs

Gets the value that represents the Save As command.

System_CAPS_pubpropertySystem_CAPS_staticSelectAll

Gets the value that represents the Select All command.

System_CAPS_pubpropertySystem_CAPS_staticStop

Gets the value that represents the Stop command.

System_CAPS_pubpropertySystem_CAPS_staticUndo

Gets the value that represents the Undo command.

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
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: