Hi there,
I am using the UltraTimeLineView and want to highlight a specific day that can be changed by the user (it is some kind of insert function where the user has to know where the insert operation will be applied). This works for me in the main area of the timeline by setting the DayLook of that day. But I also want to highlight the header.
Therefore I used the ColumnHeaderInitializing and I am facing two problems:
1. I can only change the color of the header text and the text itself... the other properties of the AppearanceData object are ignored.
2. I cannot trigger the ColumnHeaderInitializing event based on a user action like the click on a button. Also .Invalidate() and .Refresh() have no effect on the control.
Is anybody out there to help me with this issues? It's also ok for me to user other solutions (e.g. DrawFilter) if they work...
Kind regards
Achim
Aaron,
I am not sure what you are talking about. Could you please point a screenshot? My best guess is that the element without owner is of a different kind and thus, the code is not working(firing) for it at all.
The code seems to work for the entire date column if I add this section:
if (el.Parent is TimeSlotUIElement) { if (((TimeSlotUIElement)el.Parent).DateTimeRange.StartDateTime.Day == newDay) { Brush brush = Brushes.Goldenrod; drawParams.Graphics.FillRectangle(brush, drawParams.Element.Rect); return true; } return false; }
The only issue is that it does not paint the cell in the top row that does not have an owner assigned to it.
Any ideas?
Hi Boris,
thank you. I've made an own DrawFilter implementation in the meanwhile - it was a little bit of try and error but finally I managed to find the right Phases etc.
Best regards
Hello Achim,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Could you please review the sample attached to this post and see if it meets your requirements. Please feel free to let me know if I misunderstood you or if you have any other questions.