WPF: Is it possible to nest TreeView items with a binding expression?
Posted
by John Gietzen
on Stack Overflow
See other posts from Stack Overflow
or by John Gietzen
Published on 2010-04-28T19:07:31Z
Indexed on
2010/04/28
19:17 UTC
Read the original article
Hit count: 375
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.
© Stack Overflow or respective owner