【问题标题】:Custom sorting for virtual ListView with ImageLIst使用 ImageLIst 对虚拟 ListView 进行自定义排序
【发布时间】:2011-10-07 12:17:52
【问题描述】:

Tutorial 解释了无图标列表的排序。

图标将在ListView.LargeImageList property 中设置为ImageList 实例。 ImageList 可以通过键映射,但我找不到将图像键与列表中包含的ListViewItem 关联的方法。

ListView 的用户是否应该用图标对ImageList 重新排序?

【问题讨论】:

    标签: .net


    【解决方案1】:

    使用ListViewItem.ImageKey 属性将项目与图像相关联。如果列表视图项目的顺序因排序而发生变化,项目的图像将相应显示。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-24
      • 1970-01-01
      • 1970-01-01
      • 2010-11-02
      • 1970-01-01
      相关资源
      最近更新 更多