WPF Gantt Control - CTP (v18.2)

31 October 2018

Shortly after we announced our WPF Gantt control back in July, we received numerous questions about its current status, its feature set, and whether it will be released in v18.2. In this blog post I will describe the features we expect to ship this year and peek into our plans for 2019.

Main Concept

As described in the announcement blog post, the Gantt control is a data-bound control that displays tasks from its ItemsSource in both a tree list and a Gantt area.

We evaluated several approaches and decided to make the Gantt control a TreeListControl descendant. This has the following advantages:

  1. The Gantt control uses the existing engine of the TreeListControl to handle its data. It benefits from performance optimizations we’ve made in recent years and supports both self-referential and hierarchical sources.
  2. The Gantt control supports all existing TreeListControl features, from data operations like filtering and sorting to cell editors and appearance settings.
  3. Those of you who have worked with the GridControl or the TreeListControl before can configure the Gantt control using a familiar API.

Data Binding

The Gantt control displays a collection of objects assigned to its ItemsSource property. To position these objects in the Gantt area, you need to map their properties to at least two out of the three basic task settings StartDate, FinishDate, and Duration - if you don't map all three, the remaining one will be calculated automatically.

<dxgn:GanttView StartDateMapping="Start" DurationMapping="Duration" />

Other task settings – including Name, Progress, Predecessor links, Baseline dates and duration - can also be linked to your data using mappings.

The DevExpress MVVM Library now also provides the GanttTask class that you can use in your ViewModel. When the Gantt control works with the GanttTask class or a descendant, you don't need to specify mappings.

Column Configuration

For every mapping you specify, you can also define a column to display in the tree list area.

<dxgn:GanttColumn BindTo="StartDate" />
<dxgn:GanttColumn BindTo="Duration" />

The BindTo property links a column to a specific task setting and allows the Gantt control to automatically configure column options (preferred width, cell editors, etc.)

Columns that are not linked to task settings and display custom data can be defined in the same manner as for the Data Grid or Tree List:

<dxgn:GanttColumn FieldName="Status" Width="45"/>

Task Types

The Gantt control can display three types of items: Tasks, Summary Tasks, and Milestones. The item type is determined automatically: a task with no duration is a Milestone, and a task with children is a Summary Task. Tasks and Summary Tasks can display their progress states in the Gantt area.


You can describe relations between tasks using separate data objects. Your data objects need to link tasks to their predecessors and can also specify a dependency type.

Predecessor links can either be defined as a separate collection (PredecessorLinksSource) or a property in a task object (PredecessorLinksPath). In both cases, mappings allow you to connect properties in your data object to link settings.

    <dxgn:GanttPredecessorLinkMappings PredecessorTask="PredecessorId" LinkType="Type" />

Just like for GanttTasks, the DevExpress MVVM Library includes the GanttPredecessorLink class that you can use in your ViewModel instead of specifying mappings.

Baseline Support

If your data objects store information about their originally planned dates and duration, you can display this information in the Gantt area.

Baseline dates and duration can be linked to task settings using mappings.

Dynamic Zoom Levels

End-users can change the zoom factor in the Gantt area. When zooming with the mouse, the Gantt control scrolls to retain focus on the mouse pointer position.

In code, the zoom level is defined by a TimeSpan value that equates to a single pixel.


The Timescale automatically adapts to the current zoom level. You can define how many rows the Timescale displays using the TimescaleRulerCount property. By handling the RequestTimescaleRulers event, you can also specify ruler units, their formatting, and other options. For example, the code below shows the Month and Day rulers when one day takes up from 15 to 100 pixels.

