I would like to apply a ‘vertical stripe’ to a specific day (or days), I want to use this to show non working (or holidays) using the same technique you use for painting your vertical stripes. How can I achieve this please.
In order to do this you must know when a day starts and stops in pixels, this is easily found by sending in a datetime to the Gantt.DateScaler.TimeToPixel method.
So in pseudo code I would go like this:
In the implementation of the OnTimeItemAreaPaintBackground event
for i=0 to numberOfDaysOnScreen-1 do