internal static void CreateRoot(TreeListViewModel tree) { var root = new TreeNode(tree) { IsExpanded = true }; root.Children.Clear(); }
internal TreeNode(TreeListViewModel tree, object tag) { if (tree == null) { throw new ArgumentNullException("tree"); } _tree = tree; _children = new NodeCollection(this); _nodes = new ReadOnlyCollection <TreeNode>(_children); _value = tag; }
private TreeNode(TreeListViewModel tree) : this(tree, null) { _isRootNode = true; }