开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