private void GanttView_RequestTimescaleRulers(object sender, RequestTimescaleRulersEventArgs e) {
    if (e.Zoom < TimeSpan.FromDays(1d / 15) && e.Zoom > TimeSpan.FromDays(1d / 100))
        e.TimescaleRulers = new List<TimescaleRuler> { new TimescaleRuler(TimescaleUnit.Month), new TimescaleRuler(TimescaleUnit.Day) };

Working Time and Holidays

The Gantt control provides a flexible set of rules that allow you to specify non-working days and define working time for each day. These rules describe to which days a custom schedule should apply and resemble the Recurrence Rule in the iCalendar format.

For example, this rule configures the workday to end one hour earlier every Friday:

    <dxgn:WorkingTimeRule WorkingTime="8:00-12:00,13:00-16:00" Recurrence="{dxgn:Weekly DayOfWeek=Friday}" />

And this rule specifies that Thanksgiving (the fourth Thursday in November) is a holiday:

    <dxgn:WorkdayRule IsWorkday="False" Recurrence="{dxgn:YearlyByDayOfWeek Month=11, DayOfWeek=Thursday, Week=4}" />

Of course you can also pass a list of holidays from your ViewModel to the Gantt control:

    <dxgn:WorkdayRule IsWorkday="False">
        <dxgn:SpecificDays Days="{Binding Holidays}" />

By default, the Gantt control highlights all non-working days and non-working time in the Gantt area. There is an option to turn this highlighting off or remove non-working days and time from the Gantt surface.

Appearance Customization

We know how important it is to customize the appearance of tasks in the Gantt control. Colors and additional elements can help your users visually group similar activities, recognize different resources, and understand task states.

You can use styles to customize task appearance in the Gantt control. Styles support a wide range of customization scenarios from simple background customization to your own task template. Here are a few examples.

This style colors all unfinished tasks that are behind schedule:

    <Style TargetType="dxgn:GanttTaskControl">
            <DataTrigger Binding="{DXBinding 'Node.FinishDate lt $sys:DateTime.Now and Node.Progress lt 100'}" Value="True">
                <Setter Property="Background" Value="LightCoral" />
                <Setter Property="ProgressBackground" Value="DarkRed" />

And this style changes the appearance of all tasks:

    <Style TargetType="dxgn:GanttTaskControl">
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="BorderBrush" Value="Black" />
        <Setter Property="CornerRadius" Value="3" />

Apart from customizing styles, you can also define what is displayed in a task’s content area:

        <TextBlock Text="{Binding Node.Progress, StringFormat=p0}" />

What's Next?

With the presentation part complete, we want to focus on editing in the next release cycle. Currently you can edit tasks in the Tree List area, and your changes are reflected in the Gantt area. However, we want to introduce automatic calculations within the same task (e.g., recalculating Duration when the FinishDate property is modified) and other dependent tasks (e.g., shifting a task when its preceding task is delayed). We also want to implement editing directly in the Gantt area (dragging tasks, changing their progress, making connections).

Please Tell Us Your Thoughts

As always, your feedback is vital. We are looking forward to hearing your thoughts on the new Gantt control and we will adjust and refine our plans depending on what we hear from you. Did you find the features you were looking for in this blog post? Is there anything else that you would like to see implemented? Let us know in the comments below or contact us at wpfteam@devexpress.com.

A final note: In comments on our previous blog post, many of you were asking about a Gantt control for WinForms. The WinForms team is currently discussing its plans, and the Gantt control has not yet been confirmed. Feel free to drop them an email at winformsteam@devexpress.com to share your opinion.  

30 comment(s)

Super. What about winforms?

31 October, 2018

Good job. Winforms?

31 October, 2018
Anders Wang

same question,What about winforms?

1 November, 2018

One more WinForms customer here!

1 November, 2018
Jonatas Hudler

Win-forms! Win-forms! Win-forms! Winforms please.

1 November, 2018
Everton Gonçalves

Winforms please !

1 November, 2018
Hedi Guizani

Winform plz

1 November, 2018
Basit Sarguroh

What about ASP.net webform?



1 November, 2018
Gustavo Vigo

Please, WinForms

1 November, 2018
Alfred Rakgole 2


+1 Webforms/MVC feature request :)

1 November, 2018
Juan Betancourt

+1 to Winforms, necessary!

1 November, 2018
Robert Kyunstler

Well done, but ...

Please, WinForms version!

1 November, 2018
Dimitris Bagias

WinForms, please!!!!!!

2 November, 2018
Raul Rodriguez

WinForms +1

a Gantt control for DevExtreme would be a dream :-)

2 November, 2018

Winforms, please. is important

2 November, 2018
Nick Friend

