Token导航 LogoToken导航TokenDH.com
运维和基础设施执行命令github未标认证来源可访问许可证需确认审计通过

syncfusion-wpf-grouping同步融合 wpf 分组

Agent Skill

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

总安装

282

周安装

12

GitHub Stars

2

下载量

99
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

同步融合 WPF 分组组件,用于对数据集按类别进行层级化组织与折叠展示。

  • 适用于分类浏览、树形目录等需要层次化数据呈现的 WPF 应用开发场景。
  • 通过 GitHub 仓库安装,使用 npx skills add 命令引入分组管理技能模块。
  • 使用前应确保宿主支持递归遍历算法及展开/折叠状态持久化存储机制。
  • 建议查看原始 README 获取自定义分组键、排序规则、空组过滤等高级配置选项说明。

SKILL.md

Implementing Syncfusion Essential Grouping for WPF

Syncfusion Essential Grouping is a 100% Native.NET data technology library that provides support for managing and manipulating tabular information without dependencies on any particular UI component. This framework can be used in any.NET environment including C#, VB.NET, and managed C++, making it ideal for scenarios where you need powerful data organization capabilities independent of visual controls.

When to Use This Skill

Use Essential Grouping when you need to:

  • Organize and analyze tabular data without binding to specific UI controls
  • Group data hierarchically by one or multiple properties (e.g., sales by month, employees by department)
  • Apply complex sorting including custom sorting logic with IComparer implementations
  • Filter records based on expressions using properties, logical operators, and special operators (LIKE, MATCH, IN, BETWEEN)
  • Calculate summaries at group levels (Sum, Average, Min, Max, Count)
  • Add calculated columns using expression fields with algebraic formulas
  • Work with IList data sources where items have public properties
  • Handle large datasets efficiently using binary tree data structures (Log2(n) operations for insert/remove/move)
  • Create nested groupings with sub-groups and recursive data structures

The GroupingEngine is particularly powerful when you need data manipulation capabilities that can work across different UI frameworks or in non-UI scenarios like data processing, reporting, or server-side operations.

Core Concepts

Architecture Overview

Essential Grouping uses balanced binary trees as its core data structure instead of arrays. Binary trees allow parent branches to cache information about their children, enabling:

  • Quick position lookups with cached information
  • Fast summary calculations cached in parent branches
  • Efficient inserts/removes/moves taking only Log2(n) operations (vs O(n) for ArrayList)

Key Components

Engine: The main GroupingEngine object that manages the entire data manipulation pipeline

TableDescriptor: Schema information holder with key collections:

  • GroupedColumns - Properties to group by
  • SortedColumns - Properties to sort by
  • Summaries - Summary calculations to perform
  • RecordFilters - Filter conditions to apply
  • ExpressionFields - Calculated columns to add

Table: Holds the actual data with collections:

  • Records - All records from data source
  • FilteredRecords - Records after applying filters
  • TopLevelGroup - Root group for accessing hierarchical data

Groups and Records: Recursive structure where:

  • Groups contain either Groups (sub-groups) or Records (terminal data)
  • Navigate hierarchically through TopLevelGroup

Documentation and Navigation Guide

Getting Started and Setup

📄 Read: references/getting-started.md

  • Prerequisites and compatibility (.NET 2.0 - 4.6, VS 2015+)
  • Installation and required assemblies
  • Deployment configuration (Copy Local, licensing)
  • Creating your first GroupingEngine application
  • Basic project setup and namespace imports

Data Binding and Iteration

📄 Read: references/data-binding.md

  • IList data source requirements
  • Creating custom object classes with public properties
  • Building ArrayList data sources
  • Setting data source with SetSourceList
  • Iterating through records using Table.Records
  • GetData() method and type casting

Grouping Operations

📄 Read: references/grouping-operations.md

  • Adding properties to GroupedColumns collection
  • Understanding TableDescriptor collections
  • Accessing the TopLevelGroup
  • Navigating recursive group structures
  • Retrieving specific groups by value
  • Group.Groups vs Group.Records collections

Sorting (Standard and Custom)

📄 Read: references/sorting.md

  • Adding properties to SortedColumns collection
  • Specifying sort direction (ListSortDirection)
  • SortedColumns.Add method overloads
  • Implementing custom sorting with IComparer
  • Creating custom comparer classes
  • Assigning comparer to SortColumnDescriptor

