GanttControl.View Property

Gets or sets the GanttControl's view. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

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

Declaration

public GanttView View { get; set; }
Public Property View As GanttView

Property Value

Type Description
GanttView

A GanttView object that is a view that displays Gantt chart.

Remarks

As a TreeListControl descendant, the GanttControl does not display data itself. It uses a View to display data from the bound data source. A View specifies how gantt chart items are displayed.

The GanttControl initializes the View property with a GanttView object when created.

The code sample below demonstrates how to set the View property.

<dxgn:GanttControl ItemsSource="{Binding Tasks}">
    ...
    <dxgn:GanttControl.View>
        <dxgn:GanttView ... />
    </dxgn:GanttControl.View>
</dxgn:GanttControl>
See Also