From fd8a3ea898dff134da3196ca72e53da083501e56 Mon Sep 17 00:00:00 2001 From: KB Bot Date: Wed, 26 Jun 2024 12:56:56 +0000 Subject: [PATCH 1/2] Added new kb article scheduler-remove-appointment-shadow --- .../scheduler-remove-appointment-shadow.md | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 knowledge-base/scheduler-remove-appointment-shadow.md diff --git a/knowledge-base/scheduler-remove-appointment-shadow.md b/knowledge-base/scheduler-remove-appointment-shadow.md new file mode 100644 index 000000000..0b90ed80e --- /dev/null +++ b/knowledge-base/scheduler-remove-appointment-shadow.md @@ -0,0 +1,47 @@ +--- +title: Removing Appointment Shadow in RadScheduler for WinForms +description: Learn how to eliminate the shadow effect from appointments in RadScheduler for WinForms. +type: how-to +page_title: How to Remove Appointment Shadow in RadScheduler for WinForms +slug: remove-appointment-shadow +tags: scheduler, appointment, shadow, customization +res_type: kb +ticketid: 1655808 +--- + +## Environment + +|Product Version|Product|Author| +|----|----|----| +|2024.2.514|RadScheduler for WinForms|[Dinko Krastev](https://www.telerik.com/blogs/author/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: + +1. Access the background storage of the scheduler. Then you can iterate the `AppointmentBackgroundInfo` items and set the `ShadowColor` to transparent: + +````C# +ISchedulerStorage backGroundStorage = this.radScheduler1.GetBackgroundStorage(); +foreach (AppointmentBackgroundInfo item in backGroundStorage) +{ + item.ShadowColor = Color.Transparent; +} +```` +````VB.NET +Dim backGroundStorage As ISchedulerStorage(Of IAppointmentBackgroundInfo) = Me.radScheduler1.GetBackgroundStorage() + + For Each item As AppointmentBackgroundInfo In backGroundStorage + item.ShadowColor = Color.Transparent + Next + +```` + + +## See Also + +- [Working with Appointments in RadScheduler for WinForms](https://docs.telerik.com/devtools/winforms/controls/scheduler/appointments-and-dialogs/working-with-appointments) From f386d56fbfdbce286db0d4541b09cc9a95d5a52e Mon Sep 17 00:00:00 2001 From: Dinko Krastev Date: Wed, 26 Jun 2024 15:59:28 +0300 Subject: [PATCH 2/2] Update scheduler-remove-appointment-shadow.md --- knowledge-base/scheduler-remove-appointment-shadow.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/knowledge-base/scheduler-remove-appointment-shadow.md b/knowledge-base/scheduler-remove-appointment-shadow.md index 0b90ed80e..d48054b71 100644 --- a/knowledge-base/scheduler-remove-appointment-shadow.md +++ b/knowledge-base/scheduler-remove-appointment-shadow.md @@ -26,13 +26,16 @@ To remove the appointment shadow, you will need to access all the `IAppointmentB 1. Access the background storage of the scheduler. Then you can iterate the `AppointmentBackgroundInfo` items and set the `ShadowColor` to transparent: ````C# + ISchedulerStorage backGroundStorage = this.radScheduler1.GetBackgroundStorage(); foreach (AppointmentBackgroundInfo item in backGroundStorage) { item.ShadowColor = Color.Transparent; } + ```` ````VB.NET + Dim backGroundStorage As ISchedulerStorage(Of IAppointmentBackgroundInfo) = Me.radScheduler1.GetBackgroundStorage() For Each item As AppointmentBackgroundInfo In backGroundStorage @@ -44,4 +47,4 @@ Dim backGroundStorage As ISchedulerStorage(Of IAppointmentBackgroundInfo) = Me.r ## See Also -- [Working with Appointments in RadScheduler for WinForms](https://docs.telerik.com/devtools/winforms/controls/scheduler/appointments-and-dialogs/working-with-appointments) +* [Working with Appointments in RadScheduler for WinForms](https://docs.telerik.com/devtools/winforms/controls/scheduler/appointments-and-dialogs/working-with-appointments)