开发者

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. I开发者_高级运维s there a property in the control or a work around to enable case sensitivity on the auto complete/intellisense.


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