Hi,
I'm Using Composite Application Architecture for my application. I want to add Ribbon Tab Item from my loosely couple modules. In modules I can have only User Controls. I want to know how I can add user control for ribbon tab collection as a Ribbon Tab Item.
You ultimately need to create a RibbonTabItem and then you could set its Content as your usercontrol but you are going to have to provide your own glue/logic for creating the tab, initializing it and adding that to the XamRibbon's Tabs collection. This could be done by writing your own Region for xamRibbon if you're using CAL.
Thanx for your reply. I want to know more details about it. What you meant by "Writing your own region"
What I have done is,
I have defined XamRibbon as a region & created custom region adapter for XamRibbon, This adapter handle adding Tabs to ribbon.
My Modules they have Views that inherit from RibbonTabItem & they are registering with XamRibbon's defined region.
with this approach I cant add contextual tabs into XamRibbon. Because whole ribbon is defined as region, custom adapter add all registered tabs into normal tab collection, because he knows only one region.