title: Autocomplete combobox for WPF
body: <p>I need an autocomplete combobox for WPF C#. I've tried several approaches but nothing works. For example I've tried a combobox:</p>
  
  <pre><code>&lt;ComboBox  Width="200"
        IsEditable="True"
        ItemsSource="{Binding Names}"
        IsTextSearchEnabled="True"
        HorizontalAlignment="Left"/&gt;
  </code></pre>
  
  <p><code>Names</code> is a List of Strings: Peter John, John, John Doe, Cathy, Howard, John Richards and so on</p>
  
  <p>If you type in a name e.g. John the combobox should expand and I should see</p>
  
  <ul>
  <li>John</li>
  <li>John Doe</li>
  <li>John Richards</li>
  <li>Peter John</li>
  </ul>
  
  <p>But that doesn't work. How can I do that?</p>