Removing Appointment Shadow in RadScheduler for WinForms
Environment
Product Version | Product | Author |
---|---|---|
2024.2.514 | RadScheduler for WinForms | Dinko Krastev |
Description
While working with RadScheduler for WinForms, you might notice a shadow effect applied to appointments. This shadow comes from the default appointment backgrounds. This article details how to remove the shadow effect from these appointments.
Solution
To remove the appointment shadow, you will need to access all the IAppointmentBackgroundInfo
objects and set their ShadowColor
to Color.Transparent
. This is achieved by getting the background storage from the scheduler component and iterating through its items to apply transparency. Here is how you can do it:
- Access the background storage of the scheduler. Then you can iterate the
AppointmentBackgroundInfo
items and set theShadowColor
to transparent:
ISchedulerStorage<IAppointmentBackgroundInfo> backGroundStorage = this.radScheduler1.GetBackgroundStorage();
foreach (AppointmentBackgroundInfo item in backGroundStorage)
{
item.ShadowColor = Color.Transparent;
}
Dim backGroundStorage As ISchedulerStorage(Of IAppointmentBackgroundInfo) = Me.radScheduler1.GetBackgroundStorage()
For Each item As AppointmentBackgroundInfo In backGroundStorage
item.ShadowColor = Color.Transparent
Next