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

syncfusion-winforms-combodropdown同步融合 winform 组合下拉菜单

Agent Skill

syncfusion-winforms-combodropdown 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

648

周安装

27

GitHub Stars

公开资料未说明

下载量

216
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 支持根据关键词、任务场景或来源线索进行信息匹配。
  • 通过 GitHub 仓库安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围和维护状态,避免触发不必要的联网操作。
  • 适用于需要精准检索信息的场景。

SKILL.md

Implementing ComboDropDown

When to Use This Skill

Use this skill when the user needs to implement the Syncfusion ComboDropDown control in a Windows Forms application. This skill is specifically designed for scenarios where you need:

  1. Flexible dropdown hosting - Host ANY control in the dropdown area (TreeView, ListView, GridList, DataGrid, custom controls), not limited to ListBox-derived controls
  2. Custom dropdown UI - Create unique dropdown experiences with controls that provide richer data visualization than standard combo boxes
  3. Tree-based selection - Implement hierarchical navigation with TreeView controls in the dropdown
  4. Multi-column selection - Display data in grid or multi-column layouts for easier browsing
  5. Complex data interaction - Scenarios requiring custom logic for transferring data between the edit portion and the dropdown control
  6. Custom popup behavior - Full control over when and how the dropdown opens, closes, and responds to user interactions
  7. Advanced control integration - Integrate specialized controls that provide features beyond standard list selection
  8. Developer-managed synchronization - Scenarios where automatic data binding isn't suitable and you need manual control

Key Differentiator: Unlike ComboBoxBase (which only hosts ListBox-derived controls with built-in data binding), ComboDropDown can host ANY control but requires you to implement the interaction logic between the text box and the hosted control.

When NOT to use: If you only need a simple dropdown with ListBox, CheckedListBox, or GridListControl and want automatic selection handling, use ComboBoxBase instead.

Component Overview

The ComboDropDown control is a lightweight, flexible combo box that provides:

  • Universal control hosting - PopupControl property accepts any Windows Forms control
  • Separated architecture - Independent edit portion (text box) and dropdown portion (any control)
  • Developer-managed interaction - You control how selections transfer to text and vice versa
  • Event-driven synchronization - DropDown event (before showing) and Popup event (after showing) for implementing interaction logic
  • Standard combo box appearance - Looks like a regular combo box but with unlimited dropdown flexibility
  • Programmatic dropdown control - Methods to show/hide popup with close type specification
  • Full customization - Appearance, themes, text behavior, and border styling options

Architecture: ComboDropDown consists of two independent parts:

  1. Edit portion - A text box where users type or see selected values
  2. Dropdown portion - A popup container hosting any control you specify

You're responsible for connecting these parts through event handlers.

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When user wants to set up ComboDropDown for the first time. Covers:

  • Assembly references and NuGet package installation
  • Namespace imports (Syncfusion.Windows.Forms.Tools)
  • Designer-based setup (drag-drop, property configuration)
  • Code-based setup (programmatic instantiation)
  • Setting PopupControl property to associate a control
  • Basic TreeView integration example
  • Initial configuration and troubleshooting

Event Handling and Interaction

📄 Read: references/event-handling.md

When user needs to implement data interaction between the combo's text and the hosted control. Covers:

  • DropDown event - syncing text to control selection before dropdown shows
  • TreeView/ListView DoubleClick events - transferring selection to text
  • Closing dropdown programmatically (PopupCloseType.Done)
  • Popup event - setting focus on hosted control after dropdown appears
  • FindNode recursive helper for TreeView navigation
  • Complete TreeView interaction implementation
  • GridList integration patterns
  • SuppressDropDownEvent property
  • Best practices for event-driven interaction

Text Behavior and Input Control

📄 Read: references/text-behavior.md

When user wants to control text input behavior in the edit portion. Covers:

  • CharacterCasing property (Upper, Lower, Normal)
  • NumberOnly property (restricting to numeric input)
  • ReadOnly property (preventing edits)
  • CaseSensitiveAutocomplete property
  • MatchFirstCharacterOnly property
  • Banner text support (BannerTextProvider integration)
  • Complete examples for each behavior

Appearance Customization

📄 Read: references/appearance-customization.md

When user needs to customize the control's visual appearance and borders. Covers:

  • Border3DStyle property (10 3D border styles)
  • BorderSides property (specifying which sides have borders)
  • FlatStyle property (Flat, System, Standard modes)
  • FlatBorderColor property
  • Edit portion appearance (Font, ForeColor, BackColor)
  • Dropdown button customization
  • Style property dependency
  • Complete styling examples

Themes and Styling

📄 Read: references/themes-and-styles.md

When user wants to apply visual themes or Office-style appearances. Covers:

  • Style property (Office2016 variants, Metro, Office2010/2007/2003, VS2005, Default)
  • Office2007ColorTheme property (Blue, Silver, Black schemes)
  • Custom color support (Managed theme with ApplyManagedColors)
  • IgnoreThemeBackground property
  • Theme vs appearance property interaction
  • Visual comparisons and complete theming examples

Quick Start Example

Designer Setup with TreeView

// 1. Drag ComboDropDown and TreeView onto form
// 2. Add nodes to TreeView (in designer or code)
// 3. Set TreeView.HideSelection = false
// 4. Set ComboDropDown.PopupControl = treeView1

// Event handlers for interaction
private void comboDropDown1_DropDown(object sender, EventArgs e)
{
    // Before dropdown shown: select TreeNode matching combo text
    if (!string.IsNullOrEmpty(this.comboDropDown1.Text))
    {
        TreeNode matchedNode = FindNode(this.treeView1.Nodes, this.comboDropDown1.Text);
        this.treeView1.SelectedNode = matchedNode;
    }
}

private void treeView1_DoubleClick(object sender, EventArgs e)
{
    // Transfer selected node text to combo
    if (this.treeView1.SelectedNode != null)
    {
        this.comboDropDown1.Text = this.treeView1.SelectedNode.Text;
    }

    // Close the dropdown
    this.comboDropDown1.PopupContainer.HidePopup(PopupCloseType.Done);
}

private TreeNode FindNode(TreeNodeCollection nodes, string text)
{
    // Recursively find matching node
    foreach (TreeNode child in nodes)
    {
        if (child.Text == text) return child;
    }
    foreach (TreeNode child in nodes)
    {
        TreeNode matched = FindNode(child.Nodes, text);
        if (matched != null) return matched;
    }
    return null;
}

Code-Based Setup

using Syncfusion.Windows.Forms.Tools;

// Create ComboDropDown
ComboDropDown comboDropDown1 = new ComboDropDown();
comboDropDown1.Location = new Point(20, 20);
comboDropDown1.Size = new Size(200, 25);

// Create and configure TreeView
TreeView treeView1 = new TreeView();
treeView1.HideSelection = false;
treeView1.Nodes.Add("Root");
treeView1.Nodes[0].Nodes.Add("Child 1");
treeView1.Nodes[0].Nodes.Add("Child 2");

// Associate TreeView with ComboDropDown
comboDropDown1.PopupControl = treeView1;

// Wire up events
comboDropDown1.DropDown += comboDropDown1_DropDown;
treeView1.DoubleClick += treeView1_DoubleClick;

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

Common Patterns

Pattern 1: TreeView Hierarchical Selection

// Setup
comboDropDown1.PopupControl = treeView1;
treeView1.HideSelection = false;

// Sync text → TreeView selection (before dropdown)
comboDropDown1.DropDown += (s, e) => {
    var node = FindNode(treeView1.Nodes, comboDropDown1.Text);
    treeView1.SelectedNode = node;
};

// Sync TreeView selection → text (on double-click)
treeView1.DoubleClick += (s, e) => {
    if (treeView1.SelectedNode != null)
    {
        comboDropDown1.Text = treeView1.SelectedNode.Text;
        comboDropDown1.PopupContainer.HidePopup(PopupCloseType.Done);
    }
};

Pattern 2: Multi-Column Grid Selection