Filtering with Expressions

📄 Read: references/filtering.md

  • Creating RecordFilterDescriptor objects
  • Filter expression syntax with brackets []
  • String operators: LIKE, MATCH
  • Numeric comparisons: =, <, >, <=, >=, <>
  • Complex expressions with OR, AND
  • Using FilteredRecords collection

Summaries and Expression Fields

📄 Read: references/summaries-and-expressions.md

  • Creating SummaryDescriptor objects
  • SummaryType enum (Int32Aggregate, DoubleAggregate, etc.)
  • Retrieving summary values with GetSummary
  • Adding expression fields with ExpressionFieldDescriptor
  • Algebraic expression syntax
  • Special operators: MATCH, LIKE, IN, BETWEEN
  • Custom functions in expressions

Quick Start

Basic GroupingEngine Setup

using System;
using System.Collections;
using Syncfusion.Grouping;

namespace GroupingSample
{
    class Program
    {
        static void Main(string[] args)
        {
            // 1. Create your data source (IList with objects having public properties)
            ArrayList list = new ArrayList();
            list.Add(new Employee { Name = "John", Department = "Sales", Salary = 50000 });
            list.Add(new Employee { Name = "Jane", Department = "IT", Salary = 65000 });
            list.Add(new Employee { Name = "Bob", Department = "Sales", Salary = 55000 });
            list.Add(new Employee { Name = "Alice", Department = "IT", Salary = 70000 });

            // 2. Create GroupingEngine and set data source
            Engine groupingEngine = new Engine();
            groupingEngine.SetSourceList(list);

            // 3. Access data through Table.Records
            Console.WriteLine("All Records:");
            foreach (Record rec in groupingEngine.Table.Records)
            {
                Employee emp = rec.GetData() as Employee;
                if (emp != null)
                {
                    Console.WriteLine($"{emp.Name}, {emp.Department}, {emp.Salary}");
                }
            }

            // 4. Apply grouping
            groupingEngine.TableDescriptor.GroupedColumns.Add("Department");

            // 5. Navigate groups
            Console.WriteLine("\nGrouped by Department:");
            ShowRecordsUnderGroup(groupingEngine.Table.TopLevelGroup);

            Console.ReadLine();
        }

        static void ShowRecordsUnderGroup(Group g)
        {
            if (g.Records != null && g.Records.Count > 0)
            {
                // Terminal group - display records
                foreach (Record rec in g.Records)
                {
                    Employee emp = rec.GetData() as Employee;
                    if (emp != null)
                    {
                        Console.WriteLine($"  {emp.Name}, {emp.Department}, {emp.Salary}");
                    }
                }
            }
            else if (g.Groups != null && g.Groups.Count > 0)
            {
                // Has sub-groups - recurse
                foreach (Group subGroup in g.Groups)
                {
                    Console.WriteLine($"Group: {subGroup.Name}");
                    ShowRecordsUnderGroup(subGroup);
                }
            }
        }
    }

    public class Employee
    {
        public string Name { get; set; }
        public string Department { get; set; }
        public int Salary { get; set; }
    }
}

Common Patterns

Pattern 1: Group and Calculate Summaries

// Group by department
groupingEngine.TableDescriptor.GroupedColumns.Add("Department");

// Add summary for salary
SummaryDescriptor salarySum = new SummaryDescriptor(
    "DeptSalaryTotal",
    "Salary",
    SummaryType.Int32Aggregate
);
groupingEngine.TableDescriptor.Summaries.Add(salarySum);

// Get summary for a specific group
Group itGroup = groupingEngine.Table.TopLevelGroup.Groups["IT"];
ISummary summary = itGroup.GetSummary("DeptSalaryTotal");
Int32AggregateSummary aggSummary = (Int32AggregateSummary)summary;

Console.WriteLine($"IT Department Total: {aggSummary.Sum}");
Console.WriteLine($"IT Department Average: {aggSummary.Average}");

Pattern 2: Filter and Sort Data

// Sort by salary descending
SortColumnDescriptor sortDesc = new SortColumnDescriptor(
    "Salary",
    ListSortDirection.Descending
);
groupingEngine.TableDescriptor.SortedColumns.Add(sortDesc);

// Filter for salaries over 60000
RecordFilterDescriptor filter = new RecordFilterDescriptor("[Salary] > 60000");
groupingEngine.TableDescriptor.RecordFilters.Add(filter);

