2012-08-05 44 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"); 

这样的事情?