WPF:如何在数据网格中放置树视图 [英] WPF: How to put a tree view inside the datagrid

查看:25
本文介绍了WPF:如何在数据网格中放置树视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将树视图类放在数据网格中,我已经有一个已填充的数据网格,但现在我想要每一行的树视图,我该怎么做?

How do I place the treeview class inside the datagrid, I already have a datagrid that has been populated but now I want a tree view for each row, how can I do that?

推荐答案

您想要将 DataGridRow 的模板样式化以显示 TreeView.

You want to style the template of the DataGridRow to show a TreeView.

看看这个代码项目 显示如何解决您的问题.

Take a look at this code project that shows how to achieve your problem.

这篇关于WPF:如何在数据网格中放置树视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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