Hello,
It does not seem to be possible to give each task a separate fore or background color. Is there a way or workarround for this?
This could be handy to indicate for example the critical path.
Peter
Thanks brian,
You are correct that you can change the colors per task, it was just not the way i expected this to work. I was expecting there would be a simple Appearance object per task.
Just for those interested, this is a piece of code that demonstrates changing the background color of a task.
Assuming app is a UltraWinSchedule.Task object:
if (Type==1)
app.TimelineSettings.BarSettings.BarAppearance.BackColor =
Color.Blue;
Color.Red;
See Infragistics.Win.UltraWinSchedule.Task.TimelineSettings.BarSettings.BarAppearance, StartIndicatorAppearance, DeadlineIndicatorAppearance, etc.
Hi Brian,
Maybe it wasn't clear, but i am talking about giving the task itself in the chart area of the component a color different from the other tasks.
if the usual approach was followed like you said, then i should find an appearance object on the Task object, like the Appearance object that exists on the appointment object for the ultratimelineview component.
But there is no appearance object on the Task itself.
Best Regards,
The Infragistics.Win.UltraWinSchedule.Task.TimelineSettings.BarSettings property exposes various appearances which apply to the timeline bar. The Infragistics.Win.UltraWinSchedule.Task.GridSettings property exposes a RowAppearance, as well as a CellSettings property, which returns a collection of TaskCellSettings objects. The TaskCellSettings class also exposes an appearance, which applies to a particular cell in the task's grid row. There are also appearances exposed by the control's GridSettings and TimelineSettings properties, so that you can (for example) apply an appearance to all cells in a given column. The usual Infragistics approach was taken to appearances for this control, i.e., there is a resolution hierarchy so that you can apply a look to multiple tasks or individual ones depending on the level at which you set the appearance.