title: Binding ObservableCollection to ComboBox in WPF App with MVVM
body: <p>I am new to WPF and I tried a simple dropdown menue with a list as <code>ItemsSource</code>. My ComboBox unfortunately stays empty while my list should be fine.</p>
  
  <p>Can you guys help me out?</p>
  
  <p>My XAML:</p>
  
  <pre><code>&lt;Window x:Class="ProjectX.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
          xmlns:vm="clr-namespace:ProjectX.ViewModel"
          xmlns:local="clr-namespace:ProjectX"
          mc:Ignorable="d"
          Title="MainWindow" Height="450" Width="800"
          DataContext="{DynamicResource ViewModelMain}"&gt;
      &lt;Window.Resources&gt;
          &lt;vm:ViewModelMain x:Key="ViewModelMain"/&gt;
      &lt;/Window.Resources&gt;
      &lt;Grid&gt;
          &lt;ComboBox ItemsSource="{Binding WaageListe}" DisplayMemberPath="{Binding Waage}" /&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>And here is my ViewModel:</p>
  
  <pre><code>using ProjectX.Model;
  using System.Collections.ObjectModel;
  
  namespace ProjectX.ViewModel
  {
      public class ViewModelMain : ViewModelBase
      {
          public ObservableCollection&lt;Waage&gt; waageListe;
          public ObservableCollection&lt;Waage&gt; WaageListe
          {
              get =&gt; waageListe;
              set
              {
                  RaisePropertyChanged("WaageListe");
              }
          }
  
          public ViewModelMain()
          {
              WaageListe = new ObservableCollection&lt;Waage&gt;
              {
                  new Waage {Name="Hamburg - 1"},
                  new Waage {Name="Hamburg - 2"},
                  new Waage {Name="Hamburg - 3"},
              };
          }
      }
  }
  </code></pre>