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
Properties Available
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 DesignWinForms UI Controls WinForms Buttons UI Control Add Button in C#Text FormattingCheckBox in C#CheckBox Data BindingDropdown ButtonRadio Button in C#Radio Button DesignRadio Button StateRepeat ButtonSplit Button in C#Toggle Button in C#MnemonicsWinForms 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 ControlWinForms 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 |