0

I am creating Outlook ribbon which has couple of dynamic menus in it, I am invalidating ribbon on click of dynamic menu buttons. Problem I am facing is when I say ribbon.invalidate() contents of dynamic menu are not cleared and holds contents which were added previously.

How can I clear the dynamic menu and force to rebuild it ?

Evaldas Buinauskas
  • 13,739
  • 11
  • 55
  • 107

1 Answers1

0

What is your ribbon XML markup?

In essence you needed to implement the getContent callback in the code for the dynamic menu control where you return an appropriate dynamic ribbon XML markup.

You can read more about the Fluent UI in the following articles in MSDN:

Also you can read about dynamic customizations in the Fluent UI and find the sample code:

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
  • I have implemented getContent callback in code which builds the dynamic menu. getContent is called again after i invalidate, dynamic menu is built again with new values but ribbon button refer to the same old dynamic menu again rather than pointing to newly build dynamicMenu – mandar Pande Oct 20 '15 at 09:48
  • can someone help me here? – mandar Pande Oct 23 '15 at 09:27