Back to Devexpress

YearlyByDayOfYear.DayOfYear Property

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

latest1.7 KB
Original Source

YearlyByDayOfYear.DayOfYear Property

Gets or sets a day of year 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 int DayOfYear { get; set; }
vb
Public Property DayOfYear As Integer

Property Value

TypeDescription
Int32

A day number.

|

Remarks

Use the DayOfYear property to specify a day of year when the rule is applied.

Example

xaml
<dxgn:GanttControl ItemsSource="{Binding Tasks}">
    <dxgn:GanttControl.View>
        <dxgn:GanttView ...
            NonworkingDayDisplayMode="Show"
            NonworkingTimeDisplayMode="Show">
            <dxgn:GanttView.WorkdayRules>
                <!-- Marks as a nonworking the day when the New Year is celebrated -->
                <dxgn:WorkdayRule IsWorkday="False" Recurrence="{dxgn:YearlyByDayOfYear DayOfYear=1}" />
            </dxgn:GanttView.WorkdayRules>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>

See Also

YearlyByDayOfYear Class

YearlyByDayOfYear Members

DevExpress.Xpf.Gantt Namespace