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.v14.2.dll
#Declaration
[DefaultValue(false)]
[XtraSerializableProperty]
public bool CompressWeekend { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
true to compress weekends; otherwise, false. |
#Remarks
Use the CompressWeekend 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 |
---|---|
![]() |
![]() |
#Examples
This example demonstrates how to customize the Month View within the SchedulerControl. To do this, it is necessary to modify the MonthView object accessed via the SchedulerControl.MonthView property.