创建 WPF 混合控件(TreeView + DataGrid = DataTreeGrid) [英] Creating a WPF Hybrid Control (TreeView + DataGrid = DataTreeGrid)

查看:42
本文介绍了创建 WPF 混合控件(TreeView + DataGrid = DataTreeGrid)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个保存同步数据的 TreeView,如 DataGrid.

I need to create a TreeView that hold synchronized data, like a DataGrid.

为了澄清,请看一下这张图片:

To clarify, take a look at this image:

所以,我在左侧有一个 TreeView,在右侧有一个列.
数据将来自这样的对象:

So, I have a TreeView at left side with columns at right side.
The data will come from objects like this:

public NodeData Parent;
public List<NodeData> Children;

public String Label;

public Boolean DataA;
public Boolean DataB;
public Boolean DataC;
public Boolean DataX;
public Boolean DataY;
public Boolean DataZ;

我该如何创建它?

推荐答案

来自 Marius Rochon 的这篇博文可能对您有所帮助.

这篇关于创建 WPF 混合控件(TreeView + DataGrid = DataTreeGrid)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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