Back to Devexpress

GanttTaskControl Class

wpf-devexpress-dot-xpf-dot-gantt-242ac685.md

latest2.1 KB
Original Source

GanttTaskControl Class

A gantt task.

Namespace : DevExpress.Xpf.Gantt

Assembly : DevExpress.Xpf.Gantt.v25.2.dll

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public class GanttTaskControl :
    GanttTaskControlBase
vb
Public Class GanttTaskControl
    Inherits GanttTaskControlBase

Remarks

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

Example

xaml
<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

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control DevExpress.Xpf.Gantt.GanttItemControlBase GanttTaskControlBase GanttTaskControl

See Also

GanttTaskControl Members

DevExpress.Xpf.Gantt Namespace