Back to Devexpress

YearlyByDayOfYear Class

wpf-devexpress-dot-xpf-dot-gantt-0e4a0b7d.md

latest2.1 KB
Original Source

YearlyByDayOfYear Class

Represents the yearly recurrence in a particular day of year.

Namespace : DevExpress.Xpf.Gantt

Assembly : DevExpress.Xpf.Gantt.v25.2.dll

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public sealed class YearlyByDayOfYear :
    Recurrence
vb
Public NotInheritable Class YearlyByDayOfYear
    Inherits Recurrence

Remarks

Use the YearlyByDayOfYear object to define that the rule reoccurs on a yearly basis in a particular day of year.

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>

Inheritance

Object DispatcherObject DependencyObject Freezable RecurrenceBase Recurrence YearlyByDayOfYear

See Also

YearlyByDayOfYear Members

DevExpress.Xpf.Gantt Namespace