Hi,
I use the 15.2 timelineview when i set the AllDayEvent of the appointment the barColor had a white color
How i can resolve that ? i want the barcolor keep his original color when i set the appointemt.AllDayEvent
thx
Hi Michel,
Thank you for your feedback.
If I understand you correctly you need to set same appearance for each appointment of each owner as the appearance of the owner’s header. If this is what you need here is some additional information how this colors are set. When the ViewStyle is set to Office2007 each owner is assigned a color scheme from Outlook2007ColorSchemes. So what you need to do is go through each owner, set the owner appearance from color scheme. Then iterate through all the owner’s appointments, and set same appearance to each appointment.
Please check the attached sample project where I have implemented this approach. Note, that I am setting the appearances only in form’s load event. As all the appearances after this are custom set, you will need to handle the appearances of appointments and owners in all possible scenarios where appointments or owners get changed, e.g. adding of new appointment / owner, changing the owner of appointment and so on.
Please let me know if you have any additional questions.
Thx for your quick response.
I want to keep the same color of the background OwnerHeader...
how i can do this ?
Hello Michel,
Thank you for posting in our forum.
From the screenshot you have sent us it seams that you are using Office2007 ViewStyle. By default the all day events and non all day events in this style have different appearances. What you can do is create your own appearance and set to both AppointmentAppearance and to AllDayEventAppearance. This way you will have the same appearances for both all day and non all day appointments. You can use code like this:
this.ultraCalendarLook1.AppointmentAppearance = this.appointmentAppearance;
this.ultraCalendarLook1.AllDayEventAppearance = this.appointmentAppearance;
Please check the attached sample where I have implemented this approach for you and let me know if you need any additional information.
Thank you for using Infragistics Controls.