New to Telerik UI for WPF? Download free 30-day trial

Selection not Displayed Correctly when Special Slots are Used

Environment

Product Version 2020.2.617
Product RadScheduleView for WPF

Description

The selection is not highlighted correctly when using special slots.

Solution

The reason behind this behavior is that the HighlightItem controls that show the selection are drawn in the same panel as the HighlightItem controls that show the special slots. In some situations, the HighlightItems of the special slots are generated after those displaying the selection. In those cases the selection still works, but the special slot is drawn over the selection visual, so it seems like the selection is wrong.

To avoid this, you need to set the Panel.ZIndex attached property of the HighlightItems that show the special slots to a low value.

Example 1: Set HighlightItem's ZIndex

local:SpecialSlotStyleSelector.NonworkingHourStyle /local:SpecialSlotStyleSelector.NonworkingHourStyle /local:SpecialSlotStyleSelector

See Also

In this article