Skip to main content

DayViewBase.WorkTime Property

Gets or sets the work time interval for the Day View, Work Week View and Week View.

Namespace: DevExpress.XamarinForms.Scheduler

Assembly: DevExpress.XamarinForms.Scheduler.dll

NuGet Package: DevExpress.XamarinForms.Scheduler

Declaration

public TimeSpanRange WorkTime { get; set; }

Property Value

Type Description
TimeSpanRange

An 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 CellStyle property to a DayViewCellStyle 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