Back to Devexpress

SpecificDays.Days Property

wpf-devexpress-dot-xpf-dot-gantt-dot-specificdays.md

latest1.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Gantt

Declaration

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

Property Value

TypeDescription
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

xaml
<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

SpecificDays Class

SpecificDays Members

DevExpress.Xpf.Gantt Namespace