Explorer theme for WPF ListView?

岁酱吖の 提交于 2019-12-06 11:23:43

问题


How do I get the explorer theme in a WPF ListView?
I know that one answer is the GridView, but that is like the Details view in Windows Explorer.
I need the List, Tiles and Icons view themed like the Explorer.
How do I get that?


回答1:


The Windows API Code Pack has an Explorer browser control, which has exactly the same appearance as the Windows Explorer (of course I'm assuming you want to display files, not something else...)

Anyway, if you want to do it yourself, you could create several custom views in addition to the GridView. This way you could just change the View property of the ListView to switch between list, tiles, icons and details. See this MSDN article for details on how to create a custom view.



来源:https://stackoverflow.com/questions/5382861/explorer-theme-for-wpf-listview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!