I'm trying to implement behaviour similar to the Firefox 3 AwesomeBar in WPF. I've got a ComboBox to use a DataTemplate that makes the dropdown look like the dropdown for the AwesomeBar, but I'm not sure how to get the right behaviour.
What I want to happen is for the user to type their search into the TextBox bit of the ComboBox and then to gradually narrow down the results in the dropdown. I think I can probably get the database querying part of that working (as the results will be coming from the database) but what I want to get is the dropdown bit to open up as soon as the user starts typing (as it does in firefox 3) and then the first item in the list to be automatically selected and other items in the list to be able to be selected by use of the arrow keys or by clicking on them.
Update:
I've now found the programmatic way to get the ComboBox to drop down (using IsDropDownOpen = true) but I still have a few other problems:
Firstly when I type something, it drops down but it doesn't select the match closest to what I'm typing, and secondly when I type something which uniquely selects an item it automatically closes and runs the SelectedItemChanged method. I want it to only close and run the code when I've actually clicked on it or pressed enter (rather than just had the selection on it by using the up or down arrows). Any ideas how to get it to do what I want? I can give more information if that's not clear enough.