Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-wpf-pivot-grid同步融合 wpf 枢轴网格

Agent Skill

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

总安装

376

周安装

16

GitHub Stars

2

下载量

132
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

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

  • 适合围绕仓库状态、代码变更或协作事项进行整理与分析。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • syncfusion-wpf-pivot-grid 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion WPF PivotGrid

The Syncfusion WPF PivotGrid is a powerful cell-oriented, extensible grid control that simulates Microsoft Excel's pivot table feature. It pivots, summarizes, and groups relational data to organize it in a cross-tabulated form, ideal for financial domains and business data analysis.

When to Use This Skill

Use this skill when you need to:

  • Implement pivot tables in WPF applications for data analysis
  • Organize and summarize large datasets in cross-tabulated format
  • Configure pivot rows, columns, and calculations for multi-dimensional data views
  • Enable interactive data exploration with grouping bar and field list
  • Create business intelligence dashboards with pivot analysis
  • Add filtering and sorting to pivot data
  • Implement custom calculations and expression fields
  • Export or print pivot grid data
  • Build financial reports with dynamic data summarization
  • Enable drag-and-drop pivoting for end-user flexibility

Component Overview

The PivotGrid control provides comprehensive pivot table functionality:

  • Data Pivoting: Organize data by rows, columns, and values
  • Interactive UI: Grouping bar, field list, schema designer, value chooser
  • Data Operations: Filtering, sorting (including multi-column and by values)
  • Calculations: Built-in summary types, custom calculations, expression fields
  • Editing: Cell-level editing and updating
  • Customization: Context menus, layout options, freeze headers
  • Performance: Virtualization and asynchronous data loading
  • Export/Import: Data export, print support, state serialization

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and assembly references
  • Adding PivotGrid through Designer, XAML, or code-behind
  • License configuration
  • Basic PivotGrid setup and first render
  • Minimal working example

Data Binding

📄 Read: references/data-binding.md

  • Binding to List collections
  • Binding to DataTable and DataView
  • Asynchronous data loading for large datasets
  • ItemSource configuration patterns
  • Data source best practices

Core Concepts: PivotItems and Calculations

📄 Read: references/pivot-items-and-calculations.md

  • Understanding PivotItem (rows and columns)
  • PivotComputationInfo for value fields
  • Summary types (Count, Sum, Average, Min, Max, etc.)
  • FieldHeader, FieldMappingName, TotalHeader properties
  • Format strings for calculations
  • Basic calculation examples

Filtering

📄 Read: references/filtering.md

  • FilterExpression class overview
  • Defining filters in XAML and code-behind
  • Column filtering
  • Excel-like filtering UI
  • Multiple filter conditions
  • Filter expression syntax

Sorting

📄 Read: references/sorting.md

  • Default sorting behavior
  • Custom comparers for sort logic
  • Column sorting
  • Multi-column sorting
  • Sorting by values
  • Sorting events and customization

Grouping Bar

📄 Read: references/grouping-bar.md

  • Enabling and configuring grouping bar
  • Defining grouping bar properties
  • Drag-and-drop pivoting functionality
  • Grouping bar context menu
  • Customization and styling

Field List and Designer

📄 Read: references/field-list-and-designer.md

  • PivotGrid Field List
  • PivotSchemaDesigner for advanced configuration
  • Binding PivotSchemaDesigner to PivotGrid
  • Pivot Value Chooser
  • Setting captions in field list
  • Field management and customization

Custom Calculations

📄 Read: references/custom-calculations.md

  • Custom calculation overview
  • Runtime calculated fields
  • Runtime custom summaries
  • Expression fields for formulas
  • Advanced calculation patterns
  • Custom summary implementations

Editing and Updating

📄 Read: references/editing-and-updating.md

  • Enabling cell editing
  • Updating cell values
  • Edit events and validation
  • Data modification patterns

Context Menus

📄 Read: references/context-menus.md

  • Main PivotGrid context menu
  • Grouping bar context menu
  • Header cell context menu
  • Customizing menu items
  • Menu actions and events

Layout and Display Options

