How to create extended custom "Context"

The attached demo project is an example of how to create extended custom “Context” in addition to configure, teach, author and drawing context in VC 4.0.

Plugin.ContextChange.zip (258 KB)

Thanks for sharing!

If I want to have menu and sub-items, like Select, could you also talk about this?

Thank you.

 

Just create a class which extends ActionItem and implements IMenuToolCommand and implement IMenuToolCommand’s properties.

MenuToolButtonType should return “ButtonType.DropDown”.

public ButtonType MenuToolButtonType => ButtonType.DropDown;

See this thread https://forum.visualcomponents.com/forums/topic/how-to-add-drop-down-menu-to-ribbon-group/