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