Using a Combo Box user control with autocomplete suggestions in WPF MVVM
Create a new WPF project Install the Microsoft.Xaml.Behaviors.Wpf nuget package Download link: https://www.nuget.org/packages/Microsoft.Xaml.Behaviors.Wpf Copy the download link at the download page, open package manager console and enter the command: [code language="xml"] NuGet\Install-Package Microsoft.Xaml.Behaviors.Wpf -Version 1.1.39 [/code] Create the Command and event handling code BaseViewModel.cs [code language="csharp"] using System; using System.ComponentModel; using System.Diagnostics; namespace Autocomplete { public abstract class BaseViewModel : INotifyPropertyChanged { #region INotifyPropertyChanged Members public event PropertyChangedEventHandler PropertyChanged; #endregion protected void OnPropertyChanged(string propertyName) { VerifyPropertyName(propertyName); PropertyChangedEventHandler handler = PropertyChanged; if (handler != null) ...