RadiantQ Forum
Product => WPF Gantt Package => Topic started by: d.laumaille on December 15, 2015, 02:26:02 PM
-
Hi,
I'd like to have different summary colors in my GanttControl, depending on a property in my model.
I thought that binding a converter to the SummaryItemBarFill property would do it, but it seems to be called only once, and not for each summary :(.
Is there any way to achieve this ? ;D
-
I've found it !
Using the TaskColorsBinding property, it works well... Sad it doesn't work by design, only by code : I lost about an hour on this ! ^^
Now I've got another question around this problem : using the TaskBarBackgroundTemplate, I display the WorkingHoursBar in my Gantt. Is it possible to bind the WorkingHoursBar.TaskBrush to something using the result of the CustomColorProvider defined in TaskColorsBinding ? A TemplateBinding may, or something else ?
Because currently, I bind the same CustomColorProvider to TaskColorsBinding and WWorkingHoursBar.TaskBrush, so the work is done twice for each task...
-
Daniel,
We are working on this, will update you soon.
Thanks,
- Raja.
-
Daniel,
Usually when using the TaskBarBackgroundTemplate with WorkingHoursBar, the regular bar rendering is turned off (by setting traparency) like in our sample, so we are wondering what exactly you have setup in your project with TaskColorsBinding - can you send us a sample for us to take a closer look?
In any case, we suspect you possibly cannot share the converters.
Thanks
RQ Support