title: Binding ComboBox with Generic List so that value of combobox item represents bound object
body: <p>I am trying my hands on WPF. I am trying to bind a <code>ComboBox</code> with <code>List&lt;MyClass&gt;</code> where <code>MyClass</code> is user defined class. I want to set <code>SelectedValuePath</code> property of ComboBox so that, value of ComboBox item represents object of <code>MyClass</code>.</p>
  
  <p>I tried setting <code>SelectedValuePath</code> property to <code>.</code> and <code>this</code>, but no luck. Can anybody suggest me the way to achieve it?</p>
  
  <p>Example Code :</p>
  
  <pre><code>Class MyClass
  {
     public int ID {get; set;}
     public string Name {get; set;}
  }
  
  List&lt;MyClass&gt; lst = new List&lt;MyClass&gt;();
  
  ComboBox cmb = new ComboBox();
  cmb.DataContext = lst;
  cmb.DisplayMemberPath = "Name";
  // Here I want object of MyClass (which is bound to this item) itself should be assigned as value.
  cmb.SelectedValuePath = "????"; 
  </code></pre>