vain0x / DotNetKit.Wpf.AutoCompleteComboBox

ComboBox with filtering (auto-complete) for WPF
MIT License
71 stars 26 forks source link

Drop down list always displayed? #25

Closed melsawy93 closed 1 year ago

melsawy93 commented 2 years ago

Hi, Is there a way to have the drop down always shown? It only shows when the box is not blank. Is there also a way to reject any input thats not part of the ItemsSource? Say I enter an invalid value or something.

vain0x commented 2 years ago

Thanks. Unfortunately this library does not have such features.

there a way to have the drop down always shown?

This library doesn't match the use case. This library closes the drop down on some condition, which prevents keeping the drop down shown.

note: this could be related to IsDropDownOpen and StaysOpenOnEdit

Is there also a way to reject any input thats not part of the ItemsSource?

My idea is to subscribe Keyboard.LostKeyboardFocus to clear text box when ItemsSource doesn't contain SelectedItem.

note: it depends on when to reject and what to do on rejection

vain0x commented 1 year ago

(In other words: You can implement an always-shown drop down combobox without using this library and which I think is better way.)

Closing. Feel free to reopen if someone want to discuss about this issue.

melsawy93 commented 1 year ago

Thanks for the followup. Its been almost a year since I made this question and my WPF knowledge has vastly increased haha.