Petezah
Petezah

Reputation: 1525

WPF Combobox auto complete/intellisense case sensitivity

I am writing a WPF app that has a combo box in it that is populated with a list of names. The problem I face is that the auto complete/intellisense feature ignores case sensitivity. Is there a property in the control or a work around to enable case sensitivity on the auto complete/intellisense.

Upvotes: 2

Views: 8271

Answers (2)

SilverX
SilverX

Reputation: 1519

Not sure if this applies to previous versions. However, in .Net 4.0 the WPF combobox has two properties IsTextSearchEnabled (autocomplete) and IsTextSearchCaseSensitive.

Upvotes: 11

Ben Collier
Ben Collier

Reputation: 2652

Unfortunately there is not a simple property to enable case sensitivity, you would have to implement your own auto-complete to replace or supplement the built-in functionality.

Fortunately, others have done this and there are a few examples out there if you wish to go down this road:

See AutoFilteredComboBox in this thread @ MSDN. Or solutions at these blogs: Automatically Filtering a ComboBox in WPF, Building Filtered Combobox for WPF

Upvotes: 2

Related Questions