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 ?