We'd like to add child elements to task items dynamically (post-initialization.)
Using a View-ViewModel, if I modify a given GanttTask element (which previously had no children) to add childr tasks, I see the following behavior:
- the "gantt" part of the UI changes from a text box to a ranged line
- the underlying ObservableCollection has the correct data
- however, the tree control (the part of the control that allows expand/collapse) does not appear to recognize that child tasks have been added; as a result it is impossible to view the child tasks that have been added.
How do we do this properly so the control recognizes the new child elements?
Using a View-ViewModel, if I modify a given GanttTask element (which previously had no children) to add childr tasks, I see the following behavior:
- the "gantt" part of the UI changes from a text box to a ranged line
- the underlying ObservableCollection has the correct data
- however, the tree control (the part of the control that allows expand/collapse) does not appear to recognize that child tasks have been added; as a result it is impossible to view the child tasks that have been added.
How do we do this properly so the control recognizes the new child elements?