在组织结构图布局 TreeView 上显示级别标签
我有一个 WPF TreeView,我已经应用了组织图表模板。我现在需要做的是找到一种方法来添加一个标签来显示级别项所在的位置。示例:
ROOT LEVEL Parent
|
|-----------|
CHILD LEVEL CHILD 1 CHILD 2
| |----------------|
GRANDCHILD LEVEL GRANDCHILD1 GRANDCHILD2 GRANDCHILD3
我认为有一个可以编辑的模板来执行此操作。然而我找不到一个。任何帮助将不胜感激。
I have a WPF TreeView that i have applied a Organizational Chart template. What I now need to do is find a way to add a Label that shows what Level Items are at. Example:
ROOT LEVEL Parent
|
|-----------|
CHILD LEVEL CHILD 1 CHILD 2
| |----------------|
GRANDCHILD LEVEL GRANDCHILD1 GRANDCHILD2 GRANDCHILD3
I would think there is a template to edit to do this. However I can not find one. Any help will be highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试凯文的一袋技巧。那里有一个控件:
OrgTree
,它具有非常好的用户体验,可以满足您的需求。大多数逻辑都在模型级别,因此很容易调整。您还可以找到非常有用的
Try Kevin's Bag of Tricks. There's a control there:
OrgTree
, with a very good User Experience that does what you want. Most logic is at the Model level, so it's easy to tweak.You can also find the very use