Hi There, Is it possible to show the same ribbon group on more than one ribbon tab?
Currently that is not possible. You can submit a feature request for this: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.
Hello Mike,
Thank you for your reply. I am sure it will be nice to have as a feature in the future...
In the mean-time, I have been able to produce the desired results with minimal code and effort.
I use the AfterRibbonSelect event to remove the "Shared" Group from its "Current" Tab and then move it to the New Tab's group list.
Its simple and effective - Only 2 lines of code....
If anyone is interested I could actually post a sample of the code.
Thank you,
Jody
Hello jody-
It's little surprising that this feature doesn't exist. If possible can you provide the sample code.
Thanks!
Never mind. I got it. If at all some one came across same issue.
I removed the ribbon group from the existing tab and added to the one I needed.
vRibGrp = this.utbBookScan.Ribbon.Tabs["Tools"].Groups["XXX"];
vArg.Groups.Add(vRibGrp);
I had this same problem and solved it using built in WPF functionality.
In your resources define your group content ie.
<igRibbon:ToolHorizontalWrapPanel x:Key="ShareMe" x:Shared="false">
<igRibbon:ToolHorizontalWrapPanel>
The important part is x:Shared="false" this means the content will be created new each time the resource is requested. Without specifying x:Shared="false" the items won't be allowed to belong to different trees.
Later in your ribbon you can reference the content like so:
<igRibbon:RibbonGroup Id="GroupOneObjects" Caption="GroupOneObjects">
<StaticResourceExtension ResourceKey="ShareMe" />
</igRibbon:RibbonGroup>
<igRibbon:RibbonGroup Id="GroupTwoObjects" Caption="GroupTwoObjects">