The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Customize AutoCompleteBox in WPF
7 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Elton RibeiroPosted Jan 2, 2019, 10:50 PM
Thanks for that. i want to do that for my search box which i think would work fine. however, how do i make each item (in your example, names) clickable which takes user to a certain page? i already got page switcher implemented. my app is for cinema movies so each i want to make each name clickable and would direct the user to a certain movie page but not too sure how to do it.
haris tahirPosted Dec 11, 2012, 1:27 PM
GREAT WORK . . .I HAVE CHECKED ALMOST EVERY CORNER OF THE WORLD BUT GET UR CODE WORKING AMONG MOST OF THEM . . THANKS ALOT FOR HELP
hirak senguptaPosted Feb 16, 2011, 9:04 AM
Hi, I followed the same code. But it does not work. It asks for acb which you have mentioned in the XAML file. Let me know, how to make it working. Thanks, Hirak
Drew ShenemanPosted Dec 29, 2010, 10:23 AM
Would there be any way to loop through the items in the suggest list and apply a different background color to the rows? Thanks!
nesrine melienePosted Dec 2, 2010, 8:07 AM
je te remercie c très intérssant
mohsin aboobackerPosted Jul 29, 2010, 9:53 AM
Hey Bro, Thanks for the post...It really helped...Was working with a usercontrol with a grid to select items...now it was so easy using this sample... Any body who wants to load the same from dataset.. List<Codes> codesList = new List<Codes>(); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { codesList.Add(new Codes { item = ds.Tables[0].Rows[i]["StockCode"].ToString(), description = ds.Tables[0].Rows[i]["Description"].ToString() }); } autoCompleteBox1.ItemsSource = codesList;