WPF: Is there a built-in TreeGrid / TreeListView?

前端 未结 7 1273
长情又很酷
长情又很酷 2020-12-29 21:05

I need something just like this:

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

But, I need it in WPF. is thi

7条回答
  •  青春惊慌失措
    2020-12-29 21:12

    You may be able to fake this display using specially-aligned shared Grid objects in your templates for TreeView...

    However I don't believe the one you see in Visual Studio is actually a WPF control implementation, it was there in Visual Studio 2008 as well and is likely either a custom native control or custom Windows Forms control.

    Good news, though: if you must absolutely have this experience and want it soon... it's a total hack, but: use Windows Forms interop with your WPF app.

    A Microsoft employee blogged a winforms TreeGridView implementation back in '06:

    • http://blogs.msdn.com/markrideout/archive/2006/01/08/510700.aspx
    • http://blogs.msdn.com/markrideout/archive/2006/01/18/new-link-for-treegridview.aspx

提交回复
热议问题