wpf-devexpress-dot-xpf-dot-gantt-dot-specificdays.md
Gets or sets a set of days when the rule is applied. This is a dependency property.
Namespace : DevExpress.Xpf.Gantt
Assembly : DevExpress.Xpf.Gantt.v25.2.dll
NuGet Package : DevExpress.Wpf.Gantt
public IEnumerable<DateTime> Days { get; set; }
Public Property Days As IEnumerable(Of Date)
| Type | Description |
|---|---|
| IEnumerable<DateTime> |
A collection of DateTime values that specify the days when the rule is applied.
|
Use the Days property to specify a collection of days when the rule is applied.
<dxgn:GanttControl ItemsSource="{Binding Tasks}">
<dxgn:GanttControl.View>
<dxgn:GanttView ...>
<dxgn:GanttView.WorkdayRules>
<dxgn:WorkdayRule IsWorkday="False">
<dxgn:SpecificDays Days="{x:Static local:CustomizeWorkingTime.Holidays}" />
</dxgn:WorkdayRule>
</dxgn:GanttView.WorkdayRules>
</dxgn:GanttView>
</dxgn:GanttControl.View>
</dxgn:GanttControl>
See Also