简体   繁体   English

WPF组合框突出显示

[英]WPF combobox highlight

In WPF, when I enter some text in combobox, it will highlight the item starting with the text I entered. 在WPF中,当我在组合框中输入一些文本时,它将突出显示以我输入的文本开头的项目。 This highlighting will search the whole text i have entered in the combo box. 此突出显示将搜索我在组合框中输入的整个文本。 But instead i want the text search to match only the first letter. 但是,我希望文本搜索仅匹配第一个字母。 How to do this? 这个怎么做?

Actually, I want to make TextSearch.Text to be always first character. 实际上,我想使TextSearch.Text始终是第一个字符。

Ive done something similar to this. 我已经做了类似的事情。 Found a sort of howto on a blog post, dont have the link saved but did a new search now and found this , which (from my memory) looks quite similar. 在博客文章上找到了一个howto,没有保存链接,但是现在进行了新搜索,发现了这个 (从我的记忆中看)非常相似。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM