Class CommandService
[Export(typeof(ICommandService))]
public class CommandService : ICommandService
- Inheritance
-
CommandService
- Implements
- Inherited Members
Constructors
CommandService()
public CommandService()
Methods
GetCommand(CommandDefinitionBase, ILayoutItem)
Gets the command for a command definition and layout item.
public Command GetCommand(CommandDefinitionBase commandDefinition, ILayoutItem layoutItem)
Parameters
commandDefinition
CommandDefinitionBaseThe command definition for the command.
layoutItem
ILayoutItemThe layout item for the command. Null for a global command.
Returns
- Command
The associated command.
GetCommandDefinition(Type)
public CommandDefinitionBase GetCommandDefinition(Type commandDefinitionType)
Parameters
commandDefinitionType
Type
Returns
GetTargetableCommand(Command)
public TargetableCommand GetTargetableCommand(Command command)
Parameters
command
Command