[問題] textbox 綁定 IEnumerable<String>
我想做一個在 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,
5年前
, 1F
01/24 11:10, 1F
→
01/24 11:10,
5年前
, 2F
01/24 11:10, 2F
→
01/25 15:50,
5年前
, 3F
01/25 15:50, 3F
→
01/25 15:55,
5年前
, 4F
01/25 15:55, 4F
推
01/26 03:09,
5年前
, 5F
01/26 03:09, 5F
→
01/26 11:33,
5年前
, 6F
01/26 11:33, 6F
推
02/05 19:46,
5年前
, 7F
02/05 19:46, 7F
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章