I'm working on an Outlook 2010 add-in that has multiple ribbons created with the Visual Studio 2010 ribbon designer. I've made an additional XML ribbon (I needed to override the default behavior of some built in ribbon buttons, which can't be done with the designer).
Enabling the XML ribbon disables all the designer ribbons because I have to override CreateRibbonExtensibilityObject (ContactButtonOverrides is my XML ribbon):
protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
{
return new ContactButtonOverrides();
}
The base class implementation I'm overriding "returns a RibbonManager object that represents all Ribbon (Visual Designer) items in the project".
Is there any way to use both XML ribbons and ribbons made with the designer? Is there some way of adding my XML ribbon to the default RibbonManager?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…