title: TreeView Binding List<String>
body: <p>I can't seem to figure out how to get the TreeView to display a List
  I checked SO, but can't sem to find the same scenario the leafs always seem to be objects and not simple strings.
  I can't figure out the correct combination of HierarchicalDataTemplate and DataTemplate to get it to work. Using the following Object. The binding happens I just only see the first level and not the leaves.</p>
  
  <pre><code>    public class Trunk
      {
      public Trunk(string tn)
      {
          TrunkName = tn;
          Branches = new List&lt;Branch&gt;();
      }
      public List&lt;Branch&gt; Branches { get; set; }
  
      public string TrunkName { get; set; }
  }
  public class Branch
  {
      public Branch(string bn)
      {
          BranchName = bn;
          Leaves = new List&lt;string&gt;();
      }
      public List&lt;string&gt; Leaves { get; set; }
  
      public string BranchName { get; set; }
  
  }
  
  
  
  Tree = new Trunk("Root")
      {
          Branches =
              {
                  new Branch("Branch1"){Leaves = {"Leaf1","Leaf2"}},
                  new Branch("Branch2"){Leaves = {"Leaf3","Leaf4"}}
              }
  
      };
  </code></pre>
  
  <p>And the following Template</p>
  
  <pre><code> &lt;TreeView ItemsSource="{Binding Trees}" &gt;
      &lt;TreeView.ItemTemplate&gt;
      &lt;HierarchicalDataTemplate  ItemsSource="{Binding Branches}"&gt;
          &lt;TextBlock Text="{Binding Path=TrunkName}" /&gt;
              &lt;HierarchicalDataTemplate.ItemTemplate &gt;
                  &lt;DataTemplate&gt;
                      &lt;TextBlock Text="{Binding BranchName}"/&gt;
                  &lt;/DataTemplate&gt;
              &lt;/HierarchicalDataTemplate.ItemTemplate&gt;
          &lt;/HierarchicalDataTemplate&gt;
      &lt;/TreeView.ItemTemplate&gt;
  &lt;/TreeView&gt;
  </code></pre>
  
  <hr>
  
  <p>EDIT:
  Of course after spending days trying to figure out what wasn't clicking. I figured it out after posting for help.<br>
  PS the TreeView ItemsSource is set from the ViewModel bound to the Window DataContext.</p>
  
  <pre><code>&lt;TreeView ItemsSource="{Binding Trees}" &gt;
      &lt;TreeView.ItemTemplate&gt;
      &lt;HierarchicalDataTemplate  ItemsSource="{Binding Branches}"&gt;
          &lt;TextBlock Text="{Binding Path=TrunkName}" /&gt;
              &lt;HierarchicalDataTemplate.ItemTemplate &gt;
                  &lt;HierarchicalDataTemplate ItemsSource="{Binding Leaves}"&gt;
                      &lt;TextBlock Text="{Binding BranchName}"/&gt;
                      &lt;HierarchicalDataTemplate.ItemTemplate &gt;
                          &lt;DataTemplate&gt;
                              &lt;TextBlock Text="{Binding }"/&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/HierarchicalDataTemplate.ItemTemplate&gt;
                  &lt;/HierarchicalDataTemplate&gt;
              &lt;/HierarchicalDataTemplate.ItemTemplate&gt;
          &lt;/HierarchicalDataTemplate&gt;
      &lt;/TreeView.ItemTemplate&gt;
  &lt;/TreeView&gt;
  </code></pre>