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

syncfusion-wpf-diagram同步融合 wpf 图

Agent Skill

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

总安装

1,032

周安装

43

GitHub Stars

2

下载量

344
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

同步融合 WPF 流程图组件,用于绘制节点连线式的图形化业务流程表示。

  • 适用于系统设计、架构图绘制等需要可视化流程或关系的 WPF 应用开发。
  • 通过 GitHub 安装技能模块,使用 npx skills add 命令完成本地技能集成。
  • 需确保宿主环境支持矢量图形编辑及鼠标拖拽交互事件处理机制。
  • 建议查阅官方文档了解自动对齐、连接线样式、导出 PNG/SVG 等格式支持情况。

SKILL.md

Implementing Syncfusion WPF Diagram (SfDiagram)

The Syncfusion WPF Diagram control (SfDiagram) is a feature-rich diagramming library for building interactive flowcharts, org charts, BPMN diagrams, UML diagrams, network diagrams, and more in WPF applications. It provides nodes, connectors, annotations, ports, automatic layouts, and extensive customization options.

When to Use This Skill

  • Creating any visual diagram in a WPF application (flowchart, org chart, mindmap, etc.)
  • Adding nodes, connectors, annotations, or ports to a diagram
  • Implementing BPMN or UML diagrams
  • Setting up automatic diagram layouts (hierarchical, org, mindmap, flowchart, radial)
  • Configuring a symbol palette (stencil) for drag-and-drop diagram building
  • Binding a data source to generate diagrams dynamically
  • Enabling diagram interaction (selection, drag, resize, zoom, keyboard shortcuts)
  • Exporting or printing diagrams
  • Customizing diagram appearance (gridlines, rulers, themes, page settings)

Quick Start

1. Install NuGet Package

Install-Package Syncfusion.SfDiagram.WPF

2. Add Namespace in XAML

xmlns:syncfusion="http://schemas.syncfusion.com/wpf"

3. Declare SfDiagram

<Window xmlns:syncfusion="http://schemas.syncfusion.com/wpf" ...>
    <Grid>
        <syncfusion:SfDiagram x:Name="diagram">
            <syncfusion:SfDiagram.Nodes>
                <syncfusion:NodeCollection/>
            </syncfusion:SfDiagram.Nodes>
            <syncfusion:SfDiagram.Connectors>
                <syncfusion:ConnectorCollection/>
            </syncfusion:SfDiagram.Connectors>
        </syncfusion:SfDiagram>
    </Grid>
</Window>

4. Add a Node and Connector in Code-Behind

using Syncfusion.UI.Xaml.Diagram;

// Add nodes
var node1 = new NodeViewModel { ID = "Start", UnitWidth = 120, UnitHeight = 40,
    OffsetX = 200, OffsetY = 100, Shape = this.Resources["Ellipse"] };
var node2 = new NodeViewModel { ID = "End", UnitWidth = 120, UnitHeight = 40,
    OffsetX = 200, OffsetY = 250, Shape = this.Resources["Rectangle"] };
(diagram.Nodes as NodeCollection).Add(node1);
(diagram.Nodes as NodeCollection).Add(node2);

// Add connector
var connector = new ConnectorViewModel { SourceNodeID = "Start", TargetNodeID = "End" };
(diagram.Connectors as ConnectorCollection).Add(connector);

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly deployment and NuGet setup
  • Adding SfDiagram via XAML or code
  • License key registration
  • Merging built-in shape resource dictionaries
  • Creating a minimal flowchart example

Nodes

