title: wpf combobox binding
body: <p>Hi I´m trying to bind a List&lt;> to a combobox.</p>
  
  <pre><code>&lt;ComboBox Margin="131,242,275,33" x:Name="customer" Width="194" Height="25"/&gt;
  
  public OfferEditPage()
      {
          InitializeComponent();
          cusmo = new CustomerViewModel();
          DataContext = this;
          Cusco = cusmo.Customer.ToList&lt;Customer&gt;();
          customer.ItemsSource = Cusco;
          customer.DisplayMemberPath = "name";
          customer.SelectedValuePath = "customerID";
          customer.SelectedValue = "1";
      }
  </code></pre>
  
  <p>I become no Error but the Combobox is always empty.
  Cusco is the Property of my List.
  I have no idea whats wrong with this code.
  Can you help me?</p>
  
  <p>Greets</p>
  
  <pre><code> public class Customer
  {
      public int customerID { get; set; }
      public string name { get; set; }
      public string surname { get; set; }
      public string telnr { get; set; }
      public string email { get; set; }
      public string adress { get; set; }
  }
  </code></pre>
  
  <p>this is the Customer Class which is my model.</p>
  
  <pre><code>public class CustomerViewModel
  {
      private ObservableCollection&lt;Customer&gt; _customer;
  
      public ObservableCollection&lt;Customer&gt; Customer
      {
          get { return _customer; }
          set { _customer = value; }
      }
  
      public CustomerViewModel()
      {
          GetCustomerCollection();
      }
  
      private void GetCustomerCollection()
      {
          Customer = new ObservableCollection&lt;Customer&gt;(BusinessLayer.getCustomerDataSet());
      }
  
  }
  </code></pre>
  
  <p>and this is the ViewModel.</p>