GanttTaskControl Class

A gantt task.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v20.1.dll

Declaration

public class GanttTaskControl :
    GanttTaskControlBase
Public Class GanttTaskControl
    Inherits GanttTaskControlBase

Remarks

Use the GanttTaskControl object to customize the appearance of gantt tasks.

Example

<dxgn:GanttControl ItemsSource="{Binding Tasks}">
...
    <dxgn:GanttControl.View>
        <dxgn:GanttView ...>
            <dxgn:GanttView.TaskStyle>
                <Style TargetType="dxgn:GanttTaskControl">
                    <Setter Property="Background" Value="YellowGreen"/>
                </Style>
            </dxgn:GanttView.TaskStyle>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>

The image below illustrates the result:

Inheritance

See Also