Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

antony provides a general way to display commands to out clients. This might be within a ribbonbar, contextmenu or f.e. toolbar. Every provided ExtensionPoint which provides an command deviates from an IAntonyCommand. This contains some general Information to get the command displayed.

AntonyCommandInfo

As the main part of this interface you need to provide an AntonyCommandInfo object holding the essential presentation information. This includes the displayName of your action, Group- and Pagename and an icon. To create this class we recommend to use the AntonyCommandInfoBuilder with comes with the https://www.nuget.org/packages/antony.Groupware.ExtensionInterfaces.

This build is used as a builder is used. The code snippet shows an example

Code Block
languagec#
  public AntonyCommandInfo ActionInfo => new AntonyCommandInfoBuilder()
      .WithDisplayName("My static or dynamic displayname"")
      .WithGeneralPageName()
      .WithGroupName("My RibbonBar Groupname (if provided)")
      .WithSvgImage(Resources.my_image_as_svg)
      .Build();