title: ObservableCollection or List data bind with comboBox using MVVM?
body: <p>I have ObservableCollection items i want to bind this data to my comboBox. 
  How to bind data with comboBox?
  I am using MVVM pattern so suggest me how to bind data using MVVM pattern</p>
  
  <p>I am trying to do this code but not working properly..
  <strong>In my XAML PAGE:</strong></p>
  
  <pre><code>&lt;ComboBox x:Name="comobo1" 
            DisplayMemberPath="CardTypeName" 
            SelectedValuePath="CardTypeID" 
            ItemsSource="{Binding Path=combodata}"&gt;    
  &lt;/ComboBox&gt;
  </code></pre>
  
  <p><strong>In my ViewModel</strong><br>
  (<code>Card</code> is my model) </p>
  
  <pre><code> public ObservableCollection&lt;Card&gt; combodata = new ObservableCollection&lt;Card&gt;();
   foreach (var item in App.db.States)
   {
       Card c = new Card(item.StateName, item.StateID);
       combodata.Add(c);
   }
  </code></pre>
  
  <p>How to bind this combodata to my comboBox - what am I doing wrong ?</p>