Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a xml with the format as shown below
XML
<Targets>
  <Target Name="Target01">
    <Recipes>
      <RecipeFamilies>
        <RecipeFaimily>
          <Property ID="Name">RecipeFamily1</Property>
          <RecipeGroups>
            <RecipeGroup>
              <Property ID="Name">RecipeGroup1</Property>
            </RecipeGroup>
          </RecipeGroups>
        </RecipeFaimily>
        <RecipeFaimily>
          <Property ID="Name">RecipeFamily2</Property>
          <RecipeGroups>
            <RecipeGroup>
              <Property ID="Name">RecipeGroup1</Property>
            </RecipeGroup>
          </RecipeGroups>
        </RecipeFaimily>
      </RecipeFamilies>
    </Recipes>
  </Target>
</Targets>


I want bind this to a tree view control in WPF, MVVM. Using HierarchicalDataTemplate I was able to show only one level of child node, but I was not able to show next level of child nodes.
Posted
Updated 18-Nov-13 4:57am
v2

1 solution

I think this would help:


http://www.codeproject.com/Articles/26288/Simplifying-the-WPF-TreeView-by-Using-the-ViewMode


http://www.codeproject.com/Articles/317766/Displaying-XML-in-a-WPF-TreeView
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900