Hello Telerik,
I'm using RadGanttView and I want to change the main customtask color. Actually, it is Orange (default).
I know is it possible to Hilight all of Summarys Tasks (my target), but Hilight is Red, and I don't know how I can change his color.
Which way is better ? Change the Hilighted Task Color or apply a color for my custom task ?
The CustomMainTask (Summary Task) is created like this :
var task =
new
CustomGanttTask();
task.Start = variableAffichee.dateDebut;
task.End = variableAffichee.dateFin;
task.Title = viewModel.ListeVariables.Find(v => v.Id == variableAffichee.idVariable).Code.ToString();
//variable = une tâche principale variableAffichee.codeVariable
task.TitreColonne = task.Title;
task.Description = task.Title;
// this.viewModel.ListeVariables.Find(v => v.Id == variableAffichee.idVariable).Code.ToString();
task.BackgroundColor =
new
SolidColorBrush(
new
Color { A = 0, R = 0, G = 170, B = 0 });
//System.Windows.Media.Brushes.SteelBlue;
But the last line, BackgroundColor hasn't got any effect on the task. This is the same problem for Description and Title properties.
The CustomTask Class :
public
class
CustomGanttTask : GanttTask
{
public
Brush BackgroundColor {
get
;
set
; }
public
string
Affectation {
get
;
set
; }
public
int
IdCommentaire {
get
;
set
; }
public
string
TitreColonne {
get
;
set
; }
}
I attached a screenshot to show you my result.
Can you help me ?
Thank you !