Token导航 LogoToken导航

Agent Skill · 前端设计

syncfusion-wpf-treegrid(同步融合 WPF 树形网格)

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

syncfusion-wpf-treegrid 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 3,960。

总安装 1,048周安装 42GitHub Stars 2下载 339核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-treegrid

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合围绕仓库状态、代码变更或协作事项进行信息整理。可结合来源仓库和 README 进一步核验具体用法。安装前建议确认权限范围、维护状态及是否触发联网或文件操作。注意避免在不具备相应权限时执行写回或批量操作。

syncfusion-wpf-treegrid 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/syncfusion-wpf-treegrid

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

syncfusion-wpf-treegrid 怎么安装?

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

syncfusion-wpf-treegrid 支持哪些 AI 工具?

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

syncfusion-wpf-treegrid 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

syncfusion-wpf-treegrid 是免费的吗?

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

syncfusion-wpf-treegrid 用的人多吗?

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

syncfusion-wpf-treegrid 安全吗?

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

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

值得选的地方

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

先想清楚的地方

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

适不适合你

更适合

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

不太适合

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

前端设计类 Skill 对比

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

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
syncfusion-wpf-treegrid

同步融合 WPF 树形网格 · 本页

1,0482需要联网未明确通过

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

SKILL.md 原文

Implementing WPF TreeGrid (SfTreeGrid)

Comprehensive guide for implementing the Syncfusion® WPF TreeGrid control - a data-oriented control that displays self-relational and hierarchical data in a tree structure with columns. This skill provides complete guidance for setup, data binding, column configuration, interactive features, data operations, styling, and advanced capabilities.

When to Use This Skill

Use this skill when you need to:

  • Display hierarchical data in a grid with expandable/collapsible tree structure
  • Bind self-relational data (parent-child relationships within single collection)
  • Bind nested collections with parent-child object hierarchies
  • Implement load-on-demand for large hierarchical datasets
  • Configure columns with various types (text, numeric, datetime, checkbox, combo box)
  • Enable editing in tree grid with validation
  • Implement sorting and filtering on hierarchical data
  • Customize selection behavior (single, multiple, row, cell)
  • Apply conditional styling based on data or node level
  • Merge cells across columns in tree grid rows
  • Export tree grids to Excel or PDF formats
  • Implement MVVM patterns with TreeGrid controls
  • Customize appearance with themes, styles, and templates

This skill is essential for any WPF application that needs to present hierarchical or parent-child data in an interactive, feature-rich grid interface.

Component Overview

The SfTreeGrid control provides:

  • Hierarchical Data Display: Self-relational and nested collection binding
  • Multiple Column Types: Text, Numeric, DateTime, CheckBox, ComboBox, Hyperlink, and Template columns
  • Interactive Features: Editing, selection, sorting, filtering, drag-drop
  • Data Operations: Sorting, filtering with multiple filter levels (Root, All, Extended)
  • Load-On-Demand: Efficient loading of child nodes on expansion
  • Cell Merging: Merge adjacent cells across columns
  • Export Capabilities: Export to Excel and PDF with customization
  • Styling: Conditional styling, themes, templates, and visual customization
  • MVVM Support: Complete MVVM pattern compatibility with command binding
  • Performance: Virtualization and optimized rendering for large datasets

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

Start here for initial setup and basic implementation:

  • Assembly deployment (Syncfusion.SfGrid.WPF, Syncfusion.Data.WPF, Syncfusion.Shared.WPF)
  • Creating WPF project with TreeGrid
  • Adding control via Designer, XAML, or code-behind
  • Basic TreeGrid setup examples
  • Simple self-relational and nested collection binding

Data Binding & Operations

Data Binding Approaches 📄 Read: references/data-binding.md

  • Self-relational data binding (ParentPropertyName, ChildPropertyName)
  • Nested collection binding (ChildPropertyName)
  • IEnumerable collection support
  • Dynamic data object binding
  • INotifyCollectionChanged and ObservableCollection
  • Data refresh and updates

Load-On-Demand 📄 Read: references/load-on-demand.md

  • RequestTreeItems event for on-demand loading
  • LoadOnDemandCommand for MVVM scenarios
  • Lazy loading child nodes on expansion
  • Performance optimization for large datasets
  • Populating nodes indicator display

Column Configuration

Column Basics 📄 Read: references/columns.md

  • Adding and removing columns
  • AutoGenerateColumns vs manual configuration
  • Column properties (HeaderText, MappingName, Width, Alignment)
  • Column visibility and frozen columns
  • Column reordering and resizing
  • Text wrapping and trimming

Column Types 📄 Read: references/column-types.md

  • TreeGridTextColumn for string data
  • TreeGridNumericColumn with number formatting
  • TreeGridDateTimeColumn with date patterns
  • TreeGridCheckBoxColumn for boolean values
  • TreeGridComboBoxColumn for dropdown selection
  • TreeGridHyperlinkColumn for clickable links
  • TreeGridTemplateColumn for custom content
  • Creating custom column types

Column Sizing 📄 Read: references/column-sizing.md

  • ColumnSizer property (Auto, Star, SizeToCells, SizeToHeader)
  • Auto-fitting columns to content
  • Manual width specification
  • User resizing behavior
  • Min and Max width constraints
  • Fill remaining space strategies

Interactive Features

Editing 📄 Read: references/editing.md

  • AllowEditing property for grid and column level
  • Edit modes (OnTap, OnDoubleTap)
  • Edit triggers and edit template customization
  • BeginEdit and EndEdit events
  • Programmatic editing (BeginEdit, EndEdit, CurrentCell)
  • Validation during editing

Data Validation 📄 Read: references/data-validation.md

  • IDataErrorInfo validation interface
  • INotifyDataErrorInfo support
  • Cell-level and row-level validation
  • Custom validation rules
  • Validation error display customization
  • Handling validation errors

Selection 📄 Read: references/selection.md

  • SelectionMode (Single, Multiple, Extended, None)
  • SelectionUnit (Row, Cell, Any)
  • SelectedItem and SelectedItems binding
  • CurrentCell and CurrentItem properties
  • Programmatic selection
  • SelectionChanged and CurrentCellActivated events

Cell Merging 📄 Read: references/merge-cells.md

  • QueryCoveredRange event for merging cells
  • Column-wise merging by fixed range
  • Merging based on cell content
  • Navigation and selection in merged cells
  • Performance considerations for cell merging

Data Operations

Sorting 📄 Read: references/sorting.md

  • AllowSorting property (grid and column level)
  • Single and multi-column sorting
  • Tri-state sorting (ascending, descending, unsorted)
  • Programmatic sorting with SortColumnDescriptions
  • Custom sorting logic with IComparer
  • SortColumnsChanging and SortColumnsChanged events

Filtering 📄 Read: references/filtering.md

  • FilterLevel (Root, All, Extended) for hierarchical filtering
  • Advanced filter UI with filter row
  • Programmatic filtering with FilterPredicates
  • Custom filter logic
  • FilterChanging and FilterChanged events
  • Clearing and persisting filters

Styling & Customization

Conditional Styling 📄 Read: references/conditional-styling.md

  • StyleSelector for row and cell styling
  • RowStyleSelector for row-based formatting
  • CellStyleSelector for cell-based formatting
  • Conditional formatting based on data values
  • Node level-based styling (parent vs child)
  • Alternating row styles

Styles and Templates 📄 Read: references/styles-and-templates.md

  • CellTemplate and EditTemplate customization
  • HeaderTemplate for column headers
  • ExpanderTemplate for expand/collapse buttons
  • RowHeaderTemplate customization
  • Cell and row styling
  • Visual states and triggers
  • Theme integration

Advanced Features

Export and Printing 📄 Read: references/export-and-printing.md

  • Export to Excel (ExportToExcel method)
  • Export to PDF (ExportToPdf method)
  • TreeGridExcelExportingOptions customization
  • TreeGridPdfExportingOptions customization
  • Print functionality (PrintSettings)
  • Exporting specific nodes and columns

Advanced Configuration 📄 Read: references/advanced-features.md

  • MVVM pattern implementation with ICommand
  • GridLinesVisibility customization (Both, Horizontal, Vertical, None)
  • Serialization and Deserialization (Save/LoadSettings)
  • Localization (ResourceManager)
  • UI Automation support for accessibility
  • Theming (MaterialLight, MaterialDark, Office2019, etc.)
  • Helper methods and utilities
  • NodeCheckBox for node selection
  • ToolTip customization

