We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to display items at the right and footer Pane of the ApplicationMenu in WPF Ribbon control?

Platform: WPF |
Control: Ribbon |
Published Date: March 2, 2015 |
Last Revised Date: April 14, 2021

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.

Display the items at right and footer pane of application menu in WPF Ribbon

View sample in GitHub.

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon