-
Notifications
You must be signed in to change notification settings - Fork 4
T_Aml_Editor_Plugin_Contracts_RelayCommand_1
AutomationML edited this page Jun 24, 2019
·
1 revision
AutomationML Editor
Class RelayCommand as it was defined in an MSDN Article by Josh Smith. This class is an implementation pattern for a plugin command, which the AutomationML Editor can bind to a plugin Menu. This Implementation provides the UI with the state information, to enabled or disable a command, and with the invocation Method.
System.Object
Aml.Editor.Plugin.Contracts.RelayCommand(T)
Namespace: Aml.Editor.Plugin.Contracts
Assembly: AML.Editor.PluginContracts (in AML.Editor.PluginContracts.dll) Version: 2.1
C#
public class RelayCommand<T> : ICommandVB
Public Class RelayCommand(Of T)
Implements ICommandC++
generic<typename T>
public ref class RelayCommand : ICommand
- T
- Type of Command Data (this may be the Systemtype 'object')
| Name | Description | |
|---|---|---|
![]() |
RelayCommand(T)() | Initializes a new instance of the RelayCommand(T) class. |
![]() |
RelayCommand(T)(Action(T), Predicate(T)) | Creates a new command. |
| Name | Description | |
|---|---|---|
![]() |
Identifier | Gets or sets the identifier for the command, when the command is published by the plugin class, the Identifier can be set as an PluginCommand |
| Name | Description | |
|---|---|---|
![]() |
CanExecute | Defines the method used to determine whether the command in the current state can be performed. |
![]() |
Execute | Defines the method that will be called when the command is invoked. |
| Name | Description | |
|---|---|---|
![]() |
CanExecuteChanged | Occurs, when property changes are notified, which have an effect on the command execution. |
| Name | Description | |
|---|---|---|
![]() |
_canExecute | The _can execute |
![]() |
_execute | The _execute |
The AutomationML Editor PlugIn Implementation Guide
Copyright © AutomationML e.V. 2018
Send comments on this topic to AutomationML office.
- AutomationML Editor API Reference Guide
- Version History
-
AutomationML Editor Plugin Development
- PluginBase Class
- DockPositionEnum Enumeration
- IAMLEditorExternalsPlugin Interface
- IAMLEditorPlugin Interface
- IAMLEditorPluginMetadata Interface
- IAMLEditorView Interface
- IAMLEditorViewCollection Interface
- INotifyAMLDocumentLoad Interface
- INotifyViewActivation Interface
- ISupportsSelection Interface
- IToolBarIntegration Interface
- PluginCommand Class
- PluginCommandsEnum Enumeration
- Aml.Editor.Plugin.Contracts.Commanding Namespace



