title: How can I create a hierarchical combobox using WPF?
body: <p>I want to create a hierarchical combobox in WPF. I will be binding the combobox to a collection of class whose structure is given below:</p>
  
  <pre><code>Public Class Folder                 
  {     
    Public string Name;            
    Public string Path;           
    List&lt;SubFolder&gt; SubFolder;   
  }
  </code></pre>
  
  <p>And I want the combobox to look like this:</p>
  
  <pre>
  ------------------------
  | Folder.Name                                                                      
  |      SubFolder.Name  |
  |      SubFolder.Name  |
  |      SubFolder.Name  |
  ----------------------
  ------------------------
  | Folder.Name           
  |      SubFolder.Name  |
  |      SubFolder.Name  |
  |      SubFolder.Name  |
  ----------------------
  ------------------------
  | Folder.Name                                                                       
  |      SubFolder.Name  |
  |      SubFolder.Name  |
  |      SubFolder.Name  |
  ------------------------
  </pre>
  
  <p>The user should be able to select either a folder or a sub-folder.</p>
  
  <p>Please tell me how I can do this.</p>