c# - Multiple Ribbons in Outlook Addin -


i have outlook addin need display ribbon in main outlook window , in mail read window well. have added 2 ribbon xml files right markups in them. added c# class implements office.iribbonextensibility interface have implemented getcustomui method returns right xml. did in thisaddin.cs class

protected override office.iribbonextensibility createribbonextensibilityobject()         {             try             {                   _ribbon = new ribbon();                 return _ribbon;             }             catch (exception e)             {              }             return null;         } 

so far good. ribbons load , shows in correct place.

now problem ribbon.cs file getting rather huge callbacks live in file. there way split callbacks multiple classes? if have ribbon1.xml , ribbon2.xml can have equivalent ribbon1.cs , ribbon2.cs?

ok turns out not possible in vsto model. can have 1 class must have event handlers in it. recommended approach use partial classes , split code between multiple code files.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -