Skip to content

T_Aml_Editor_Plugin_Contracts_PluginCommand

AutomationML edited this page Jun 24, 2019 · 1 revision

PluginCommand Class

AutomationML Editor

Class PluginCommand is used to publish Commands from a PlugIn to the AutomationML Editor.

Inheritance Hierarchy

System.Object
  Aml.Editor.Plugin.Contracts.PluginCommand
Namespace: Aml.Editor.Plugin.Contracts
Assembly: AML.Editor.PluginContracts (in AML.Editor.PluginContracts.dll) Version: 2.1

Syntax

C#

public class PluginCommand : INotifyPropertyChanged

VB

Public Class PluginCommand
	Implements INotifyPropertyChanged

C++

public ref class PluginCommand : INotifyPropertyChanged

The PluginCommand type exposes the following members.

Constructors

 

Name Description
Public method PluginCommand Initializes a new instance of the PluginCommand class.
  Back to Top

Properties

 

Name Description
Public property Command Gets or sets the command, as an example a RelayCommand(T). A Command Parameter is set to the FilePath of the Active AMLDocument if a document is loaded, otherwise it is null or empty.
Public property CommandButtonContent Gets or sets the button content which should be used, if the command is bound to a button control. This is an alternative to the CommandIcon property if the button content is not an icon but any content. The content will be loaded to the Button using a content presenter.
Public property CommandIcon Gets or sets the command icon which should be used, if the command is bound to a button control.
Public property CommandName Gets or sets the name of the command used by the AutomationML Editor to show the Command in the PlugIn Menu
Public property CommandToolTip Gets or sets the command tool tip
Public property DisplayName Gets the display name (This returns only the CommandName). A DisplayName Property is needed to bind the CommandName to UI controls.
Public property IsCheckable Gets or sets a value indicating whether this instance is a checkable command. Checkable Commands get a Check Box in the MenuItem
Public property IsChecked Gets or sets a value indicating whether this instance is a toggle command. Toggle Commands get a Check Box in the MenuItem
  Back to Top

Events

 

Name Description
Public event PropertyChanged Occurs when a property value changes
  Back to Top

See Also

Reference

Aml.Editor.Plugin.Contracts Namespace

Clone this wiki locally