GanttView.WorkingTimeRulesSource Property

Gets or sets the source from which the GanttControl generates working time rules. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

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

Declaration

public IEnumerable WorkingTimeRulesSource { get; set; }
Public Property WorkingTimeRulesSource As IEnumerable

Property Value

Type Description
IEnumerable

The source from which the GanttControl generates working time rules.

Remarks

The DevExpress WPF GanttControl supports retrieving working time rules from a data source. The GanttControl can be bound to a collection of objects containing rules that specify working time, described in a Model or ViewModel. Use the WorkingTimeRulesSource property to bind the control to a collection of rules.

The GanttControl generates working time rules based on working time rule templates. Using a single template, you can create an unlimited number of working time rules in an unlimited number of GanttControls.

To choose the required template based on the rule's type, use the Template Selector assigned to the GanttView.WorkingTimeRuleTemplateSelector property. If all rules can be described using a single template, you have no need to create a working time rule template selector. Instead, assign this template to the GanttView.WorkingTimeRuleTemplate property.

See Also