示例#1
0
 public TreeNodeViewModel(TreeNode treeNode, TreeViewItemViewModel parent) : base(parent)
 {
     _treeNode = treeNode;
     LoadChildren();
 }
 protected TreeViewItemViewModel(TreeViewItemViewModel parent)
 {
     Parent = parent;
     _children = new ReadOnlyObservableCollection<TreeViewItemViewModel>(ChildrenSource);
 }