📄 Read: references/nodes.md

  • Defining and positioning nodes (XAML and C#)
  • Built-in shapes and custom shape templates
  • Node appearance: fill, stroke, shadow, tooltip
  • Node groups and containers
  • Node constraints (lock, select, resize, rotate)
  • Node events

Connectors

📄 Read: references/connectors.md

  • Defining connectors between nodes
  • Connector types: straight, orthogonal, cubic Bezier, arc, quadratic
  • Appearance: line style, arrows, dashes
  • Connector routing and segments
  • Connector constraints and interaction
  • Connector splitting at intersection

Annotations

📄 Read: references/annotations.md

  • Adding text labels to nodes and connectors
  • Positioning and alignment of annotations
  • Appearance customization (font, background, border)
  • Editing annotations at runtime
  • Annotation events

Ports

📄 Read: references/ports.md

  • Defining connection ports on nodes
  • Port types and visual appearance
  • Hover effects on ports
  • Automatic port creation
  • Port-to-port connector creation

Interaction

📄 Read: references/interaction.md

  • Selection (single, multi, select by type)
  • Drag and drop nodes and connectors
  • Resize, rotate, and flip
  • Zoom and pan
  • Keyboard shortcuts
  • Tooltips and user handles
  • Scroll settings, drag limits, snapping

Commands

📄 Read: references/commands.md

  • Alignment (left, right, top, bottom, center)
  • Clipboard operations (cut, copy, paste, duplicate)
  • Delete nodes and connectors
  • Undo/Redo via commands
  • Nudge (arrow key movement)
  • Rotate, flip, fit-to-page
  • Spacing, sizing, Z-order
  • Expand/collapse nodes
  • Custom command manager

Automatic Layouts

📄 Read: references/automatic-layouts.md

  • Hierarchical Tree Layout
  • Organization Chart Layout
  • Mind Map Layout
  • Flowchart Layout
  • Radial Tree Layout
  • Force Directed Layout
  • Layout configuration (spacing, orientation, margin)

BPMN Shapes

📄 Read: references/bpmn-shapes.md

  • BPMN activities (tasks, sub-processes)
  • BPMN events (start, intermediate, end)
  • BPMN gateways
  • BPMN data objects and data stores
  • BPMN connectors and text annotations
  • BPMN groups and symbol palette

UML Diagrams

📄 Read: references/uml-diagrams.md

  • UML shape types (class, component, use case, activity, state, sequence)
  • UML sequence diagram elements
  • Configuring UML shapes and relationships

Swimlane

📄 Read: references/swimlane.md

  • Creating swimlane diagrams
  • Defining lanes and phases
  • Swimlane symbol palette
  • Swimlane interaction and customization

Stencil (Symbol Palette)

📄 Read: references/stencil.md

  • Setting up a drag-and-drop symbol palette
  • Symbol groups and categories
  • Symbol filtering and search
  • Adding custom shapes to palette
  • Stencil appearance

Data Source

📄 Read: references/data-source.md

  • Binding a flat data collection to diagram
  • Parent-child data relationships
  • Self-referencing hierarchical data
  • Dynamic data update

Serialization & Undo/Redo

📄 Read: references/serialization-undo-redo.md

  • Save and load diagram as XML
  • Serialize to/from JSON or stream
  • Undo/Redo history manager
  • Custom undo/redo entries

Diagram Customization

📄 Read: references/diagram-customization.md

  • Gridlines (visibility, style, snapping)
  • Rulers (appearance, measurement units)
  • Page settings (size, orientation, margins, background)
  • Scroll settings and auto-scroll
  • Themes and styles
  • Localization
  • Context menu
  • Diagram Ribbon
  • Drawing tools
  • Overview control

Export & Print

📄 Read: references/export-print.md

  • Export diagram to PNG, JPEG, BMP
  • Export to PDF
  • Print with print settings
  • Preview before printing

Performance & Constraints

📄 Read: references/performance-constraints.md

  • Virtualization for large diagrams
  • Diagram-level constraints
  • Node and connector constraints
  • Performance optimization tips

Common Patterns

Pattern: Flowchart with Automatic Layout

When users want an auto-arranged diagram from data — read references/automatic-layouts.md and references/data-source.md.

Pattern: Org Chart from Business Data

Bind employee data with parent-child relationships and apply Organization Layout — read references/data-source.md and references/automatic-layouts.md.

Pattern: BPMN Process Diagram

For business process modeling with standardized shapes — read references/bpmn-shapes.md.

Pattern: Interactive Diagram Builder

For apps where users drag shapes from a palette — read references/stencil.md and references/interaction.md.

Pattern: Save/Load Diagram State

For persisting diagram state across sessions — read references/serialization-undo-redo.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.2%
按下载量换算125

Claude

30.48%
按下载量换算105

Cursor

20.58%
按下载量换算71

Gemini CLI

10.12%
按下载量换算35

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills