Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DayViewBase.WorkTime Property

Gets or sets the work time interval for the Day View, Work Week View and Week View. This is a bindable property.

Namespace: DevExpress.Maui.Scheduler

Assembly: DevExpress.Maui.Scheduler.dll

NuGet Package: DevExpress.Maui.Scheduler

#Declaration

C#
public TimeSpanRange WorkTime { get; set; }

#Property Value

Type Default Description
TimeSpanRange start: 09:00:00, end: 18:00:00, duration: 09:00:00

The object that specifies a work time interval.

#Remarks

A scheduler view paints working hours with a lighter color than non-working hours. This allows users to easily distinguish these two periods within a day. To use another color for work time cells, set the view’s CellAppearance property to a DayViewCellAppearance object with the specified WorkTimeBackgroundColor property.

Use the WorkTime property when the DayViewBase.ShowWorkTimeOnly property is set to true to limit the data shown in a view to the hours in a working day.

Note

The view’s ShowWorkTimeOnly property has priority over the DayViewBase.VisibleTime setting. You can use the VisibleTime property to specify the scheduler view’s visible time interval only if ShowWorkTimeOnly is set to false.

The View provides the capability to convert a string to this property’s value in XAML. The string should have the format "<Start_time_value>-<End_time_value>". For example, "6:00:00-15:00:00".

See Also