WPF:是否有内置的TreeGrid / TreeListView? [英] WPF: Is there a built-in TreeGrid / TreeListView?

查看:136
本文介绍了WPF:是否有内置的TreeGrid / TreeListView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要这样的东西:

(我同时需要TreeView和ListView方面。即层次结构和列。)

(I need both the TreeView and the ListView aspects. That is, Hirearchy and Columns.)

但是,我在WPF中需要它。这是内置的,还是我必须自己构建?

But, I need it in WPF. is this something that is built in, or am I going to have to build it myself?

我认为它必须在框架中某处,因为VS2010是内置的WPF。

I assume it has to be somewhere in the framework, since VS2010 is build in WPF.

编辑:
我已经使用TreeView和一些网格(它们的列绑定到父网格的列)设法获得了一些我想要的功能

I have managed to get some of the functionality that I want using a TreeView and some grids with their Columns bound to a Parent grid's columns, but there are too many quirks in the functionality.

编辑2:
我还没有找到执行此操作的方法。有任何想法吗?

Edit 2: I still have as-of-yet not found a way to do this. Any ideas?

推荐答案

MSDN上的该帖子利用本机WPF来实现TreeView / Grid混合。它基于TreeView和Grid控件。它支持具有多个列的树状视图,但不支持排序或过滤

This post on MSDN makes use of native WPF to achieve a TreeView/Grid hybrid. It is based on the TreeView and Grid controls. It supports a treeview with multiple columns, but does not support sorting or filtering

http://dlaa.me/blog/post/9898803

编辑:我最近集成了此代码,它非常有效很好,可以为您提供所需的确切信息: http://www.codeproject.com / Articles / 30721 / WPF-TreeListView-Control

I have recently integrated this code and it works very nicely, gives you exactly what you want: http://www.codeproject.com/Articles/30721/WPF-TreeListView-Control

这篇关于WPF:是否有内置的TreeGrid / TreeListView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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