WPF: Is it possible to nest TreeView items with a binding expression?
- by John Gietzen
Lets say I have the following data:
<XmlDataProvider x:Key="Values">
<x:XData>
<folder name="C:">
<folder name="stuff" />
<folder name="things" />
<folder name="windows">
<folder name="system32" />
</folder>
</folder>
</x:XData>
</XmlDataProvider>
How can I get that into a treeview? I can't seem to grok hierarchical binding...
I know that I can get it in there in C# code, but I wanted to do it with a binding expression.