Looking good to me. One point, I see no mention of the calculation or display of the critical path - is this contemplated. Also it would be very good to detect and prevent circular references.

2 November, 2018
Steve Sharkey

An announcement for Winforms would have pushed me into continuing my subscription

5 November, 2018
Mohamed Al Zayani


7 November, 2018
Matej Golob

Winforms ++

8 November, 2018
Julian Bucknall (DevExpress)

All (except for WPF customers, that is 😄): As with a lot of these new, expensive, complex features, we have to select a platform in order to explore the design, the issues, the rendering needed to implement the feature. Same goes for Gantt charts.

Yes, we totally understand that some customers would like it for their "anything-but-WPF" run-time -- AND NOW! -- but we have to first see what works and what doesn't. I'll remind you that this is a CTP, not the finished product: Here Be Bugs. So, yes, we hear you, and yes, if we got it right for WPF, it means that it'll be easier to "port" to other platforms. It's certainly on the various todo lists (WinForms, web, even VCL), but I'm not in a position at present to promise when. Stay tuned.

(Oh, and definitely watch out for our surveys to help us decide what's going to be in v19.1 and v19.2 -- I'll tell you now: .NET Core 3 support is a biggie! -- and vote for your preferred feature, be that Gantt or something else.)

Cheers, Julian

8 November, 2018
Ray Navasarkian (DevExpress)

To follow up on Julian's comment...If you are a WinForms developer and you want a Gantt control, please email us at winformsteam@devexpress.com and detail your needs. What markets do your solutions serve? How are you addressing your needs today? What features do your end-users require?

Please by specific - the more information you provide, the better we can plan for 2019.

8 November, 2018
Hans Strasser

First of all, I can hardly wait for completion.

We want to use the Gantt Control for the visualization and processing of costs and services in construction processes and have additional requirements/suggestions.

- For this we need the possibility to define the start of the calendar week for each project separately and independently of the current thread. The definition of working days and non-working days is a first step. The start day of a calendar week should be definable, also the start of the first week of year (independent from current thread). This results in the start and end dates of the calendar weeks of a building project in a defined country.

- It should be possible to define lags between linked tasks.

- For each task a preferred start date should be set.

- The duration of each task should be definable in full days and the input controlled by a property that allows input as work days or calendar days.

13 November, 2018
Matt Heffron

This looks great.

However, can it handle events on a much shorter timescale?

In our application we're scheduling events at 1 second resolution (both the "when" and the "duration") over a span of (up to) a couple of hours (and typically let than an hour).

Also, our scheduling is always "relative" to the start time, not absolute clock/calendar time.

Please tell me this is possible and just a matter of formatting...

4 December, 2018
Alex Chuev (DevExpress)

Hi Matt,

The timescale is really flexible in the Gantt control. You can configure it to display anything from years to milliseconds.

With v18.2, you can already try the timescale customization for yourself. For example, check the Real-Time Data Updates demo that displays a customized timescale with seconds and milliseconds.

As for the "relative" start time, it is not something we support at the moment - you will need to convert time at the ViewModel level.



5 December, 2018

please winforms ++

13 December, 2018

Drag & Drop items to a new date would be great! It is more intuitive than changing a column value. And as far as I see you cant add predecessors at the Moment? it is just for showing?

29 January, 2019
Alex Chuev (DevExpress)


You can only add predecessors in code in v18.2. We plan to implement the UI for predecessors and drag-and-drop operations for tasks this year. Take a look at the following blog post to learn more about our plans:


30 January, 2019
WPF Team Blog

Here’s great news for users of our WPF Gantt Control: we completed the CTP phase that began with v18.2 and the control is fully supported in v19.1. Read on for a summary of the new functionality.

30 April, 2019
Davide Erbisti 1

Good news! Does this mean that now, after you did "explore the design, the issues, the rendering needed to implement the feature", it's time to schedule a Winforms release of the Gantt control? Many of us are waiting for a date to belive in :-)

18 May, 2019
Dmitry Babich (DevExpress)

We plan to release a CTP version of the WinForms Gantt Control later this year in version 19.2 (see our Roadmap).

20 May, 2019

Please login or register to post comments.