title: WPF: bind to a List inside a class
body: <p>I have a File class defined as following</p>
  
  <pre><code>public class File
  {
   public string FileName {set;get;}
   public List&lt;Property&gt; PropertyList;
  }
  </code></pre>
  
  <p>Here is how Property class looks like:</p>
  
  <pre><code>public class Property
  {
   public string PropertyName { set; get;};
   public string PropertyValue { set; get;};
   ...
  }
  </code></pre>
  
  <p>I need to bind a <code>List&lt;File&gt;</code> to a DataGrid, display FileName. Also, I want to create a column for each <code>Property</code> in the <code>PropertyList</code>,
  with the string value of <code>PropertyName</code> as the column title, and string value of PropertyValue as the value of the column.</p>
  
  <p>Is this possible in WPF?</p>
  
  <p>Thanks,</p>