title: How do I bind a WPF ComboBox to a List<Objects> in XAML?
body: <p>I'm having issues binding a WPF ComboBox in XAML.</p>
  
  <p><strong>Here is my object definition and collection:</strong></p>
  
  <pre><code>public class AccountManager
  {
     public long UserCode { get; set; }
     public string UserName { get; set; }
  }
  
  public partial class MainWindow : Window
  {    
     public List&lt;AccountManager&gt; AccountManagers;
  }
  </code></pre>
  
  <p><strong>Here is the XAML definition of my ComboBox:</strong></p>
  
  <pre><code>ComboBox Name="cbTestAccountManagers"
            ItemsSource="{Binding AccountManagers}"
            DisplayMemberPath="UserName"
            SelectedValuePath="UserCode"
            Width="250"
  </code></pre>
  
  <p>I'm not quite sure what I'm doing wrong here.
  I don't get any errors at run/load time.
  The ComboBox displays without any contents in the drop down.
  (It's empty).</p>
  
  <p>Can someone point me in the right direction?</p>
  
  <p>Thanks</p>