Customizing Shortcut Menus

You can customize several different shortcut menus in Microsoft Outlook by using your add-in to change, disable, or remove existing menu items, or to add new menu items.

You customize shortcut menus by using Microsoft Office Fluent user interface (UI) extensibility, just as you would to customize the user interface on a ribbon in an explorer or inspector.

Because CommandBar objects have been deprecated since Outlook 2010, shortcut menu events of the Application object that relied on the CommandBar object are being deprecated as well, and might not work as expected. These events include the following:

  • AttachmentContextMenuDisplay event

  • ContextMenuClose event

  • FolderContextMenuDisplay event

  • ItemContextMenuDisplay event

  • ShortcutContextMenuDisplay event

  • StoreContextMenuDisplay event

  • ViewContextMenuDisplay event

To customize shortcut menus, implement the IRibbonExtensibility interface in your add-in. Specifically, implement the GetCustomUI method of the IRibbonExtensibility interface so that when Office calls the GetCustomUI method and specifies Microsoft.Outlook.Explorer as the ribbon ID, the method loads the custom shortcut menu that is delimited by the contextMenus tag in XML. For a complete listing of ribbon identifiers, see Implementing the IRibbonExtensibility Interface.

You can use Office Fluent UI extensibility to customize the following types of shortcut menus:

  • Alternative interactions shortcut menus.

  • Attachment shortcut menus.

  • Folder shortcut menus.

  • Item, flagged item, new item, and item selection shortcut menus.

  • Persona shortcut menus.

  • A shortcut menu for a shortcut in the Shortcuts module.

  • Store shortcut menus.

  • View and view user interface shortcut menus.

For more information about customizing shortcut menus, including examples, see Extending the User Interface in Outlook 2010 on the MSDN Web site.

Show:
© 2015 Microsoft