Version

Add a Tool to the Tool Area of the Ribbon’s Application Menu

{Warning}

The Ribbon has a unique menu area that can be opened by clicking the large round button in the upper-left corner of the Ribbon. The drop-down Application Menu contains three areas where you can place almost any type of tool. These three areas are the ToolAreaLeft , ToolAreaRight , and FooterToolbar . The procedure for adding a tool to any one of these areas is very similar to adding a tool to a standard toolbar.

The following code demonstrates how to create a ButtonTool , add it to the Tools collection, and then add it to the left tool area.

Note
Note

This example assumes that you have already dropped a WinToolbarsManager™ component from the toolbox onto the form).

example of ultratoolbarsmanager application menu for ribbon using the code below

In Visual Basic:

Imports Infragistics.Win.UltraWinToolbars
...
Dim NewMenuItem As New ButtonTool("NewMenuItem")
NewMenuItem.SharedProps.Caption = "New..."
Me.UltraToolbarsManager1.Tools.Add(newMenuItem)
Me.UltraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaLeft.Tools.AddTool( _
  "NewMenuItem")

In C#:

using Infragistics.Win.UltraWinToolbars;
...
ButtonTool newMenuItem = new ButtonTool("NewMenuItem");
newMenuItem.SharedProps.Caption = "New...";
this.ultraToolbarsManager1.Tools.Add(newMenuItem);
this.ultraToolbarsManager1.Ribbon.ApplicationMenu.ToolAreaLeft.Tools.AddTool(
  "NewMenuItem");
Note
Note

The ApplicationMenu.Visible property of the Ribbon object is now obsolete. Instead use the FileMenuStyle property and set it to None.