none
Custom UI XML to Handle Multiple Contexts RRS feed

  • Question

  • In vb.net programming one can "assign" multiple events on a form to a subroutine using the "Handles" parameter.

    Can the same thing be done in some way in the Custom UI XML?

    For instance, in a Word template I'm developing I want the List context menu to look just like the Text context menu. The only way I know to do this is to duplicate all the XML for the Text context menus, change the id attributes to something unique and have the VB call back routine look for both things.

    This doesn't work, but in theory I'm looking for something like this:

    <contextMenu idMso="ContextMenuText" idMso="ContextMenuList">
    Thanks for any insight!
    Ken

    Wednesday, October 30, 2019 7:15 PM