i’ve got a treeview (on the left) and wrappanel (on the right). The Treeview display content from XMLDataProvider the XML file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<Documents>
<DocFolder Name="Folder">
<DocFolder DocFolderName="Subfolder">
<DocItem DocItemName="item" />
</DocFolder>
</DocFolder>
</Documents>
Is it possible to display different content in WrapPanel binded to TreeView selected Item {Binding ElementName=treeView1, Path=SelectedItem} depending on the type of element that is selected (DocFolder or DocItem)?
Something like that maybe ?
… and the converter’s code :