Hello,
currently we try to style our scheduler and we cant figure out how to style the ScheduleAppointment in the UltraDayView. Especially we want to remove or edit the shown border on the left side and the box-shadow. We noticed that the ViewStyle-Property of the UltraDayView-control has an impact on the style. But what is the intended way so we can fully customize this control
best regards
Hello Nico,
I have been investigating into your requirement in this case, and I have a couple of recommendations for you on this matter.
Regarding the border on the left side, you can edit this by setting the BarColor property of the actual Appointment object that you are adding to the UltraCalendarInfo.Appointments collection. If you set this to be a “Transparent” color, you can remove it that way.
Regarding the shadows, there is no direct property that controls this, and so I would recommend using a DrawFilter for the UltraDayView to control this. In the GetPhasesToFilter method for your IUIElementDrawFilter derived class, I would recommend checking the draw parameters for an AppointmentShadowUIElement. If this is found, you can return the “BeforeDrawElement” DrawPhase and return true from the DrawElement method.
I am attaching a sample project to demonstrate the above.
Please let me know if you have any other questions or concerns on this matter.
UltraDayViewAppointmentStylingDemo.zip
Hey Andrew,
Thanks for your reply and your help. We will test your recommendations. Up to now we can not verify if it solves our problem but we will do our best to let you know later.
Thank you for your update on this matter. I will continue to monitor this forum thread while I await your next update on this.