title: WPF Combobox Filter or auto-complete
body: <p>How to possible filter wpf ComboBox on text search</p>
  
  <p>My XAML Code</p>
  
  <pre><code>&lt;Window x:Class="WpfApplication5.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="MainWindow" Height="350" Width="525"&gt;
  &lt;Grid&gt;
      &lt;ComboBox HorizontalAlignment="Left" IsEditable="True" IsTextSearchEnabled="True" ItemsSource="{Binding customerCollection}" SelectedItem="{Binding SelectedCustomer}" SelectedValuePath="CustomerId" DisplayMemberPath="Name" Margin="183,146,0,0" VerticalAlignment="Top" Width="120" RenderTransformOrigin="0.514,0.39"/&gt;
  
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>MVVM code</p>
  
  <pre><code>public class CustomerModel
  {
      public int CustomerId { get; set; }
      public String Name { get; set; }
  }
  public class CustomerViewModel
  {
      public CustomerViewModel()
      {
          customerCollection = new ObservableCollection&lt;CustomerModel&gt;();
          customerCollection.Add(new CustomerModel() { CustomerId = 1, Name = "A" });
          customerCollection.Add(new CustomerModel() { CustomerId = 2, Name = "AA" });
          customerCollection.Add(new CustomerModel() { CustomerId = 3, Name = "AAA" });
          customerCollection.Add(new CustomerModel() { CustomerId = 4, Name = "BAAA" });
          customerCollection.Add(new CustomerModel() { CustomerId = 5, Name = "BB" });
          customerCollection.Add(new CustomerModel() { CustomerId = 6, Name = "CC" });
          customerCollection.Add(new CustomerModel() { CustomerId = 7, Name = "CCCC" });
          customerCollection.Add(new CustomerModel() { CustomerId = 8, Name = "DFF" });
          customerCollection.Add(new CustomerModel() { CustomerId = 9, Name = "ABC" });
      }
      public ObservableCollection&lt;CustomerModel&gt; customerCollection { get; set; }
      private CustomerModel _SelectedCustomer = new CustomerModel();
      public CustomerModel SelectedCustomer
      {
          get { return _SelectedCustomer; }
          set
          { _SelectedCustomer = value; }
      }
  }
  </code></pre>
  
  <p>How to show the filtered items as typed in the text box of ComboBox.?   </p>
  
  <p>Here I want to display on ComboBox items are customers on text searched.</p>