2012-08-05 48 views
0

我怎麼可以插入新項目到WPF列表框中以前的老項目插入新項目到WPF列表框中以前的老項目

old text然後我添加

new text 

old text 

代替

old text 

new text 
+0

請參閱:http://stackoverflow.com/questions/665234/add-programmatically-listviewitem-to-listview-in-wpf – Theos 2012-08-05 13:36:33

+0

是Listbox數據綁定,或者您想要以編程方式創建ListBoxItem? – 2012-08-05 13:41:51

回答

1
ListBox.Items.Insert(0, "Message"); 

這樣的事情?