Skip to content

Properties_T_Aml_Editor_Plugin_Contracts_PluginCommand

AutomationML edited this page Jun 24, 2019 · 1 revision

PluginCommand Properties

AutomationML Editor

The PluginCommand type exposes the following members.

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

See Also

Reference

PluginCommand Class
Aml.Editor.Plugin.Contracts Namespace

Clone this wiki locally