具有水平方向的 WPF TreeView? [英] WPF TreeView with horizontal orientation?
本文介绍了具有水平方向的 WPF TreeView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
改变 WPF 树视图方向的最简单方法是什么.我想使用扩展折叠功能从左到右而不是从上到下工作.IE.当我单击树节点的展开按钮时,我会将其子节点显示在父节点的右侧,而缩进应该自上而下地工作.此外,连接节点的垂直线现在必须是水平的.
What would be the bast way to change the orientation of the WPF treeview. I would like to work the expand-collapse-functionality to work left to right instead of top to down. I.e. when I click on on the expand button of a treenode I would its subnode to appear right of the parent and the indent should work top-down instead. Also the vertical lines that connect the node must now be horizontal.
推荐答案
这是 Josh Smith on CodeProject 详细介绍了如何做这种事情.
Here is a great article by Josh Smith on CodeProject detaling exactly how to do this kind of thing.
这篇关于具有水平方向的 WPF TreeView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文