C#用ListView实现XP分组样式(图)
作者:C/S框架网  发布日期:2011/06/16 23:07:02
C#用ListView实现XP分组样式(图)

C#用ListView实现XP分组样式
ListView Grouping XP Style

贴图图片


Introduction

The controls included with Microsofts IDE have always been feature rich. However, Microsoft always seems to leave out as many features as they include. The ListView control is no exception to this rule. This project aims at exposing and wrapping a few cool features. First to note is the ability to group items. In Windows Explorers View menu, the Arrange Icon by menu has a Show in Groups option. This allows the ListView to arrange items logically into groups, generally based on file type. The next feature is the ability to set an image as the background of a ListView, whether tiled or a single image. Your My Music folder demonstrates the concept, with a music note image in the lower right hand corner. This project extends the standard ListView with the help of the Windows API to give a more feature rich control.

介绍

这些控件包括Microsoft的IDE中丰富的功能, 不过,微软似乎留下许多功能未对外开放。ListView控件也不例外。这个项目旨在揭开这些神秘功能的面纱。首先要注意的是对项目进行分组。在Windows资源管理器中右键弹出菜单,排列图标子菜单内有个按组排列的菜单项。功能是自动将项目按文件类型分组. 另一个特性是可以设置ListView的背景图片,可以平铺或单个显示图片背景。在"我的音乐"目录内演示了这个效果,留意右下角的音乐背景图片。这个项目扩展了Listview的标准功能,使用Windows API帮助获取大量丰富的控件特性。



www.csframework.com 译


转自:http://www.codeproject.com/KB/list/GroupListView.aspx



C/S框架网|原创精神.创造价值.打造精品


扫一扫加作者微信
C/S框架网作者微信 C/S框架网|原创作品.质量保障.竭诚为您服务


点击下载附件 点击下载附件 (如下载失败,请邮件通知我们寄回给您,或QQ:23404761留言.)
上一篇 下一篇