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

syncfusion-winforms-comboboxbase同步融合 winforms 组合框库

Agent Skill

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

总安装

635

周安装

27

GitHub Stars

公开资料未说明

下载量

222
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行信息整理。
  • 通过 GitHub 仓库安装,需参考原始 README 了解功能实现。
  • 安装前建议确认权限范围,防止触发意外的网络或文件操作。
  • 适用于代码协作与变更管理。

SKILL.md

Implementing ComboBoxBase

Guides the implementation of the Syncfusion ComboBoxBase control for Windows Forms applications. ComboBoxBase provides a flexible alternative to the standard combo box by separating the edit portion from the drop-down list, enabling pluggable ListControl architecture.

When to Use This Skill

Use this skill when you need to:

  • Implement a flexible combo box with separated edit and dropdown architecture
  • Use custom ListControl-derived controls in dropdown areas
  • Integrate CheckedListBox for multi-select combo boxes
  • Create multi-column dropdowns using GridListControl
  • Handle complex selection events and dropdown behaviors
  • Need more control than standard Framework combo box provides
  • Build combo boxes with custom popup containers
  • Implement quick selection capability with mouse interactions

Note: If you need a Framework combo box-like object model, consider using ComboBoxAdv (based on ComboBoxBase but with identical object model).

Component Overview

The ComboBoxBase control separates the edit (TextBox) portion from the drop-down list portion, making the architecture powerful and flexible. You can plug in any ListControl-derived class (ListBox, CheckedListBox, GridListControl) using the ListControl property.

Key Capabilities:

  • Pluggable ListControl architecture
  • Support for ListBox, CheckedListBox, custom ListControls
  • Multi-column dropdowns with GridListControl
  • Comprehensive event handling for selection scenarios
  • Style and appearance customization
  • PopupControlContainer integration
  • QuickSelection with mouse interactions

Architecture Differences:

  • Unlike standard combo box, edit and list portions are separate
  • Different object model from Framework combo box
  • Properties like DataSource, ItemHeight set on ListControl, not ComboBoxBase
  • Events like SelectedIndexChanged handled on ListControl

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and assembly references
  • Designer-based setup (drag-and-drop)
  • Code-based instantiation
  • Connecting ListBox to ComboBoxBase
  • DataSource configuration
  • Complete setup examples

ListControl Architecture

📄 Read: references/listcontrol-architecture.md

  • ListControl property explained
  • Creating custom ListControl-derived controls
  • Required properties and methods (Items, IndexFromPoint, TopIndex)
  • Collection classes (ObjectCollection, SelectedObjectCollection, SelectedIndexCollection)
  • QuickSelection capability implementation
  • GridListControl for multi-column dropdowns
  • Integration with various list controls

Event Handling

📄 Read: references/event-handling.md

  • Selection events (SelectionChangedCommitted, SelectedValueChanged, SelectedIndexChanged)
  • Event order and scenarios
  • DropDownCloseOnClick event for CheckedListBox
  • DropDown event for PopupControlContainer
  • Validating/Validated events
  • Complete CheckedListBox integration example

Appearance and Behavior

📄 Read: references/appearance-behavior.md

  • Style and FlatStyle properties
  • Border drawing customization
  • TextBox and dropdown window styling
  • Properties vs Framework combo box
  • ComboBoxAdv comparison
  • Visual styling examples

Advanced Scenarios

📄 Read: references/advanced-scenarios.md

  • CheckedListBox multi-select pattern
  • Custom PopupControlContainer derivation
  • OnPopup override for focus management
  • Nesting ComboBoxBase in PopupControlContainer
  • PopupParent and CurrentPopupChild relationships
  • Complex dropdown scenarios

Quick Start

Designer Setup

Step 1: Add ComboBoxBase to Form

1. Open your WinForms project in Visual Studio
2. Drag ComboBoxBase from Toolbox to Form
3. Drag ListBox from Toolbox to Form
4. In ComboBoxBase Properties, set ListControl = listBox1

Code Setup

Basic Implementation:

using Syncfusion.Windows.Forms.Tools;
using System.Windows.Forms;

public partial class Form1 : Form
{
    private ComboBoxBase comboBoxBase1;
    private ListBox listBox1;

    public Form1()
    {
        InitializeComponent();
        SetupComboBoxBase();
    }

    private void SetupComboBoxBase()
    {
        // Create ComboBoxBase and ListBox
        comboBoxBase1 = new ComboBoxBase();
        listBox1 = new ListBox();

        // Configure ComboBoxBase
        comboBoxBase1.Size = new Size(200, 25);
        comboBoxBase1.Location = new Point(20, 20);
        comboBoxBase1.ListControl = listBox1; // Connect ListBox

        // Add items to ListBox
        listBox1.Items.AddRange(new object[] {
            "Option 1",
            "Option 2",
            "Option 3",
            "Option 4"
        });

        // Add to form
        this.Controls.Add(listBox1);
        this.Controls.Add(comboBoxBase1);
    }
}

VB.NET:

Imports Syncfusion.Windows.Forms.Tools
Imports System.Windows.Forms

