AutoComplete TextBox in WPF

Sharath picture Sharath · Jun 4, 2009 · Viewed 107.6k times · Source

Is it possible to make a textbox autocomplete in WPF?

I found a sample where a combo box is used and the triangle is removed by editing the style template.

Is there a better solution?

Answer

Alexander Zwitbaum picture Alexander Zwitbaum · Nov 19, 2009

You can find one in the WPF Toolkit, which is also available via NuGet.

This article demos how to create a textbox which can auto-suggest items at runtime based on input, in this case, disk drive folders. WPF AutoComplete Folder TextBox

Also take a look at this nice Reusable WPF Autocomplete TextBox, it was for me very usable.