Command Members
Represents a command that can be fired by several UI Elements.
The following tables list the members exposed by the Command type.
Public Constructors
Name | Description | |
---|---|---|
Command | Initializes a new instance of the Command class. |
Top
Public Properties
(see also Protected Properties )
Name | Description | |
---|---|---|
Adapters | Returns a ReadOnlyCollection with the registered CommandAdapter. | |
MapService | This service is used by Command to create adapters for its invokers. | |
Name | Gets the name of the command. | |
Status | Gets or sets the status of the Command, which controls the visible/enabled behavior of both the Command and its associated UI elements. |
Top
Protected Properties
Name | Description | |
---|---|---|
TraceSource | Used by injection to set the TraceSource to use for tracing. |
Top
Public Methods
(see also Protected Methods )
Name | Description | |
---|---|---|
AddCommandAdapter | Registers a CommandAdapter with this command. | |
AddInvoker | Adds a new invoker for this Command. | |
Dispose | Overloaded. | |
Equals | Overloaded. (Inherited from Object.) | |
Execute | Executes this Command by firing the ExecuteAction event. | |
FindAdapters | Returns a ReadOnlyCollection with the registered CommandAdapter which are of the type specified by TAdapter. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
OnBuiltUp | See OnBuiltUp for more information. | |
OnTearingDown | See OnTearingDown for more information. | |
ReferenceEquals | (Inherited from Object.) | |
RemoveCommandAdapter | Removes the CommandAdapter from this command. | |
RemoveInvoker | Removes the invoker from the Command. | |
ToString | (Inherited from Object.) |
Top
Protected Methods
Name | Description | |
---|---|---|
Dispose | Overloaded. | |
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
OnChanged | Fires the Changed event for this command. | |
OnExecuteAction | Handles the ExecuteCommand event and fires the ExecuteAction event accordingly. |
Top
Public Events
Name | Description | |
---|---|---|
Changed | This event signals that some of the command's properties have changed. | |
ExecuteAction | This event signals that this Command is executed. Handle this event to implement the actions to be executed when the command is fired. |
Top
See Also
Reference
Command Class
Microsoft.Practices.CompositeUI.Commands Namespace