They must be added to the ViewModel, which will add them to the model (to maintain consistency between the model and the ViewModel). In the ViewModel, there should be a collection of child nodes ObservableCollection<T>
so that the UI is notified when a node is added / removed
source
to share