我需要創建一個保存同步數據的TreeView,如DataGrid。創建一個WPF混合控件(TreeView + DataGrid = DataTreeGrid)
爲了澄清,看看這個圖片:
所以,我在左側與右側的列一個TreeView。
的數據將來自這樣的對象:
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;
我如何創建呢?
可能的延遲http://stackoverflow.com/questions/1020213/c-can-i-show-an-expandable-tree-like-view-in - 一個數據網格,還http://stackoverflow.com/questions/3457107/wpf-handle-editable-hierarchical-data-treeviewdatagrid-hybrid – xdumaine 2011-03-31 15:43:51
@roviuser,該主題將不會回答我的問題......它甚至解決直接問題...但是,似乎是相同的情況... – NemoStein 2011-03-31 15:46:02