Skip to main content

SchedulerControl.WorkWeekView Property

Provides access to an object that defines the settings of the scheduler’s Work-Week View.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v24.1.dll

NuGet Package: DevExpress.Wpf.Scheduler

Declaration

public WorkWeekView WorkWeekView { get; set; }

Property Value

Type Description
WorkWeekView

A WorkWeekView object representing the Work Week View in the scheduling area.

Remarks

Important

You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

Use the WorkWeekView property to customize the settings of the Work-Week View.

The Work-Week View displays only work days and doesn’t display weekend days. You can use the SchedulerControl.WorkDays collection, to specify which week days are regarded as work days. By default, it specifies that Monday, Tuesday, Wednesday, Thursday and Friday are workdays.

DXScheduler_WorkWeekView

Note

To make the SchedulerControl control display information using the Work-Week View, set the SchedulerControl.ActiveViewType property to SchedulerViewType.WorkWeek.

Example

This example demonstrates how to customize the Work-Week View within the Scheduler control.

To do this, it is necessary to modify the WorkWeekView object accessed via the SchedulerControl.WorkWeekView property. To specify work days to be displayed within the WorkWeek View, use the SchedulerControl.WorkDays property.

<dxsch:SchedulerControl.WorkWeekView>
    <dxsch:WorkWeekView ShowFullWeek="False">
        <dxsch:WorkWeekView.AppointmentDisplayOptions>
            <dxsch:SchedulerDayViewAppointmentDisplayOptions ShowRecurrence="False" 
                    ShowReminder="False" 
                    TimeDisplayType="Text" 
                    StatusDisplayType="Never" 
                    StartTimeVisibility="Always" 
                    EndTimeVisibility="Always" />
        </dxsch:WorkWeekView.AppointmentDisplayOptions>
        <dxsch:WorkWeekView.WorkTime>
            <dxschcore:TimeOfDayInterval Start="09:30:00" End="18:30:00" />
        </dxsch:WorkWeekView.WorkTime>
        <dxsch:WorkWeekView.VisibleTime>
            <dxschcore:TimeOfDayInterval Start="08:00:00" End="20:00:00" />
        </dxsch:WorkWeekView.VisibleTime>
    </dxsch:WorkWeekView>
</dxsch:SchedulerControl.WorkWeekView>
schedulerControl1.WorkDays.BeginUpdate();
schedulerControl1.WorkDays.Clear();
schedulerControl1.WorkDays.Add(WeekDays.Monday | WeekDays.Tuesday | 
    WeekDays.Wednesday | WeekDays.Thursday);
schedulerControl1.WorkDays.EndUpdate();
See Also