MonthView.CompressWeekend Property
Gets or sets a value indicating if the weekend days (Saturday and Sunday) should be displayed as one day in a Month View.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduler
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Boolean | false | true to compress weekends; otherwise, false. |
#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.
Use this property to display the weekend days as one day when the Scheduler Control shows its data in a Month View. Note that only Saturday and Sunday can be displayed in a single day cell, irrespective of the current OptionsView.FirstDayOfWeek setting.
Compress |
Compress |
---|---|
![]() |
![]() |
Note
After you have enabled the Compress
First |
First |
---|---|
![]() |
![]() |
#Example
This example demonstrates how to customize the Month View within the Scheduler control.
To do this, it is necessary to modify the MonthView object accessed via the SchedulerControl.MonthView property.
<dxsch:SchedulerControl.MonthView>
<dxsch:MonthView WeekCount="2"
ShowWeekend="True"
CompressWeekend="True">
<dxsch:MonthView.AppointmentDisplayOptions>
<dxsch:SchedulerMonthViewAppointmentDisplayOptions ShowRecurrence="False"
ShowReminder="False"
TimeDisplayType="Clock"
EndTimeVisibility="Auto"
StartTimeVisibility="Auto" />
</dxsch:MonthView.AppointmentDisplayOptions>
</dxsch:MonthView>
</dxsch:SchedulerControl.MonthView>