Called when ribbon element is going to display a popup menu.
Override in a derived class for custom processing.