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 DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlRibbon - Get Started in C#StructureCustomizationStart Menu and ShortcutsAdd and Remove Tabs & GroupsAdd and Remove Groups & ButtonsUse Different ElementsAdd Other ControlsContextual Tab GroupsStart Menu CustomizationQuick Access ToolbarCreate GalleryAdd Screen TipsAdd Key TipsUsing Large & Small ImagesDrag & drop to Move ItemsRibbon - StructureRibbon - C# ProgrammingAdd and Remov Tabs and GroupsAdd and Remov Groups and ButtonsAdd and and Customize ElementsManage Contextual Tab GroupsCustomize Application MenuCustomize Quick Access MenuRibbon - Backstage ViewGet Started in C#Customizing in C#Ribbon - End-User CapabilitiesCollapse the RibbonUsing Key TipsRibbon - LocalizationRight to Left SupportWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |