Split Button - C# WinForms UI Design
The WinForms UI Button Component provides the split buttons, which are menu like interface model within a button that can be placed on a form in .NET development. Developers can customize all the items on the Split Button to perform an action while being clicked. All the items also have their own items, which allow developers to configure the button label text by change the Text properties. There are some difference between a standard button and Split Button. Split Button could display the drop down items while being clicked, which make it impossible to handle the Click event. However, it works directly with the events of the items, and the following tutorial shows how to use the split button items.
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 Use the Split Button Items
There is an item collection of the Split Button, which defines the menu items displaying while clicking the Split Button. To add items to your new button, drag and drop a Split Button control from the Toolbox to the Forms that you are designing.
How to Add Items at Design Time in the UI
How to Add Items at Run Time in C# Code
The below C# code shows how to add items to Split Button in C# code at run time and add a Menu Item to the Split Button. Create item hierarchies in C# code by adding new Menu Item objects to the Items collection of your existing Menu Item.
How to Display Images with Items
With the split button controls, images as well as text can be displayed on the menu items.
How to Use the Click Event
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