Back to Devexpress

DxSchedulerDayViewBase.WorkTime Property

blazor-devexpress-dot-blazor-dot-base-dot-dxschedulerdayviewbase-c5d3b81d.md

latest1.8 KB
Original Source

DxSchedulerDayViewBase.WorkTime Property

Specifies the working hours for the current day.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public DxSchedulerTimeSpanRange WorkTime { get; set; }

Property Value

TypeDescription
DxSchedulerTimeSpanRange

Specifies the working time interval.

|

Remarks

Use this property to specify working hours for the current day. Ensure that work hours do not exceed 24 hours.

razor
<DxScheduler StartDate="@DateTime.Today" DataStorage="@DataStorage">
    <DxSchedulerDayView WorkTime="@WorkTime" ShowWorkTimeOnly="true"></DxSchedulerDayView>
</DxScheduler>

@code {
    // ...
    DxSchedulerTimeSpanRange WorkTime = new DxSchedulerTimeSpanRange(TimeSpan.FromHours(9), TimeSpan.FromHours(18));
}

If you set the ShowWorkTimeOnly property to true, the Scheduler displays the time interval specified by the WorkTime property. Otherwise, the component displays the VisibleTime interval.

Run Demo: Scheduler — View Types

See Also

DxSchedulerDayViewBase Class

DxSchedulerDayViewBase Members

DevExpress.Blazor.Base Namespace