0

I need the following behavior for WPF Combobox:
i need autofilter in combobox. Took the implementation from here. But when there are several items in dropdown that are almost same-when i press DOWN it just selects the first one from list and hides others(see video of current behavior here: http://www.youtube.com/watch?v=_WYAgMTxc4M). If i want the second possible-i have to select it with mouse or write down the whole item display name in editable part of combobox. Is it possible to select item without changing editable part of the combobox, until i press ENTER, for example?

4

1 に答える 1

0

問題は、アイテムを選択すると、ComboBoxのテキスト領域がいっぱいになり、フィルターテキストが変更されてリストに新しいフィルターが適用されたことを通知し、リストに残っているアイテムが1つだけになることだと思います。

KeyPressed / KeyDown / KeyUpイベントが発生した場合にのみフィルターを適用するこの動作を書き直す必要があります。

于 2012-05-08T14:55:08.520 に答える