This is a migrated thread and some comments may be shown as answers.

Appointment Style/Background Programatically

2 Answers 239 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 28 Jun 2011, 10:54 PM
Hi !

I'm new to RadScheduleView WPF, so i'm sorry for the simple question.

I'm using ScheduleView in a WPF Browser Application.

I get the Appointments and Resrouces from a Webservice - works good.

But the Appointments should all have different Backgroundcolor, which I also get from the Webservice (as ARGB Integer Value)

My Problem now: I don't understand how to apply the Backgroundcolor to an Appointment.
I need to change the color programatically.
I only can change the color of a TimeMarker of an Appointment but that's not enough (it's only a small color icon at the left side of an appointment).

I found a Description about the StyleSelector, but the Problem is, there are so many different kind of colors which I cannot predefine
in the xaml file, and the colors are not depending on any resources or categories.

Can you help me with this problem ?

with best regards
Markus

2 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 04 Jul 2011, 09:42 AM
Hi Markus,

Please go through this help article and the online demo ScheduleView->Appointment Style in which is explained the use of the AppointmentStyleSelector. Also, you can always define the styles and templates in code-behind instead of xaml and modify the colour of the background. Find more information here

Hope this information helps.

Regards,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Markus
Top achievements
Rank 1
answered on 04 Jul 2011, 10:15 AM
it worked, thank you
Tags
ScheduleView
Asked by
Markus
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Markus
Top achievements
Rank 1
Share this question
or