SpecificDays.Days Property

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.v20.1.dll

Declaration

public IEnumerable<DateTime> Days { get; set; }
Public Property Days As IEnumerable(Of Date)

Property Value

Type Description
IEnumerable<DateTime>

A collection of DateTime values that specify the days when the rule is applied.

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