title: MVVM Combobox binding
body: <p>I have a combobox that doesn't seem to be updated it's view model. </p>
  
  <p>On the view I have </p>
  
  <pre><code>&lt;ComboBox Grid.Row="0" 
             Grid.Column="1" 
             ToolTip="Current rank of the officer" 
             ItemsSource="{Binding Path=RanksAvailable}"
             DisplayMemberPath="Name"
             SelectedValuePath="Name"
             SelectedValue="{Binding Path=SelectedRank, Mode=TwoWay}"/&gt;
  </code></pre>
  
  <p>in the view model I have</p>
  
  <pre><code>    public List&lt;Rank&gt; RanksAvailable {get; set;}
      private Rank _selectedRank;
  
      public Rank SelectedRank 
      {
          get { return _selectedRank; }
          set
          {
              if (_selectedRank != value)
              {
                  _selectedRank = value;
                  this.isDirty = true;
                  RaisePropertyChanged("SelectedRank");
              }
          }
      }
  </code></pre>
  
  <p>the combobox is being populated alright, I just can't seem to get a value out of it. </p>