📄 Read: references/layout-and-display.md

  • Grid layout configuration
  • Freeze headers for fixed row/column headers
  • Auto-resizing to fit content
  • Restricting row header area resizing
  • RowPivotsOnly mode
  • Showing calculations as columns
  • Show/hide sub-totals and grand totals
  • Layout customization patterns

Selection

📄 Read: references/selection.md

  • Selection modes
  • Cell and range selection
  • Selection events
  • Programmatic selection

Exporting and Printing

📄 Read: references/exporting-and-printing.md

  • Exporting PivotGrid data
  • Supported export formats
  • Print functionality and print preview
  • Export configuration options

Serialization and State Persistence

📄 Read: references/serialization.md

  • Serializing PivotGrid configuration
  • Deserialization
  • State persistence across sessions
  • Saving and loading PivotGrid state

Advanced Features

📄 Read: references/advanced-features.md

  • Hyperlink cells
  • Inner-most computations
  • GetRawItem method for raw data access
  • Performance improvements with virtualization
  • Advanced scenarios and edge cases

Quick Start Example

Basic PivotGrid with Sales Data

XAML:

<Window 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"
        xmlns:local="clr-namespace:YourNamespace"
        Title="PivotGrid Example" Height="600" Width="800">
    <Window.Resources>
        <ObjectDataProvider x:Key="salesData"
                          ObjectType="{x:Type local:ProductSales}"
                          MethodName="GetSalesData" />
    </Window.Resources>

    <Grid>
        <syncfusion:PivotGridControl Name="pivotGrid"
                                    ItemSource="{Binding Source={StaticResource salesData}}">
            <!-- Define Pivot Rows -->
            <syncfusion:PivotGridControl.PivotRows>
                <syncfusion:PivotItem FieldHeader="Product"
                                     FieldMappingName="Product"
                                     TotalHeader="Total" />
                <syncfusion:PivotItem FieldHeader="Date"
                                     FieldMappingName="Date"
                                     TotalHeader="Total" />
            </syncfusion:PivotGridControl.PivotRows>

            <!-- Define Pivot Columns -->
            <syncfusion:PivotGridControl.PivotColumns>
                <syncfusion:PivotItem FieldHeader="Country"
                                     FieldMappingName="Country"
                                     TotalHeader="Total" />
                <syncfusion:PivotItem FieldHeader="State"
                                     FieldMappingName="State"
                                     TotalHeader="Total" />
            </syncfusion:PivotGridControl.PivotColumns>

            <!-- Define Calculations -->
            <syncfusion:PivotGridControl.PivotCalculations>
                <syncfusion:PivotComputationInfo CalculationName="Total Amount"
                                                FieldName="Amount"
                                                Format="C"
                                                SummaryType="DoubleTotalSum" />
                <syncfusion:PivotComputationInfo CalculationName="Quantity"
                                                FieldName="Quantity"
                                                SummaryType="Count" />
            </syncfusion:PivotGridControl.PivotCalculations>
        </syncfusion:PivotGridControl>
    </Grid>
</Window>

Code-behind (ProductSales.cs):

using System;
using System.Collections.Generic;

public class ProductSales
{
    public string Product { get; set; }
    public string Date { get; set; }
    public string Country { get; set; }
    public string State { get; set; }
    public int Quantity { get; set; }
    public double Amount { get; set; }

    public static List<ProductSales> GetSalesData()
    {
        return new List<ProductSales>
        {
            new ProductSales { Product = "Bike", Date = "FY 2005", Country = "Canada",
                             State = "Alberta", Quantity = 5, Amount = 150000 },
            new ProductSales { Product = "Car", Date = "FY 2006", Country = "Canada",
                             State = "Ontario", Quantity = 3, Amount = 90000 },
            // Add more data...
        };
    }
}

Common Patterns

Pattern 1: PivotGrid with Grouping Bar

Enable interactive drag-and-drop pivoting:

<syncfusion:PivotGridControl ShowGroupingBar="True">
    <!-- PivotItems and Calculations -->
</syncfusion:PivotGridControl>

Pattern 2: Code-Behind Configuration

Define PivotGrid programmatically:

PivotGridControl pivotGrid = new PivotGridControl();

