CoreSuite.SplitButton
1.0.0
dotnet add package CoreSuite.SplitButton --version 1.0.0
NuGet\Install-Package CoreSuite.SplitButton -Version 1.0.0
<PackageReference Include="CoreSuite.SplitButton" Version="1.0.0" />
<PackageVersion Include="CoreSuite.SplitButton" Version="1.0.0" />
<PackageReference Include="CoreSuite.SplitButton" />
paket add CoreSuite.SplitButton --version 1.0.0
#r "nuget: CoreSuite.SplitButton, 1.0.0"
#:package CoreSuite.SplitButton@1.0.0
#addin nuget:?package=CoreSuite.SplitButton&version=1.0.0
#tool nuget:?package=CoreSuite.SplitButton&version=1.0.0
SplitButton
Button with a configurable drop-down area and ContextMenuStrip.
SplitButton is one of the controls or components included in the CoreSuite solution. The package depends on CoreSuite.NoFocusCueButton. NuGet installs the required package or packages automatically.
Overview
SplitButton extends NoFocusCueButton and provides button with a configurable drop-down area and ContextMenuStrip.
It is designed for .NET 8 Windows Forms applications and can be configured in code or through the Visual Studio designer where designer support applies.
Features
- Supports separate main-button and drop-down actions.
- Supports split and drop-down-only modes.
- Provides keyboard access and right-to-left layout.
- Allows the arrow, separator and drop-down area to be customized.
- Uses the standard Windows Forms event and component model.
- Includes English XML documentation for the public API.
- Requires no third-party packages.
Requirements
- Windows Forms
- .NET 8 for Windows (
net8.0-windows)
Installation
Install the package from NuGet:
dotnet add package CoreSuite.SplitButton
Or use the Visual Studio NuGet Package Manager and search for:
CoreSuite.SplitButton
Namespace
Imports CoreSuite.Controls
Quick start
Imports CoreSuite.Controls
Dim Menu As New ContextMenuStrip()
Menu.Items.Add("Open")
Menu.Items.Add("Open read-only")
Dim OpenButton As New SplitButton With {
.Text = "Open",
.DropDownMenu = Menu,
.Mode = SplitButtonMode.Split,
.DropDownAreaWidth = 24
}
AddHandler OpenButton.DropDownOpening, Sub(Sender, E) E.Cancel = False
Designer usage
After installing or referencing the package, add SplitButton from the Toolbox or create it in code. Properties configured in the Windows Forms Designer are serialized into InitializeComponent and remain available at runtime.
API reference
SplitButton
Represents button with a configurable drop-down area and ContextMenuStrip.
Public Class SplitButton
Inherits NoFocusCueButton
Main members
| Member | Behavior |
|---|---|
DropDownMenu |
menu displayed by the arrow area. |
Mode |
split or drop-down behavior. |
DropDownAreaWidth |
arrow-region width. |
ArrowColor / SeparatorColor / ShowSeparator |
appearance. |
DropDownRectangle |
current arrow-region bounds. |
ShowDropDown() |
opens the menu programmatically. |
DropDownOpening, DropDownOpened and DropDownClosed |
menu lifecycle events. |
Behavior and validation
- Property changes take effect immediately unless a method explicitly starts or applies an operation.
- Callers should validate user input and referenced objects before performing application-specific work.
- Events use the standard Windows Forms event model and should be handled on the UI thread.
Standard functionality
Because SplitButton inherits from NoFocusCueButton, the standard public members of that base type remain available unless the control intentionally hides or overrides them.
Resource and lifetime considerations
- Dispose components, controls, images, fonts and menus created dynamically when your application owns them.
- Keep referenced controls alive for as long as a component is attached to them.
- File-based operations should receive valid, accessible paths.
Package information
| Item | Value |
|---|---|
| Package | CoreSuite.SplitButton |
| Namespace | CoreSuite.Controls |
| Assembly | CoreSuite.SplitButton |
| Target framework | net8.0-windows |
| UI framework | Windows Forms |
| CoreSuite dependencies | CoreSuite.NoFocusCueButton |
| External dependencies | None |
License
This package is distributed under the MIT License defined by the CoreSuite repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows7.0
- CoreSuite.NoFocusCueButton (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 95 | 8/2/2026 |
Initial release of the SplitButton control.