wpf-devexpress-dot-xpf-dot-gantt-ca994f00.md
Represents the yearly recurrence.
Namespace : DevExpress.Xpf.Gantt
Assembly : DevExpress.Xpf.Gantt.v25.2.dll
NuGet Package : DevExpress.Wpf.Gantt
public sealed class Yearly :
Recurrence
Public NotInheritable Class Yearly
Inherits Recurrence
Use the Yearly object to define that the rule reoccurs on a yearly basis.
Use the Day and Month properties to specify a date when the rule is applied.
<dxgn:GanttControl ItemsSource="{Binding Tasks}">
<dxgn:GanttControl.View>
<dxgn:GanttView
NonworkingDayDisplayMode="Show"
NonworkingTimeDisplayMode="Show">
<dxgn:GanttView.WorkdayRules>
<!-- Marks January, 1 a nonworking day -->
<dxgn:WorkdayRule IsWorkday="False" Recurrence="{dxgn:Yearly Day=1, Month=1}" />
</dxgn:GanttView.WorkdayRules>
</dxgn:GanttView>
</dxgn:GanttControl.View>
</dxgn:GanttControl>
Object DispatcherObject DependencyObject Freezable RecurrenceBase Recurrence Yearly
See Also