Skip to main content
.NETFramework4.6.2net8.0-windows

Target Platform/Framework: Desktop DevExpress Product Libraries Used: WPF UI components (https://www.devexpress.com/wpf) Available in the following DevExpress Subscription(s): Universal, DXperience, WPF

Published
Oct 8, 2026
13d ago
Total Downloads
105.9K
105,929

Install

dotnet add package DevExpress.Wpf.Gantt --version 26.1.6-pre-26277
ProductVersions
.NET
net8.0-windows
Other
.NETFramework4.6.2

README

DevExpress WPF: Gantt Control

DevExpress.Wpf.Gantt implements the DevExpress WPF Gantt control. This control is a project planning tool that combines a task tree and a timeline chart in a single view. Bind the control to your task collection so that users can review a schedule, follow dependencies between tasks, and reschedule work with drag-and-drop operations. The control adapts to the active DevExpress theme and visually matches the rest of your application.

dotnet add package DevExpress.Wpf.Gantt

Key Features

  • Task tree and timeline in one control — a tree list displays task data, and the Gantt area displays the same tasks as bars on a timescale.
  • Task types — regular tasks, summary tasks, and milestones.
  • Task dependencies — finish-to-start, start-to-start, finish-to-finish, and start-to-finish predecessor links with lag.
  • Critical path — highlight the chain of linked tasks that determines the project finish date.
  • Baselines — display planned dates next to actual dates to track schedule drift.
  • Working time rules — define workdays, working hours, and holidays, then hide or show nonworking time in the chart.
  • Strip lines — mark deadlines, iterations, and recurring intervals in the Gantt area.
  • Resources — assign resources to tasks and display them next to task bars.
  • Interactive editing — users can drag task bars to change dates, resize them to change duration, drag the progress handle, and draw connectors between tasks.
  • Timescale zoom — switch detail levels from milliseconds to years, and stack multiple timescale rulers above the chart.
  • Printing — print or export a schedule.

Examples

Example 1: Display a Project Schedule

<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dxgn="http://schemas.devexpress.com/winfx/2008/xaml/gantt">

    <dxgn:GanttControl ItemsSource="{Binding Tasks}">
        <!-- Columns display task fields in the tree list on the left. -->
        <dxgn:GanttColumn BindTo="Name" Width="200" />
        <dxgn:GanttColumn BindTo="StartDate" Width="100" />
        <dxgn:GanttColumn BindTo="Duration" Width="100" />

        <dxgn:GanttControl.View>
            <!-- Mappings tell the control which properties store task data. -->
            <dxgn:GanttView KeyFieldName="Id"
                            ParentFieldName="ParentId"
                            NameMapping="Name"
                            StartDateMapping="StartDate"
                            FinishDateMapping="FinishDate"
                            ProgressMapping="Progress"
                            PredecessorLinksPath="Links"
                            AutoExpandAllNodes="True">
                <dxgn:GanttView.PredecessorLinkMappings>
                    <dxgn:GanttPredecessorLinkMappings Task="Id" PredecessorTask="PredecessorId" />
                </dxgn:GanttView.PredecessorLinkMappings>
            </dxgn:GanttView>
        </dxgn:GanttControl.View>
    </dxgn:GanttControl>
</Window>

In this configuration, the control behaves as follows:

  • Builds a task hierarchy using values in the Id and ParentId fields
  • Displays tasks as bars on the diagram
  • Connects tasks that reference each other through predecessor links

Example 2: Highlight the Critical Path and Baselines

<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dxgn="http://schemas.devexpress.com/winfx/2008/xaml/gantt">

    <dxgn:GanttControl ItemsSource="{Binding Tasks}">
        <dxgn:GanttColumn BindTo="Name" Width="200" />

        <dxgn:GanttControl.View>
            <dxgn:GanttView KeyFieldName="Id"
                            ParentFieldName="ParentId"
                            NameMapping="Name"
                            StartDateMapping="StartDate"
                            FinishDateMapping="FinishDate"
                            PredecessorLinksPath="Links"
                            BaselineStartDateMapping="PlannedStart"
                            BaselineFinishDateMapping="PlannedFinish"
                            CriticalPathHighlightMode="Multiple">
                <dxgn:GanttView.PredecessorLinkMappings>
                    <dxgn:GanttPredecessorLinkMappings Task="Id" PredecessorTask="PredecessorId" />
                </dxgn:GanttView.PredecessorLinkMappings>
            </dxgn:GanttView>
        </dxgn:GanttControl.View>
    </dxgn:GanttControl>
</Window>

The control analyzes predecessor links, calculates critical paths, and highlights the tasks that affect the project finish date. Baseline bars appear below the task bars so users can compare planned dates with current dates.

Evaluation Period, Pricing Options, and Licensing Terms

Whether you own a license or want to start a 30-day evaluation period, download and register your DevExpress license key. To obtain your key, log in to the DevExpress Download Manager. Use your existing DevExpress.com account or create a new account for free. For key registration instructions, see License Key for DevExpress Products.

If you purchase a license after evaluating a product, re-register your updated DevExpress license key to remove evaluation version warnings/messages.

This package is included in the following commercial subscriptions:

See DevExpress Subscriptions & Licensing for subscription comparison tables, purchasing FAQ, and licensing information.

Related Components/Packages

DevExpress.Wpf.Grid - DevExpress WPF Data Grid and Tree List controls.

dotnet add package DevExpress.Wpf.Grid

DevExpress.Wpf - The complete DevExpress WPF Control suite.

dotnet add package DevExpress.Wpf

Demos

NOTE: Demo links below only work if you already have DevExpress WPF Demos installed on your machine. To install demos, download and run the DevExpress Unified Installer (evaluation or licensed version). Remember to select "Demo Applications" on the product selection screen.

Documentation

Software Bill of Materials (SBOM)

To access SBOM files for DevExpress packages, please refer to the following article: Software Bill of Materials (SBOM) for DevExpress .NET assemblies/NuGet packages, JavaScript, VCL and other redistributable artifacts.

See Also: Information Security | Security - What You Need to Know

Useful Online Resources

Changes from Previous Version

No structural changes between v26.1.6-pre-26270 and v26.1.6-pre-26277.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.