MVVM style. Wihtout messing with the view too much, preferably - without touching the view.
Is it possible to create a collection that will just contain the nested items and the TreeView
would just display them?
I've seen an example with a MenuItem
used as the data type. What if I don't want to use MenuItem
? I assume, my item should just implement an interface that defines how it can contain other items. What is this interface?
Also - I need to have a checkbox on each item, but that's probably a matter of providing the item template.
Then again, a MenuItem
can be checked, that might be useful ;)