- Online Barcode Generator
- How To
- Buy Now
Customize Application Menu for RibbonBar in C#.NET
KetticRibbonBar control provides the support of application menu, which will be shown in the upper left corner of the KetticRibbonBar as the users click on the Office button. The application menu is a fully customizable menu. It will help the designers to build cool custom application with ease of use access to document, form, or application. The application menu support allows the designers to build user interface of Office 2007 ribbon at design time and more extended features.
C# Add Image to Application Menu Office Button
KetticRibbonBar WinForms control includes the KetticRibbonBar.StartButtonImage property for the designers to assign image to the Application Menu button. The C# code below demonstrates how to add image to the button.
C# Add Items to the Application Menu
KetticRibbonBar control offers different menu items for the users to create a menu and add it to the Application Menu, such as KetticMenuItem, KetticMenuButtonItem, KetticMenuHeaderItem, KetticMenuSeperatorItem, and KetticMenuComboItem. The C# code below shows how to create a new KetticMenuItem, which is a standard menu, and add the menu to the application menu.
C# code for creating and adding a new menu item
C# code for handling the menu item click event
C# Add Items to the Right Column
KetticRibbonBar control provides the KetticRibbonBar.StartMenuRightColumnItems collection for the designers to add the created items in the right column of the Application Menu. The C# code below shows how to place items to the right column.
C# Add Items with Sub Items
When we want to add items to sub items, we need to create a submenu under a main menu item and then add items to the Items collection of the main KetticMenuItem. The C# code below demonstrates how to add a KetticMenuItem, mnuPrint, to the start menu and create a sub menu with two KetticMenuItems with click event handlers.
Wrap Description Text of Items using C# code
KetticRibbonBar Application Menu contains TextWrap property for wrapping description texts of the menu items. The steps below show how to set text wrap for menu items
UI Controlsfor Windows Forms.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls