Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

General

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

  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();

  • No labels