title: Expander as ListView Item
body: <p>I need to do a <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.listview(v=vs.90).aspx" rel="nofollow noreferrer">ListView</a> that has a single column, where this colum is an <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.expander(v=vs.90).aspx" rel="nofollow noreferrer">Expander</a>.</p>
  
  <p>In particular I have a class like this:</p>
  
  <pre><code>public class MyItemT
  {
      public string Title { get; set; }
      public TextBlock Info { get; set; }
  }
  </code></pre>
  
  <p>And a list of these objects:</p>
  
  <pre><code>List&lt;MyItemT&gt; Mylist = new List&lt;MyItemT&gt;();
  </code></pre>
  
  <p>I need to fill the ListView with Expander objects, where the Header it's binded with Title and the Content with the Info property.</p>
  
  <p>For example a ListView of Expander like this:</p>
  
  <pre><code>&lt;Expander Header="My Expander"&gt;
     &lt;TextBlock TextWrapping="Wrap"&gt;
        Lorem ipsum dolor sit amet, consectetur
        adipisicing elit, sed do eiusmod tempor incididunt ut
        labore et dolore magna aliqua
     &lt;/TextBlock&gt;
  &lt;/Expander&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/OLNTa.jpg" alt="My Expander"></p>
  
  <blockquote>
    <p>... and so on (many as there are elements of my ListView) ... </p>
  </blockquote>
  
  <p>The ListView should not have the header bar, and of course everything would be done programmatically.</p>
  
  <p>How it should be done?
  Thanks.</p>