Hi Gian Piero Truccolo,
Greetings from Syncfusion.
Query : Is it possible to set dynamically a different style to the Gantt schedule? For example, keep the horizontal lines and discard vertical and vice versa.
Yes, we can achieve your requirement by modifying the GanttScheduleCell border thickness with style, as shown in the code snippet below.
To hide the horizontal line:
|
<sync:GanttControl.Resources>
<Style TargetType="{x:Type schedule:GanttScheduleCell}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type schedule:GanttScheduleCell}">
<Border BorderThickness="1,0,0,0"
BorderBrush="Black" >
...
</sync:GanttControl.Resources> |
To hide the vertical line:
|
<sync:GanttControl.Resources>
<Style TargetType="{x:Type schedule:GanttScheduleCell}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type schedule:GanttScheduleCell}">
<Border BorderThickness="0,1,0,0"
BorderBrush="Black" >
...
</sync:GanttControl.Resources> |
Screenshot: