wpf-devexpress-dot-xpf-dot-gantt-242ac685.md
A gantt task.
Namespace : DevExpress.Xpf.Gantt
Assembly : DevExpress.Xpf.Gantt.v25.2.dll
NuGet Package : DevExpress.Wpf.Gantt
public class GanttTaskControl :
GanttTaskControlBase
Public Class GanttTaskControl
Inherits GanttTaskControlBase
Use the GanttTaskControl object to customize the appearance of gantt tasks.
<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:
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control DevExpress.Xpf.Gantt.GanttItemControlBase GanttTaskControlBase GanttTaskControl
See Also