浏览器主题为WPF的ListView? [英] Explorer theme for WPF ListView?

查看:145
本文介绍了浏览器主题为WPF的ListView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在WPF ListView的探险主题?结果
我知道一个答案是在GridView,但就像在Windows资源管理器中的详细信息的看法。结果
我需要在列表,瓷砖和图标查看主题,如资源管理器。结果
我如何获得的?

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?

推荐答案

借助 Windows API的$ C $信用证包装有一个IE浏览器的控制,它具有完全相同的外观一样的Windows资源管理器(当然我假设你要显示的文件,而不是别的东西......)

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...)

无论如何,如果你想自己做,你可以创建除了 GridView控件几个自定义视图。这样,你可以只修改查看的ListView 的属性列表,瓷砖,图标和细节之间切换。请参见关于如何创建自定义视图细节这个MSDN文章

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.

这篇关于浏览器主题为WPF的ListView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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