Skip to main content

GanttTaskControl Class

A gantt task.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public class GanttTaskControl :
    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