How to group WPF Ribbon control tabs for easy navigation?
The ContextTabGroups are used to group ribbon tabs in the application for easy navigation in WPF Ribbon control. You can show the ContextTabGroup by setting the IsGroupVisible property is set to true..
XAML
<syncfusion:Ribbon x:Name="MyRibbon" VerticalAlignment="Top"> <syncfusion:RibbonTab Caption="Home"> <syncfusion:RibbonBar Header="Respond"> <syncfusion:SplitButton SizeForm="Large" Label="New Mail"></syncfusion:SplitButton> <syncfusion:RibbonButton SizeForm="Small" Label="Reply"></syncfusion:RibbonButton> <syncfusion:RibbonButton SizeForm="Small" Label="ReplyAll"></syncfusion:RibbonButton> </syncfusion:RibbonBar> </syncfusion:RibbonTab> <syncfusion:Ribbon.ContextTabGroups> <syncfusion:ContextTabGroup Name="ContextTabGroup1" IsGroupVisible="True" BackColor="Green" Label="TABLE TOOLS"> <syncfusion:RibbonTab Caption="TABLES" IsChecked="False" /> <syncfusion:RibbonTab Caption="DESIGN" IsChecked="False" > <syncfusion:RibbonBar Header="Illustrations"> <syncfusion:SplitButton SizeForm="Large" Label="Picture"></syncfusion:SplitButton> <syncfusion:RibbonButton SizeForm="Small" Label="Comment"></syncfusion:RibbonButton> <syncfusion:RibbonButton SizeForm="Small" Label="Chart"></syncfusion:RibbonButton> </syncfusion:RibbonBar> </syncfusion:RibbonTab> </syncfusion:ContextTabGroup> </syncfusion:Ribbon.ContextTabGroups> </syncfusion:Ribbon>
C#
ContextTabGroup1.IsGroupVisible = true;
The following screenshot displays the Ribbon Contextual Tab Group:
Conclusion
I hope you enjoyed learning how to group WPF Ribbon control tabs for easy navigation.
You can refer to our WPF Ribbon feature tour page to know about its other groundbreaking feature representations and documentation, to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!