图像应在ListViewItem中显示为灰色 [英] Image should be grayed out in ListViewItem

查看:93
本文介绍了图像应在ListViewItem中显示为灰色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将ImageList分配给ListViewItems。当选择ListViewItem时,我们需要使图像变灰。




在上图中,第二个列表视图项,图像显示为灰色。如何在C#或VB .net中完成?






Santhosh Jakka

解决方案

试试这个:add将灰色图像添加到分配给列表视图的图像列表中,然后更改相应 ListViewItem
ImageIndex ImageKey 属性。 /跨度>


ImageList is assigned to ListViewItems. When ListViewItem is selected, we need to grayout the image.

In the above image, 2nd list view item, the image was grayed out. How can this be done in C# or VB .net?


Santhosh Jakka

解决方案

Try this: add a greyed image to the image list assigned to List View, then change the ImageIndex or ImageKey property of the corresponding ListViewItem.


这篇关于图像应在ListViewItem中显示为灰色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