Skip to main content Skip to footer

How to Set Custom Appointment Color in C1Scheduler for WPF Edition

Background:

Appointment colors are identified by its label property. Therefore, to have a custom color for appointments, add a new Label with the desired color to Labels collection. Then set the Label property of any appointment to this new label.

Steps to Complete:

sched1.DataStorage.LabelStorage.Labels.Add(new C1.C1Schedule.Label(Colors.Red, "RedColor", "Urgent_Red"));
sched1.DataStorage.LabelStorage.Labels.Add(new C1.C1Schedule.Label(Colors.Yellow, "YellowColor", "Hot_Yellow"));

Appointment app = new Appointment();
app.Label = sched1.DataStorage.LabelStorage.Labels[1];
sched1.DataStorage.AppointmentStorage.Appointments.Add(app);

Ruchir Agarwal