Skip to content

Commit

Permalink
Merge pull request #592 from telerik/new-kb-scheduler-remove-appointm…
Browse files Browse the repository at this point in the history
…ent-shadow-a0e094a4bd964fbd8338a1e7a9304567

Added new kb article scheduler-remove-appointment-shadow
  • Loading branch information
nade7o authored Jun 26, 2024
2 parents 8fbdc35 + f386d56 commit a8041ce
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions knowledge-base/scheduler-remove-appointment-shadow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
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<IAppointmentBackgroundInfo> 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)

0 comments on commit a8041ce

Please sign in to comment.