All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

GanttView.StripLineTemplateSelector Property

Gets or sets the data template selector which chooses a template based on the strip line's type. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

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

Declaration

public DataTemplateSelector StripLineTemplateSelector { get; set; }
Public Property StripLineTemplateSelector As DataTemplateSelector

Property Value

Type Description
DataTemplateSelector

The strip line template selector.

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