示例#1
0
        internal static void CreateRoot(TreeListViewModel tree)
        {
            var root = new TreeNode(tree)
            {
                IsExpanded = true
            };

            root.Children.Clear();
        }
示例#2
0
        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;
        }
示例#3
0
 private TreeNode(TreeListViewModel tree)
     : this(tree, null)
 {
     _isRootNode = true;
 }