Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

syncfusion-winforms-splitbutton同步融合 winforms splitbutton

Agent Skill

syncfusion-winforms-splitbutton 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

692

周安装

28

GitHub Stars

公开资料未说明

下载量

217
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-winforms-splitbutton(同步融合 winforms splitbutton)
来源仓库:https://github.com/syncfusion/winforms-ui-components-skills
仓库路径:skills/syncfusion-winforms-splitbutton
安装命令:
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-splitbutton
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-splitbutton

简介

Syncfusion WinForms 分割按钮控件,组合主操作与下拉菜单于一体的交互元素。

  • 适用于工具栏、快捷操作区等需要紧凑布局但保留次级选项的空间受限场景。
  • 支持图标、文本、箭头方向及菜单项动态生成与事件绑定。
  • 需确认项目引用了 Syncfusion Button 相关组件,并注意不同操作系统下的视觉差异。
  • 在触控设备上应增大点击热区,确保小尺寸设备上的可用性体验。

SKILL.md

Assembly Dependencies

Required assemblies:

  • Syncfusion.Shared.Base
  • Syncfusion.Shared.Windows
  • Syncfusion.Tools.Base
  • Syncfusion.Tools.Windows

NuGet Package: Install-Package Syncfusion.Tools.Windows

Implementing Split Buttons

When to Use This Skill

Use this skill when users need to implement Syncfusion SplitButton control in WinForms applications. This control is ideal for:

  • Button-Dropdown Hybrid: Creating controls that combine a primary button action with a dropdown menu of related options
  • Command Variations: Providing a default action with alternative variations (e.g., Save with Save As, Send options)
  • Toggle with Options: Implementing toggle buttons that also provide dropdown menu choices
  • Dynamic Button Text: Updating button caption based on user selection from dropdown items
  • Office-Style UI: Building interfaces that match Microsoft Office split button patterns
  • Custom Rendered Buttons: Creating fully customized button appearances using ISplitButtonRenderer

The SplitButton control provides two button modes (Normal and Toggle), dynamic caption management, built-in Office2016 themes, and extensive customization through custom renderers.

Component Overview

The SplitButton control is a hybrid control that behaves like a button with an integrated dropdown menu. When clicked on the button portion, it executes a primary action. When clicked on the dropdown arrow, it displays a menu of additional options. This pattern is commonly seen in applications like Microsoft Word (Save/Save As) or Outlook (Reply/Reply All).

Key Capabilities:

  • Two button modes: Normal (standard click) and Toggle (checked/unchecked state)
  • DropDown items management (Add/Remove items dynamically)
  • Static or dynamic button captions (set text or use selected dropdown item as caption)
  • Six built-in visual styles: Office2016White, Office2016Black, Office2016DarkGray, Office2016Colorful, Metro, Default
  • ISplitButtonRenderer interface for complete button customization
  • ToolStripProfessionalRenderer for dropdown items appearance customization
  • DropDownItemClicked event for handling item selection

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

Read this first for basic setup and implementation:

  • Assembly references and NuGet package installation
  • Adding SplitButton through Designer (drag and drop from toolbox)
  • Adding SplitButton through Code (programmatic creation)
  • Adding and removing dropdown items using DropDownItems collection
  • Basic configuration and minimal working examples

Button Modes and States

📄 Read: references/button-modes.md

Use when users need different button behaviors:

  • Normal mode for standard button click actions
  • Toggle mode for checked/unchecked state buttons
  • ButtonMode property configuration (Normal vs Toggle)
  • IsButtonChecked property for controlling toggle state
  • Mode-specific click events and state management

Button Caption Management

📄 Read: references/button-caption.md

Use when users need to:

  • Set static button text using Text property
  • Update button caption dynamically from dropdown item selection
  • Handle DropDownItemClicked event to update caption
  • Display selected item text as button label

Visual Styles and Theming

📄 Read: references/visual-styles.md

Use when users want to:

  • Apply built-in Office2016 themes (White, Black, DarkGray, Colorful)
  • Use Metro or Default visual styles
  • Match button appearance to application theme
  • Set Style or ThemeName properties

Advanced Customization

📄 Read: references/advanced-customization.md

Use when users require:

  • Custom button rendering using ISplitButtonRenderer interface
  • Custom border, text, or arrow drawing (DrawBorder, DrawText, DrawArrow methods)
  • Dropdown items appearance customization using DropDownRenderer
  • Custom ToolStripProfessionalRenderer implementation
  • Override methods: OnRenderItemText, OnRenderImageMargin, OnRenderItemImage, OnRenderToolStripBackground, OnRenderToolStripBorder

Quick Start Example

Here's a minimal example showing how to create a SplitButton with dropdown items:

Designer Approach:

  1. Drag SplitButton from toolbox to form
  2. Set Text property to "Actions"
  3. Use DropDownItems property editor to add items
  4. Set Style property to "Office2016Colorful"

