title: WPF UserControl weird binding problem
body: <p>Im usign a Ribbon Window and in the "content area beneath" I have a grid in which I will be displaying UserControls. To demonstrate my problem lets take a look at this simple UserControl:</p>
  
  <pre><code>        &lt;ListView x:Name="lvPersonList"&gt;
          &lt;ListView.View&gt;
              &lt;GridView&gt;
                  &lt;GridViewColumn Width="120" Header="Name" DisplayMemberBinding="{Binding Name}"/&gt;
                  &lt;GridViewColumn Width="120" Header="Height" DisplayMemberBinding="{Binding Height}"/&gt;
              &lt;/GridView&gt;
          &lt;/ListView.View&gt;
      &lt;/ListView&gt;
  </code></pre>
  
  <p>And the code:</p>
  
  <pre><code>public partial class MyUserControl: UserControl
  {
      private List&lt;Person&gt; personList;
  
      public TestSnpList()
      {
          InitializeComponent();
          this.personList = new List&lt;Person&gt;();
          this.personList.Add(new Person { Name = "Chuck Norris", Height = 210 });
          this.personList.Add(new Person { Name = "John Rambo", Height = 200 });
          this.lvPersonList.ItemsSource = personList;
      }
  }
  public class Person
  {
      public string Name { get; set; }
      public int Height { get; set; }
  }
  </code></pre>
  
  <p>The parent Window:</p>
  
  <pre><code>    &lt;Grid x:Name="grdContent" DockPanel.Dock="Top"&gt;
          &lt;controls:MyUserControl x:Name="myUserControl" Visibility="Visible"/&gt;
      &lt;/Grid&gt;
  </code></pre>
  
  <p>I don't understant why this binding doesn't work. Instead of values (Name and Height) I get full class names. If I use this code in a Window it works fine.</p>
  
  <p>Any ideas? I would like this user contorl works for itself (it gets the data form the DB and represents it in a ListView)...</p>
  
  <p>Thanks!</p>