title: Binding a WPF TreeView to multiple Lists
body: <p>I'd like to display the following structure in a WPF Treeview:</p>
  
  <pre><code>public class Group{
      public string Groupname;
      public IEnumerable&lt;Group&gt; Groups;
      public Ienumerable&lt;User&gt; Member;
  }
  </code></pre>
  
  <p>My ViewModel looks like this:</p>
  
  <pre><code>public class ViewModel{
      public Group RootGroup;
  }
  </code></pre>
  
  <p>I think the XAML Code should look like this:</p>
  
  <pre><code>&lt;TreeView&gt;
      &lt;TreeView.ItemTemplate&gt;
           &lt;HierarchicalDataTemplate ItemsSource={Binding ViewModel.RootGroup}&gt;
               &lt;TextBlock Text={Binding Groupname}/&gt;
                   &lt;HierarchicalDataTemplate ItemsSource={Binding Member}&gt;
                       &lt;TextBlock Text={Binding Displayname}/&gt;
                   &lt;/HierarchicalDataTemplate&gt;
           &lt;/HierarchicalDataTemplate&gt;
      &lt;/TreeView.Resources&gt;
  &lt;/TreeView&gt;
  </code></pre>
  
  <p>What I want it to look like:</p>
  
  <pre><code>RootGroup-Name
      -Member1
      -Member2
      -Member3
      -Member4
      -SubGroup1
          -Member1
          -Sub-SubGroup1
              -Member1
      -SubGroup2
          -Sub-SubGroup2
              -Sub-Sub-SubGroup1
                  -Member1
  </code></pre>
  
  <p>I've bound the DataContext to itself so this shouldn't be the reason why my TreeView wont show anything.</p>