I am a Avalonia noob, but I think I did this right...
I have a standard MVVM setup and in the ctor of my model I fill the HierarchicalTreeDataGridSource<T> with the root nodes I want displayed. When the UI comes up, only the first root node is displayed (collapsed). When I expand that node, the second root node is also drawn. I also noted that only the first column is drawn for that initial root node. When I click around some and the view is reloaded it draws that initial root node correctly.
I do not provide all the nodes initially -only the roots- and I am relying on the 'GetChildren' of the HierarchicalExpanderColumn<T> to get child nodes as we go - which seems to work fine.
I am a Avalonia noob, but I think I did this right...
I have a standard MVVM setup and in the ctor of my model I fill the
HierarchicalTreeDataGridSource<T>
with the root nodes I want displayed. When the UI comes up, only the first root node is displayed (collapsed). When I expand that node, the second root node is also drawn. I also noted that only the first column is drawn for that initial root node. When I click around some and the view is reloaded it draws that initial root node correctly.I do not provide all the nodes initially -only the roots- and I am relying on the 'GetChildren' of the
HierarchicalExpanderColumn<T>
to get child nodes as we go - which seems to work fine.