3 Replies
The NodeItem:
Did you use chatgpt for this? Why is your item list in your view model just one NodeItem? Shouldn't it be a list or an observable collection?
Your treeview.itemsource is getting bound to Items property of your view model. But your items property is a singular NodeItem.
I've never used treeview before so idk what it expects and this code might be right, but to me it looks wrong and I'd expect items to be a collection (either list or observable collection if you expect it to change)
I think you're right, I'll try making that NodeItem a list
I think that did it, thanks!