April 22, 2025, 03:24:53 AM

See more Support incidents in our old archived forum.

Author Topic: Custom summary color  (Read 4560 times)

d.laumaille

  • Customers
  • Newbie
  • *
  • Posts: 21
Custom summary color
« 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

d.laumaille

  • Customers
  • Newbie
  • *
  • Posts: 21
Re: Custom summary color
« Reply #1 on: December 16, 2015, 09:07:34 AM »
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...

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 182
Re: Custom summary color
« Reply #2 on: December 17, 2015, 01:09:54 PM »
Daniel,

We are working on this, will update you soon.


Thanks,
- Raja.

ForumAdmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 96
Re: Custom summary color
« Reply #3 on: December 18, 2015, 01:49:33 AM »
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