Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アプリで ListBox を定義し、XAML コードでいくつかの静的データを設定しました。たとえば、C# コードでこの ListBox を参照するとします。
searchList.....;
コード内の ListBox にアイテムを動的に追加するには、どのような方法を使用しますか?
前もって感謝します!
listBox.Addを確認してください。
例:
listBox1.Items.Add("Your item");
それが役に立てば幸い