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

syncfusion-wpf-gantt同步融合 wpf 甘特图

Agent Skill

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

总安装

1,011

周安装

43

GitHub Stars

2

下载量

354
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

同步融合 WPF 甘特图组件,用于项目进度规划与时间轴可视化管理。

  • 适用于项目管理工具、任务调度系统等需要时间线展示的应用场景。
  • 通过 GitHub 安装技能包,利用 npx skills add 命令完成本地技能注册。
  • 需确认宿主已正确引用 Syncfusion GanttView 控件及任务依赖关系计算库。
  • 建议查阅 SKILL.md 获取关键路径高亮、资源分配、里程碑标记等高级功能配置详情。

SKILL.md

Implementing WPF Gantt Control

Comprehensive guide for implementing the Syncfusion® Essential Gantt control for WPF applications. The Gantt control is an MS Project-like project management viewer with built-in grid, schedule, and resource assignment capabilities designed to help project managers develop plans, assign resources, track task progress, and manage project timelines.

When to Use This Skill

Use this skill when you need to:

  • Implement project management features in WPF applications
  • Visualize task timelines with Gantt chart representations
  • Create task hierarchies with parent-child relationships
  • Configure task dependencies with predecessor/successor relationships
  • Enable drag-and-drop for task scheduling and date adjustments
  • Track project progress with baselines and progress indicators
  • Manage resources and assign them to tasks
  • Customize Gantt visuals with custom nodes, tooltips, and styles
  • Import/export project data from/to XML format
  • Implement zooming and timeline navigation
  • Add filtering and sorting for task management
  • Support localization for international projects

This skill covers the complete Gantt control implementation from basic setup to advanced customization.

Component Overview

Architecture

The Essential Gantt control is composed of three main components:

  1. GanttGrid - Table view displaying scheduled tasks with hierarchy and editable fields
  2. GanttChart - Graphical representation showing task bars, milestones, and dependencies
  3. ScheduleHeader - Timeline header for measuring and tracking progress

Key Capabilities

Task Management:

  • Hierarchical task structure (parent/child tasks)
  • Task properties (name, start/finish dates, duration, progress)
  • Milestone support for target dates
  • Task dependencies with connectors

Visual Features:

  • Progress indicators showing completion percentage
  • Custom node styles for different task types
  • Highlighting and strip lines for visual emphasis
  • Custom tooltips for detailed task information

Interactions:

  • Drag to adjust task start/finish dates
  • Drag-and-drop tasks within rows
  • Automatic synchronization between grid and chart
  • Zooming for different timeline scales

Data Operations:

  • MVVM-compatible data binding
  • ObservableCollection support
  • XML import/export for project data
  • Filtering and sorting capabilities
  • Data virtualization for large projects

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When you need to:

  • Install and set up the Gantt control in your WPF project
  • Understand the Gantt control architecture and components
  • Add GanttControl programmatically or through XAML designer
  • Configure basic properties (ChartWidth, GridWidth)
  • Set schedule types and range padding
  • Configure auto-expand modes for task hierarchy
  • Apply themes to the Gantt control

Topics covered: Installation, control structure, class diagram, basic configuration, schedule types, auto-expand modes, theming


Data Binding & Task Management

📄 Read: references/data-binding.md

When you need to:

  • Create TaskDetails collections for project data
  • Bind data to GanttControl ItemsSource
  • Implement ViewModel pattern with ObservableCollection
  • Define task properties (ID, name, dates, progress)
  • Create parent-child task hierarchies
  • Configure external property binding
  • Assign resources to tasks
  • Follow data model best practices

Topics covered: TaskDetails binding, ObservableCollection, task properties, hierarchy creation, resource assignment, MVVM patterns


Scheduling & Time Management

📄 Read: references/task-scheduling.md

When you need to:

  • Configure schedule types (Hours, Days, Weeks, Months, Years)
  • Implement custom DateTime or numeric schedules
  • Customize calendars with working days and business hours
  • Define holidays and non-working days
  • Set schedule range padding for better visualization
  • Implement zooming functionality
  • Show date with time in GanttGrid
  • Manage timeline and schedule views

Topics covered: Schedule types, calendar customization, holidays, zooming, timeline management, schedule configuration


Task Relationships & Dependencies

📄 Read: references/task-relationships.md

When you need to:

  • Create dependency relationships between tasks
  • Configure predecessor and successor tasks
  • Implement connectors for visual dependencies
  • Enable auto-update hierarchy for cascading changes
  • Add baseline support for tracking original schedules
  • Track task progress against baselines
  • Implement milestones for project targets
  • Define different relationship types

Topics covered: Dependencies, connectors, auto-update hierarchy, baselines, milestones, relationship types, progress tracking


