Weekly Class

Represents the weekly recurrence.

Namespace: DevExpress.Xpf.Gantt

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

Declaration

public sealed class Weekly :
    DayBasedRecurrence
Public NotInheritable Class Weekly
    Inherits DayBasedRecurrence

Remarks

Use the Weekly object to define that the rule reoccurs on a weekly basis.

Use the DayOfWeek property to specify a day of week when the rule is applied.

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}" />
            </dxgn:GanttView.WorkdayRules>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>

Inheritance

See Also