Public Class Form1
    Private comboBoxBase1 As ComboBoxBase
    Private listBox1 As ListBox

    Public Sub New()
        InitializeComponent()
        SetupComboBoxBase()
    End Sub

    Private Sub SetupComboBoxBase()
        ' Create ComboBoxBase and ListBox
        comboBoxBase1 = New ComboBoxBase()
        listBox1 = New ListBox()

        ' Configure ComboBoxBase
        comboBoxBase1.Size = New Size(200, 25)
        comboBoxBase1.Location = New Point(20, 20)
        comboBoxBase1.ListControl = listBox1 ' Connect ListBox

        ' Add items to ListBox
        listBox1.Items.AddRange(New Object() {
            "Option 1",
            "Option 2",
            "Option 3",
            "Option 4"
        })

        ' Add to form
        Me.Controls.Add(listBox1)
        Me.Controls.Add(comboBoxBase1)
    End Sub
End Class

Common Patterns

Pattern 1: ComboBoxBase with DataSource

// Create data source
List<string> states = new List<string>
{
    "California", "Texas", "Florida", "New York"
};

// Set DataSource on ListBox (not ComboBoxBase)
listBox1.DataSource = states;
comboBoxBase1.ListControl = listBox1;

Pattern 2: CheckedListBox Integration

// Use CheckedListBox for multi-select
CheckedListBox checkedListBox1 = new CheckedListBox();
checkedListBox1.Items.AddRange(new object[] {
    "Item 1", "Item 2", "Item 3", "Item 4"
});

comboBoxBase1.ListControl = checkedListBox1;

// Handle DropDownCloseOnClick to prevent premature closing
comboBoxBase1.DropDownCloseOnClick += (sender, e) => {
    e.Cancel = true; // Keep dropdown open while selecting
};

// Update text with checked items
checkedListBox1.ItemCheck += (sender, e) => {
    // Build text from checked items
    var checkedItems = checkedListBox1.CheckedItems.Cast<object>();
    comboBoxBase1.TextBox.Text = string.Join(", ", checkedItems);
};

Pattern 3: Custom Object DataSource

public class Employee
{
    public int Id { get; set; }
    public string Name { get; set; }
    public override string ToString() => Name;
}

// Create employee list
List<Employee> employees = new List<Employee>
{
    new Employee { Id = 1, Name = "John Doe" },
    new Employee { Id = 2, Name = "Jane Smith" },
    new Employee { Id = 3, Name = "Bob Johnson" }
};

listBox1.DataSource = employees;
listBox1.DisplayMember = "Name"; // Display property
listBox1.ValueMember = "Id";     // Value property

comboBoxBase1.ListControl = listBox1;

Key Properties

ComboBoxBase Properties

PropertyTypeDescription
ListControlIListControlGets or sets the ListControl-derived control for dropdown
TextBoxTextBoxGets the TextBox portion of the control
PopupContainerPopupControlContainerGets the popup container for dropdown
StyleComboBoxStyleGets or sets the visual style
FlatStyleFlatStyleGets or sets the flat style appearance
SizeSizeGets or sets the control size

ListControl Properties (Set on ListBox/CheckedListBox)

PropertyTypeDescription
ItemsObjectCollectionCollection of items in the list
DataSourceobjectData source for the list
DisplayMemberstringProperty to display for objects
ValueMemberstringProperty to use as value
SelectedItemobjectCurrently selected item
SelectedIndexintCurrently selected index
SelectionModeSelectionModeSingle or multiple selection

Important Events

EventDescription
SelectionChangedCommittedFires when selection is committed by user action
DropDownCloseOnClickFires when dropdown is about to close on click (cancellable)
DropDownFires when dropdown is opening

Note: Events like SelectedIndexChanged are handled on the ListControl (ListBox), not ComboBoxBase.

Use Cases

Use Case 1: Simple Dropdown List

When you need a basic dropdown with items, use standard ListBox:

  • Display list of options
  • Single selection
  • Simple text items or object binding

Use Case 2: Multi-Select Dropdown

When users need to select multiple items, use CheckedListBox:

  • Filter selection (multiple categories)
  • Tag selection
  • Permission checkboxes
  • Multi-value inputs

Use Case 3: Multi-Column Dropdown

When displaying tabular data in dropdown, use GridListControl:

  • Employee selection with ID, Name, Department
  • Product selection with Code, Name, Price
  • Database record selection with multiple fields

Use Case 4: Custom List Controls

When built-in controls are insufficient, create custom ListControl:

  • Custom rendering with images/icons
  • Complex layouts
  • Specialized interaction patterns

Decision Guide

Choose ComboBoxBase over standard combo box when:

  • Need pluggable ListControl architecture
  • Want to use CheckedListBox or custom controls
  • Require multi-column dropdowns with GridListControl
  • Need fine-grained control over edit and list portions
  • Building complex dropdown scenarios

Choose standard combo box when:

  • Simple dropdown list is sufficient
  • Framework object model is preferred
  • No custom ListControl needed
  • Basic selection scenarios only

Choose ComboBoxAdv when:

  • Need ComboBoxBase flexibility
  • Prefer Framework combo box object model
  • Want both power and familiar API

Next Steps

  1. Start with getting-started.md for basic setup
  2. Read listcontrol-architecture.md for ListControl concepts
  3. Review event-handling.md for selection events
  4. Explore advanced-scenarios.md for complex use cases

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.14%
按下载量换算76

Claude

30.08%
按下载量换算67

Cursor

18.51%
按下载量换算41

Gemini CLI

8.91%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills