Token导航 LogoToken导航

Agent Skill · 研究检索

syncfusion-winforms-treeview(同步融合 winforms 树视图)

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

syncfusion-winforms-treeview 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 47,337。

总安装 737周安装 31GitHub Stars 1下载 258核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息。适合根据关键词或任务场景快速定位候选结果。通过 npx skills add 命令从指定仓库安装并使用。安装前需确认权限范围和维护状态,避免触发联网或文件读写操作。syncfusion-winforms-treeview 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/syncfusion-winforms-treeview

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/syncfusion/winforms-ui-components-skills --ski…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

syncfusion-winforms-treeview 怎么安装?

在终端执行 npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfus…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

syncfusion-winforms-treeview 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

syncfusion-winforms-treeview 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

syncfusion-winforms-treeview 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

syncfusion-winforms-treeview 用的人多吗?

公开数据是累计安装 737 次,近一周安装 31 次,下载 258 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

syncfusion-winforms-treeview 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
syncfusion-winforms-treeview

同步融合 winforms 树视图 · 本页

7371操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Implementing TreeViews in Windows Forms

When to Use This Skill

Use this skill ALWAYS and immediately when:

  • User needs to display hierarchical data in a tree structure
  • Building file explorers, folder browsers, or directory navigation
  • Implementing organization charts, category trees, or nested menus
  • Need parent-child relationships with expandable/collapsible nodes
  • Working with self-referencing data or data relations
  • Need drag-and-drop reordering of tree nodes
  • Implementing editable tree structures with insert/delete/rename operations
  • Performance optimization needed for large tree datasets (1000+ nodes)
  • User mentions: TreeView, hierarchical data, tree structure, expandable nodes, parent-child

Component Overview

The Syncfusion TreeViewAdv control displays hierarchical data in a tree structure with advanced features beyond the standard Windows Forms TreeView. It provides comprehensive support for data binding, drag-and-drop, virtualization, editing, and extensive customization options.

Key Features

  • Advanced Data Binding: Self-referencing, data relations, object-relational binding
  • Drag-and-Drop: Full drag-drop support with visual feedback and validation
  • Performance: Virtualization for 20,000+ nodes with minimal delay
  • Node Customization: Checkboxes, option buttons, images, custom styles
  • Editing Operations: Dynamic insert, delete, rename with data source sync
  • Load on Demand: Lazy loading of child nodes for better performance
  • Rich Appearance: Themes, custom styles, borders, colors, fonts
  • Advanced Features: Find/replace, history manager (undo/redo), XML persistence, printing
  • Multi-Selection: CTRL+SHIFT key support for multiple node selection
  • Context Menus: Associate menus with show/hide options

Common Use Cases

  • File/folder browser interfaces
  • Organization hierarchy displays
  • Category/subcategory navigation
  • Project/task tree structures
  • Settings/configuration trees
  • XML/JSON data visualization
  • Database table relationships
  • Multi-level menu systems

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and NuGet package setup
  • Adding control via Designer (Toolbox drag-drop)
  • Adding control manually in C# and VB.NET
  • Creating TreeViewAdv instances
  • Adding nodes through NodeCollection Editor
  • Adding nodes programmatically
  • Basic node customization (lines, plus/minus signs)
  • Assigning active nodes

Data Binding

📄 Read: references/data-binding.md

  • Binding to self-referencing data (single table with parent-child)
  • ParentMember, ChildMember, SelfRelationRootValue properties
  • Binding to data relations (multiple related tables)
  • Binding to object-relational data (custom objects)
  • DataSource, DisplayMember, ValueMember configuration
  • Synchronizing tree with data source changes

Node Customization

📄 Read: references/node-customization.md

  • Root lines and connecting lines (ShowLines, ShowRootLines)
  • Plus/Minus signs for parent nodes
  • ShowPlusOnExpand for expanded state indicators
  • CheckBoxes for node selection (ShowCheckBoxes)
  • OptionButtons for radio-style selection
  • Node-level vs control-level properties
  • Images for expanded/collapsed states
  • Left, right, and state image sources

Appearance and Styling

📄 Read: references/appearance-styling.md

  • Border customization (BorderStyle, BorderSingle, BorderColor)
  • 2D vs 3D borders (FixedSingle, Fixed3D)
  • Border styles (Solid, Dashed, Dotted, Inset, Outset)
  • Node appearance (font, colors, backgrounds)
  • Global styles vs node-specific styles
  • TreeNodeAdv customization properties
  • Styles architecture overview
  • Theme support and Office-like styling

Drag and Drop

📄 Read: references/drag-and-drop.md

  • Drag-drop functionality overview
  • Drag-drop event handling (DragDrop, DragEnter, DragLeave, DragOver)
  • ItemDrag event for initiating drag operations
  • GiveFeedback and QueryContinueDrag events
  • Custom drag feedback and validation
  • Advanced drag-drop scenarios
  • Inter-control drag-drop support

Editing Operations

📄 Read: references/editing-operations.md

  • Dynamic updates (insert, delete, rename)
  • Synchronizing with data source
  • GridGroupingControl integration
  • Runtime node manipulation
  • AcceptChanges pattern for data updates
  • Reflecting changes bidirectionally

Sorting

📄 Read: references/sorting.md

  • Runtime sorting capabilities
  • Sort methods and properties
  • Custom sorting logic
  • Sorting with data binding
  • Performance considerations

Load on Demand

📄 Read: references/load-on-demand.md

  • LoadOnDemand feature overview
  • Lazy loading for performance
  • BeforeExpand event handling
  • Adding sub-nodes dynamically
  • GetPath method for node paths
  • AddSeparatorAtEnd property

Performance Optimization

📄 Read: references/performance-optimization.md

  • EnableVirtualization for large datasets
  • Virtualization benefits (20,000+ nodes)
  • SuspendExpandRecalculate optimization
  • RecalculateExpansion property
  • Best practices for large trees
  • Performance benchmarks

Advanced Features

📄 Read: references/advanced-features.md

  • Find and Replace functionality
  • Search capabilities
  • History Manager (undo/redo operations)
  • Save and Load XML (persistence)
  • Printing support and customization
  • Context menus with show/hide options
  • Multi-selection with CTRL+SHIFT keys

ScrollBar Customization

📄 Read: references/scrollbar-customization.md

  • ScrollBar properties and configuration
  • Automatic scrolling support
  • Custom scrollbar appearance
  • Scroll behavior configuration

Quick Start Example

Basic TreeView Setup

using Syncfusion.Windows.Forms.Tools;

namespace WinFormsTreeApp
{
    public partial class Form1 : Form
    {
        private TreeViewAdv treeViewAdv1;

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

        private void InitializeTreeView()
        {
            // Create TreeViewAdv instance
            treeViewAdv1 = new TreeViewAdv();
            treeViewAdv1.Location = new System.Drawing.Point(20, 20);
            treeViewAdv1.Size = new System.Drawing.Size(300, 400);

            // Create nodes
            TreeNodeAdv parentNode1 = new TreeNodeAdv("Parent 1");
            TreeNodeAdv childNode1 = new TreeNodeAdv("Child 1");
            TreeNodeAdv childNode2 = new TreeNodeAdv("Child 2");

            // Build hierarchy
            parentNode1.Nodes.AddRange(new TreeNodeAdv[] { childNode1, childNode2 });

            TreeNodeAdv parentNode2 = new TreeNodeAdv("Parent 2");
            TreeNodeAdv childNode3 = new TreeNodeAdv("Child 3");
            parentNode2.Nodes.Add(childNode3);

            // Add root nodes
            treeViewAdv1.Nodes.AddRange(new TreeNodeAdv[] { parentNode1, parentNode2 });

            // Customize appearance
            treeViewAdv1.ShowLines = true;
            treeViewAdv1.ShowRootLines = true;
            treeViewAdv1.ShowPlusMinus = true;

            // Add to form
            this.Controls.Add(treeViewAdv1);
        }
    }
}

Data Binding Example

// Self-referencing data binding
DataTable dataTable = CreateHierarchicalData();

treeViewAdv1.DataSource = dataTable;
treeViewAdv1.DisplayMember = "Name";
treeViewAdv1.ValueMember = "ID";
treeViewAdv1.ParentMember = "ParentID";
treeViewAdv1.ChildMember = "ID";
treeViewAdv1.SelfRelationRootValue = DBNull.Value;

Common Patterns

Pattern 1: Programmatic Node Creation

When: Building tree structure dynamically from code

// Create nodes with constructor
TreeNodeAdv node = new TreeNodeAdv("Node Text");

// Set properties
node.Text = "Updated Text";
node.ShowCheckBox = true;
node.Tag = customDataObject;

// Add children
node.Nodes.Add(new TreeNodeAdv("Child"));

// Add to tree
treeViewAdv1.Nodes.Add(node);

Pattern 2: Self-Referencing Data Binding

When: Binding to single table with parent-child relationships

// Setup data source
treeViewAdv1.DataSource = employeeTable;
treeViewAdv1.DisplayMember = "EmployeeName";
treeViewAdv1.ValueMember = "EmployeeID";
treeViewAdv1.ParentMember = "ManagerID";
treeViewAdv1.ChildMember = "EmployeeID";
treeViewAdv1.SelfRelationRootValue = DBNull.Value; // Root nodes have null parent

Pattern 3: Load on Demand

When: Working with large datasets, need lazy loading

// Enable load on demand
treeViewAdv1.LoadOnDemand = true;

// Handle BeforeExpand to load children
treeViewAdv1.BeforeExpand += (sender, e) =>
{
    TreeNodeAdv node = e.Node;

    // Check if children already loaded
    if (node.Nodes.Count == 0)
    {
        // Load children from data source
        var children = LoadChildNodesFromDatabase(node.Tag);

        foreach (var child in children)
        {
            TreeNodeAdv childNode = new TreeNodeAdv(child.Name);
            childNode.Tag = child;
            node.Nodes.Add(childNode);
        }
    }
};

Pattern 4: Drag-Drop Node Reordering

When: Users need to reorder nodes via drag-drop

// Enable drag-drop
treeViewAdv1.AllowDrop = true;

// Handle ItemDrag
treeViewAdv1.ItemDrag += (sender, e) =>
{
    if (e.Item is TreeNodeAdv node)
    {
        treeViewAdv1.DoDragDrop(node, DragDropEffects.Move);
    }
};

// Handle DragDrop
treeViewAdv1.DragDrop += (sender, e) =>
{
    TreeNodeAdv sourceNode = (TreeNodeAdv)e.Data.GetData(typeof(TreeNodeAdv));
    TreeNodeAdv targetNode = treeViewAdv1.GetNodeAtPoint(treeViewAdv1.PointToClient(new Point(e.X, e.Y)));

    if (targetNode != null && sourceNode != targetNode)
    {
        sourceNode.Remove();
        targetNode.Nodes.Add(sourceNode);
        targetNode.Expand();
    }
};

Pattern 5: Performance Optimization for Large Trees

When: Working with 1000+ nodes, experiencing slow load times

// Enable virtualization
treeViewAdv1.EnableVirtualization = true;

// Optimize expand/collapse
treeViewAdv1.SuspendExpandRecalculate = true;
treeViewAdv1.RecalculateExpansion = false;

// Suspend layout during bulk operations
treeViewAdv1.BeginUpdate();
try
{
    // Add thousands of nodes
    for (int i = 0; i < 10000; i++)
    {
        treeViewAdv1.Nodes.Add(new TreeNodeAdv($"Node {i}"));
    }
}
finally
{
    treeViewAdv1.EndUpdate();
}

Key Properties

Data Binding Properties

  • DataSource - Data source object (DataTable, List, etc.)
  • DisplayMember - Field for node text display
  • ValueMember - Field for node value
  • ParentMember - Parent ID field for self-referencing
  • ChildMember - Child ID field for self-referencing
  • SelfRelationRootValue - Value indicating root nodes

Appearance Properties

  • ShowLines - Display connecting lines between nodes
  • ShowRootLines - Display lines between root nodes
  • ShowPlusMinus - Display expand/collapse buttons
  • ShowCheckBoxes - Display checkboxes on nodes
  • ShowOptionButtons - Display option buttons (radio style)
  • BorderStyle - Border style (None, FixedSingle, Fixed3D)

Behavior Properties

  • LoadOnDemand - Enable lazy loading of child nodes
  • AllowDrop - Enable drag-drop operations
  • EnableVirtualization - Enable virtualization for performance
  • SuspendExpandRecalculate - Optimize expand/collapse performance
  • RecalculateExpansion - Control dimension calculation on load

Node Properties (TreeNodeAdv)

  • Text - Node display text
  • Tag - Custom data object
  • Checked - Checkbox state
  • Expanded - Expand/collapse state
  • ShowCheckBox - Show checkbox for this node
  • ShowPlusMinus - Show plus/minus for this node

Key Events

Selection Events

  • AfterSelect - After node selection changes
  • BeforeSelect - Before node selection changes
  • NodeSelected - Node selected event

Expand/Collapse Events

  • BeforeExpand - Before node expands (use for load on demand)
  • AfterExpand - After node expands
  • BeforeCollapse - Before node collapses
  • AfterCollapse - After node collapses

Drag-Drop Events

  • ItemDrag - Node drag initiated
  • DragDrop - Item dropped on control
  • DragEnter - Drag enters control bounds
  • DragOver - Drag over control bounds

Edit Events

  • BeforeEdit - Before node edit starts
  • AfterEdit - After node edit completes

Common Use Cases

Use Case 1: File Explorer

Build Windows Explorer-like interface with folders and files:

  • Use load on demand for directory browsing
  • Add folder/file icons via LeftImageList
  • Handle double-click to open files
  • Implement context menus for file operations

Use Case 2: Organization Chart

Display company hierarchy with employees:

  • Bind to employee table with self-referencing data
  • Show employee photos as node images
  • Add checkboxes for multi-select operations
  • Implement drag-drop for reorganization

Use Case 3: Settings Tree

Create hierarchical settings/preferences interface:

  • Group settings by category in tree structure
  • Use option buttons for single-choice settings
  • Use checkboxes for boolean settings
  • Save/load settings via XML persistence

Use Case 4: Database Schema Visualizer

Display database tables and relationships:

  • Load database schema into tree
  • Show tables as parent nodes, columns as children
  • Add icons to indicate data types
  • Enable find/replace for schema search

Use Case 5: XML/JSON Editor

Visual editor for hierarchical data formats:

  • Parse XML/JSON into tree structure
  • Enable inline editing of node values
  • Implement undo/redo via History Manager
  • Save changes back to XML/JSON format

Troubleshooting

Issue: Nodes not appearing after data binding

  • Solution: Verify DataSource is not null, check ParentMember/ChildMember match column names, ensure SelfRelationRootValue matches root node pattern

Issue: Performance slow with large datasets

  • Solution: Enable EnableVirtualization, use LoadOnDemand for lazy loading, set SuspendExpandRecalculate = true

Issue: Drag-drop not working

  • Solution: Set AllowDrop = true, implement ItemDrag and DragDrop event handlers, check DragDropEffects

Issue: Changes not reflecting in bound data source

  • Solution: Call AcceptChanges() on DataTable after modifications, verify DataSource binding is active

Issue: Plus/minus signs not showing for parent nodes

  • Solution: Verify ShowPlusMinus = true, check nodes have children, for LoadOnDemand ensure ShowPlusOnExpand is configured

平台分布

Codex

39.06%
按下载量换算101

Claude

29.12%
按下载量换算75

Cursor

18.61%
按下载量换算48

Gemini CLI

9.92%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

继续浏览同类 Skills