Task bar colors in Gantt Chart Library and Project Management Library for WPF

Is it possible to have a parameter defined at the task level that would trigger the Gantt Chart control from Gantt Chart Library for WPF or Project Management Library for WPF to show task bars using different task bar colors?

You need to set the attached property GanttChartView.StandardBarFill (of type Brush) for standard tasks (or SummaryBarFill, MilestoneBarFill for other types of tasks), but of course the task data item must inherit from DependencyObject in order to support attached properties. Also you need to set IsItemAppearanceApplied at the control level to true for this to work. See an example in our Custom Appearance sample application.

If you cannot inherit your task data item class from DependencyObject for any reason, it is possible to set up the brush of the task at runtime, after the TaskManager builds up the internal managed Task objects (which are always inheriting from DependencyObject):

TaskManager tm = new TaskManager(taskItems);
GanttChartView.SetStandardBarFill(tm.GetTaskAt(index), yourBrush);
GanttChartTaskListView.TaskManagerSource = tm;
GanttChartTaskListView.IsItemAppearanceApplied = true;