title: ListView with TreeViewItems in xaml
body: <p>I'm pretty new to c#, the first thing that I'm trying to make is a <code>ListView</code> with data bindings which has turned out ok.</p>
  
  <p>I'm now trying to make items have a twist button if the underlying model has any children (like the <code>TreeView</code>). Each of the children will have columns the same as all the top level items.</p>
  
  <p>How would I go about doing this? Is there an already existing control like this? If not would I be better off dressing up a <code>TreeView</code> to look like a <code>ListView</code>, or dress up a <code>ListView</code> to look like a <code>TreeView</code>?</p>
  
  <p>I went down the road outlined in this <a href="http://blogs.microsoft.co.il/blogs/davids/archive/2010/04/17/hierarchical-grid-with-wpf.aspx" rel="noreferrer">solution</a> which dresses up a <code>TreeView</code>, but the end result looks pretty awful and the heading is actually just an item, so you lose all the nice column sizing and column buttons that can hook up to column sorting that you get in <code>ListView</code> so that route actually seems like it would be more work.</p>
  
  <p>I noticed the new task manager has a control exactly like what I'm trying to create, I don't know how this made? probably in C though.</p>
  
  <p><img src="https://i.stack.imgur.com/hVe6w.png" alt="ListView with TreeView items"></p>