Hi~~
I want use the theme and change the backcolor of timelineitem in TimelineItemFormatting
protected override void OnShown(EventArgs e)
{
ThemeResolutionService.LoadPackageFile("CustomTheme.tssp");
ganttview.ThemeName = "CustomTheme";
// I Use CustomTheme after not change timeline backcolor
}
private void ganttView_TimelineItemFormatting(object sender, GanttViewTimelineItemFormattingEvent Args e)
{
foreach(LightVisualElement element in e.ItemElement.BottomElement.Children)
{
if(holidayList.Contain(element .Start))
{
// not chage color
// why?
element.BackColor = Color.Red;
element.BackColor2 = Color.Red;
element.BackColor3 = Color.Red;
element.BackColor4 = Color.Red;
}
}