[問題] textbox 綁定 IEnumerable<String>

作者: archknight (布丁牛奶)   2020-01-23 15:33:30
我想做一個在 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
請大家指點 謝謝
作者: k659292 (malone)   2020-01-24 11:10:00
雖然沒用過這個,但ms有自己寫一個這種套件,應該更簡單使用,搜尋ajaxtookit
作者: archknight (布丁牛奶)   2020-01-25 15:50:00
這個更簡單嗎,我試試看,謝謝您!請問有連結嗎,我找到好幾個不知哪個才是?
作者: YahooTaiwan (超可愛南西我老婆)   2020-01-26 03:09:00
先把 MVVM 學好
作者: archknight (布丁牛奶)   2020-01-26 11:33:00
好的,感謝您!
作者: nwish (WiSH)   2020-02-05 19:46:00
可以用select2做

Links booklink

Contact Us: admin [ a t ] ucptt.com