Drop Down Button - C# WinForms UI Design
The WinForms UI Button Component provides the drop down buttons, which are menu like interface model within a button. Each item of Drop Down Button can be set to perform an action with a single click. Furthermore, the items are able to contain other sub items.
To use the Drop Down Button control in the WinForms UI Controls Stuite, just drag and drop a Drop Down Button control to the form designer from the Toolbox. It can be used in the way of a standard button. Here are some properties available for developers to customize the controls. Text property can be used to control the displayed text. Just a single click, the Drop Down Button displays the drop-down items, which is different from the standard button. Therefore, it is not suitable to handle the click event of the button, but works directly with the click event with each item.
The Drop Down Button and Split Button have similar appearance. But there is an important programmatic distinction. On Split Button control, the property of Default Item indicates the item whose Click event will be triggered. If you want a button that does something when clicked as well as when a selection is made from the menu, the Split Button is the preferable control.
Related Button UI for C# Windows Forms Applications
How to Add Items with Drop Down Button Control
There is an item collection of the Drop Down Button, which defines the menu items displaying while clicking the Drop Down Button. To add items to your new button, drag and drop a Drop Down Button control from the Toolbox to the Forms that you are designing.
How to Add Items to Button at Design Time
How to Add Items to Button at at Run Time in Code
The below C# code demonstrates how to add a Menu Item of WinForms UI Control to the Dorp Down button
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