Back to Devexpress

GanttView.WorkdayRuleTemplateSelector Property

wpf-devexpress-dot-xpf-dot-gantt-dot-ganttview-f1f83504.md

latest2.2 KB
Original Source

GanttView.WorkdayRuleTemplateSelector Property

Gets or sets the data template selector which chooses a template based on the rule’s type. This is a dependency property.

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public DataTemplateSelector WorkdayRuleTemplateSelector { get; set; }
vb
Public Property WorkdayRuleTemplateSelector As DataTemplateSelector

Property Value

TypeDescription
DataTemplateSelector

The workday rule template selector.

|

Remarks

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

The GanttControl generates workday rules based on workday rule templates. Using a single template, you can create an unlimited number of workday 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 WorkdayRuleTemplateSelector property. If all rules can be described using a single template, you have no need to create a workday rule template selector. Instead, assign this template to the GanttView.WorkdayRuleTemplate property.

See Also

GanttView Class

GanttView Members

DevExpress.Xpf.Gantt Namespace