windows - Globals.Ribbons empty on Outlook addin startup? -
After
I am creating a plugin for Outlook 2010 using XML method using VSTO 2010 and Net 4. To design my ribbon because I should hook up the context menu Unfortunately, although the startup event handler of the ad before the ribbon is removed, I use the Globals.Ribbons.MyRibbon
in the ribbon handler. Can not use tax! I have included the following in my Ribbon.cs code:
Partial class ThisRibbonCollection: Microsoft.Office.Tools.Ribbon.RibbonReadOnlyCollection {Internal MyRibbon MyRibbon {{return return this.GetRibbon & LT; MyRibbon & gt; (); }}}
But it seems that RibbonReadOnlyCollection empty when I try to access it from the startup event handler.
On the other hand, if I use a designer, then I can use the collection with no problem. How do I add my new ribbon to the collection? I do not see any set methods or ribbon collections that are tweakable.
ribbon XML globals created with "text" itemprop = "text"> after
Comments
Post a Comment