title: ComboBox SelectedItem display
body: <p>The binding below gets and sets the selected item. It also displays items correctly, which in this case just means displaying a department's name.</p>
  
  <p>However, instead of displaying the selected department name, it displays the selected department's ToString(). </p>
  
  <p>How can I fix this so the selected item displays only the department name?</p>
  
  <p>Cheers,<br>
  Berryl</p>
  
  <pre><code>&lt;ComboBox 
      Style="{StaticResource ComboBoxStyle}" 
      ItemContainerStyle="{StaticResource ComboBoxItemStyle}"
  
      ItemsSource="{Binding Path=Departments}" 
      SelectedItem="{Binding Path=Department, Mode=TwoWay}" 
      IsSynchronizedWithCurrentItem="True" 
      DisplayMemberPath="Name"
  /&gt;
  </code></pre>