Skip to main content

Recurrence.Interval Property

Gets or sets the rule recurrence interval. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v24.1.dll

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public int Interval { get; set; }

Property Value

Type Description
Int32

The recurrence interval.

Remarks

Use the Interval property to specify the rule recurrence interval. For example, setting the Interval property to 2 for a weekly recurred rule means the rule is applied with the interval of two weeks. The default value is 1.

Example

<dxgn:GanttControl ItemsSource="{Binding Tasks}">
    <dxgn:GanttControl.View>
        <dxgn:GanttView
            NonworkingDayDisplayMode="Show"
            NonworkingTimeDisplayMode="Show">
            <dxgn:GanttView.WorkdayRules>
                <!-- Applies to every Friday -->
                <dxgn:WorkdayRule IsWorkday="False" Recurrence="{dxgn:Weekly DayOfWeek=Friday}" />
                <!-- Applies to every second Saturday -->
                <dxgn:WorkdayRule IsWorkday="False" Recurrence="{dxgn:Weekly DayOfWeek=Saturday, Interval=2}" />
                <!-- Applies to every fourth day -->
                <dxgn:WorkdayRule IsWorkday="False" Recurrence="{dxgn:Daily Interval=4}" />
            </dxgn:GanttView.WorkdayRules>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>
See Also