I have two classes that I'd like to show in a treeview.
In my main window, I have an observable collection of a certain type of object, call it object a. Object a contains an observable collection of another type of object, object b. Each object b contains an observable collection of object b's.
For example, I might have something that looks like this
ListOfObjectA's
-ObjectA1
--ListOfObjectB's
---ObjectB
----ListOfObjectB's
-----ObjectB
-ObjectA2
--ListOfObjectB's
---ObjectB
What should my xaml look like to bind the treeview to something like that?
Sorry if I'm not explaining this well, I'm new to wpf.