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

How to change opacity of a single appointment?

2 Answers 73 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 05 Nov 2011, 11:27 AM
Hello,

I need to change the opacity of a single appointment control on the fly, but have no idea how to access the controls. I tried to get an IEnumataion by calling

MainScheduleView.ChildrenOfType<Telerik.Windows.Controls.AppointmentsControl>();


but there is no AppointmentsControl class in Telerik.Windows.Controls - only AppointmenItem but when I calling, the list is empty.
Any idea?

2 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 07 Nov 2011, 03:44 PM
Hello John,

To implement the task I suggest you follow the steps below:

1) Implement a custom appointment class.
For more details please read our help article:
http://www.telerik.com/help/silverlight/radscheduleview-features-appointments-custom-appointment.html

2) Add Opacity property to the custom appointment class.

3)Use custom Appointment' style and bind the Opacity in the template to Appointment.Opacity property.
For more details please review the links below:
http://www.telerik.com/help/silverlight/radscheduleview-styles-and-templates-appointment-style.html
http://demos.telerik.com/silverlight/#ScheduleView/CustomAppointment

4) Change the Opacity property of the Appointment instead of the AppointmentItem.

Kind regards,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
John
Top achievements
Rank 1
answered on 09 Nov 2011, 02:24 PM
work's perfect. thanks!
Tags
ScheduleView
Asked by
John
Top achievements
Rank 1
Answers by
Rosi
Telerik team
John
Top achievements
Rank 1
Share this question
or