Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
ScheduleAppointment Style
posted

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

Parents
  • 34810
    Verified Answer
    Offline posted

    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

Reply Children