wpf - 如何将项目添加到listview [英] wpf - how to add item to listview
本文介绍了wpf - 如何将项目添加到listview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的问题是:如何在列表视图中添加带按钮的项目。
在Windows窗体应用程序中我可以添加具有图像列表的项目,如下图所示:
http:/ /i62.tinypic.com/rlgpqb.gif [ ^ ]
listview1.items.add(绿色);
但如何添加商品用点击按钮的图标。
你能帮我吗?
解决方案
看看这里: 将图像添加到C#.net 中的Listview控件[ ^ ]和这里: WPF中的ListView [ ^ ]
hi guys. im new in wpf
my question is : how can add item with icon by button in listview.
in windows form application i can add item with image by image list, like this picture :
http://i62.tinypic.com/rlgpqb.gif[^]
listview1.items.add("green");
but how can add item with icon by click button.
can you help me??
解决方案
Have a look here: Add images to Listview control in C#.net[^] and here: ListView in WPF[^]
这篇关于wpf - 如何将项目添加到listview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文