Code Approach (C#):

using Syncfusion.Windows.Forms.Tools;

// Create SplitButton
SplitButton splitButton = new SplitButton();
splitButton.Text = "Save";
splitButton.Size = new Size(120, 40);
splitButton.Location = new Point(20, 20);
splitButton.Style = SplitButtonVisualStyle.Office2016Colorful;

// Add dropdown items
ToolStripMenuItem saveItem = new ToolStripMenuItem("Save");
ToolStripMenuItem saveAsItem = new ToolStripMenuItem("Save As...");
ToolStripMenuItem saveAllItem = new ToolStripMenuItem("Save All");

splitButton.DropDownItems.Add(saveItem);
splitButton.DropDownItems.Add(saveAsItem);
splitButton.DropDownItems.Add(saveAllItem);

// Add to form
this.Controls.Add(splitButton);

Code Approach (VB.NET):

Imports Syncfusion.Windows.Forms.Tools

' Create SplitButton
Dim splitButton As New SplitButton()
splitButton.Text = "Save"
splitButton.Size = New Size(120, 40)
splitButton.Location = New Point(20, 20)
splitButton.Style = SplitButtonVisualStyle.Office2016Colorful

' Add dropdown items
Dim saveItem As New ToolStripMenuItem("Save")
Dim saveAsItem As New ToolStripMenuItem("Save As...")
Dim saveAllItem As New ToolStripMenuItem("Save All")

splitButton.DropDownItems.Add(saveItem)
splitButton.DropDownItems.Add(saveAsItem)
splitButton.DropDownItems.Add(saveAllItem)

' Add to form
Me.Controls.Add(splitButton)

Common Patterns

Pattern 1: Dynamic Caption from Selected Item

Update button text when user selects a dropdown item:

private void splitButton1_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
    // Set button caption to selected item text
    splitButton1.Text = e.ClickedItem.Text;
}

Pattern 2: Toggle Mode Button

Create a toggle button with dropdown options:

splitButton1.ButtonMode = ButtonMode.Toggle;
splitButton1.IsButtonChecked = false; // Initially unchecked

// Check if button is toggled
if (splitButton1.IsButtonChecked)
{
    // Perform checked state action
}

Pattern 3: Adding Items Dynamically

Add or remove dropdown items at runtime:

// Add new item
ToolStripMenuItem newItem = new ToolStripMenuItem("New Option");
splitButton1.DropDownItems.Add(newItem);

// Remove specific item
splitButton1.DropDownItems.Remove(existingItem);

// Remove by index
splitButton1.DropDownItems.RemoveAt(0);

Pattern 4: Themed Button

Apply Office2016 theme to match application:

// Or use ThemeName property
splitButton1.ThemeName = "Office2019Colorful";

Key Properties

Essential Properties:

PropertyTypeDescriptionWhen to Use
TextstringButton caption textSet static button label or update from selected item
ButtonModeButtonModeNormal or Toggle modeToggle for checked/unchecked state, Normal for standard click
IsButtonCheckedboolToggle state (checked/unchecked)Control or query toggle button state
DropDownItemsToolStripItemCollectionCollection of dropdown menu itemsAdd, remove, or manage dropdown options
StyleSplitButtonVisualStyleVisual appearance styleApply Office2016White/Black/DarkGray/Colorful, Metro, or Default
ThemeNamestringTheme name for stylingApply Office2019 or custom themes
RendererISplitButtonRendererCustom button rendererImplement custom drawing for button appearance
DropDownRendererToolStripRendererCustom dropdown rendererCustomize dropdown items appearance

Important Events:

EventDescriptionWhen to Use
ClickFired when button portion is clickedHandle primary button action
DropDownItemClickedFired when dropdown item is selectedUpdate caption or perform item-specific action

Common Use Cases

Use Case 1: Save Button with Save As Option

Implement a split button like Microsoft Word's Save button:

Use Case 2: View Toggle with Layout Options

Create a toggle button for view modes with layout variations:

  • Toggle mode for on/off view state
  • Dropdown items for layout options (Grid, List, Details)
  • Read button-modes.md for toggle configuration
  • Read getting-started.md for item management

Use Case 3: Themed Toolbar Button

Build split buttons matching Office 2016/2019 theme:

  • Apply Office2016Colorful or Office2019Colorful theme
  • Match application's overall design language
  • Read visual-styles.md for theme application

Use Case 4: Custom Branded Button

Create fully customized split button with company branding:

  • Custom colors, borders, and arrow icon
  • Custom dropdown appearance
  • Read advanced-customization.md for ISplitButtonRenderer implementation

Decision Guide

Choose SplitButton when:

  • Users need a primary action with related alternatives
  • Button caption should change based on selection
  • Toggle behavior is needed alongside dropdown options
  • Office-style UI patterns are desired

Consider alternatives when:

  • Only dropdown menu is needed → Use ComboBox or DropDownButton
  • Simple button without menu → Use standard Button control
  • Multiple independent actions → Use separate Button controls or ButtonAdv

Platform Note: This skill covers Syncfusion Essential Studio for Windows Forms. For other platforms:

  • WPF: Use Syncfusion WPF SplitButton (different implementation)
  • ASP.NET: Use Syncfusion ASP.NET SplitButton controls
  • Blazor/MAUI/React: Refer to platform-specific split button documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.75%
按下载量换算80

Claude

30.89%
按下载量换算67

Cursor

16.38%
按下载量换算36

Gemini CLI

9.35%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills