title: Bind subitems along with main items to same control WPF
body: <p>How can we bind an object List to a control with its main items and sub items. If the class structure is like this</p>
  
  <pre><code>public class BookChapter
  {
   public string Name { get; set; }
   public List&lt;BookPage&gt; Pages {get; set; }
   public List&lt;String&gt; Questions { get; set; }
  
  }
  public class BookPage
  {
      public string Id { get; set; }
      public string Name { get; set; }
      public List&lt;String&gt; Excercises { get; set; }
  }
  </code></pre>
  
  <p>How can i bind it on a WPF control with ChapterName and Pages associated with every chapters in a single control.</p>