Hi Marco,
To collapse and expand parent tasks programmatically,
utilize the `CollapseAllNodes` and `ExpandAllNodes` methods, as shown in the
following code snippet.
|
private void CollapseNodes(object sender, RoutedEventArgs e)
{
this.Gantt.GanttGrid.CollapseAllNodes();
}
private void ExpandNodes(object sender, RoutedEventArgs e)
{
this.Gantt.GanttGrid.ExpandAllNodes();
}
|
We have prepared a simple sample demonstrating this;
please refer to the attached sample.
If you have any further questions or need assistance,
feel free to ask. We're here to help!
Regards,
Vidyalakshmi M.
Attachment:
WpfGantt_991f982a.zip