How to display items at right and footer Pane in WPF Ribbon?
You can add the ApplicationMenu by using the ApplicationMenu property of WPF Ribbon control. The ApplicationMenu includes the MenuItems and ApplicationItems to display items at the right and footer pane respectively.
XAML
<Syncfusion:Ribbon Name="ribbon" VerticalAlignment="Top"> <Syncfusion:Ribbon.TabPanelItem> <Syncfusion:RibbonButton SizeForm="ExtraSmall" SmallIcon="download.jpg"/> </Syncfusion:Ribbon.TabPanelItem> <Syncfusion:Ribbon.ApplicationMenu > <Syncfusion:ApplicationMenu IsPopupOpen="False" > <Syncfusion:ApplicationMenu.ApplicationItems> <Syncfusion:RibbonButton Label="Edit options"/> </Syncfusion:ApplicationMenu.ApplicationItems> <Syncfusion:ApplicationMenu.MenuItems> <TextBlock MinWidth="300" FontWeight="Bold">Create New Outlook Item</TextBlock> <Separator Padding="0"/> <Syncfusion:SimpleMenuButton Label="Recent Document lists"/> <Syncfusion:SimpleMenuButton Label="Document lists"/> </Syncfusion:ApplicationMenu.MenuItems> <Syncfusion:SimpleMenuButton Label="save"/> <Syncfusion:SplitMenuButton Label="save As"> <Syncfusion:ApplicationMenuGroup Header="Save in another format" IconBarEnabled="False"> <Syncfusion:SimpleMenuButton Label="Save As" Description="save in your own format"/> </Syncfusion:ApplicationMenuGroup> </Syncfusion:SplitMenuButton> <Syncfusion:SimpleMenuButton Label="Discard"/> <Separator Margin="40,0,0,0"/> <Syncfusion:SimpleMenuButton Label="Delete"/> <Syncfusion:SplitMenuButton Label="Share"> <Syncfusion:ApplicationMenuGroup Header="Share" > <Syncfusion:SimpleMenuButton Label="Email" Description="Send as attachment"/> <Syncfusion:SimpleMenuButton Label="Post to blog" Description="Create new blog"/> <Syncfusion:SimpleMenuButton Label="Present online" Description="Save to Cloud"/> <Syncfusion:SimpleMenuButton Label="Invite People" Description="Present the document"/> </Syncfusion:ApplicationMenuGroup> </Syncfusion:SplitMenuButton> </Syncfusion:ApplicationMenu> </Syncfusion:Ribbon.ApplicationMenu> </Syncfusion:Ribbon>
C#
Ribbon ribbon = new Ribbon(); SimpleMenuButton rightTab1 = new SimpleMenuButton() { Label = "Recent Document list" }; SimpleMenuButton rightTab2 = new SimpleMenuButton() { Label = "Document list" }; SimpleMenuButton leftTab1 = new SimpleMenuButton() { Label = "Save" }; SplitMenuButton leftTab2 = new SplitMenuButton() { Label = "save As" }; ApplicationMenuGroup leftTabRoot = new ApplicationMenuGroup { Header = "Save in another format"}; SimpleMenuButton leftTabItem1 = new SimpleMenuButton() { Label = "Save",Description="save in your own format" }; leftTabRoot.Items.Add(leftTabItem1); leftTab2.Items.Add(leftTabRoot); Separator sep = new Separator(); sep.Margin = new Thickness(40, 0, 0, 0); SimpleMenuButton leftTab3 = new SimpleMenuButton() { Label = "Discard" }; SimpleMenuButton leftTab4 = new SimpleMenuButton() { Label = "Delete" }; RibbonButton footerTab = new RibbonButton() { Label = "Edit options" }; ApplicationMenu app = new ApplicationMenu(); ribbon.ApplicationMenu = app; ribbon.ApplicationMenu.MenuItems.Add(rightTab1); ribbon.ApplicationMenu.MenuItems.Add(rightTab2); ribbon.ApplicationMenu.Items.Add(leftTab1); ribbon.ApplicationMenu.Items.Add(leftTab2); ribbon.ApplicationMenu.Items.Add(sep); ribbon.ApplicationMenu.Items.Add(leftTab3); ribbon.ApplicationMenu.Items.Add(leftTab4); ribbon.ApplicationMenu.ApplicationItems.Add(footerTab); grid.Children.Add(ribbon);
The following screenshot displays how to add items at the Right and Footer Pane.
Conclusion
I hope you enjoyed learning about how to display items at right and footer Pane in WPF Ribbon.
You can refer to our WPF Ribbon feature tour page to know about its other groundbreaking feature representations. You can also explore 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!