Quick Start Example

Basic Self-Relational TreeGrid

<Window x:Class="TreeGridSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:syncfusion="http://schemas.syncfusion.com/wpf">

    <syncfusion:SfTreeGrid Name="treeGrid"
                           AutoGenerateColumns="True"
                           ChildPropertyName="Children"
                           ItemsSource="{Binding Employees}"
                           AllowSorting="True"
                           AllowFiltering="True"
                           AllowEditing="True">
    </syncfusion:SfTreeGrid>
</Window>
using Syncfusion.UI.Xaml.TreeGrid;
using System.Collections.ObjectModel;

namespace TreeGridSample
{
    public class Employee
    {
        public int EmployeeID { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Title { get; set; }
        public int ReportsTo { get; set; }
        public ObservableCollection<Employee> Children { get; set; }

        public Employee()
        {
            Children = new ObservableCollection<Employee>();
        }
    }

    public class EmployeeViewModel
    {
        public ObservableCollection<Employee> Employees { get; set; }

        public EmployeeViewModel()
        {
            Employees = new ObservableCollection<Employee>();
            PopulateData();
        }

        private void PopulateData()
        {
            var ceo = new Employee
            {
                EmployeeID = 1,
                FirstName = "Robert",
                LastName = "King",
                Title = "CEO"
            };

            ceo.Children.Add(new Employee
            {
                EmployeeID = 2,
                FirstName = "David",
                LastName = "Smith",
                Title = "VP of Sales",
                ReportsTo = 1
            });

            ceo.Children.Add(new Employee
            {
                EmployeeID = 3,
                FirstName = "Nancy",
                LastName = "Davolio",
                Title = "VP of Marketing",
                ReportsTo = 1
            });

            Employees.Add(ceo);
        }
    }
}

Common Patterns

Pattern 1: Self-Relational Data Binding

For data where parent-child relationship exists within the same collection:

public class Task
{
    public int TaskID { get; set; }
    public string TaskName { get; set; }
    public int? ParentID { get; set; }  // Nullable for root items
}

// ViewModel
public ObservableCollection<Task> Tasks { get; set; }
<syncfusion:SfTreeGrid Name="treeGrid"
                       ItemsSource="{Binding Tasks}"
                       ParentPropertyName="ParentID"
                       SelfRelationRootValue="-1"
                       ChildPropertyName="TaskID">
</syncfusion:SfTreeGrid>

Pattern 2: Nested Collection Binding

For data with explicit child collections:

public class Folder
{
    public string FolderName { get; set; }
    public ObservableCollection<Folder> SubFolders { get; set; }
}
<syncfusion:SfTreeGrid Name="treeGrid"
                       ItemsSource="{Binding Folders}"
                       ChildPropertyName="SubFolders">
</syncfusion:SfTreeGrid>

Pattern 3: Load-On-Demand with RequestTreeItems

For large datasets where child nodes load when parent expands:

treeGrid.RequestTreeItems += TreeGrid_RequestTreeItems;

private void TreeGrid_RequestTreeItems(object sender, TreeGridRequestTreeItemsEventArgs e)
{
    if (e.ParentItem == null)
    {
        // Load root nodes
        e.ChildItems = GetRootNodes();
    }
    else
    {
        // Load child nodes for expanded parent
        var parent = e.ParentItem as BusinessObject;
        e.ChildItems = GetChildNodes(parent.ID);
    }
}

Pattern 4: Custom Column Definition

<syncfusion:SfTreeGrid ItemsSource="{Binding Employees}"
                       AutoGenerateColumns="False">
    <syncfusion:SfTreeGrid.Columns>
        <syncfusion:TreeGridTextColumn HeaderText="Name"
                                       MappingName="FirstName"
                                       Width="150"/>
        <syncfusion:TreeGridNumericColumn HeaderText="Age"
                                          MappingName="Age"
                                          NumberDecimalDigits="0"/>
        <syncfusion:TreeGridDateTimeColumn HeaderText="DOB"
                                           MappingName="DateOfBirth"
                                           FormatString="MM/dd/yyyy"/>
        <syncfusion:TreeGridCheckBoxColumn HeaderText="Active"
                                           MappingName="IsActive"/>
    </syncfusion:SfTreeGrid.Columns>
</syncfusion:SfTreeGrid>

Pattern 5: MVVM Command Binding

<syncfusion:SfTreeGrid ItemsSource="{Binding Employees}"
                       ChildPropertyName="Children">
    <syncfusion:SfTreeGrid.RecordContextMenu>
        <ContextMenu>
            <MenuItem Header="Add Child"
                      Command="{Binding AddChildCommand}"
                      CommandParameter="{Binding}"/>
            <MenuItem Header="Delete"
                      Command="{Binding DeleteCommand}"
                      CommandParameter="{Binding}"/>
        </ContextMenu>
    </syncfusion:SfTreeGrid.RecordContextMenu>
</syncfusion:SfTreeGrid>
public class EmployeeViewModel : INotifyPropertyChanged
{
    public ICommand AddChildCommand { get; set; }
    public ICommand DeleteCommand { get; set; }

    public EmployeeViewModel()
    {
        AddChildCommand = new RelayCommand(AddChild);
        DeleteCommand = new RelayCommand(Delete);
    }

    private void AddChild(object parameter)
    {
        var parent = parameter as Employee;
        if (parent != null)
        {
            parent.Children.Add(new Employee { /* ... */ });
        }
    }
}

Key Properties

Essential Properties

PropertyTypeDescription
ItemsSourceIEnumerableData source for the TreeGrid
ChildPropertyNamestringProperty name for child collection
ParentPropertyNamestringProperty name for parent ID (self-relational)
SelfRelationRootValueobjectValue indicating root level nodes
AutoGenerateColumnsboolAuto-generate columns from data source
ColumnsTreeGridColumnsCollection of column definitions

Behavior Properties

PropertyTypeDescription
AllowEditingboolEnable/disable cell editing
AllowSortingboolEnable/disable sorting
AllowFilteringboolEnable/disable filtering
FilterLevelFilterLevelFiltering scope (Root, All, Extended)
SelectionModeGridSelectionModeSelection mode (Single, Multiple, Extended)
SelectionUnitGridSelectionUnitSelection unit (Row, Cell, Any)
AutoExpandModeAutoExpandModeAuto-expand behavior (RootNodesExpanded, AllNodesExpanded)
ExpanderPositionExpanderPositionPosition of expand/collapse icon (Start, End)

Display Properties

PropertyTypeDescription
GridLinesVisibilityGridLinesVisibilityGrid lines display (Both, Horizontal, Vertical, None)
ColumnSizerGridLengthUnitTypeColumn auto-sizing strategy
RowHeightdoubleHeight of each row
HeaderRowHeightdoubleHeight of header row
IndentColumnWidthdoubleWidth of indent for each level

Common Use Cases

1. Employee Hierarchy Management

Display organizational structure with employees, managers, and departments in expandable tree format.

2. File System Browser

Show folders and files in hierarchical structure with load-on-demand for large directory trees.

3. Project Task Management

Display projects, sub-projects, tasks, and subtasks with status tracking, editing, and conditional styling.

4. Bill of Materials (BOM)

Show product assemblies with components, sub-components, quantities, and costs in hierarchical view.

5. Category-Product Catalog

Display product categories, subcategories, and products with filtering, sorting, and export capabilities.

6. Account Hierarchy

Financial account trees with parent-child relationships, balance calculations, and drill-down capabilities.

7. Multi-Level Approval Workflows

Track approval hierarchies with status indicators, conditional styling, and interactive editing.

8. Geographic Data Organization

Display countries, states, cities in hierarchical format with data visualization and export features.

Performance Considerations

  • Use Load-On-Demand for datasets with more than 1,000 total nodes
  • Enable Virtualization (enabled by default) for smooth scrolling
  • Avoid complex templates in frequently updated cells
  • Use ItemsSourceChanged event instead of frequent rebinding
  • Batch updates when modifying multiple nodes
  • Disable live updates (LiveNodeUpdateMode) when not needed
  • Optimize FilterLevel choice based on data structure

Related Skills

Support Resources


Next Steps: Navigate to the specific reference file above based on your implementation needs. Start with getting-started.md for initial setup, then explore data binding, column configuration, and advanced features as needed.

平台分布

Codex

37.12%
按下载量换算126

Claude

29.41%
按下载量换算100

Cursor

19.26%
按下载量换算65

Gemini CLI

10.38%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills