Hi Gian Piero Truccolo,
Greetings from Syncfusion.
We would like to inform that, the StartTime and EndTime properties will not be consider once the Gantt get zoomed, ScheduleRangePadding property only considered. So, you can achieve this requirement by loading the Gantt with ZoomFactor as 101 and ScheduleRangePadding as 1. Hereafter, the same start and end time will be maintained while loading and zooming the Gantt. Please find the snippet below
…
<StackPanel Orientation="Horizontal"
HorizontalAlignment="Left">
<TextBlock Text="ZoomFactor : " />
<Slider x:Name="zoomSlider"
Value="101"
Width="200"
Minimum="101"
Maximum="200" />
<TextBlock Text="{Binding ElementName=zoomSlider, Path=Value}" />
</StackPanel>
<gantt:GanttControl x:Name="Gantt"
Grid.Row="1"
GridWidth="0"
VisualStyle="Metro"
ItemsSource="{Binding TaskDetails}"
ScheduleType="CustomDateTime"
CustomScheduleSource="{Binding CustomSchedule}"
ScheduleRangePadding="1"
ZoomFactor="{Binding ElementName=zoomSlider, Path=Value, Mode=OneWay}">
</gantt:GanttControl>
… |
Please let us know if you have any concerns.
Regards,
Sridevi S.