Visual Customization

📄 Read: references/customization.md

When you need to:

  • Apply custom node styles for different task types
  • Create custom tooltips with rich task information
  • Highlight specific tasks for emphasis
  • Add strip lines as visual guides on the timeline
  • Customize DateTime indicators
  • Style header nodes and task nodes
  • Customize progress indicators
  • Apply visual themes and templates
  • Implement conditional styling

Topics covered: Custom node styles, tooltips, highlighting, strip lines, DateTime indicators, themes, templates, conditional styling


Interactions & Drag-Drop

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

When you need to:

  • Enable drag support for adjusting task dates
  • Implement task bar dragging to change start/finish dates
  • Configure drag-and-drop for task reordering
  • Handle automatic data synchronization during drag operations
  • Respond to drag events
  • Configure drag behavior and constraints
  • Implement custom drag validation

Topics covered: Drag to resize, drag-and-drop reordering, event handling, synchronization, drag constraints


Data Operations

📄 Read: references/data-operations.md

When you need to:

  • Filter tasks based on criteria
  • Sort task lists by various properties
  • Implement data virtualization for large projects
  • Import project data from XML files
  • Export project data to XML format
  • Perform bulk operations on tasks
  • Search and filter task collections
  • Optimize performance with large datasets

Topics covered: Filtering, sorting, virtualization, XML import/export, bulk operations, search, performance optimization


Resource Management

📄 Read: references/resource-management.md

When you need to:

  • Implement resource view in Gantt
  • Configure Gantt inline items for resources
  • Assign resources to tasks
  • Create and manage resource collections
  • Track resource allocation across tasks
  • Implement multi-resource task assignments
  • Display resource information in the chart

Topics covered: Resource views, inline items, resource assignment, collections, allocation tracking, multi-resource tasks


Localization & Internationalization

📄 Read: references/localization.md

When you need to:

  • Configure flow direction (LTR/RTL) for different languages
  • Implement localization support
  • Apply culture-specific formatting
  • Manage multi-language resources
  • Format dates and times by locale
  • Localize resource strings and UI text
  • Support international project teams

Topics covered: Flow direction, localization, culture formatting, multi-language resources, date/time formatting, resource strings


Quick Start Example

Basic Gantt Control Implementation

Here's a minimal example to get started with the Gantt control:

XAML:

<Window x:Class="GanttDemo.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"
        Title="Project Management" Height="600" Width="1000">

    <syncfusion:GanttControl x:Name="ganttControl"
                             ItemsSource="{Binding TaskDetails}"
                             GridWidth="300"
                             ChartWidth="700">
        <syncfusion:GanttControl.DataContext>
            <local:ViewModel/>
        </syncfusion:GanttControl.DataContext>
    </syncfusion:GanttControl>

</Window>

ViewModel (C#):

using System;
using System.Collections.ObjectModel;
using Syncfusion.Windows.Controls.Gantt;

public class ViewModel
{
    public ObservableCollection<TaskDetails> TaskDetails { get; set; }

    public ViewModel()
    {
        TaskDetails = new ObservableCollection<TaskDetails>();

        // Create parent task
        var parentTask = new TaskDetails
        {
            TaskId = 1,
            TaskName = "Project Planning",
            StartDate = new DateTime(2024, 1, 1),
            FinishDate = new DateTime(2024, 1, 15),
            Progress = 40d
        };

        // Add child tasks
        parentTask.Child.Add(new TaskDetails
        {
            TaskId = 2,
            TaskName = "Define project scope",
            StartDate = new DateTime(2024, 1, 1),
            FinishDate = new DateTime(2024, 1, 5),
            Progress = 100d
        });

        parentTask.Child.Add(new TaskDetails
        {
            TaskId = 3,
            TaskName = "Gather requirements",
            StartDate = new DateTime(2024, 1, 6),
            FinishDate = new DateTime(2024, 1, 10),
            Progress = 50d
        });

        TaskDetails.Add(parentTask);
    }
}

Result: A functional Gantt control displaying project tasks with hierarchical structure, progress tracking, and timeline visualization.

Common Patterns

Pattern 1: Task Dependency Setup

// Create tasks with dependencies
var task1 = new TaskDetails
{
    TaskId = 1,
    TaskName = "Design",
    StartDate = new DateTime(2024, 1, 1),
    FinishDate = new DateTime(2024, 1, 10)
};

var task2 = new TaskDetails
{
    TaskId = 2,
    TaskName = "Development",
    StartDate = new DateTime(2024, 1, 11),
    FinishDate = new DateTime(2024, 1, 25)
};

// Task2 depends on Task1 (Finish-to-Start)
task2.Predecessor.Add(new Predecessor { GanttTaskIndex = 1, GanttTaskRelationship = GanttTaskRelationship.FinishToStart });

TaskDetails.Add(task1);
TaskDetails.Add(task2);

Pattern 2: Resource Assignment

// Define resources
var resources = new ObservableCollection<Resource>
{
    new Resource { ID = 1, Name = "John Smith" },
    new Resource { ID = 2, Name = "Jane Doe" }
};

// Assign resources to task
var task = new TaskDetails
{
    TaskId = 1,
    TaskName = "Implementation",
    StartDate = new DateTime(2024, 1, 1),
    FinishDate = new DateTime(2024, 1, 15),
    Resources = resources
};

Pattern 3: Custom Schedule Type

<syncfusion:GanttControl x:Name="ganttControl"
                         ItemsSource="{Binding TaskDetails}"
                         ScheduleType="WeekWithDays"
                         ScheduleRangePadding="5">
</syncfusion:GanttControl>
// Or in code-behind
ganttControl.ScheduleType = ScheduleType.WeekWithDays;
ganttControl.ScheduleRangePadding = 5;

Pattern 4: Baseline Comparison

// Enable baseline support
var task = new TaskDetails
{
    TaskId = 1,
    TaskName = "Project Phase 1",
    StartDate = new DateTime(2024, 1, 1),
    FinishDate = new DateTime(2024, 2, 1),
    BaselineStart = new DateTime(2024, 1, 1),
    BaselineFinish = new DateTime(2024, 1, 25),  // Original plan
    Progress = 60d
};
// Actual finish extends beyond baseline - shows delay

Key Properties & API

Essential Properties

PropertyTypeDescription
ItemsSourceIEnumerableCollection of TaskDetails to display
GridWidthGridLengthWidth of the Gantt grid section
ChartWidthGridLengthWidth of the Gantt chart section
ScheduleTypeScheduleTypeTimeline scale (Hours, Days, Weeks, etc.)
ScheduleRangePaddingintPadding in schedule units
AutoExpandModeGanttAutoExpandModeInitial expansion state of tasks
ShowDateWithTimeboolDisplay time along with dates in grid

TaskDetails Properties

PropertyTypeDescription
TaskIdintUnique identifier for the task
TaskNamestringDisplay name of the task
StartDateDateTimeTask start date/time
FinishDateDateTimeTask end date/time
DurationTimeSpanTask duration (calculated or set)
ProgressdoubleCompletion percentage (0-100)
ChildCollectionChild tasks for hierarchy
PredecessorCollectionTask dependencies
ResourcesCollectionAssigned resources

Common Methods

  • ExpandAll() - Expand all task nodes
  • CollapseAll() - Collapse all task nodes
  • ExportToXML() - Export project to XML file
  • ImportFromXML() - Import project from XML file

Architecture Overview

┌─────────────────────────────────────────────────────────────┐
│                      GanttControl                            │
├─────────────────────────────────────────────────────────────┤
│                                                               │
│  ┌──────────────────────┐  ┌─────────────────────────────┐ │
│  │    GanttGrid         │  │   GanttChartVisualControl   │ │
│  │  ┌────────────────┐  │  │  ┌────────────────────────┐ │ │
│  │  │ Header         │  │  │  │  ScheduleHeader        │ │ │
│  │  ├────────────────┤  │  │  ├────────────────────────┤ │ │
│  │  │ Parent Task    │  │  │  │  ═══╗                  │ │ │
│  │  │  ├─ Child 1    │  │  │  │     ║═══════           │ │ │
│  │  │  └─ Child 2    │  │  │  │          ║═════════════║ │ │
│  │  │ Parent Task    │  │  │  │  ═══════════╗          │ │ │
│  │  │  ├─ Child 3    │  │  │  │            ║════       │ │ │
│  │  └────────────────┘  │  │  └────────────────────────┘ │ │
│  └──────────────────────┘  └─────────────────────────────┘ │
│                                                               │
│         Data: ObservableCollection<TaskDetails>              │
└─────────────────────────────────────────────────────────────┘

Common Use Cases

  1. Software Project Management - Track development sprints, tasks, and milestones
  2. Construction Planning - Manage construction phases, dependencies, and resources
  3. Event Planning - Schedule event tasks, timelines, and resource allocation
  4. Research Projects - Track research phases, experiments, and deliverables
  5. Manufacturing Scheduling - Plan production tasks, dependencies, and resources
  6. Marketing Campaigns - Manage campaign tasks, timelines, and team assignments

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.1%
按下载量换算121

Claude

28.6%
按下载量换算101

Cursor

20.23%
按下载量换算72

Gemini CLI

8.65%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills