WPF: ComboBox TextSearch, how does it work?

Am I right in thinking that Textsearch in combobox gives me an input text box at the top of the Combobox that is filtered out as I type?

If so, I do not understand why it does not work. I have a combobox with it itemssource associated with a ListCollectionView via a DataContext. I set IsTextSearchEnabled to true and set TextSearch.TextPath for the object type property in ListCollectionView

 <ComboBox ItemsSource="{Binding Path=PersonCollection}"
           TextSearch.TextPath="Name"   DisplayMemberPath="Name" IsTextSearchEnabled="True" >
                    </ComboBox>

However, I never get any input.

The defo property works as shown in the figure, as I set in DisplayMemberPath.

I'm wrong, and if so, how does text search work?

+5
source share
1 answer

You must set IsEditable true.

+12

All Articles