title: How do I make nested items in combobox wpf
body: <p>I work in C# and I'm trying to find a solution to creating a "Hierarchical Combobox", as iv'e searched for hours around the internet and found no real solution to this problem.</p>
  
  <p>The closest iv'e reached is working with normal wpf combobox using group descriptions, but still, it is not good enough for me and I no where to advance on my own.</p>
  
  <p>The things i need the controller to achieve:</p>
  
  <ul>
  <li><p>Each item can have sub items, if there are no sub-items, the item can be select-able, if there are sub-items, only the sub-items that don't have sub-items recursively are select-able .</p></li>
  <li><p>The popup of the combo box will finally show all the items indented, just as a normal tree view</p></li>
  </ul>
  
  <p>in the end, it should look like this:</p>
  
  <hr>
  
  <p><strong>example:</strong></p>
  
  <pre><code>Folder
     Selectable Item
     Folder
         Selectable Item
         Selectable Item
     Selectable Item
  </code></pre>
  
  <hr>
  
  <ul>
  <li>as you see folder's themselves are not supposed to be selectable.</li>
  </ul>
  
  <p>What I got so far you can see in the next article: <a href="http://www.jarloo.com/wpf-combobox-with-groupings/" rel="nofollow">http://www.jarloo.com/wpf-combobox-with-groupings/</a></p>
  
  <p>P.S: I should say that I realize the work looks like it should defintly should be done in a TreeView, problem is, I already tested that and tree view does not have combobox logics with selectable items, etc...</p>
  
  <p>TLDR: Basically I want an Hierarchical Combobox, That combobox should have a tree view inside of it, with only non-parents nodes select-able.</p>
  
  <p>Any ideas?</p>