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
Hello Achim,
Could you please post a screenshot where I could see what you are able to change and what you are not. This might indeed need a drawfilter implementation.
Why do you want to trigger this event based on a user action? What is not refreshing in the control when you are trying to invalidate or refresh it?
I will be waiting for your feedback.
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?
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.