Skip to main content

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

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public IEnumerable<DateTime> Days { get; set; }

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