views:

13

answers:

1

I'm trying to find a way to update a RibbonMenu's items (like a few RibbonButtons) when the RibbonMenu is clicked (i.e. something like a BeforeDropDown). I know I can update it with the event of another control, but how do it update it when it is clicked?

This http://msdn.microsoft.com/en-us/library/microsoft.office.tools.ribbon.ribbonmenu.aspx doesn't seem to be of much help.

A: 

Make sure your menu is set to Dynamic = True and then use the RibbonMenu's ItemsLoading event. This will allow you to capture what happens to the what's dropped down before it's dropped down.

Otaku