// Add Pivot Rows
pivotGrid.PivotRows.Add(new PivotItem
{
    FieldHeader = "Product",
    FieldMappingName = "Product",
    TotalHeader = "Total"
});

// Add Pivot Columns
pivotGrid.PivotColumns.Add(new PivotItem
{
    FieldHeader = "Country",
    FieldMappingName = "Country",
    TotalHeader = "Total"
});

// Add Calculations
pivotGrid.PivotCalculations.Add(new PivotComputationInfo
{
    CalculationName = "Total",
    FieldName = "Amount",
    Format = "C",
    SummaryType = SummaryType.DoubleTotalSum
});

// Set ItemSource
pivotGrid.ItemSource = ProductSales.GetSalesData();

Pattern 3: Filtering Data

Apply filters to narrow data display:

FilterExpression filter = new FilterExpression
{
    DimensionHeader = "Product",
    DimensionName = "Product",
    Name = "ProductFilter",
    Expression = "Product = 'Bike'"
};
pivotGrid.Filters.Add(filter);

Pattern 4: Custom Sorting

Use custom comparers for specific sort logic:

public class ReverseOrderComparer : IComparer
{
    public int Compare(object x, object y)
    {
        return -x.ToString().CompareTo(y.ToString());
    }
}

// Apply to PivotItem
PivotItem item = new PivotItem
{
    FieldHeader = "Product",
    FieldMappingName = "Product",
    Comparer = new ReverseOrderComparer()
};

Key Properties

PivotGridControl Properties

  • ItemSource: Data source for the pivot grid
  • PivotRows: Collection of PivotItems for row dimensions
  • PivotColumns: Collection of PivotItems for column dimensions
  • PivotCalculations: Collection of PivotComputationInfo for value calculations
  • Filters: Collection of FilterExpression for filtering data
  • ShowGroupingBar: Enable/disable grouping bar
  • ShowFieldList: Enable/disable field list

PivotItem Properties

  • FieldHeader: Display header text
  • FieldMappingName: Property name to bind from data source
  • TotalHeader: Header text for total row/column
  • Comparer: Custom comparer for sorting

PivotComputationInfo Properties

  • CalculationName: Display name for the calculation
  • FieldName: Property name to calculate
  • SummaryType: Aggregation type (Count, Sum, Average, etc.)
  • Format: Display format string (e.g., "C" for currency)

Common Use Cases

Financial Reporting

Create comprehensive financial reports with multi-dimensional analysis of revenue, expenses, and profitability by product, region, and time period.

Sales Analysis

Analyze sales performance across products, territories, and time periods with dynamic pivoting and drill-down capabilities.

Business Intelligence Dashboards

Build interactive BI dashboards allowing users to explore data through drag-and-drop pivoting with grouping bar and field list.

Inventory Management

Track inventory levels, movements, and costs across warehouses, products, and time periods.

Budget Analysis

Compare budgets vs. actuals across departments, cost centers, and fiscal periods with variance calculations.

Related Components

  • PivotSchemaDesigner: Advanced configuration interface
  • PivotGrid Field List: Interactive field management
  • Grouping Bar: Drag-and-drop pivoting interface

Assembly Requirements

Required assemblies for WPF PivotGrid:

  • Syncfusion.Grid.Wpf
  • Syncfusion.GridCommon.Wpf
  • Syncfusion.Linq.Base
  • Syncfusion.PivotAnalysis.Base
  • Syncfusion.PivotAnalysis.Wpf
  • Syncfusion.Shared.Wpf

NuGet Package Installation

  • Important: Use version * (latest available).

Install via NuGet Package Manager:

Install-Package Syncfusion.PivotTable.wpf

Or via.NET CLI:

dotnet add package Syncfusion.PivotTable.wpf

The NuGet package automatically includes all required dependencies.

Namespace Imports

using Syncfusion.Windows.Controls.PivotGrid;
using Syncfusion.PivotAnalysis.Base;

Navigate to the appropriate reference file above for detailed implementation guidance on specific features.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.99%
按下载量换算50

Claude

28.14%
按下载量换算37

Cursor

18.47%
按下载量换算24

Gemini CLI

10.45%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills