Add data to ListView Items WPF
How do I add data to the WPF ListView items开发者_开发技巧 like Windows Forms?
Using databinding you can bind the itemssource to something like an observable collection then have your items added to that.
This approach makes it fairly easy to manipulate the data once you get used to databinding as long as you have INotifyPropertyChanged implemented your listview will update when you call OnPropertyChanged().
精彩评论