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.