// Host a GridList control for multi-column data
GridListControl gridList = new GridListControl();
// Configure grid columns and data...

comboDropDown1.PopupControl = gridList;

// Sync selection to combo text using the grid's current cell/model
gridList.DoubleClick += (s, e) => {
    var cell = gridList.CurrentCell;
    if (cell != null)
    {
        int row = cell.RowIndex;
        // Read display text from the model (adjust column index as needed)
        comboDropDown1.Text = gridList.Model[row, 1].Text;
        comboDropDown1.PopupContainer.HidePopup(PopupCloseType.Done);
    }
};

Pattern 3: Focus Management for Mouse Interaction

// Make dropdown control respond to mouse immediately
comboDropDown1.PopupContainer.Popup += (s, e) => {
    // Give focus to hosted control after dropdown shown
    treeView1.Focus();
};

Key Properties

PopupControl Setup

PropertyTypeDescriptionWhen to Use
PopupControlControlThe control displayed in dropdownSet to any Windows Forms control you want to host

Text Behavior

PropertyTypeDescriptionWhen to Use
TextstringText displayed in edit portionGet/set the combo's current text value
CharacterCasingCharacterCasingUpper, Lower, or NormalForce uppercase/lowercase input
NumberOnlyboolRestricts input to numbersNumeric-only scenarios
ReadOnlyboolPrevents editingDisplay-only with selection from dropdown

Dropdown Control

PropertyTypeDescriptionWhen to Use
PopupContainerPopupControlContainerContainer managing popup behaviorAccess HidePopup() or Popup event
SuppressDropDownEventboolPrevents DropDown event from firingSkip sync logic in specific scenarios

Appearance

PropertyTypeDescriptionWhen to Use
Border3DStyleBorder3DStyle3D border appearance (10 styles)Customize border look when FlatStyle is Standard
BorderSidesBorder3DSideWhich sides have bordersCustom border configurations
FlatStyleFlatStyleFlat, System, or StandardControl overall appearance mode
FlatBorderColorColorBorder color in Flat modeCustom border colors

Theming

PropertyTypeDescriptionWhen to Use
StyleVisualStyleOffice2016Colorful, Metro, Office2010, etc.Apply modern visual themes
Office2007ColorThemeOffice2007ThemeBlue, Silver, Black schemesOffice 2007 style appearance
IgnoreThemeBackgroundboolUse BackColor instead of themeOverride theme background

Common Use Cases

1. File System Navigator with TreeView

Scenario: User needs to browse a hierarchical file/folder structure Solution: Host TreeView showing directory tree, sync selected path to combo text

2. Category Selection with Multi-Column Grid

Scenario: User needs to select from categorized data with multiple display columns Solution: Host GridListControl with category, name, and description columns

3. Date Picker with Calendar Control

Scenario: User needs a custom date picker with visual calendar Solution: Host MonthCalendar or custom calendar control, transfer selected date to text

4. Color Picker with Custom Panel

Scenario: User needs to select colors from a visual color palette Solution: Host custom panel with color swatches, transfer color name/hex to text

ComboDropDown vs ComboBoxBase Decision Guide

Choose ComboDropDown when:

  • ✅ Need to host TreeView, ListView, DataGrid, or any custom control
  • ✅ Want full control over text ↔ control synchronization logic
  • ✅ Require custom popup behavior beyond standard selection
  • ✅ Building hierarchical navigation or complex data visualization
  • ✅ Standard ListBox functionality is insufficient

Choose ComboBoxBase when:

  • ❌ Only need ListBox, CheckedListBox, or GridListControl (simple lists)
  • ❌ Want automatic data binding and selection handling
  • ❌ Prefer built-in SelectionChangedCommitted events
  • ❌ Don't need to manage interaction logic yourself
  • ❌ Standard dropdown list functionality is sufficient

Key Difference: ComboDropDown = maximum flexibility + manual implementation; ComboBoxBase = ListBox-only + automatic handling

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.76%
按下载量换算79

Claude

32.95%
按下载量换算71

Cursor

17.84%
按下载量换算39

Gemini CLI

8.81%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills