Back to Devexpress

WorkingTimeRule.WorkingTime Property

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

latest1.8 KB
Original Source

WorkingTimeRule.WorkingTime Property

Gets or sets a collection of time spans that specify the working time. This is a dependency property.

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public IEnumerable<TimeSpanRange> WorkingTime { get; set; }
vb
Public Property WorkingTime As IEnumerable(Of TimeSpanRange)

Property Value

TypeDescription
IEnumerable<TimeSpanRange>

A collection of time spans.

|

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