Is it possible (out of the box) for the UltraDayView calendar control to highlight the background of spanned timeslots as MS Outlook does (see image below) or will I have to manage this somehow with a DrawFilter? As you can see, the appointment appears in the AllDayEvents area, but those timeslots in which it overlaps are shaded.
Hello Tonic2012,
This, I think, could be achieved using DrawFilter. You could remove borders with it and draw some. So this should be the way to take. I have to tell you that this could lead to some unexpected behaviors, yet it is a good approach if used carefully. If you want that to be implemented safely, I could log a new product idea for you.
Hi Boris,
I think logging it as a new product idea would be wise. I've done a bit of experimentation with the DrawFilter and don't know if I'll have much success.
My initial prototyping has been to handle the BeforeDrawElement phase of the AllDayEventUIElement within the IUIElementDrawFilter.DrawElement interface method for the UltraDayView (I hope my use of the jargon is correct), and then find those TimeSlotUIElements which intersect the Appointment which is about to be drawn. However I am unable to test for that intersection given that the properties of a TimeSlotUIElement that I most need to interogate are protected, i.e. StartDateTime, EndDateTime and TimeSlot. I've tried creating a class which inherits the TimeSlotUIElement class but get errors when I try to convert it to my derived class. Can you provide any general ideas on how I could proceed with this task? Your help will be most gratefully appreciated.
Tony