[問題] textbox 綁定 IEnumerable<String>

看板C_Sharp作者 (布丁牛奶)時間4年前 (2020/01/23 15:33), 編輯推噓3(304)
留言7則, 4人參與, 4年前最新討論串1/1
我想做一個在 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://www.ptt.cc/bbs/C_Sharp/M.1579764815.A.CCA.html

01/24 11:10, 4年前 , 1F
雖然沒用過這個,但ms有自己寫一個這種套件,應該更簡單
01/24 11:10, 1F

01/24 11:10, 4年前 , 2F
使用,搜尋ajaxtookit
01/24 11:10, 2F

01/25 15:50, 4年前 , 3F
這個更簡單嗎,我試試看,謝謝您!
01/25 15:50, 3F

01/25 15:55, 4年前 , 4F
請問有連結嗎,我找到好幾個不知哪個才是?
01/25 15:55, 4F

01/26 03:09, 4年前 , 5F
先把 MVVM 學好
01/26 03:09, 5F

01/26 11:33, 4年前 , 6F
好的,感謝您!
01/26 11:33, 6F

02/05 19:46, 4年前 , 7F
可以用select2做
02/05 19:46, 7F
文章代碼(AID): #1UAKnFpA (C_Sharp)