// Access filtered records
foreach (Record rec in groupingEngine.Table.FilteredRecords)
{
    Employee emp = rec.GetData() as Employee;
    Console.WriteLine($"{emp.Name}: {emp.Salary}");
}

Pattern 3: Add Expression Field (Calculated Column)

// Add a calculated bonus field (10% of salary)
ExpressionFieldDescriptor bonusField = new ExpressionFieldDescriptor(
    "Bonus",
    "[Salary] * 0.10"
);
groupingEngine.TableDescriptor.ExpressionFields.Add(bonusField);

// Access the calculated value
foreach (Record rec in groupingEngine.Table.Records)
{
    Employee emp = rec.GetData() as Employee;
    object bonusValue = rec.GetValue("Bonus");
    Console.WriteLine($"{emp.Name}: Salary={emp.Salary}, Bonus={bonusValue}");
}

Pattern 4: Custom Sorting with IComparer

// Custom comparer for case-insensitive name sorting
public class NameComparer : IComparer
{
    public int Compare(object x, object y)
    {
        if (x == null && y == null) return 0;
        if (x == null) return -1;
        if (y == null) return 1;

        return string.Compare(
            x.ToString(),
            y.ToString(),
            StringComparison.OrdinalIgnoreCase
        );
    }
}

// Apply custom comparer
NameComparer comparer = new NameComparer();
groupingEngine.TableDescriptor.SortedColumns.Add("Name");
groupingEngine.TableDescriptor.SortedColumns["Name"].Comparer = comparer;

Pattern 5: Nested Grouping (Multiple Levels)

// Group by Department, then by Salary range
groupingEngine.TableDescriptor.GroupedColumns.Add("Department");
groupingEngine.TableDescriptor.GroupedColumns.Add("SalaryRange");

// Navigate nested groups
foreach (Group deptGroup in groupingEngine.Table.TopLevelGroup.Groups)
{
    Console.WriteLine($"Department: {deptGroup.Name}");

    foreach (Group salaryGroup in deptGroup.Groups)
    {
        Console.WriteLine($"  Salary Range: {salaryGroup.Name}");

        foreach (Record rec in salaryGroup.Records)
        {
            Employee emp = rec.GetData() as Employee;
            Console.WriteLine($"    {emp.Name}: {emp.Salary}");
        }
    }
}

Key Properties and Collections

Engine Properties

  • Table - Holds the actual data and provides access to Records, FilteredRecords, and TopLevelGroup
  • TableDescriptor - Schema information with collections for grouping, sorting, filtering, summaries

TableDescriptor Collections

  • GroupedColumns - Properties to group by (hierarchical grouping when multiple added)
  • SortedColumns - Properties to sort by with optional custom comparers
  • RecordFilters - Filter conditions using expression syntax
  • Summaries - Summary calculations (Sum, Average, Min, Max, Count, etc.)
  • ExpressionFields - Calculated columns using algebraic expressions

Group Properties

  • Groups - Collection of child groups (if not terminal)
  • Records - Collection of records (if terminal group)
  • Name - The grouping value for this group
  • GetSummary(string name) - Retrieves summary value for this group

Record Methods

  • GetData() - Returns the underlying data object
  • GetValue(string propertyName) - Gets property or expression field value

Common Use Cases

  1. Sales Reporting: Group sales by region/month, calculate totals and averages, filter for high-value orders
  2. Employee Management: Group by department/role, sort by salary, calculate payroll summaries
  3. Inventory Analysis: Group products by category, filter stock levels, calculate value summaries
  4. Data Export Preparation: Organize data hierarchically before exporting to reports or other formats
  5. Server-Side Data Processing: Manipulate data on server without UI dependencies
  6. Multi-Framework Applications: Share data logic between WPF, WinForms, ASP.NET applications
  7. Custom Report Generators: Build report data structures with grouping and summaries
  8. Data Validation Pipelines: Filter and group data for validation and quality checks

Required Assemblies

When deploying applications using Essential Grouping, ensure these assemblies are copied to the application folder:

  • Syncfusion.Grouping.Base.dll
  • Syncfusion.Shared.Base.dll
  • Syncfusion.Shared.Wpf.dll

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.01%
按下载量换算33

Claude

31.91%
按下载量换算32

Cursor

21.26%
按下载量换算21

Gemini CLI

10.3%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-grouping 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills