Custom UI XML to Handle Multiple Contexts

Category: open xml format sdk


KenKrugh on Wed, 30 Oct 2019 19:15:14

In 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!