在listview里加载好了图片:
//...
lv.SmallImageList = imageList1;
lv.View = View.List;
//...
图片以列表的形式显示
但是图片与图片间的间距很小,请问,如何才能将listview的行间距变大?
//...
lv.SmallImageList = imageList1;
lv.View = View.List;
//...
图片以列表的形式显示
但是图片与图片间的间距很小,请问,如何才能将listview的行间距变大?
<listview>
<listviewItem Height="100"/>
</listview>
listview.StateImageList = imageList1;
然后设置imagelist的size,imageliste.size(X,Y);
imageList1.ImageSize = new Size(X,Y);
自己试试效果
这样设置后,图片是变大了,但每行图片间距好像没什么变化
我的图片是以list的形式排列的:
image1
image2
image3
image4
...如果是listview里加载的是文字的话,效果倒是比较明显
但是图片呢?有没有好的方法?谢谢!