开发者

Add data to ListView Items WPF

开发者 https://www.devze.com 2023-02-13 08:45 出处:网络
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 th

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().

0

精彩评论

暂无评论...
验证码 换一张
取 消