-1
我需要創建在C#中的ObservableCollection <>爲樹ö多個級別這樣的:我需要樹水平的的ObservableCollection
- 組1
- 組2
- 組1
- 組2
- 組1
- 組2
- 組3
在此先感謝,
蒂米·倫納德
我需要創建在C#中的ObservableCollection <>爲樹ö多個級別這樣的:我需要樹水平的的ObservableCollection
在此先感謝,
蒂米·倫納德
使包含子節點的可觀察集合 「節點」 類,像這樣:
class node
{
// add some data properties in here, too
public ObservableCollection<node> children;
}
// declare an instance, in the data model (or where-ever)
ObservableCollection<node> RootLevel = new ObservableCollection<node>();
我可以給喲如果我知道你想要做什麼平臺,你會得到更好的答案。 (WPF或Silverlight等)
我明白了,我會嘗試一下,我使用的平臺是WPF, – 2010-11-10 00:18:15