作者archknight (布丁牛奶)
看板C_Sharp
标题[问题] textbox 绑定 IEnumerable<String>
时间Thu Jan 23 15:33:30 2020
我想做一个在 textbox 上输入文字就提示的功能
就像就 google 打 y 会出现 yahoo 之类的提示
我在网上找到一个 library
https://github.com/Nimgoble/WPFTextBoxAutoComplete
但是在第三个步骤卡住了
3.Create a textbox and bind the "AutoCompleteItemsSource" to a collection of
IEnumerable<String>
不知道要怎麽进行下一步
我看官方教学
https://docs.microsoft.com/zh-tw/dotnet/api/system.collections.ienumerable?view=netframework-4.8
点击 textbox 的时候 在命令列有出现 John Jim Sue
但是没有出现提示 不知道哪里错误
以下是程式码
https://github.com/BudinMilk/textbox_autocomplete/tree/master/textbox_autocomplete
请大家指点 谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 111.252.31.36 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1579764815.A.CCA.html
1F:推 k659292: 虽然没用过这个,但ms有自己写一个这种套件,应该更简单 01/24 11:10
2F:→ k659292: 使用,搜寻ajaxtookit 01/24 11:10
3F:→ archknight: 这个更简单吗,我试试看,谢谢您! 01/25 15:50
4F:→ archknight: 请问有连结吗,我找到好几个不知哪个才是? 01/25 15:55
5F:推 YahooTaiwan: 先把 MVVM 学好 01/26 03:09
6F:→ archknight: 好的,感谢您! 01/26 11:33
7F:推 nwish: 可以用select2做 02/05 19:46