Back to Devexpress

WorkingTimeRule.Recurrence Property

wpf-devexpress-dot-xpf-dot-gantt-dot-workingtimerule-7dc388e1.md

latest1.8 KB
Original Source

WorkingTimeRule.Recurrence Property

Gets or sets the rule recurrence (weekly, daily, etc.). This is a dependency property.

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public RecurrenceBase Recurrence { get; set; }
vb
Public Property Recurrence As RecurrenceBase

Property Value

TypeDescription
RecurrenceBase

A RecurrenceBase descendant that specify the rule’s recurrence.

|

Remarks

Example

xaml
<dxgn:GanttControl ItemsSource="{Binding Tasks}">
    <dxgn:GanttControl.View>
        <dxgn:GanttView
            NonworkingDayDisplayMode="Show"
            NonworkingTimeDisplayMode="Show">
            <dxgn:GanttView.WorkingTimeRules>
                <dxgn:WorkingTimeRule Recurrence="{dxgn:Daily}" WorkingTime="9:0:0-13:0:0, 14:0:0-18:0:0" />
                <dxgn:WorkingTimeRule Recurrence="{dxgn:Weekly DayOfWeek=Thursday}" WorkingTime="9:0:0-13:0:0, 14:0:0-17:0:0" />
            </dxgn:GanttView.WorkingTimeRules>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>

See Also

WorkingTimeRule Class

WorkingTimeRule Members

DevExpress.Xpf.Gantt Namespace