Nps
Nps

Reputation: 1658

Conditionally adding Context Menu Item in Outlook 2010

In my outlook 2010 AddIn, I want to add context menu Item when user right click on Appointment Item. However I don't want to add context menu item blindly, instead context menu Item will differ if user belong to different user group. How can I achieve this functionality with XML configuration file. I can add context menu item with native code but don't know how it can be done using config file.

Upvotes: 1

Views: 1998

Answers (1)

Spencer Williamson
Spencer Williamson

Reputation: 120

In your XML file add the XML tag getVisible and point it to a method that calculates group membership, returning a true or false.

For an excellent example see Norm Estrabrook's post: Show and Hide Context Menu Items in Outlook 2010

Upvotes: 1

Related Questions