BaseCommand Class
Base class for commands. Commands allows you to define actions in one place and then refer to them from all your user interface controls like menu items, toolbar or buttons. Examples of commands are the Copy, Cut, and Paste operations found on many applications. Applications often expose these actions through many mechanisms simultaneously: MenuItems in a Menu, MenuItems on a ContextMenu, Buttons on a ToolBar, keyboard shortcuts and so on.
Methods
From BaseCommand
Name | Description |
---|---|
CanExecute | Determines whether the command can execute in its current state |
CanExecuteChanged | Occurs when changes occur that affect whether or not the command should execute |
Execute | This method is called when command is invoked |
Properties
From BaseCommand
Name | Description | |
---|---|---|
![]() |
Name | Gets the name of the command as it is registered in the CommandManager |
![]() |
OwnerType | Gets the class type of the object that defines the command |


Events
BaseCommand has no events