In version 19.2, we have changed the Scheduler's cells drawing mechanism to improve performance and implement the Time Regions feature.
The Scheduler control now draws the views' background, horizontal/vertical lines and selected cells using decoration panels. The following properties at the CellControl level have no visual effect anymore:
- CellControl.LeftBorderThickness
- CellControl.BottomBorderThickness
- CellControl.SelectedBackground
If you use these properties to customize the Scheduler control in your applications, you need to update your code. Use the following approaches:
- Instead of the CellControl.SelectedBackground property, use the SchedulerControl.BrushProvider property to colorize the cells or other Scheduler's elements. A code snippet below demonstrates how to override the default selection color.
XAML<dxsch:SchedulerControl.BrushProvider>
<dxsch:BrushProvider DefaultCellSelectionBrush="Green" />
</dxsch:SchedulerControl.BrushProvider>
- Instead of the CellControl.LeftBorderThickness and CellControl.BottomBorderThickness properties, declare an implicit style for view control types to adjust borders of the views' grid (options are available starting with 19.2.4).
XAML<Style x:Key="SchedulerViewControlBase.Style" xmlns:dxschv="http://schemas.devexpress.com/winfx/2008/xaml/scheduling/visual" TargetType="dxschv:SchedulerViewControlBase">
<Setter Property="CellVerticalBorderThickness" Value="3"/>
<Setter Property="CellHorizontalBorderThickness" Value="3"/>
</Style>
<Style TargetType="dxschv:DayViewGroupByResourceControl" BasedOn="{StaticResource SchedulerViewControlBase.Style}"/>
<Style TargetType="dxschv:DayViewGroupByDateControl" BasedOn="{StaticResource SchedulerViewControlBase.Style}"/>
<Style TargetType="dxschv:MonthViewGroupByResourceControl" BasedOn="{StaticResource SchedulerViewControlBase.Style}"/>
<Style TargetType="dxschv:MonthViewGroupByDateControl" BasedOn="{StaticResource SchedulerViewControlBase.Style}"/>
<Style TargetType="dxschv:TimelineViewControl" BasedOn="{StaticResource SchedulerViewControlBase.Style}"/>
For backward compatibility, we introduced the DevExpress.Xpf.Core.CompatibilitySettings.UseLegacySchedulerCellDecoration
static property in version 19.2.4. To restore the legacy behavior, set this property to true
. Note that the Scheduler control draws its time regions above cell controls regardless of the UseLegacySchedulerCellDecoration
property value.