SpecificDays.Days Property
In This Article
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.v24.2.dll
NuGet Package: DevExpress.Wpf.Gantt
#Declaration
public IEnumerable<DateTime> Days { get; set; }
#Property Value
Type | Description |
---|---|
IEnumerable<Date |
A collection of Date |
#Remarks
Use the Days property to specify a collection of days when the rule is applied.
#Example
<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