Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GanttView.StripLinesSource Property

Gets or sets the source from which the GanttControl generates strip lines. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

#Declaration

public IEnumerable StripLinesSource { get; set; }

#Property Value

Type Description
IEnumerable

The source from which the GanttControl generates strip lines.

#Remarks

The DevExpress WPF GanttControl supports retrieving strip lines from a data source. The GanttControl can be bound to a collection of objects containing strip lines, described in a Model or ViewModel. Use the StripLinesSource property to bind the control to a collection of strip lines.

The GanttControl generates strip lines based on strip line templates. Using a single template, you can create an unlimited number of strip lines in an unlimited number of GanttControls.

To choose the required template based on the strip line’s type, use the Template Selector assigned to the GanttView.StripLineTemplateSelector property. If all strip lines can be described using a single template, you have no need to create a strip line template selector. Instead, assign this template to the GanttView.StripLineTemplate property.

Tip

Refer to the Bind to a Collection of Strip Lines section for the example.

See Also